:root {
  --ink: #2b2620;
  --paper: #faf7f2;
  --card: #ffffff;
  --accent: #7a3b2e;
  --accent-light: #c98b6f;
  --border: #e4dcd1;
  /* A step stronger than --border, for a box that has to be told apart
     from the box beside it rather than merely bounded - the stanza
     panels and the whole-hymn block on the work edit form, which sit in
     a column of near-identical frames (user, 2026-09-09). DARKER, not
     thicker: a 2px edge on a fractionally-scaled box is what truncated a
     frame at 110% zoom in Brave, and one hairline is what this app draws
     everywhere else. */
  --border-strong: #b5a68e;
  /* #6b6156 on --paper is ~5.7:1 contrast (WCAG AA needs 4.5:1) - the
     previous #8a8073 measured ~3.6:1, too faint for the labels and secondary
     text it's used on throughout (def-list dt, subtitles, table captions). */
  --muted: #6b6156;
  /* Hint text INSIDE a field. Lighter than --muted on purpose - see the
  ::placeholder rule for why the two must not be the same colour. */
  --placeholder: #9a9187;
  /* A surface a step quieter than --card, for a band or a group that sits
     ON a card and wants to read as recessed rather than as another card.
     Was a fallback in two rules and defined nowhere until 2026-09-07. */
  --card-alt: #f0ece4;
  --success: #3f6b4a;
  --error: #a33d3d;
  --radius: 8px;
  --type-original-language-bg: #efe6f5; --type-original-language-fg: #63397f;
  --type-melody-bg: #dcf0ec;    --type-melody-fg: #1f6d5c;
  --type-arrangement-bg: #f7ecd6; --type-arrangement-fg: #8a5a1f;
  --type-lyrics-bg: #dde8f5;    --type-lyrics-fg: #2c5a8a;
  /* Backlog is the one state before review has begun, so it reads as neutral
     and quiet rather than as a warning - a work waiting here is not a problem,
     it is just not started. Deliberately distinct from `archived` grey, which
     means finished with. */
  --status-backlog-bg: #e4e6ea;   --status-backlog-fg: #4a5260;
  --status-in_review-bg: #f7e8c8; --status-in_review-fg: #8a6414;
  --status-revision_needed-bg: #f5dcd0; --status-revision_needed-fg: #a1462a;
  --status-revision_review-bg: #d9e8f7; --status-revision_review-fg: #315f8f;
  --status-approved-bg: #e6dcf0; --status-approved-fg: #5c3b7a;
  --status-published-bg: #dcefe0; --status-published-fg: #2f6b42;
  --status-archived-bg: #e2ded8; --status-archived-fg: #6b6156;
  --status-draft-bg: #e1e6ec; --status-draft-fg: #46586b;
  /* The Drafts card's ground on a shelf page: a wash a step lighter than the Draft pill's. */
  --status-draft-wash: #f3f5f8;
  /* The apocryphal citation pill. A NEUTRAL grey against the warm
  #efe6da of a scriptural one, so the two are told apart at a glance
  without either being made louder - grey recedes, which is the whole
  point (user, 2026-09-02). An earlier dashed border did the opposite:
  the only outlined thing on the page read as the most important.
  The text colour is NOT changed with it - only the ground - so the two
  read as equally legible (6.64:1 here against 6.82:1 on the warm
  ground) and differ in corpus rather than in importance. Its own
  variable rather than reusing
  --status-archived-*, which means 'finished with' and would be a
  second meaning riding on one colour. */
  --scripture-apocrypha-bg: #e6e4e1;
  /* Serif carries the "hymnal" character on headings and the hymn text
     itself; sans-serif runs everything else (tables, forms, nav, buttons),
     which reads more cleanly at the small sizes dense UI chrome needs. */
  --font-serif: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  /* The wordmark only. Its own variable rather than a change to --font-serif,
     which sets every heading and every line of lyric text on the site.

     LITERATA (user, 2026-10-02), the book typeface made for reading long
     texts on screen, at weight 360: chosen over Source Serif 4, Spectral,
     Bitter and a lighter Sitka Banner because its even strokes sit with the
     LLC mark's line, where the bold Sitka made the mark look thin. SELF-
     HOSTED - see the @font-face beside Bravura's - so every computer draws
     the same name: the installed-font chain before it drew Bookman on one
     machine and Sitka Banner on another. Georgia is only what shows if the
     file ever fails to load. */
  --font-wordmark: "Precentor Montserrat", "Segoe UI", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
h1, h2, h3, h4, .brand, .intake-section summary { font-family: var(--font-serif); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* A light, consistent motion language across every interactive/visual
   element - hover and focus states ease in rather than snapping. */
.btn, input, select, textarea, .card, .tag, a.tag, .home-card {
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.topbar { background: var(--ink); color: #fff; }
/* Wider than the 1100px reading column below it, deliberately. A bar holding
   ten tabs, a brand and an identity menu is not prose and does not want a
   prose measure; capping it at 1100 on a 1280 screen threw away 180px and
   cost the tabs their single row. The brand therefore sits a little left of
   the page content, which is the trade. */
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.05rem 1.5rem;
  display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
}
/* The wordmark and the global search box. A ROW since 2026-08-20 (user):
   the search sits beside the wordmark, not under it. */
/* MORE ROOM BETWEEN THE NAME AND THE SEARCH BOX (user, 2026-10-02: "a bit
   more breathing room between the app name and search bar"): 1.5rem across,
   from 0.9. The 0.9rem stays as the gap between rows, where a phone puts the
   search box under the name. */
.brandblock { display: flex; align-items: center; gap: 0.9rem 1.5rem; flex-wrap: wrap; }
/* SIGNED OUT, THE WORDMARK CENTERED (the sign-in drawing, version 4; the user, 11/14/2026: "On the login page, can
   the precentor wordmark/logo be centered in the top band?"): with no one signed in the band holds the wordmark
   alone - Log in and every other page seen signed out, one rule. */
.topbar-bare .topbar-inner, .topbar-bare .brandblock { justify-content: center; }
/* (version 6, the user of version 5: "This feels a bit sparse or something... what can we do to make it look more
   cohesive or complete?") SIGNED OUT, THE BAND GROWN AROUND ITS OWN WORDMARK: the app's top band, tall, its white
   wordmark drawn large in it - zoom keeps every proportion, the wordmark's sizes mixing em and rem - and the card
   lifted to overlap the band's foot, so band, name and card read as one piece. Signed in, the band is the usual one.
   The sign-in pages' column then starts at the top, under the band, rather than in the middle of the window. */
.topbar-bare .topbar-inner { padding-top: 2.6rem; padding-bottom: 6.6rem; }
.topbar-bare .brand { zoom: 1.9; }
.auth-page { flex-direction: column; }
.topbar-bare ~ main .auth-page { min-height: 0; justify-content: flex-start; margin-top: -6.6rem; }
/* (version 7, the user: "'Log in' should be changed to 'Sign in' and centered. The sentence beneath can be
   removed.") THE CARD'S HEADING CENTRED, with the room the line under it had. */
.auth-card.auth-signin h1 { text-align: center; margin-bottom: 1.4rem; }
@media (max-width: 700px) {
  .topbar-bare .topbar-inner { padding-top: 2rem; padding-bottom: 5.4rem; }
  .topbar-bare .brand { zoom: 1.45; }
  .topbar-bare ~ main .auth-page { margin-top: -5.4rem; }
}
/* THE ROOM THE ICONS GAVE BACK GOES TO THE SEARCH (user, 2026-10-02). With
   the menus as icons and no Search button the row has room to spare, and
   it all went to the menus - the field sat at 192px with "Hymn number,
   title, name or phrase" cut off in the middle. The wordmark-and-search
   group takes the slack now, the field grows into it up to its own cap,
   and the icons keep to the right beside your name. A START width did not
   do this: it made the group wrap the field under the wordmark instead. */
@media (min-width: 701px) {
  /* NOWRAP: the field shortens rather than drop under the wordmark - a
     long name in the identity chip put it there (user, 2026-10-02). */
  /* AND IT CLAIMS ONLY ITS MINIMUM when the row is laid out, then grows:
     a row breaks by what each item asks for BEFORE anything shrinks, so a
     group asking for its full width wrapped your name onto a second line
     on a narrow window rather than shorten the field (measured at 1000px). */
  .brandblock { flex: 1 1 0%; flex-wrap: nowrap; }
}
/* PRECENTOR, AND WHAT IT IS FOR UNDER IT (user, 2026-10-02). The name on
   one line, and "Hymn library & workshop" small beneath it, CENTERED under
   the name and its staff (user: "the hint text should be centered under the
   name and music note"). It was "Music Library" on two stacked lines, left
   justified. The 1.08 line-height keeps the name from making the bar any
   taller than those two lines did.
   1.68rem AT WEIGHT 360 (user, 2026-10-02): the size at which Literata's
   lowercase letters stand exactly as tall as the 2rem Sitka Banner's did,
   which kept the mark and the staff the size they were approved at, and the
   weight whose main strokes are half again the mark's line. */
/* THE TWO TYPEFACES SWAPPED (user, 2026-10-03: "I'd like to see a version where the fonts for the
   wordmark and the hint are swapped", then "I like this one"): the name in Montserrat at the same
   1.68rem and 360, the line under it in Literata. */
.brand {
  font-family: var(--font-wordmark);
  color: #fff; font-weight: 360; font-size: 1.68rem; letter-spacing: 0.01em;
  display: inline-flex; flex-direction: column; align-items: center;
  white-space: nowrap; line-height: 1.08;
}
/* Baseline alignment inside the line keeps the mark and the staff placed on
   the name's baseline. No padding at the end: the line under the name spans
   exactly the name and its staff, and padding would stretch it past them. */
/* NUDGED DOWN, CLOSER TO THE LINE UNDER IT (user, 2026-10-03: "The wordmark needs to be nudged
   downward just a bit (closer to the hint)", then "It can be nudged another 2px closer", and once
   more): the whole line - letters, mark and staff together, so the staff still leaves from the end of
   the r's arm - 0.2232em (6px) lower, by position, so the bar and the line under it stay where they are. */
.brand-line { display: inline-flex; align-items: baseline; position: relative; top: 0.2232em; }
/* The line under the name: what the app is for, small and a shade quieter
   than the name, so it reads as a description rather than as a second name. */
/* IN SMALL CAPS, EVERY LETTER (user, 2026-10-02: "the hint text should be
   in small caps", then "the first letter in the hint should not be
   capitalized - all small caps"). */
/* MONTSERRAT, 13.67px, SPREAD TO THE WIDTH OF THE NAME AND ITS STAFF (user,
   2026-10-02: "space out the text so it's the same width as the wordmark and
   music", then "let's select a specific font for this" - Montserrat, over
   Literata, Source Sans 3 and Alegreya Sans - and "make the font .5 larger").
   Each letter is its own item in a flex row stretched across the brand, so
   the browser spaces them to fit exactly; a fixed letter-spacing would fit
   one set of letter widths and no other. A word break is an empty item
   (.brand-hint-gap) with a little width of its own. Montserrat has no small
   capitals of its own: the browser draws them from its capitals at 70%.
   ONE POINT LARGER, AND "HYMN" GONE (user, 2026-10-02: "'hymn' should be
   deleted - 'library' and 'workshop' should be made 1pt larger"): 12.34px
   and 4/3px, 13.67px. */
.brand-hint {
  font-family: "Precentor Literata", Georgia, serif; font-weight: 400;
  font-size: 0.8546rem; font-variant-caps: all-small-caps;
  /* THE LINE KEEPS THE HEIGHT IT HAD AT 12.34px, so the larger letters do not
     make the bar 1.33px taller (measured: 87.08px against 88.41px). */
  color: #d9cfc0; line-height: 0.77125rem;
  /* not the name's 0.01em: the letters are spaced by the row, not by tracking */
  letter-spacing: 0;
  align-self: stretch; display: flex; justify-content: space-between;
  align-items: baseline;
  /* 0.758rem: its top 15px below the name's baseline, where it sat under the
     2rem Sitka name. Literata's smaller line would otherwise lift it 6.5px,
     into the foot of the mark. */
  margin-top: 0.758rem;
}
.brand-hint-gap { width: 0.3em; }
/* "and", WRITTEN OUT, IN LOWER CASE, SMALLER AND SET CLOSER (user,
   2026-10-02: "write out the word 'and' instead of an ampersand, and write
   'and' in lower case letters that are more tightly spaced than the other
   words", then "make the 'and' smaller", choosing the size at which the top
   of its d is level with the tops of the capitals: 0.656em). One item, so the
   spreading never reaches inside it; the row's shared baseline keeps it on
   the line.
   THE SAME SIZE WHEN THE WORDS GREW (user, 2026-10-02: only "'library' and
   'workshop' should be made 1pt larger"): 8.10px, so 0.592em of the larger
   line. AND CENTRED BETWEEN THEM ("'and' should be vertically centered
   between 'library' and 'workshop'"): raised until the middle of its lower-
   case body is level with the middle of the small capitals - measured in
   the browser off the font itself, small capitals 6.75px tall and "an"
   4.30px, so 1.23px, 0.151em. Moved, not re-laid-out: the row keeps its
   baseline and its height. */
/* ITS OWN LINE HEIGHT, 1: inheriting the line's fixed 12.34px, an 8.10px word
   sat lower in a box half again its size and the row grew to 14.34px -
   2px on the bar. Measured: 12.34px with this, 14.34px without.
   AND CENTRED UNDER THE MARK (user, 2026-10-02: "'and' falls centered beneath
   the logo on the wordmark"): the spread put its ink's middle 3.19px left of
   the mark's upright, which is drawn on x=0 of precentor-t.svg - so 0.395em
   to the right. Moved, not re-laid-out, so no other letter of the line
   shifts. */
.brand-hint-and { font-variant-caps: normal; font-size: 0.592em; letter-spacing: 0.02em;
  line-height: 1; position: relative; top: -0.151em; left: 0.395em; }
/* WORKSHOP DRAWN IN, SO "and" IS CENTRED BETWEEN THE WORDS AS WELL AS UNDER
   THE MARK (user, 2026-10-02: "now 'and' isn't centered between 'library'
   and 'workshop'. 'workshop' might need to have the spaces between the
   letters shrunk ever so slightly"). Measured by ink: 15.75px from LIBRARY
   to "and", 9.93px from "and" to WORKSHOP, so each of WORKSHOP's seven
   spaces gives up 0.83px (0.0608em). The P stays at the end of the line and
   each letter before it moves right by that much per space between it and
   the P (--k, written by the template); LIBRARY and "and" do not move, and
   nothing is re-laid-out. */
.brand-hint-ws { position: relative; left: calc(var(--k, 0) * 0.0608em); }
/* NO UNDERLINE UNDER THE POINTER (user, 2026-10-02: "When I hover over the
   app name and hint, I do not want an underline to appear"). The name is
   the way home, and every link in the app underlines on hover - this one
   is a mark, not a line of text. */
.brand:hover, .brand:focus { text-decoration: none; }
/* The gap is 1rem rather than 1.25rem: an admin carries ten tabs, and at nine
   gaps every quarter-rem is 36px of the row. */
/* THE LETTERS SIT 1.5px LOWER than the line they stand on (user, 2026-10-02:
   "the 'precentor' text should be nudged downward a bit, but the logo 't'
   stay where it is"). Relative, so nothing else in the bar moves with them -
   the mark keeps its place, and the staff is drawn from the lowered r.
   1.5px EXACTLY, in rem (0.0558em was 1.4999px): the staff's drawing hangs a whole 36px above these
   letters' baseline, so the screen rounds the two to the same pixel - see .brand-staff img. */
.brand-name { position: relative; top: 0.09375rem; }
/* THE t IS THE LLC MARK (user, 2026-10-02): a drawing, static/img/
   precentor-t.svg, taller than the letters so its crossbar clears the n and
   the o and reaches over them (user: "it's okay if the beam of the logo
   extends over the letters on either side"). Its foot drops below the
   baseline and the inside of its circle sits just above the tops of the
   lowercase letters.

   A ZERO-HEIGHT BOX with the drawing hanging out of it, so the mark adds
   nothing to the height of the line, and so of the bar. The box's width is
   the room the mark takes in the word; the drawing is wider and reaches out
   past it. Every length is in em of the name, so the mark scales with it. */
.brand-t { display: inline-block; height: 0; width: 0.2555em; }
.brand-t img {
  display: block; width: 0.7519em; height: 1.6680em; max-width: none;
  margin-top: -1.3900em; margin-left: -0.2471em;
}
/* THE STAFF FLOWS OUT OF THE r (user, 2026-10-02): its five lines start
   inside the ball at the end of the r's arm and fan out toward you in one
   gentle sweep, carrying two quarter notes and a dotted eighth and sixteenth
   that bend with it, and turn away as it fades. One drawing, static/img/
   precentor-staff.svg, drawn from the r's right edge on the baseline. Zero
   height for the same reason as the mark; the box is as wide as the staff
   reaches, so the search box keeps its distance from the end of it. */
.brand-staff { display: inline-block; height: 0; width: 2.8480em; }
/* FROM THE END OF MONTSERRAT'S r ARM (user, 2026-10-03: "I want to make sure the music staff looks
   like it's emerging from the end of the 'r' arm instead of from beneath the arm"): the arm ends higher
   than Literata's ball did, so the drawing sits 0.0516em higher and 0.0210em further left - its five
   lines leaving from 0.0836em inside the end of the arm, as they left from inside the ball. Measured
   off the glyph: the end of Literata's arm put the drawing's own start within 0.001em of where it
   stood, which is what showed the measure sound.
   AT THE ARM'S OWN THICKNESS (user, 2026-10-03: "The top line of the music staff should be level with
   the top end of the arm of the 'r' - no step down or up", and the bottom line with its bottom end):
   the drawing's five lines leave the arm's square-cut end level and side by side, the top one's top
   edge on the arm's top (0.530em above the baseline), the bottom one's bottom edge on its bottom
   (0.461em), and ease into their courses within 9px - redrawn from the font itself, so a change of
   face or of these margins means drawing them again.
   NO GAP WHERE THE STAFF LEAVES THE r (user, 2026-10-03: "There should be no gap here"): the five
   lines start 1px inside the arm, one solid band that follows the arm's own outline and then its
   end, level, before they part - one shape, so nothing shows between them, and the letter and the
   drawing overlap rather than meet. Measured from the r's box, which ends 0.01em (the name's
   letter-spacing) past the r itself. AND THE SCREEN ROUNDS THEM TOGETHER: a screen draws letters on
   a whole pixel and places a picture on a whole pixel, each rounding its own position, which stood
   the staff half a pixel off the arm. The drawing's top is 34.5px above the line and the letters'
   baseline 1.5px below it (.brand-name) - 36px apart, a whole number of pixels at every common
   screen density and zoom (1, 1.25, 1.5, 1.75, 2) - and the drawing is 80 x 40px, so its bottom
   rounds with its top. In rem, not em, so these lengths are exact; the name is set in rem too, so
   they still scale with it. Measured on a zoomed page: no seam, and the staff within a third of a
   device pixel of the arm at every zoom and wherever the bar falls. */
.brand-staff img {
  display: block; width: 5rem; height: 2.5rem; max-width: none;
  margin-left: -0.1463em; margin-top: -2.15625rem;
}
/* Right-aligned. .mainnav still fills the space between the brand and the
   identity chip, but justify-content pushes its tabs to the END of it, so the
   row reads wordmark ... tabs, chip rather than everything crowded left with a
   hole in the middle.

   The gap was 1.25rem before the Browse menu existed and 1rem while ten tabs
   had to fit on one row; folding Hymns/Music/Publications into Browse bought
   that room back. 1.35rem is measured against the row budget, not guessed -
   an admin in the TEST environment is the tight case, because the
   TEST ENVIRONMENT chip takes 134px the production bar does not have. */
.mainnav {
  display: flex; gap: 1.35rem; flex: 1; align-items: center;
  justify-content: flex-end; flex-wrap: wrap; row-gap: 0.5rem;
}
/* THE ICONS NEVER GIVE WAY to the search beside them (user, 2026-10-02):
   the wordmark-and-search group takes the row's slack - see .brandblock -
   and the field is what shrinks. AFTER the rule above on purpose: placed
   with .brandblock it lost the tie on source order and did nothing. */
@media (min-width: 701px) {
  .mainnav { flex: 0 0 auto; }
}
/* AFTER the rules it overrides, on purpose. Sitting above them it lost every
   tie on source order - justify-content stayed flex-end at 689px wide and the
   narrow layout silently did nothing. */
@media (max-width: 700px) {
  .topbar-inner { gap: 0.75rem 1.25rem; }
  /* The tabs drop to a row of their own here. Right-alignment is what the
     wide bar wants - it puts the tabs beside the identity chip - but once
     they wrap across two or three lines it just leaves every line ragged, so
     they start from the left again. */
  .mainnav { flex-basis: 100%; order: 3; justify-content: flex-start; }
  /* ...which leaves the identity chip sharing row one with the wordmark.
     Pushed to the right edge so it does not sit against it. */
  .userbox { margin-left: auto; }
}

.mainnav a { color: #e9e0d3; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; font: inherit; color: #e9e0d3; cursor: pointer; padding: 0;
}
.nav-dropdown-panel {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 0.6rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16); padding: 0.5rem 0; min-width: 210px; z-index: 30;
}
/* The 0.6rem between the toggle and the panel belonged to NEITHER, so
   moving the mouse down from the tab crossed 10px of dead space, lost
   :hover, and shut the menu - which is why it had to be clicked open
   first (user, 2026-08-20). This bridges the gap: an invisible strip
   that is part of the panel, so the hover survives the journey. The
   panel still SITS where it did; only its hit area now reaches up.
   Measured before and after, at the midpoint of the gap. */
.nav-dropdown-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
/* ON A PHONE EVERY LIST OPENS ACROSS THE ROW OF MENUS (2026-10-02). Hung
   from its own icon, a list opened rightwards from wherever that icon had
   wrapped to: People, Tools and the ＋ ran past the right edge of a 390px
   screen and pulled the page sideways. Anchored to the row instead, each
   opens under it, the row's full width. AFTER the rules it overrides, and
   one class more specific, so neither source order nor a tie can undo it. */
@media (max-width: 700px) {
  .mainnav { position: relative; }
  .mainnav > .nav-dropdown { position: static; }
  .mainnav .nav-dropdown-panel { left: 0; right: 0; }
}
/* A MENU ENTRY NEVER WRAPS (the user, 11/13/2026: "Can this be shortened so it appears on one line in the
   drop-down"): a menu grows to its longest entry - Dashboards' Hymn feedback & suggestions; every other entry
   fits the 210px a menu starts at. */
.nav-dropdown-panel a { display: block; padding: 0.4rem 1rem; color: var(--ink); font-size: 0.88rem;
  white-space: nowrap; }
.nav-dropdown-panel a:hover { background: var(--paper); text-decoration: none; }
.nav-dropdown-group-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap;
  padding: 0.4rem 1rem 0.15rem;
}
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
/* A SECTION HEADING INSIDE A MENU (user, 2026-09-26). Quieter and
   smaller than the links under it, and not a link itself: it names the
   group, and a heading that looked clickable in a list of clickable
   things would be the worst of both. The first one loses its top
   margin so the panel does not open with a gap. */
.nav-dropdown-head {
  margin: 0.45rem 0 0.15rem; padding: 0.45rem 1rem 0;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); font-weight: 600;
  border-top: 1px solid var(--border);
}
/* THE LINE IS ON THE HEADING, not a <div> between sections like the
   Admin menu's (user, 2026-09-26, who asked for the same line). Same
   result, and it cannot go wrong: which sections a role sees varies,
   and a separate divider element would need the gate of whatever sits
   above it - a producer's first section is The whole library, a
   viewer's is Analytics. :first-child never draws one.
   The Jinja comments above the first heading leave no element behind,
   so the first heading really is the panel's first element child. */
.nav-dropdown-head:first-child {
  margin-top: 0; padding-top: 0; border-top: none;
}
/* MORE ROOM BETWEEN THE BELL AND YOUR PILL (user, 2026-10-02: "there should
   be a bit more breathing room between the bell and the name/role pill").
   The bell's count hangs 0.6rem past its right edge, so at 0.75rem the two
   all but touched; 1.35rem is the gap between the menu icons, and leaves the
   count clear of the pill. */
.userbox { display: flex; align-items: center; gap: 1.35rem; font-size: 0.9rem; color: #e9e0d3; }
/* The identity menu: name + role pill as one control at the far right of the
   bar, opening Switch role / Log out. */
.userchip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; color: #f5efe5; cursor: pointer;
  background: rgba(245,239,229,0.08);
  border: 1px solid rgba(245,239,229,0.4); border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.userchip:hover, .nav-dropdown:focus-within > .userchip {
  background: rgba(245,239,229,0.18); border-color: rgba(245,239,229,0.7); color: #fff;
}
/* The serif the brand and every heading use. The tabs beside this are sans,
   so a name never reads as one more place to navigate to. */
/* YOUR INITIALS, not your name (user, 2026-10-02: "can it just be their
   initials? in this case, AW"). The chip is one width for everybody now: a
   full name made it grow with whoever was signed in, and the room came out
   of the search box beside it. The name heads the menu instead - see
   .userbox-who. */
.userchip-name {
  font-family: var(--font-serif); font-size: 0.95rem; white-space: nowrap;
  letter-spacing: 0.04em;
}
.userchip .role-badge { margin-left: 0; }
.userchip-caret { font-size: 0.7rem; opacity: 0.75; }
/* Anchored to the right edge: this menu sits at the end of the bar, so a
   left-anchored panel (the default for People/Admin) would hang off-screen.
   AS WIDE AS ITS WIDEST ENTRY: a panel hanging from the pill is only as wide
   as the pill unless told otherwise, and with initials in it (2026-10-02)
   "Submit feedback/bug report" broke over two lines. */
.userbox-panel { left: auto; right: 0; width: max-content; max-width: calc(100vw - 2rem); }
/* YOUR NAME, at the head of the menu your initials open (user, 2026-10-02:
   "the user's first and last name should appear above the help section").
   The menu title's place and rule, in the serif the name was set in on the
   bar - a person's name rather than a menu's, so not in capitals. */
.nav-dropdown-title.userbox-who {
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}
/* The panel styles its links; Log out is a form button and has to be given
   the same treatment rather than inheriting a button's own look. */
.userbox-panel form { margin: 0; }
.userbox-panel button {
  display: block; width: 100%; text-align: left; font: inherit;
  font-size: 0.88rem; color: var(--ink); background: none; border: 0;
  padding: 0.4rem 1rem; cursor: pointer;
}
.userbox-panel button:hover { background: var(--paper); }
/* Log out / Switch role: plain .link-btn (dark var(--accent) text) reads
   fine on the light card backgrounds it's used on elsewhere, but nearly
   disappears here against the dark topbar - give these two their own
   high-contrast pill treatment instead of just recoloring .link-btn. */
.topbar-action {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.82rem;
  color: #f5efe5; background: rgba(245,239,229,0.08);
  border: 1px solid rgba(245,239,229,0.4); border-radius: 999px;
  padding: 0.3rem 0.75rem; cursor: pointer; text-decoration: none;
}
.topbar-action:hover {
  color: #fff; background: rgba(245,239,229,0.18); border-color: rgba(245,239,229,0.7);
  text-decoration: none;
}
.role-badge {
  font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em; margin-left: 0.35rem;
  white-space: nowrap; display: inline-block; /* a pill never splits across two lines (the user, 10/30) */
  background: var(--accent-light); color: #2b2620;
}
/* The Switch role dialog. Each row is a whole clickable line rather than a
   bare radio beside a word: the badge is the thing being chosen, so the
   label wraps it and the row highlights on hover to say so. The checked row
   is tinted because "which one am I on now" is the first question the dialog
   has to answer. */
.role-choices { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.4rem; }
.role-choice {
  margin: 0; padding: 0.45rem 0.55rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; gap: 0.5rem;
}
.role-choice:hover { background: var(--paper); }
.role-choice:has(input:checked) { background: var(--paper); border-color: var(--border); }
.role-badge.role-admin { background: #d4a94a; }
.role-badge.role-editor { background: #8fb08a; }
/* Producer sits just below Manager in the hierarchy, so it takes a lighter
   tint of the same green rather than a colour of its own - related powers
   should read as related at a glance. */
.role-badge.role-producer { background: #bcd4b8; }
.role-badge.role-viewer { background: #b8c4d0; }
.role-badge.role-lyrics_reviewer { background: #a8c4d8; }
.role-badge.role-music_reviewer { background: #c9a8d8; }
/* The Recording reviewer (piece 3a): a tan of its own (the drawing C_reviews 1). */
.role-badge.role-recording_reviewer { background: #e3c9a4; }

/* Notification bell (topbar): a reviewer's pending-review count, linking to
   their /reviews to-do list. Hidden entirely (not just badge-less) when
   there's nothing pending would be one option, but keeping the bell always
   visible for reviewer roles makes /reviews easy to find even at zero. */
.notif-bell { position: relative; display: inline-flex; color: #e9e0d3; }
.notif-bell:hover { color: #fff; text-decoration: none; }
/* THE ＋ THAT ADDS A WORK (user, 2026-10-02), drawn like the bell: a bare
   line icon in the bar's own ink, brighter under the pointer. It sits in the
   row of menus between Tools and Admin (user: "move the + add a work icon in
   between admin and tools"), so its list opens rightwards as theirs do - it
   hung from its right edge while it sat at the end of the bar. */
.addwork-toggle { display: inline-flex; background: none; border: none;
  padding: 0; color: #e9e0d3; cursor: pointer; }
.addwork-toggle:hover, .addwork-menu:focus-within > .addwork-toggle { color: #fff; }
/* THE MENUS AS ICONS (user, 2026-10-02: "could we do an icon for each
   drop-down instead of words?"). A little room round each, and a faint
   ground under the pointer, so a 22px icon is a target a hand can find
   rather than a glyph to be aimed at exactly. */
.nav-icon { display: inline-flex; align-items: center; padding: 0.2rem;
  border-radius: 6px; color: #e9e0d3; }
.nav-icon:hover, .nav-dropdown:focus-within > .nav-icon {
  color: #fff; background: rgba(255, 255, 255, 0.10); }
.nav-icon svg { display: block; }
/* A BIT BIGGER (user, 2026-10-02: "Can the icons be a bit bigger?"): 26px
   for the menus and the ＋, and the bell beside them up to match. Set here
   rather than on each <svg>, so the size is one decision in one place. */
.nav-icon svg, .addwork-toggle svg { width: 26px; height: 26px; }
.notif-bell svg { width: 24px; height: 24px; }
/* AND EACH LIST SAYS WHICH MENU IT IS, first, since the icon that opened
   it does not - darker and heavier than the group labels inside it, and
   ruled off from them. */
.nav-dropdown-title { margin: 0 0 0.3rem; padding: 0.15rem 1rem 0.45rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--border); white-space: nowrap; }
/* AND ONE RULE UNDER IT, not two (user, 2026-10-02: "double rule here").
   A section heading draws its own line above it, and the first heading of
   a menu was let off that line by :first-child - which the title, coming
   first, took from it. The heading straight after the title is the first
   section, and the title's own rule is its line. */
.nav-dropdown-title + .nav-dropdown-head {
  margin-top: 0; padding-top: 0.15rem; border-top: none;
}
.notif-badge {
  position: absolute; top: -0.5rem; right: -0.6rem; min-width: 1.1rem; height: 1.1rem;
  padding: 0 0.3rem; border-radius: 999px; background: var(--error); color: #fff;
  font-size: 0.65rem; font-weight: 700; line-height: 1.1rem; text-align: center;
}

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.page-header h1 { margin: 0 0 0.15rem; }
/* A .page-header directly followed by more page-level chrome (filters,
   tabs) rather than page content needs less breathing room underneath. */
.page-header-tight { margin-bottom: 0.75rem; }
.subtitle { color: var(--muted); margin: 0; }
/* THE WORK'S IDENTITY LINE, in two groups (user, 2026-09-11). A flex row so
   the pills sit level with each other whatever their heights, and so the
   record-keeping half can be pushed off from them by a real gap instead of a
   middot pretending the two halves are the same kind of fact. Wraps rather
   than overflows: a long type label and a long status on a narrow screen drop
   the metadata to its own line, which is the half that can afford it. */
.work-identity { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
/* A SIZE UP FOR THE WORK TYPE, here only (user, 2026-09-11: "the work type can
   be larger"). `.type-label` is 0.72rem everywhere it appears - on family
   cards, in pickers, on the review page - where it is one tag among many. On
   this line it is the answer to "what am I looking at", and it was set smaller
   than the body text underneath it. Scoped, so the tags elsewhere are
   unchanged. */
.work-identity .type-label { font-size: 0.95rem; }
.work-identity-meta { margin-left: 0.4rem; font-size: 0.82rem; }
.count-badge { font-size: 0.65em; color: var(--muted); font-weight: normal; }
/* The hymn/track count on a container's own page carries more weight than
   the incidental row counts elsewhere - it's how big this hymnal or
   recording actually is - so it gets a readable size rather than the
   default badge's fine print. Scoped to a modifier so the badges on
   Archive/People/Works/Reviews/admin lists keep their existing size. */
.count-badge-lg { font-size: 0.85em; }

/* EVERY BUTTON IS A PILL (user, 2026-10-25: "go through every page and dashboard and tab on the app, and update
   button styles to pills, back action to link, etc. so that there is consistency across the app"). One rule for
   every .btn and its variants, on every page and in every dialog: the corners change, never the size (the List
   View's rule); a band whose controls share one height (--pub-ctl-h) keeps it. A field keeps its own corners, a
   round icon button stays round, a text link stays a link. It retired the per-page rules that made pills before
   it - body.pill-buttons (the review pages, Backlog), .lv-pager .btn / .btn.lv-pill (the List View) - and with
   them the exception that kept a dialog's buttons square. */
.btn {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 0.92rem; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--accent-light); text-decoration: none; box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #63301f; box-shadow: 0 2px 8px rgba(122,59,46,0.32); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
/* A QUIET destructive button - red lettering on an ordinary button, rather
   than .btn-danger's solid red. The two are not alternatives: .btn-danger is
   for the case where destroying IS the action the screen is for, and this is
   for a Delete or a Remove sitting beside the button somebody actually came
   to press. `danger` already meant "red lettering" on .link-btn; this is the
   same modifier on the other base, so there is one word for it. */
.btn.danger { color: var(--error); }
.btn.danger:hover { border-color: var(--error); }
/* "Send for Revision Review". Deliberately louder than .btn-primary and a
   different hue from it: on the review dashboard it sits beside "Publish
   selected", and two identical-looking primary buttons an inch apart, one of
   which publishes, is an accident waiting to happen. The blue is the colour
   the Revision Review status pill already uses, so the button is the colour
   of the state it moves work into. */
.btn-revision {
  background: var(--status-revision_review-fg);
  border-color: var(--status-revision_review-fg);
  color: #fff; font-weight: 600;
}
.btn-revision:hover {
  background: #24486b; border-color: #24486b;
  box-shadow: 0 2px 8px rgba(49,95,143,0.35);
}
/* The due date sits to the RIGHT of the button (user, 2026-08-19). */
.rq-due-inline, .card-head-action label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: var(--muted); white-space: nowrap;
}
.card-head-action {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-left: 0.75rem;
}
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
/* THE WORK PAGE'S ACTIONS, IN THREE GROUPS (user, 2026-09-10: "this is a
   mess"). Working with the record on the left; what state the work is in, and
   the one that destroys it, pushed right. The gap between them is the only
   thing saying they are different kinds of action, so it has to be a real gap
   and not another 0.6rem. */
/* THE ROW TAKES THE WHOLE WIDTH, or the groups have nothing to spread into:
   .page-header is a wrapping flex row, so a shrink-to-fit child leaves
   `margin-left: auto` with no free space to push against and the three groups
   sit shoulder to shoulder - which is the arrangement this was meant to fix. */
/* THREE COLUMNS, SO THE MIDDLE ONE IS ACTUALLY IN THE MIDDLE (user,
   2026-09-11: "can the status pill be rendered in the center of the title row
   (between the action buttons)"). A flex row with `margin-left: auto` on the
   last group centres nothing - it only pushes - so the status would have sat
   wherever the left group's width left it. A grid centres the middle track
   against the PAGE, whatever the two groups weigh.
   minmax(0, 1fr), never a bare 1fr: `auto` as a minimum is "never narrower
   than my contents", which is what pushes a page sideways (test_navigation_all). */
.work-actions {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 0.6rem; flex: 1 1 100%;
}
.work-actions-status { justify-self: center; }
.work-actions > .work-actions-state { justify-self: end; margin-left: 0; }
.btn-group { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.work-actions-state { margin-left: auto; }
/* On a narrow screen three columns cannot hold: the row becomes one column and
   everything follows in order, which is why the empty placeholder span the
   template emits when there is no status is deliberately still emitted - the
   grid needs its third child to keep the buttons in their tracks. */
@media (max-width: 800px) {
  .work-actions { grid-template-columns: minmax(0, 1fr); }
  .work-actions-status, .work-actions > .work-actions-state { justify-self: start; }
  .work-actions-state { margin-left: 0; }
}
/* DELETING IS AT THE FOOT OF THE PAGE, on the right, past everything (user,
   2026-09-10). Ruled off, so it reads as an afterword to the record rather
   than one more thing to do with it. */
/* FAR LEFT OF A ROW LAID OUT FROM THE RIGHT (user, 2026-09-11). The row ends
   with Mark Archived and Delete; the syllabication link opens an editor and
   belongs nowhere near them, so it takes the whole gap to itself. */
.work-syllables-link { margin-right: auto; }
.work-delete-foot { display: flex; justify-content: flex-end; gap: 0.6rem;
  flex-wrap: wrap; align-items: center;
  margin: 2.5rem 0 0.5rem; padding-top: 1rem;
  border-top: 1px solid var(--border); }

/* ROOM AROUND "+ Add another original" (user, 2026-09-08). It closes the
   list of originals and the form's own Create/Cancel row follows straight
   after, with only .btn-row's half-rem between them - so the two read as
   one crowded group rather than "the last thing in this section" and
   "submit the form". */
#add-original-language { margin-top: 0.9rem; }
#original-language-section { margin-bottom: 1.75rem; }
/* The bulk-delete bar above the agreements table: the two link-buttons, the
   reason box and the danger button on one line, aligned on their text rather
   than their boxes (the inputs are taller than the links). */
.agr-bulk-bar { align-items: center; }
/* The cross-reference count and its export control on one line, the count
   taking the slack so the export sits at the right where a download belongs. */
.crossref-actions { align-items: center; justify-content: space-between; }
.crossref-count { margin: 0; flex: 1 1 20rem; }
.crossref-export { display: flex; align-items: center; gap: 0.5rem; }
.crossref-only-heading { margin-top: 2rem; }
/* The two sides side by side, wrapping to one column on a phone. */
.xref-sides { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 0.9rem; }
/* From/To are full-size type, not the muted small label the rest of the form
   uses: beside several book names, a small grey label was the hardest thing on
   the page to find (user, 2026-08-25).

   THE BUTTON SITS ABOVE AND THE LABEL BESIDE (user, 2026-09-04). "From" over
   the Choose button read as the button's name; on the first book's line it
   reads as the list's. `align-items: baseline` is what puts it on the FIRST
   line rather than centred against a three-line list - and it works whether
   the row is showing the chosen names or, with no scripting, the select. */
.xref-side { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 22rem; }
.xref-side .xref-choose { align-self: flex-start; }
.xref-side-row { display: flex; align-items: baseline; gap: 0.6rem; }
.xref-side-row > .xref-chosen, .xref-side-row > select { flex: 1 1 auto; min-width: 0; }
.stacked-form .xref-side .xref-side-label {
  display: block; margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  flex: 0 0 auto;
}
/* One chosen title per line rather than a comma list. */
.xref-chosen { display: flex; flex-direction: column; gap: 0.1rem; }
.xref-chosen-name { display: block; line-height: 1.35; }
.xref-chosen-empty { color: var(--muted); font-style: italic; }
/* Every result table folds away; the matched one starts open. */
.xref-table { margin: 0.9rem 0; }
.xref-table > summary { cursor: pointer; display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.35rem 0; font-weight: 600; line-height: 1.45; }
.xref-table-title { font-size: 1.02rem; }
/* The count reads at the title's own size and in front of it (user,
   2026-08-25): as a small superscript it trailed a long heading onto the
   next line, where it was neither near the title nor easy to read. */
.xref-table > summary .xref-table-count {
  font-size: 1.02rem; font-weight: 600; flex: none; min-width: 2.5rem;
  text-align: center; vertical-align: baseline; position: static;
}
/* A visible expand/collapse control in front of the heading (user, 2026-08-25).
   `display: flex` on a summary drops the browser's own disclosure triangle, so
   the heading looked like a heading and nobody could tell it folded. Same
   pattern as .rights-gap-details, which solved this once already. */
.xref-table > summary { list-style: none; }
.xref-table > summary::-webkit-details-marker { display: none; }
.xref-table > summary::before {
  content: "▸";
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--muted);
  font-size: 0.8rem; line-height: 1; transition: transform 0.12s ease;
}
.xref-table[open] > summary::before { transform: rotate(90deg); }
.xref-table > summary:hover::before { color: var(--ink); border-color: var(--ink); }
.xref-table > summary:hover .xref-table-title { text-decoration: underline; }
/* SUGGESTED COMPARISONS on the empty page (user, 2026-09-04). Laid out as a
   list of wide buttons rather than a row of chips: a hymnal's name is long,
   two of them with an arrow between is most of a line, and wrapping chips put
   the arrow at the start of the next one. */
/* THE THEME PICKER (user, 2026-09-05) and the description cell on the Themes
   admin page. The dialog is deliberately large - it is the whole vocabulary
   with what each theme means, which is a thing to read across rather than
   scroll through a line at a time. */
/* Qualified by BOTH classes so it outranks .name-check-dialog's 440px, which
   sits later in this file at equal specificity - the same trap the track-audio
   picker fell into earlier. */
.name-check-dialog.theme-picker-dialog { max-width: 62rem; width: 94vw; }
.theme-picker-lead { margin: 0 0 0.6rem; font-size: 0.9rem; }
/* Bounded and scrolled, so the buttons at the foot are always reachable
   however many themes exist. */
/* Padded on BOTH sides, not just the right: this box scrolls, and setting
   overflow on one axis makes the other clip too, so anything drawn at a
   chip's edge is cut off where the padding runs out. */
.theme-picker-body { max-height: 60vh; overflow-y: auto; padding: 0.25rem 0.4rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.theme-picker-section { margin: 0.9rem 0 1.1rem; }
.theme-picker-section h4 { margin: 0 0 0.5rem; font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
/* Wide enough for a name and a sentence; the grid keeps rows even so the eye
   can run down a column of names. */
.theme-picker-grid { display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.theme-chip { display: flex; flex-direction: column; gap: 0.15rem;
  align-items: flex-start; text-align: left; width: 100%;
  padding: 0.5rem 0.65rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font-family: inherit; }
.theme-chip:hover { border-color: var(--accent-light);
  box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
.theme-chip-name { font-weight: 600; font-size: 0.92rem; }
.theme-chip-desc { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
/* CHOSEN, and it has to read as chosen at a glance across 55 buttons - so the
   accent fills the button rather than tinting its edge. */
/* TWO WAYS TO BE CHOSEN, one appearance. The work forms' chips are buttons a
   script marks; the page view's are labels around their own checkbox, because
   that dialog submits on its own and needs no script to toggle anything. */
.theme-chip-on,
.theme-chip:has(input[type="checkbox"]:checked) {
  background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-chip-on .theme-chip-desc,
.theme-chip:has(input[type="checkbox"]:checked) .theme-chip-desc {
  color: rgba(255,255,255,0.82); }
.theme-chip-on:hover,
.theme-chip:has(input[type="checkbox"]:checked):hover { border-color: var(--accent); }
/* The checkbox stays focusable - hiding it with display:none would take it off
   the keyboard - but it is not RINGED (user, 2026-09-05): a ring around the
   first chip when the dialog opens reads as a selection that has not been
   made. What marks a chosen chip is the accent fill above, which is the only
   state on this control worth showing. */
.theme-chip input[type="checkbox"] { position: absolute; opacity: 0;
  width: 1px; height: 1px; margin: 0; }
/* KEYBOARD ONLY, and only where the app's own ring cannot be seen. These
   chips are labels around a visually hidden checkbox, so the global
   input:focus-visible rule draws where nobody is looking; the chip stands
   in for it. :focus-visible and not :focus, so it paints when a person is
   tabbing and never when the dialog opens or a chip is clicked. The work
   forms' chips are real buttons and take the global rule as they are. */
.theme-chip:has(input[type="checkbox"]:focus-visible) {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-picker-chosen { margin: 0.6rem 0 0; font-size: 0.88rem; }
textarea.theme-description { width: 100%; min-width: 18rem; font-size: 0.85rem;
  line-height: 1.4; resize: vertical; }
.xref-suggest { list-style: none; margin: 0.6rem 0 0; padding: 0;
                display: flex; flex-direction: column; gap: 0.45rem;
                max-width: 44rem; }
/* Two lines: the rule that picked the books, then the books themselves.
   Column rather than row, because the second line is the longer of the two
   and running them together put the rule and its evidence on one wrap. */
.xref-suggest-btn { display: flex; flex-direction: column; align-items: flex-start;
                    gap: 0.2rem; text-align: left; width: 100%;
                    padding: 0.55rem 0.7rem; text-decoration: none; }
.xref-suggest-head { display: flex; align-items: baseline; gap: 0.5rem;
                     flex-wrap: wrap; }
/* The names may wrap; the arrow between them may not, or it lands alone. */
.xref-suggest-name { font-weight: 600; }
.xref-suggest-arrow { color: var(--muted); white-space: nowrap; }
.xref-suggest-books { font-size: 0.82rem; line-height: 1.35; font-weight: 400; }
.xref-suggest-btn:hover .xref-suggest-name { text-decoration: underline; }

.xref-side label { font-weight: 600; }
/* The native selects are the form's value and the no-JS fallback; once the
   script runs the Choose button replaces them, so they must genuinely go.
   .stacked-form sets display:block on every select, which OUTRANKS the
   browser's [hidden]{display:none} - so both controls sat there side by side
   (user, 2026-08-25). Same wound as the overlay rule further down. */
.stacked-form input[hidden], .stacked-form textarea[hidden],
.stacked-form select[hidden] { display: none; }
/* ...and the same for a LABEL, which .stacked-form also sets to block, and
   for the read-only value below - spec s66: a rule that sets `display`
   outranks the browser's own [hidden]{display:none}, so an element hidden
   by attribute stays on screen and `el.hidden === true` still reports it
   as hidden. Where we hide by attribute, we ship the rule that makes the
   attribute win. */
.stacked-form label[hidden], .stacked-form .field-fixed[hidden] { display: none; }

/* A VALUE THE PARENT DECIDES (user, 2026-09-08). An arrangement's meter,
   mode and time signature belong to the melody it arranges - the editor
   cannot set them and the server derives them again on the way in. They
   were disabled input boxes, which still read as somewhere to type: three
   empty frames in a row looked like fields nobody had got round to filling
   in. Shown as plain text now, on the same baseline as the real field
   beside them in the grid. */
.field-fixed { display: block; margin-bottom: 0.85rem; font-size: 0.88rem; color: var(--muted); }
.field-fixed-label { display: block; }
.field-fixed-value {
  display: block; margin-top: 0.3rem;
  /* Matches the base field rule's box so this line sits at the same height
     as the select beside it: same font, same line-height, same vertical
     padding, and a transparent border standing in for the field's own. */
  font-size: 0.95rem; line-height: 1.4; padding: 0.4rem 0;
  border: 1px solid transparent; color: var(--ink);
}
.field-fixed-value.is-blank { color: var(--placeholder); font-style: italic; }
/* A note under a fixed value is its own line. It read that way already, but
   only because what preceded it happened to be a block; a pill is
   inline-block, and "right as long as nothing above it changes" is how a
   layout breaks silently later. */
.field-fixed-note { display: block; }
/* A PILL IS A BADGE, not text on the value's baseline: the padding that
   line carries exists to line up with a real field beside it, and a pill
   brings its own. */
.field-fixed-value.field-fixed-pill { padding: 0.25rem 0; }
/* Kind and sub-type filters inside the picker. The sub-types indent under
   their kind because they narrow it rather than sitting beside it. */
/* THE KIND ROW in the picker - Hymnals / Periodicals / Recording, and a
   kind's own sub-types beneath it.

   It was three bare checkboxes in a wrapping row, with any sub-types hanging
   below their parent on a 1.25rem indent. Nothing was misaligned, but a row
   holding one expanded kind beside two collapsed ones has no shared bottom
   edge and a floating indented column in the middle of it - which reads as
   disorganised even though it is not (user, 2026-08-31).

   So each kind is now a CHIP that visibly contains its own sub-types, the
   chips share a top edge whatever they hold, and the whole row sits on its own
   tinted surface. It reads as one control - "which kinds am I looking at" -
   rather than as four loose ticks between the filter box and the list.

   The checked state uses :has(). Where a browser does not support it the chip
   simply does not tint; the checkbox still says what is on, so nothing is
   lost - it is emphasis, not information. */
/* Inside the "Show" fieldset now (user, 2026-09-04), so it drops the border
   and the ground it used to draw for itself - the fieldset is the frame, and
   two frames around one row is what made it look like a second list. */
.xref-picker-filter { margin: 0.5rem 0 0.6rem; }
.xref-picker-filter legend { font-weight: 600; padding: 0 0.35rem; }
.xref-picker-groups {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem;
  flex-basis: 100%;
}
.xref-group {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.xref-group:has(> .xref-group-toggle > input:checked) {
  border-color: var(--accent-light);
  background: #fdf6f3;
}
.xref-picker-groups .checkbox-label { margin: 0; font-size: 0.85rem; font-weight: 600; }
/* Contained by the chip rather than dangling off it: a hairline and a small
   indent say "these belong to the box you are inside". */
.xref-subtypes {
  display: flex; flex-direction: column; gap: 0.1rem;
  margin: 0.1rem 0 0.05rem 0.35rem; padding-left: 0.5rem;
  border-left: 1px solid var(--border);
}
/* The pair spec section 66 is about. The script has always set `hidden` on
   this block when its kind is unticked - a style with no kind cannot narrow
   anything - but a class that declares `display` outranks the browser's own
   [hidden]{display:none}, so the attribute was set and the box stayed on
   screen with its ticks still showing. Reported by the user 2026-08-31, and
   present since the sub-types were added: the old rule declared display:flex
   too. Where you hide by attribute, ship the rule that makes it win. */
.xref-subtypes[hidden] { display: none; }
.xref-picker-groups .xref-subtypes .checkbox-label {
  font-size: 0.8rem; font-weight: 400; color: var(--muted);
}
/* The picker's options are checkboxes now that a side may hold several
   containers; the book column appears only when it does. */
.xref-picker-list .checkbox-label { margin: 0; display: flex; gap: 0.4rem; align-items: baseline; }
.xref-picker-current { font-weight: 600; }
.data-table td/* "tune:" in front of a melody's catalogue name (user, 2026-09-04). Muted and
   italic so the cell reads as an aside about the name rather than as part of
   it - the point is that GENEVAN 42 is not what the book calls hymn 348. */
.xref-tune { color: var(--muted); font-style: italic; font-size: 0.86em; }
/* From/To: the sentence under the two sides, the band naming each half of
   the results table, and the word on an "Only in" heading. All three exist
   because the direction is invisible otherwise - it changes nothing about
   which hymns match, and everything about which list is which. */
.xref-sides-hint { margin: -0.4rem 0 0.8rem; font-size: 0.88rem; max-width: 46rem; }
.xref-side-head th {
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
/* The books' own names ride along in ordinary case, so the band identifies
   the half rather than only labelling it. */
.xref-side-head-name {
  display: block; text-transform: none; letter-spacing: 0;
  font-size: 0.82rem; font-weight: 400; color: var(--muted);
  white-space: normal; max-width: 22rem;
}
.xref-table-side { font-size: 0.85rem; font-weight: 400; }
.xref-book { font-size: 0.85rem; color: var(--muted); }

.xref-chosen { color: var(--fg); }
.xref-chosen-empty { color: var(--muted); font-style: italic; }
.xref-types { border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.9rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; }
.xref-types legend { font-weight: 600; padding: 0 0.35rem; }
.xref-types-hint { flex-basis: 100%; font-size: 0.85rem; }
/* The picker dialog: a filter box above a scrolling list, so ~90 containers
   (80 recordings are coming) stay reachable by typing rather than scrolling. */
.xref-picker-dialog { max-width: 30rem; width: 92vw; }
#xref-filter { width: 100%; margin: 0.4rem 0 0.3rem; }
.xref-picker-count { margin: 0 0 0.4rem; font-size: 0.85rem; }
/* Count left, Select all right, on one line - the button's reach is exactly
   what the count describes, so they belong together. */
.xref-picker-countrow {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
}
.xref-picker-countrow .xref-picker-count { margin: 0; }
.xref-picker-all { font-size: 0.82rem; white-space: nowrap; }
.xref-picker-all[hidden] { display: none; }
.xref-picker-list { list-style: none; margin: 0; padding: 0; max-height: 22rem;
  overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; }
.xref-picker-group { padding: 0.35rem 0.6rem; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); background: var(--card); position: sticky; top: 0; }
.xref-picker-option { display: block; width: 100%; text-align: left;
  padding: 0.35rem 0.9rem; }
.xref-picker-option:hover { background: var(--card); }
.xref-picker-current { font-weight: 700; }
.agr-bulk-reason { min-width: 16rem; flex: 1 1 16rem; }
.inline-form { display: inline; }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.link-btn.danger { color: var(--error); }
/* A PEN OR A BIN, NOT WORDS (user, 2026-10-24: "I wonder if instead of text links, they should be icons (pen or
   something for edit, trash can for delete)"), as the Service Planner's bin is (2026-10-03: "just the icon"):
   no box, the muted grey and faint, full where its row or panel is pointed at (each place says which), the
   accent on the pen itself and red on the bin. The drawings are _edit_icons.html; the words are each button's
   title and spoken name. */
.ico-btn, .ico-btn:hover, .ico-btn:active {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  padding: 0.25rem; margin: 0; border: 0; border-radius: 4px; background: none; box-shadow: none; transform: none;
  line-height: 0;
}
.ico-btn { color: var(--muted); opacity: 0.75; cursor: pointer; }
.ico-btn svg { display: block; }
summary.ico-btn { list-style: none; }
summary.ico-btn::-webkit-details-marker { display: none; }
.ico-pen:hover, .ico-pen:focus-visible, details[open] > .ico-pen { color: var(--accent); opacity: 1; }
.ico-bin:hover, .ico-bin:focus-visible { color: var(--error); opacity: 1; }
/* Where a row has a pen and no bin, the bin's place, so every pen stands in one column. */
.ico-spacer { flex: 0 0 1.5rem; width: 1.5rem; }

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
/* Only the WIDTHS are the filter bar's own; the look comes from the base
   field rule above. It used to re-declare border, radius, font and a 0.88rem
   size, which is why a filter select sat 7% smaller than the select beside it
   in a dialog - a difference nobody chose. */
.filter-bar input[name="q"] { width: 260px; }
/* Wide enough that a selected value (a theme name, a publication title) reads
   in full - only the truly long tail gets an ellipsis, not the common case. */
.filter-bar select { min-width: 140px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The rights filter's choices are said in full (user, 2026-10-18: "if it's public domain, it should say
   so") - "Public domain - no permission needed" cut to "Public domain - no ..." would say neither. */
.filter-bar select[name="rights"] { max-width: 300px; }
.checkbox-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.85rem; }
/* Same look as .checkbox-label but sits inline within a .filter-bar row
   instead of stacking as its own line. */
.filter-bar .filter-checkbox { display: flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.checkbox-label input[type="checkbox"], .checkbox-label input[type="radio"] { display: inline-block; width: auto; margin: 0; flex-shrink: 0; }

.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(43,38,32,0.06); }
.data-table th, .data-table td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
/* A COUNT SITS UNDER ITS HEADING (user, 2026-09-05). `.num` was used in
   twelve columns across the three lectionary templates and defined in no
   stylesheet - the .btn-current and .lead shape again - so every count
   inherited the left alignment above and hugged the column before it.

   SPECIFIC ENOUGH TO WIN: the rule it has to beat is `.data-table td` at
   (0,1,1), so a bare `.num` at (0,1,0) would have been one more rule that
   is right and never applies. Qualified, it is (0,2,1). */
.data-table th.num, .data-table td.num { text-align: center; }
.data-table th {
  background: #f1ebe1; font-weight: 600; font-size: 0.74rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em;
}
/* In-card tables (e.g. Rights & permissions) keep the card's white background in the header */
.data-table-plain { box-shadow: none; }
.data-table-plain th { background: var(--card); }
/* THE PRIVACY NOTE's table (privacy.html, decision 28): what is kept takes the room; how long and who sees it are
   two narrow columns that wrap. */
.privacy-table th:nth-child(2), .privacy-table td:nth-child(2) { width: 12rem; }
.privacy-table th:nth-child(3), .privacy-table td:nth-child(3) { width: 15rem; }
/* (the user's look at gate 2, 11/15/2026) ON A PHONE, EACH ROW A SHORT BLOCK: what is kept first, then "For how
   long:" and "Who sees it:" on lines of their own - nothing runs off the screen; on a computer, the table. */
@media (max-width: 700px) {
  .privacy-table thead { display: none; }
  .privacy-table, .privacy-table tbody, .privacy-table tr, .privacy-table td { display: block; }
  .privacy-table td:nth-child(2), .privacy-table td:nth-child(3) { width: auto; }
  .privacy-table td { padding: 0.15rem 0.8rem; border-bottom: none; }
  .privacy-table tr { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .privacy-table tr:last-child { border-bottom: none; }
  .privacy-table td:nth-child(2)::before { content: "For how long: "; font-weight: 600; color: var(--ink); }
  .privacy-table td:nth-child(3)::before { content: "Who sees it: "; font-weight: 600; color: var(--ink); }
}
/* THE AUDIT LOG's two tabs (admin_audit.html, decision 22) sit above its filters with a little room. */
.audit-tabs { margin: 0 0 0.9rem; }
.data-table tr:last-child td { border-bottom: none; }
.row-removed { opacity: 0.55; }

/* border-radius is a modest fixed value, not 999px: tag text is already
   properly cased by the backend (theme names, publication names, work-type
   labels), and several of those routinely wrap to 2-3 lines in a narrow
   table column - a fully pill-rounded corner exaggerates into a stretched
   blob once the box isn't single-line-tall anymore. */
.tag { display: inline-block; font-size: 0.72rem; line-height: 1.35; background: #efe6da; color: var(--accent); padding: 0.15rem 0.55rem; border-radius: 6px; margin: 0 0.3rem 0.3rem 0; }
a.tag:hover { text-decoration: none; filter: brightness(0.93); }
.related-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.tag-removed { background: #f3d9d9; color: var(--error); }
.status-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
/* The work page's stage indicator: centred under the header, and a step up in
   size from the inline pills without becoming a banner - it is a label, not an
   announcement. Roughly 1.3x the inline pill. */
.work-stage { text-align: center; margin: 0.1rem 0 1.1rem; }
.status-pill-lg { font-size: 0.92rem; padding: 0.3rem 1rem; letter-spacing: 0.05em; }

.status-pill.status-backlog { background: var(--status-backlog-bg); color: var(--status-backlog-fg); }
.status-pill.status-in_review { background: var(--status-in_review-bg); color: var(--status-in_review-fg); }
.status-pill.status-revision_needed { background: var(--status-revision_needed-bg); color: var(--status-revision_needed-fg); }
.status-pill.status-revision_review { background: var(--status-revision_review-bg); color: var(--status-revision_review-fg); }
.status-pill.status-approved { background: var(--status-approved-bg); color: var(--status-approved-fg); }
.status-pill.status-published { background: var(--status-published-bg); color: var(--status-published-fg); }
.status-pill.status-archived { background: var(--status-archived-bg); color: var(--status-archived-fg); }
.status-pill.status-draft { background: var(--status-draft-bg); color: var(--status-draft-fg); }

/* Creator anonymization during review (work_detail/work_list/search
   `hideable` macros): reviewers never receive the real markup at all, but
   editor/admin do, just hidden until they opt in via the page-wide
   .reveal-creator-toggle button (see base.html for the click handler). */
/* Roles & Permissions reference (admin_roles.html) */
.perm-table th, .perm-table td { font-size: 0.85rem; vertical-align: top; }
.perm-table td.perm-yes, .perm-table td.perm-no, .perm-table td.perm-partial { white-space: normal; }
.perm-yes { color: var(--success); font-weight: 600; }
.perm-no { color: var(--muted); }
.perm-partial { color: var(--status-in_review-fg); }

.creator-hidden-note { font-style: italic; }
.creator-reveal-real { display: none; }
body.reveal-creator-info .creator-reveal-real { display: contents; }
body.reveal-creator-info .creator-hidden-note.creator-reveal-hidden { display: none; }
/* A creator's free-text note, shown just below their citation line in the
   Creator field on a work's page (see person_line's caller in
   work_detail.html) - smaller and muted so it doesn't compete with the
   citation itself. */
.creator-note { font-size: 0.85rem; margin-top: 0.1rem; }
/* "(?)" ON A CREDIT, SAID IN WORDS AND BESIDE THE NAME (user, 2026-09-11:
   "the bare question mark is confusing"). Inline, not a block: it qualifies
   the attribution on the line above it rather than being a remark of its own,
   and drawn underneath with nothing in it but a bracket and a mark it read as
   a creator nobody had filled in. See person_block in
   publication_page_view.html for the measurement behind it. */
.creator-note-uncertain { font-size: 0.85rem; margin-left: 0.3rem; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(43,38,32,0.05); }
/* An account's "Signed in on" card stands clear of the form's Save and Cancel above it (the user, 10/30). */
#sign-ins.card { margin-top: 2.5rem; }
/* THE ACCOUNT FORM (the user, 10/30): the account's fields in one row with Active as a switch on its heading's
   row; each role a tile, its name the title, a chosen tile outlined and tinted with a check - the approved
   choice style, never the action's fill - and the whole tile the control; Save beside the password box. */
.user-form-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.card .user-form-head h2 { margin: 0; padding: 0; border: 0; }
.user-form-head h2[title] { cursor: help; text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px; }
.user-form-fixed { margin-bottom: 0.85rem; font-size: 0.88rem; color: var(--muted); }
.user-form-fixed-value { display: block; margin-top: 0.3rem; padding: 0.5rem 0.75rem; border: 1px dashed var(--border);
  border-radius: var(--radius); color: var(--ink); font-size: 0.95rem; }
/* A SWITCH: a checkbox drawn as a slider - on is the knob moved across a tinted, outlined track. */
.stacked-form.user-form label.switch { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.9rem;
  color: var(--ink); cursor: pointer; position: relative; }
.stacked-form.user-form label.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-track { position: relative; flex: none; width: 2.5rem; height: 1.4rem; border-radius: 999px;
  background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background 0.15s; }
.switch-track::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1rem; height: 1rem;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(43,38,32,0.3); transition: transform 0.15s; }
.switch input:checked + .switch-track { background: #f7ebe6; box-shadow: inset 0 0 0 1px var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(1.1rem); background: var(--accent); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ...and its word says which: Active when on, Inactive when off (the user, 10/30). */
.switch .switch-off { display: none; }
.switch:has(input:not(:checked)) .switch-on { display: none; }
.switch:has(input:not(:checked)) .switch-off { display: inline; }
/* ROLES: a table - the role, what it can do, and a switch (the user, 10/30). An assigned role's name takes
   the accent; Viewer's switch is on and cannot be turned off. */
.role-table { width: 100%; }
.role-table th.role-table-on, .role-table td.role-table-on { width: 1%; text-align: center; white-space: nowrap; }
.role-table td.role-table-name { font-weight: 600; white-space: nowrap; }
.role-table td.role-table-what { color: var(--muted); font-size: 0.9rem; }
/* AN ASSIGNED ROLE IS SEEN AT A GLANCE (the user, 10/30): its row tinted with an accent bar at its left edge and
   its name in the accent; an unassigned role's row plain, its words quieter. */
.role-table tbody tr:has(input:checked) > td { background: #f7ebe6; }
.role-table tbody tr:has(input:checked) > td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.role-table tbody tr:has(input:checked) > td.role-table-name { color: var(--accent); }
.role-table tbody tr:has(input:not(:checked)) > td.role-table-name { color: var(--muted); font-weight: 500; }
.role-table tbody tr:has(input:not(:checked)) > td.role-table-what { opacity: 0.8; }
.switch input:disabled + .switch-track { opacity: 0.55; }
.stacked-form.user-form label.switch:has(input:disabled) { cursor: default; }
/* THE SAVE ROW: the label above, then the box and Save / Cancel on one line, centred on each other. */
.stacked-form.user-form .user-form-save > label { margin-bottom: 0.3rem; }
.user-form-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.stacked-form .user-form-save-row input { flex: 1 1 18rem; width: auto; margin: 0; }
/* THE ACCOUNT FORM'S ROLES ON A PHONE (the sign-in batch, the approved drawing's round three): closer cells, a role's
   name free to wrap and the column's head smaller, so the table fits its card - it ran past the card's edge, and its
   Assigned head past the screen's. */
@media (max-width: 560px) {
  .user-form .role-table th, .user-form .role-table td { padding-left: 0.4rem; padding-right: 0.4rem; }
  .user-form .role-table td.role-table-name { white-space: normal; }
  .user-form .role-table th.role-table-on { font-size: 0.66rem; }
}
.user-form-page-head { align-items: center; }
.user-form-page-head .btn-row { margin: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
/* Grid items default to min-width:auto, so a wide image, long unbroken
   filename, or wide table on one side can blow past its 1fr share and
   throw the 50/50 split off - min-width:0 keeps both columns locked to an
   even split regardless of what each work's content looks like. */
.grid-2 > div { min-width: 0; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Page/track view's reading spread - lyrics column beside music column, so
   a hymn's words and its tune sit together the way they do on a real
   hymnal page. Both are .grid-2 cells, so they already collapse to a
   single column under 800px. align-items:start overrides grid's default
   stretch, which is what lets the music column stick at all: a stretched
   item is exactly as tall as its row, leaving nothing to scroll within. */
/* THE FILES CARD, FOLDED (user, 2026-09-17). The <summary> carries the card's
   own <h2>, so the heading reads the same shut as open; the marker is moved
   inline with it rather than left in the margin where a card has no room. */
.ppv-files-fold > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.ppv-files-fold > summary::-webkit-details-marker { display: none; }
/* THE BOXED MARKER (user, 2026-10-08, UI review: the bare ▸ in muted ink, a
   step smaller than the text, was hard to read). The same square the review
   page's lyrics card and the cross-reference tables draw, so a fold reads as
   a fold wherever it is, and darkens under the pointer like theirs. */
.ppv-files-fold > summary::before {
  content: '▸';
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--muted);
  font-size: 0.8rem; line-height: 1; transition: transform 0.12s ease;
}
.ppv-files-fold[open] > summary::before { transform: rotate(90deg); }
.ppv-files-fold > summary:hover::before { color: var(--ink); border-color: var(--ink); }
.ppv-files-fold > summary h2 { margin: 0; padding-bottom: 0; border-bottom: none; }
.ppv-files-fold[open] > summary { margin-bottom: 0.75rem; }
/* THE FILES CARD, ONE BLOCK PER MELODY (user, 2026-10-24, drawn as r110: "yes"): the melody's letter where
   there are two, and its name; then a line per work - its kind, who made it (muted) and, at the right, its
   files by format, each a download, with Upload MusicXML after a hairline where that score may be replaced.
   A dashed rule between melodies. On a phone a line's files go under it. */
.ppv-fb { margin-top: 0.55rem; }
.ppv-fb + .ppv-fb { border-top: 1px dashed var(--border); padding-top: 0.55rem; }
.ppv-fb-head { display: flex; align-items: baseline; gap: 0.45rem; margin: 0 0 0.2rem; }
.ppv-fb-letter { font: 700 1rem var(--font-serif); color: var(--accent); }
.ppv-fb-name { font: 700 0.95rem var(--font-serif); letter-spacing: 0.02em; }
.ppv-fl { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 0.2rem 0.8rem;
  align-items: baseline; padding: 0.22rem 0 0.22rem 1.4rem; }
.ppv-fl-role { font-size: 0.88rem; font-weight: 600; }
.ppv-fl-who { font-size: 0.86rem; color: var(--muted); min-width: 0; }
.ppv-fl-files { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 0.2rem 0.9rem; font-size: 0.86rem; white-space: nowrap; }
.ppv-fl-files a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent); text-decoration: none; }
.ppv-fl-files a:hover, .ppv-fl-files a:focus-visible { text-decoration: underline; }
.ppv-fl-note { font-size: 0.8rem; white-space: normal; }
/* A key printed again at this number: its name ("Arrangement in F Major") takes the who column too - it is the
   line above's work, credited there. */
.ppv-fl-again .ppv-fl-role { grid-column: 1 / 3; }
.ppv-fl-again .ppv-fl-who { display: none; }
.ppv-fl-up { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0; padding: 0 0 0 0.9rem;
  background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none;
  font: inherit; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.ppv-fl-up:hover, .ppv-fl-up:focus-visible { color: var(--accent); background: none; }
@media (max-width: 40rem) {
  .ppv-fl { grid-template-columns: 7rem minmax(0, 1fr); padding-left: 0.6rem; }
  .ppv-fl-files { grid-column: 1 / -1; justify-content: flex-start; }
}
/* Its dialog, opened at a line's score (drawn as r111: "yes"): the score named under the title - "CAROL,
   Arrangement 2 (Ashley Niemela)" - what an upload does to it, the file. */
.ppv-upload-dialog { max-width: 34rem; }
.ppv-upload-what { margin: 0.15rem 0 0.6rem; font-size: 0.92rem; color: var(--muted); }
.ppv-upload-name { font-weight: 700; color: var(--ink); }
.ppv-upload-points { margin: 0 0 0.75rem; padding-left: 1.2rem; font-size: 0.9rem; }
.ppv-upload-points li { margin: 0.15rem 0; }
.ppv-upload-file { display: block; margin: 0.7rem 0; font-size: 0.9rem; color: var(--muted); }
.ppv-upload-file input { display: block; margin-top: 0.25rem; max-width: 100%; }
/* Going back stands apart from the upload, at the left of the buttons; Cancel and
   Upload stay together at the right when a phone wraps the row. */
.ppv-upload-revert { margin-right: auto; }
.ppv-upload-go { display: inline-flex; gap: 0.6rem; margin-left: auto; }
/* THE MELODY CHECK (user, 2026-10-16): a line saying the check is running, or
   why it could not; and the warning that takes the form's place when the
   tune line departs from its melody. Its three buttons wrap at the right, and
   stack on a phone with the recommended one on top. */
.ppv-upload-note { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--muted); }
.ppv-upload-warn .ppv-upload-go { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 30rem) {
  .ppv-upload-warn .ppv-upload-go { flex-direction: column-reverse; align-items: stretch; width: 100%; }
}
/* THE DIALOG'S TITLE ROW CARRIES A CONTROL NOW (user, 2026-09-17: "the
   reset button should be up in the title row, right-justified"). The row is
   already `justify-content: space-between`, so the heading stays left and
   this group goes right with nothing else to say about it.

   THE .btn HAS TO BE GIVEN ITS LOOK BACK: `.modal-head button` strips every
   button in the row down to the bare close cross - no border, no padding,
   1.3rem - which is right for that cross and wrong for anything else. Said
   here rather than by narrowing that rule, because every other modal in the
   app relies on it as it stands. */
.ppv-lyrics-head-actions { display: flex; align-items: center; gap: 0.75rem; }
.modal-head .ppv-lyrics-head-actions .btn {
  padding: 0.35rem 0.7rem; font-size: 0.85rem; line-height: 1.4;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink); background: transparent;
}
.modal-head .ppv-lyrics-head-actions .btn:hover { border-color: var(--accent-light); }
/* "Restore canonical selection and order" is a long pill (2026-10-24, r97): at a phone's width the title row
   wraps, so it drops under "Stanzas" on a line of its own instead of squeezing against the heading. */
.ppv-lyrics-dialog .modal-head { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
/* THE LYRICS DIALOG. Wider than the app's other modals and scrollable,
   because it holds the whole stanza panel - a hymn of eight verses with its
   reorder controls is a tall thing, and the alternative to scrolling it is
   a dialog taller than the window with its Save button off the bottom. */
.ppv-lyrics-dialog { max-width: 46rem; width: 92vw; }
.ppv-lyrics-body { max-height: 70vh; overflow-y: auto; }
/* The panel arrived here as a .card and no longer needs a card's chrome:
   the dialog is the box now. */
.ppv-lyrics-body > .card {
  border: 0; box-shadow: none; padding: 0; margin: 0 0 1rem; background: none;
}
.ppv-lyrics-body > .card > h2 { font-size: 1.05rem; }
/* The Generate-file dialog's two questions. A fieldset draws a border and a
   legend by default and these are groups of radios, not a form to fill in. */
.gen-file-set { border: 0; margin: 0 0 0.9rem; padding: 0; }
.gen-file-set legend {
  padding: 0; margin-bottom: 0.35rem;
  font-weight: 600; font-size: 0.92rem; color: var(--muted);
}
.gen-file-set .checkbox-label { display: block; margin: 0.15rem 0; }
/* THE PAGE'S SHEET (user, 2026-09-17): the score a reader came for, with a
   stanza under the notes and the rest of the text beneath it. Two columns of
   verses on a wide screen and one on a narrow, which is how the printed sheet
   sets them and how a hymnal page reads. */
.ppv-sheet { margin-bottom: 1.5rem; }
/* A STATEMENT THE APP MAKES, not a note anybody wrote. It sits where the
   notes are because that is where you look for what is true of this page,
   but it has to READ as a different kind of thing from the note below it -
   otherwise the missing Edit button looks like a fault rather than a fact.
   So: the muted ink the app uses for its own remarks, and a rule down the
   left, which is this stylesheet's mark for quoted or given text. */
.ppv-note-standing {
  margin: 0 0 0.5rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--line, #d8d2c8);
  color: var(--muted, #6b6459);
  font-size: 0.9rem;
  cursor: default;
}
/* "No notes recorded for this page yet" is not true with one standing above
   it. The editor macro is shared with the About card, so the sentence is
   hidden from here rather than made conditional there. */
.ppv-card-notes:has(.ppv-note-standing) .note-empty { display: none; }
/* IN THE HYMN CARD'S HEAD since 2026-10-09, between the title and Details;
   what follows was written of the score card's heading row.

/* THE PLAYER SITS BETWEEN THE TITLE AND THE SWITCHES, which is where
   `justify-content: space-between` puts a third child on its own. Centred
   rather than on the baseline - it is a control and not a line of text, and
   a pill hung from the cap-height of the heading beside it reads as having
   slipped. It gives up its width before the title does.

   SMALLER HERE THAN ANYWHERE ELSE (user, 2026-09-17: "player is too tall and
   long - make it smaller"). On a work's own page and on a media card the
   player is the thing you came for and stands at its full 23rem; here it is
   a third item squeezed into a heading row, and at that size it competed
   with the title it sits beside. Scoped to this card, so the two places that
   were not complained about do not move.

   IT SHRINKS BY A TYPE SCALE, not by a width alone: a pill kept its height
   from the glyphs and the icon padding inside it, so narrowing it would have
   left the same tall bar, shorter. The button padding, the glyphs, the clock
   and the bar all come down together and the height follows. */
/* TWO CLASSES, because `.midi-player` sets its own 23rem width three
   thousand lines further down this file and a single class would tie with it
   and lose on order. The pill measured 368px - 23rem exactly - while every
   rule that DID bite (the glyphs, the buttons) had a descendant selector and
   was winning by accident. */
.midi-player.ppv-sheet-player {
  align-self: center;
  width: 13.5rem;
  flex: 0 1 auto;
  min-width: 9rem;
  gap: 0.25rem;
  padding: 0 0.45rem 0 0.15rem;
}
.ppv-sheet-player .midi-icon-btn { padding: 0.2rem; }
.ppv-sheet-player .midi-glyph { width: 1rem; height: 1rem; }
.ppv-sheet-player .midi-time { font-size: 0.68rem; }
/* This number's own score: its download in the player's row, and on a
   settled or locked book the note saying it kept the score it printed.
   Uploading MusicXML is the Files card's, on the score's own line (.ppv-fl-up). */
.ppv-sheet-adapt { display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem; margin: 0.5rem 0 0; }
.ppv-sheet-adapt form { margin: 0; }
.ppv-sheet-adapt-note { margin: 0; font-size: 0.85rem; max-width: 46rem;
  flex-basis: 100%; }
/* The player and this number's score controls on one row: the player at the left,
   the controls at the right (user, 2026-10-09: "the button should be moved into
   the upper right"); a narrow screen wraps them. */
.ppv-score-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.ppv-score-bar > .ppv-sheet-adapt { margin: 0 0 0 auto; justify-content: flex-end; }
/* DOWNLOAD THIS SCORE IS THE CARD'S OWN SMALL PILL (user, 2026-10-24: "should this button be a small
   pill?" - drawn, "yes"), exactly as Edit stanzas and Edit themes are, the download arrow before its
   words. AND THE PLAYER ITS HEIGHT, THE TWO CENTRED ON ONE LINE ("The pill should be aligned vertically
   with the midi player"; "The midi player should be the same height as the pill"): one height, the
   pill's own - its type, its line and its padding - given to both, so neither can drift from the other.
   The offset was the player row's own bottom margin, which centred the player on a box taller than it;
   inside the score bar the space under the row is the bar's. Only this bar's player: the family cards'
   and the track line's are as they were. */
.ppv-score-bar { --pill-fs: 0.75rem; --pill-lh: 1.35; --pill-py: 0.1rem;
  --pill-h: calc(var(--pill-fs) * var(--pill-lh) + 2 * var(--pill-py) + 2px); }
.ppv-score-bar:has(> .fx-controls) { margin-bottom: 0.7rem; }
.ppv-score-bar > .fx-controls { margin: 0; flex: 1 1 auto; min-width: 0; }
.ppv-score-bar .fx-edit { display: inline-flex; align-items: center; gap: 0.35rem; box-sizing: border-box;
  height: var(--pill-h); font-size: var(--pill-fs); line-height: var(--pill-lh); padding: var(--pill-py) 0.55rem;
  white-space: nowrap; }
.ppv-score-bar .fx-edit svg { flex: none; }
.ppv-score-bar .midi-player.ppv-sheet-player { height: var(--pill-h); padding-top: 0; padding-bottom: 0; }
.ppv-score-bar .ppv-sheet-player .midi-icon-btn { padding: 0.1rem; }
.ppv-sheet-player .midi-track { height: 0.85rem; min-width: 1.75rem; }
/* THE VOLUME SLIDER ONLY WHEN IT IS WANTED. This read
   `.ppv-sheet-player .midi-volume-slider { width: 3.5rem }`, which outranked
   the `width: 0` that keeps it furled and left a 3.5rem strip of nothing
   after the speaker - invisible, because it is also `opacity: 0`, but taking
   up the room (user, 2026-09-17: "there's an awkward space after the volume
   button"). The narrower width belongs on the OPEN state, which is the only
   state that has a width at all. */
.ppv-sheet-player .midi-volume:hover .midi-volume-slider,
.ppv-sheet-player .midi-volume:focus-within .midi-volume-slider { width: 3.5rem; }
.ppv-sheet-player .midi-volume .midi-glyph { width: 0.95rem; height: 0.95rem; }
@media (max-width: 40rem) {
  /* Wrapped onto a line of its own it may as well use the line. */
  .midi-player.ppv-sheet-player { width: 100%; }
}
/* A SEGMENTED CONTROL, which reads as a slider at two options and still
   works at three - 232 in SHZ 1980 carries three tunes, and one tune in this
   library has three drawable settings, so a two-state toggle would have been
   wrong on the day it shipped.

   NOT THE PAGE VIEW'S ALONE any more: the printable sheets use it for what
   to draw and whether the words go under the notes (user, 2026-09-17: "I'd
   like to see the radio button options from the dialog box as slider buttons
   that re-render the page"). Hence the neutral name. */
/* THE SWITCH BETWEEN ONE TUNE'S REVIEWS. A segmented switch like the page
   view's, with more in each option: the opening bars, what kind of work it
   is, and who arranged it where the reader may know.

   THE "HIDDEN DURING REVIEW" PLACEHOLDER IS NOT DRAWN HERE. `hideable`
   governs the NAME - a reviewer's page never carries it at all - and the
   note it leaves in the name's place is prose for a table cell, not for a
   two-inch pill. Hiding the note changes nothing about who can read the
   name; that decision stays in the macro, in one place. */
.review-view-switch { margin: 0.5rem 0 0; flex-wrap: wrap; }
.review-view { display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.6rem; }
.review-view-what { display: flex; flex-direction: column;
  align-items: flex-start; line-height: 1.2; }
.review-view-kind { font-weight: 600; }
.review-view-who { font-size: 0.8rem; color: var(--muted); }
.review-view.is-on .review-view-who { color: inherit; opacity: 0.8; }
.review-view-switch .creator-hidden-note { display: none; }

.seg-switch {
  display: inline-flex;
  border: 1px solid var(--line, #d8d2c8);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card, #fff);
}
.seg-opt {
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted, #6b6459);
  text-decoration: none;
  white-space: nowrap;
  /* the divider between options, and never before the first */
  border-left: 1px solid var(--line, #d8d2c8);
}
.seg-opt:first-child { border-left: 0; }
.seg-opt:hover { background: var(--hover, #f2eee7); }
.seg-opt.is-on {
  background: var(--accent, #6b2b2b);
  color: #fff;
  font-weight: 600;
}
/* THE MUSIC FILLS THE CARD, AND ITS SIZE IS SET WHERE IT IS ENGRAVED (user,
   2026-09-17: "it's okay for the notation to be as wide as the card - it
   doesn't need to replicate the printed page").

   A CAP ON THE DISPLAY STOOD HERE and was wrong twice over. On the card it
   made this one card three-quarters the width of its neighbours; on the
   contents it left a hymnal-shaped column of music and verses adrift in a
   full-width card, and the stanza columns were squeezed into 7.5in of a
   10.7in card for no reason a reader would recognise.

   THE NOTE SIZE IS NOT A DISPLAY QUESTION. A staff space is ten units
   wherever the engraver draws, so the size on screen is decided by how many
   units wide the drawing is - see BOOK_STAFF_PX in notation.js, which sizes
   the engraving to the card so that the notes come out the same however wide
   the window is. Nothing here needs to constrain it. */
.ppv-sheet-misfit { margin: 0.4rem 0 0; font-size: 0.92rem; }
/* THE STANZAS SIT IN FROM THE EDGE (user, 2026-09-17: "The left column of
   the lyrics block(s) needs to be indented", and then "the right column
   might need to be nudged a bit to the right as well for everything to not
   collide").

   TO WHERE THE FIRST NOTE IS, not to the edge of the drawing: the staff
   opens with a clef, a key and a time signature - 26px of a 311px score on
   the card measured - and words that begin under the clef read as though
   they belong to it. A PERCENTAGE rather than a rem, because the engraving
   is scaled to the card and that opening inset scales with it.

   THE LEFT COLUMN FURTHER IN THAN THE RIGHT, which is the same answer the
   printed sheet already carries (0.62in against 0.16in) and for the same
   reason: the first column has the card's own margin in front of it and the
   second has the gap between columns.

   TWO COLUMNS OR ONE, and never three, so that `nth-child` parity really is
   'the right-hand column'. `auto-fit` stood here and would give a wide
   screen three, where every other stanza would have been indented at
   random.

   THE INDENT IS ON THE BLOCK, NOT ON EACH STANZA: a percentage on a grid
   ITEM resolves against its own cell, so the same 8% was 40px in two
   columns and 86px in one - the words landing in a different place
   depending on how wide the window was. On the block it is 8.4% of the
   card however many columns that card is holding, which is where the first
   note sits (measured 86px of 1026, and 26 of 311 on a narrow pane - the
   same fraction, because the drawing is scaled to the card). */
.ppv-sheet-verses {
  margin-top: 1.1rem;
  /* AND THE SAME ROOM BENEATH (user, 2026-09-22: "a bit more margin
     below the lyrics text blocks and the bottom of the card"). The card
     that holds an engraving is padded 1rem rather than the usual 1.25,
     so the last line of the last stanza came to rest 20px from the edge
     while the block had 17.6px of air above it. This gives the block the
     same margin below that it has above, and the stanzas then sit
     between the music and the card's edge rather than against it.

     ON THE BLOCK, NOT ON THE CARD: the card's padding is shared with
     every other engraving in the app - the work page, the review pages -
     and none of those has stanzas printed under the score. A hymn whose
     verses all fit over the notes draws no block at all and is untouched. */
  margin-bottom: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* A LINE AND A HALF BETWEEN STANZAS IN THE SAME COLUMN (user,
     2026-09-22: "I would also like the space between stanzas in the same
     column to be 1.5 spaces - it's a bit tight right now"). The same
     number the printed sheet was given, for the same reason: a reader
     expects at least a blank line between verses, and this stood at
     0.9rem, which against this type is half a line.

     THE BLOCK'S OWN LINE IS 1.45em, so one and a half of them is 2.175em
     - and in `em` rather than `rem` so it tracks the size the stanzas are
     set at instead of the root. That is why the size below sits HERE and
     not on `.ppv-sheet-verse` where it used to: an `em` on this element
     resolves against THIS element's font-size, so a gap written in em on
     the grid while the size lives on the grid's items is a gap measured
     against the card's 16px - two thirds of the line it claims to be.
     The items inherit the size, so what they are set in does not change.

     `row-gap` is the gap DOWN a column; the space between the two columns
     is `column-gap` and is untouched. */
  row-gap: 2.175em;
  column-gap: 2.2rem;
  padding-left: 8.4%;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.45;
  /* THE SIZE THE SUNG WORDS BESIDE THEM ARE DRAWN AT (user, 2026-09-22:
     "made a bit bigger so the text is the same size as the text of the
     in-line lyrics above the music staves").

     MEASURED, NOT INHERITED. This stood at 1.05rem to match `.lyrics-text`
     - the same words on the work page, the review pages and the lyrics
     dialog - against a drawing whose syllables measured 16.5px at the
     time. The page view's staff has grown since (user, 2026-09-21: "I'd
     like the notes to be a bit bigger, and the text larger too"), and
     Verovio sets a syllable at a fixed share of the staff, so the words
     over the notes grew with it and the two drifted a tenth apart:
     18.6px sung against 16.8px read.

     ONE NUMBER HOLDS AT EVERY WIDTH. The page view solves the width it
     engraves at so that a staff space lands on PAGE_STAFF_PX whatever
     the card is doing - measured 18.62px a syllable on a 959px card and
     18.65px on a 1050px one - so a fixed size here is level with the
     drawing on every window rather than on the one it was read on.

     ONLY THIS BLOCK. `.lyrics-text` is read on pages that draw no score
     and has nothing beside it to be level with, so it keeps its own size.

     THE PRINTED SHEET IS THE OTHER WAY ROUND and stays that way: there
     the drawing is fitted to the paper, so notation.js corrects the sung
     words to a shade UNDER the stanzas rather than the stanzas to the
     words. Two mechanisms because two things are free to move. */
  font-size: 1.16rem;
}
@media (min-width: 55rem) {
  .ppv-sheet-verses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* And the right-hand column a little further in again, so its number does
     not sit hard against the gap. */
  .ppv-sheet-verse:nth-child(even) { padding-left: 3%; }
}
.ppv-sheet-verse {
  display: grid;
  /* minmax(0, 1fr) and not a bare 1fr: a bare one cannot shrink below
     its own content, so a long unbroken line of a stanza would push the
     column wider than the card instead of wrapping inside it. */
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.5rem;
}
.ppv-sheet-number { font-weight: 700; }
.ppv-spread { align-items: start; margin-bottom: 1.5rem; }
/* Each column's last card drops its own bottom margin (the spread's
   margin-bottom above replaces it) so the column box ends exactly at that
   card's visible edge. This is what makes the sticky music column below
   come to rest flush with the bottom of the lyrics beside it: sticky can
   only travel to the bottom of its grid area, and the grid row is sized by
   the tallest column - leave the margin on and the row runs 1.5rem past
   the lyrics card, letting the music overshoot by exactly that much. */
.ppv-spread > div > .card:last-child { margin-bottom: 0; }
/* Sheet music scrolls out of view partway through a long hymn, so the
   music column follows the reader down the text. Capped to the viewport
   (with its own scrollbar) so a notation image taller than the screen
   can still be read to the bottom instead of being pinned half off it. */
.ppv-spread-music { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
@media (max-width: 800px) {
  .ppv-spread-music { position: static; max-height: none; overflow-y: visible; }
}

.def-list { display: grid; grid-template-columns: 140px minmax(0, 1fr); row-gap: 0.4rem; column-gap: 0.75rem; margin: 0; }
/* THE LABEL COLUMN FITS ITS LABELS HERE (user, 2026-09-11, shortening "Original
   language" to "Origin" and "Hymn duration" to "Duration"). Shortening the words
   alone changed nothing, because 140px is a FIXED column: the card went on
   spending a third of its width on a label that no longer needed it. Scoped to
   this card rather than to `.def-list`, which seven other templates draw and
   whose labels are longer.

   ONE WIDTH FOR ALL FOUR LISTS, not max-content. The card is four separate
   <dl>s now - three groups and the note - and an <h3> cannot live inside a
   <dl>, so they cannot be one grid. Sized to content they sized INDEPENDENTLY,
   and the values started at four different places down the card: 599, 609, 614
   and 577 measured.

   5.8rem is MEASURED, not estimated. Every label this card can draw was laid
   out in the card's own font: the widest were "People/Places/Events of the
   Bible" at 113px, and those have been shortened to one word each; the widest
   left is "Time signature" at 89px. 93px clears it and still hands ~47px back
   to the values, which is what stopped "Songs and Hymns of Zion 1980 #201"
   wrapping. A first pass guessed 5rem and wrapped "Time signature" in two. */
.wd-details-card .def-list {
  grid-template-columns: 5.8rem minmax(0, 1fr);
}
/* ROOM BETWEEN THE ROWS, BUT ONLY WHERE A ROW IS A BLOCK (user, 2026-09-11:
   "this section feels cramped - values run together" of What it is about, then
   "this is a bit too spaced out" of The lyrics once the gap was applied to the
   whole card). Both are right, and they are not in conflict: the two groups
   hold different SHAPES of value.

   In The lyrics every value is one line, so `.def-list`'s own 0.4rem is all
   the separation needed and more reads as drift. In What it is about every
   value is a block - four themes, three tiers of citations, two lectionary
   days - and 6px between two rows against ~7px of leading inside one meant
   nothing said where Theme ended and Scripture began. The gap BETWEEN things
   has to beat the gap WITHIN one, which is only a constraint where there IS a
   within. */
.wd-details-card .wd-about { row-gap: 1rem; }
.def-list dt { color: var(--muted); font-size: 0.85rem; }
.def-list dd { margin: 0; }
/* Duration row starts inline-hidden (server doesn't know the audio's length
   yet); JS clears that inline style once it reads the real duration, which
   falls through to this rule so the dt/dd rejoin the def-list grid instead
   of being swallowed by their wrapping div. */
.duration-row { display: contents; }

/* ONE LINE PER WORK ON EVERY FAMILY CARD (user, 2026-10-24, of the tiles on a
   book's melody card: "Is there a way it can be re-designed to take up less
   space? Also, the tile contains info that doesn't need to appear here";
   approved as the rule for every family card). A card holds BANDS - a melody
   and its arrangements, a lyrics text and its original-language texts - each
   headed by its name, a rule between them; in a band each work is one line:
   its kind (the link), its facts, and its player at the right. A melody's
   line carries the accent bar; an arrangement under its melody, or an
   original-language text under its lyrics, is indented as its child, the
   text a size smaller and muted (work_detail.html, fam_line). */
.fam-bands { margin-top: 0.1rem; }
.fam-band { padding: 0.7rem 0 0.75rem; border-top: 1px solid var(--border); }
.fam-band:first-child { border-top: 0; padding-top: 0.2rem; }
.fam-band:last-child { padding-bottom: 0.1rem; }
.fam-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.55rem; margin: 0 0 0.35rem; }
.fam-letter { font: 700 1.05rem var(--font-serif); color: var(--accent); }
.fam-name { font: 700 1rem var(--font-serif); letter-spacing: 0.02em; color: var(--ink); }
.fam-acts { display: flex; align-items: center; gap: 1rem; margin-left: auto; font-size: 0.85rem; }
.fam-line { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr) auto; gap: 0.2rem 0.9rem;
  align-items: center; padding: 0.32rem 0.6rem; }
.fam-line + .fam-line { border-top: 1px dashed var(--border); }
.fam-line.fam-lead { border-left: 4px solid var(--accent); border-radius: 6px; }
.fam-line.fam-child { margin-left: 1.4rem; } .fam-original_language.fam-child { margin-left: 1.6rem; }
.fam-kind { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fam-kind a { color: var(--accent); text-decoration: none; }
.fam-kind a:hover, .fam-kind a:focus-visible { text-decoration: underline; }
.fam-facts { min-width: 0; font-size: 0.9rem; color: var(--ink); overflow-wrap: anywhere; }
.fam-sep { padding: 0 0.3rem; color: var(--muted); }
/* a count breaks between the figure and the word on a phone, never inside the word ("2 arrangem /
   ents" did) */
.card-summary.fam-count { min-width: min-content; overflow-wrap: normal; word-break: normal; }
.fam-end { display: flex; align-items: center; justify-content: flex-end; gap: 0.9rem; }
.fam-end audio.fam-player { width: 13.5rem; height: 30px; }
.fam-end .midi-player.fam-player { width: 13.5rem; }
.fam-original_language.fam-child .fam-kind { font-size: 0.64rem; }
.fam-original_language.fam-child .fam-facts { font-size: 0.86rem; color: var(--muted); }
/* A phone: the kind, the facts and the player each on a line of their own. */
@media (max-width: 640px) {
  .fam-line { grid-template-columns: minmax(0, 1fr); }
  .fam-end { justify-content: flex-start; }
  .fam-line.fam-child { margin-left: 0.9rem; }
}

/* THE PAGE/TRACK VIEW'S TITLE ROW (user, 2026-10-24, of the header: "How can these be re-done to make them simpler
   and less cluttered looking?" - drawn, "I like this one"; a book's, drawn, "yes"): the container's name at its
   own size, centred, and under it the stepper - round outlined arrows that ARE Previous and Next, faded at an
   end - with the number shown in a box between them, wide enough for "706b" (the user: "is the number 733 cut
   off inside the box?"), then "of 18", or a book's "· 20 of 25". A narrow screen cuts the name short, with an
   ellipsis (the phone rules under the hymn card); the stepper stays centred. The base input rule is (0,7,1) -
   seven :not()s - so the box is reached by its id. */
/* THE SPACE ABOVE THE STEPPER EQUALS THE SPACE BELOW IT (user, 2026-10-24: "the same amount of space above the
   navigator as below" - drawn as r102, built with r107): one value, --ppv-step-gap, is the name's gap to the
   stepper and the stepper's to the card under it; a phone sets it smaller, both at once. */
.ppv-nav-header { --ppv-step-gap: 1rem; text-align: center; min-width: 0; margin: 0.15rem 0 var(--ppv-step-gap); }
.ppv-nav-title { display: block; margin: 0; font-size: 1.2rem; line-height: 1.3; }
.ppv-goto-form { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: var(--ppv-step-gap); font-size: 0.9rem; color: var(--muted); }
.ppv-goto-form label { margin: 0; font: inherit; color: inherit; }
.ppv-goto-form .ppv-goto-number { box-sizing: border-box; width: 3.6rem; height: 1.75rem; margin: 0; padding: 0 0.3rem;
  text-align: center; font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; }
/* ITS OWN LOOK, AND ITS NUMBER IN THE MIDDLE (user, 11/8, of No. 573: "this number isn't centered in the box"). The
   app-wide field rule ("input:not(...)", seven :not()s) outranks the two classes above, so its padding of 0.4rem top
   and bottom sat the number low; the same chain here lets the box's own padding, size and corners win. The 2px under
   the number lifts figures that sit low in their line to the middle: measured 11/8 at 100% and 125%, the same space
   above and below to within an eighth of a pixel. Both boxes, the title row's and the bar's. */
.ppv-goto-form .ppv-goto-number:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="range"]) {
  padding: 0 0.3rem 2px; font-size: 0.92rem; line-height: normal; border-radius: 6px; }
.ppv-goto-form .ppv-goto-number:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(122, 59, 46, 0.12); }
.ppv-step { box-sizing: border-box; flex: 0 0 auto; width: 1.85rem; height: 1.85rem; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 999px; border: 1px solid rgba(122, 59, 46, 0.45); background: var(--card);
  color: var(--accent); font-size: 0; line-height: 1; text-decoration: none; }
a.ppv-step:hover, a.ppv-step:focus-visible { background: rgba(122, 59, 46, 0.08); border-color: var(--accent); text-decoration: none; }
.ppv-step.is-end { opacity: 0.35; cursor: default; }
/* THE ARROWS ARE DRAWN, NOT TYPED (user, 2026-10-24: "These arrows should be centered in the circle"): a
   font's single angle quotes sit on the text's baseline, low in the circle; two borders turned 45 degrees sit
   at its centre whatever the font. The glyph stays in the markup for a reader without styles. The previous
   arrow is the stepper's first child and the next its last, at an end too. */
.ppv-step::before { content: ""; width: 0.42rem; height: 0.42rem; border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor; transform: translateX(0.1rem) rotate(45deg); }
.ppv-goto-form > .ppv-step:last-child::before { transform: translateX(-0.1rem) rotate(-135deg); }
.ppv-nav-position { white-space: nowrap; }
/* WHAT THE STEPPER IS WALKING (r149): the List View's own chip (.lv-chip), centred under the stepper. */
.ppv-stepping { display: flex; justify-content: center; margin: 0.55rem 0 0; font-size: 0.86rem; }
/* THE STEPPER STAYS IN VIEW (r151, the user, 2026-10-26: "Stick to the top"): once the title row's stepper has
   scrolled away, a slim bar across the top of the window holds the same stepper - under the test copies' banner
   (--lv-stick), under every dialog's overlay (40 and up) - with the book's name at its left, cut short before it
   could reach the stepper, and on a phone the stepper alone. Its box is the title row's (.ppv-goto-number). */
.ppv-stick { position: fixed; left: 0; right: 0; top: var(--lv-stick, 0px); z-index: 35; display: flex;
  justify-content: center; padding: 0.4rem 1rem; background: var(--card); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(43, 38, 32, 0.08); }
.ppv-stick[hidden] { display: none; }
.ppv-stick .ppv-goto-form { margin: 0; }
.ppv-stick-label { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); max-width: calc(50% - 10.5rem);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 40rem) { .ppv-stick-label { display: none; } }
@media print { .ppv-stick { display: none !important; } }

/* THE HYMN CARD (user, 2026-10-09). One grid from the title down: the number
   and the title, with the hymn's meter over the figure columns; then a row
   for the words and a row for every tune, each led by what it is - a tune by
   its letter where the number carries more than one - then who made it, and
   its two figures in FIXED columns at the card's right edge, so # Stanzas
   and Key/Mode, Stanza Order and Duration, stand at the same x on every
   page. The rows are `display: contents`, so every row's figures share the
   grid's own columns. A setting is drawn by its role in its tune's row; the
   player heads the score, which follows in the same card. There is no Details: every tune and
   every setting of each is always on the card. */
.fx { display: grid; grid-template-columns: minmax(4.2rem, max-content) minmax(0, 1fr) 6.5rem 6.5rem;
  column-gap: 0.5rem; align-items: baseline; }
.fx-sec, .fx-figs, .fx-head { display: contents; }
/* "EDIT STANZAS" UNDER A TEXT'S TWO FIGURES (user, 2026-10-24: "instead of the 'lyrics' button or 'stanzas'
   button at the top of the page, should it go here or somewhere on this lyrics row?" - drawn, "this is
   good"). Where it shows, the two figures are one real cell across both figure columns, two columns of its
   own the same widths, and the pill a row of it under both, centred. Before the narrow rules, which give
   .fx-figs a grid of its own there; the pill spans that the same way. */
.fx-figs-edit { display: grid; grid-column: 3 / 5; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.5rem; align-items: start; }
.fx-fig-edit { grid-column: 1 / -1; justify-self: center; margin-top: 0.4rem; }
.ppv-hymn-number { grid-column: 1; align-self: center; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--accent); }
.fx-title { grid-column: 2; align-self: center; display: flex; align-items: center; gap: 0.5rem 0.9rem; min-width: 0; padding-right: 1.25rem; }
.fx-title-wide { grid-column: 2 / -1; padding-right: 0; }
/* `.card` in the selector: `.card h2` comes later in this file at equal
   specificity and would give the title a rule and a margin of its own. */
.card .fx-title h2 { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border-bottom: none; font-size: 1.45rem; line-height: 1.2; }
/* the hymn's meter: over both figure columns, on one line */
.fx-fig-meter { grid-column: 3 / 5; align-self: center; }
.fx-meter { white-space: normal; }
.fx-gap { grid-column: 1 / -1; height: 0.6rem; }
.ppv-lead { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); line-height: 2.2; }
.fx .ppv-lead { grid-column: 1; line-height: 1.45; white-space: nowrap; }
.fx-names { grid-column: 2; min-width: 0; padding-right: 1.25rem; display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.3rem; font-size: 0.92rem; line-height: 1.45; }
.fx-wide { grid-column: 2 / -1; padding-right: 0; }
/* who made it: role | name, the names aligned */
.fx-roles { display: grid; grid-template-columns: minmax(8.9rem, max-content) minmax(0, 1fr); column-gap: 0.65rem; row-gap: 0.15rem; align-items: baseline; }
.fx-roles .ppv-k { white-space: nowrap; }
/* WHAT IS DRAWN, marked and never added: the role of the work on the staff
   in the accent, with a bar in the gap at its left. Neither takes room, so
   drawing another setting moves no line. */
.fx-roles .ppv-k { position: relative; }
.fx-roles .ppv-k.fx-on { color: var(--accent); -webkit-text-stroke: 0.35px currentColor; }
.fx-roles .ppv-k.fx-on::before { content: ""; position: absolute; left: -0.5rem; top: 0.15em; bottom: 0.1em; width: 3px; border-radius: 2px; background: var(--accent); }
/* EVERY OTHER ROLE DRAWS ITS SETTING, quietly (user, 2026-10-09: "make it
   apparent that they are clickable without calling too much attention to
   them"): the role's own colour and a faint dotted underline, which goes
   solid and takes the accent on hover or keyboard focus (the ring is the
   app's own a:focus-visible). A decoration takes no room, so nothing moves.
   */
.fx-roles a.fx-set-draw { color: var(--muted); cursor: pointer; text-decoration: underline dotted var(--border-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fx-roles a.fx-set-draw:hover, .fx-roles a.fx-set-draw:focus-visible { color: var(--accent); text-decoration: underline solid var(--accent); text-decoration-thickness: 1px; }
.fx-roles a.ppv-k.fx-set-draw { justify-self: start; }
/* one person, or one part of a credit: wraps whole, never inside a name */
.fx-nw { display: inline-block; }
.fx-src { display: inline-block; font-size: 0.8rem; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.fx-tags .tag { margin: 0; }
/* A BOOK'S THEMES, ONE QUIET LINE OF TEXT (user, 2026-10-24, of the pills: "Now i'm wondering if themes should even
   be in pills - that makes them look like important clickable buttons"; then "it's not sufficiently differentiated
   from the credit just above it" and "the indent ... makes it look like it's a 'detail' or subsidiary of the
   credit above" - drawn as r106, "yes"): from the credit's own left edge, "THEMES" in the card's small-label
   type, then 0.6rem on the themes, a step down from the credit - smaller and muted - the primary first and bold
   in the ink colour, a muted middle dot between; 0.35rem more space above it than between the rows above. A
   theme's name wraps whole. */
.ppv-themes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; margin-top: 0.35rem; }
.ppv-themes-k, .ppv-orig-k { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ppv-themes-list { min-width: 0; font-size: 0.84rem; color: var(--muted); }
.ppv-themes-name { white-space: nowrap; }
.ppv-themes-primary { font-weight: 700; color: var(--ink); }
.ppv-themes-sep { padding: 0 0.4rem; }
/* THE ORIGINAL ON THE THEMES LINE'S TERMS (user, 2026-10-24, of No. 720's "Original [a wide gap] German: Wir
   glaube all an einen Gott - Tobias Clausnitzer 1671, German": "This space is too big - also, should 'original'
   get the same treatment as 'themes'?" - drawn as r126, "yes"): no role column. "ORIGINAL" in the card's
   small-label type (the rule above) at the credit's own left edge, then 0.6rem on the original a step down from
   the credit - smaller and muted, its title still italic - one line for each original, the label on the first.
   THE TWO LABELS ONE WIDTH, THE LONGER'S, so ORIGINAL's and THEMES' words start at one edge: .ppv-facts is one
   grid holding the Original lines and the Themes line, each line a row of it (subgrid), its first column the
   longer label's own width - measured by the layout, never typed. A line that wraps keeps that edge. The space
   above is r106's: 0.35rem over the rows' own gap before the first line, and between Original and Themes. */
.ppv-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 0.6rem; row-gap: 0.15rem; align-items: baseline; margin-top: 0.35rem; }
.ppv-facts > .ppv-orig, .ppv-facts > .ppv-themes { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; margin-top: 0; }
.ppv-facts > .ppv-orig + .ppv-themes { margin-top: 0.5rem; }
.ppv-orig-v { min-width: 0; font-size: 0.84rem; color: var(--muted); }
.fx .ppv-tune-name { font-size: 0.95rem; line-height: 1.45; }
/* SHZ 1980 232 prints three texts credited alike: each is named. */
.fx-text-title { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; line-height: 1.45; }
.fx-note { white-space: pre-line; }
/* A TUNE'S LETTER heads its row, in the number's serif and accent: filled
   for the tune the score draws, outlined for the others, which draw it. */
.fx .ppv-lead.fx-lead-letter { line-height: 1; letter-spacing: 0; text-transform: none; }
.fx-letter { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 1.75rem; height: 1.75rem; padding: 0 0.3rem;
  border: 1.5px solid var(--accent); border-radius: 0.35rem; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; line-height: 1; color: var(--accent); text-decoration: none; }
a.fx-letter, .fx-letter.is-still { opacity: 0.8; }
a.fx-letter:hover, a.fx-letter:focus-visible { opacity: 1; background: var(--card-alt); text-decoration: none; }
.fx-letter.is-on { background: var(--accent); color: #fff; }
.fx a.ppv-tune-name { color: var(--accent); text-decoration: none; }
.fx a.ppv-tune-name:hover, .fx a.ppv-tune-name:focus-visible { text-decoration: underline; }
/* the figures: a title on top, the value under it */
.fx-fig { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.fx-t { font-size: 0.72rem; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.fx-n { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.fx-key { font-size: 1.05rem; line-height: 1.3; }
.fx-of { font-size: 0.78rem; color: var(--muted); }
.fx-v { font-size: 0.8rem; line-height: 1.35; }
.fx-c { font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
.fx-hint { cursor: help; }
/* between the words and the music; a lighter one between two texts or two
   tunes */
.fx-rule { grid-column: 1 / -1; border-top: 1px solid var(--border); margin: 0.45rem 0 0.4rem; }
.fx-rule-text { border-top-style: dashed; }
.fx-after { margin-top: 0.4rem; }
/* a credit's own note ("v. 1", "published 1811") */
.fx-cnote { font-size: 0.85rem; }
/* EACH CONTROL BESIDE WHAT IT EDITS: transpose under its key, the note's
   buttons and Edit performers on their rows. */
.fx-fig .ppv-transpose { margin-top: 0.2rem; }
/* a page with no score: under its tune's facts in the music card */
.ppv-music .ppv-music-transpose { text-align: left; margin: -0.35rem 0 0.6rem; }
.fx .ppv-card-notes, .fx .ppv-card-performers { margin-top: 0.4rem; padding-top: 0; border-top: 0; }
.fx-names.fx-note-row, .fx-names.fx-performers { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 0.75rem; }
.fx-note-row > .ppv-note-standing, .fx-note-row > .note-text { flex: 0 0 100%; margin: 0; }
.fx-note-row .note-actions { margin: 0; gap: 0.5rem; }
.fx-note-row .note-empty { display: none; }
.fx-note-row .btn-sm, .fx .fx-edit { font-size: 0.75rem; padding: 0.1rem 0.55rem; }
/* THE PLAYER: its own row at the top of the score it plays - never among
   the facts - at the row's right. */
.fx-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-bottom: 0.7rem; }
.fx-controls .midi-player.ppv-sheet-player { margin-left: 0; width: 16rem; }
/* The music cards on a page with no score say their facts as segments. */
.ppv-seg { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35rem; min-width: 0; }
.ppv-seg + .ppv-seg::before { content: "\00B7"; color: var(--border-strong); margin: 0 0.6rem 0 0.25rem; }
.ppv-k { color: var(--muted); font-size: 0.8rem; }
.ppv-tune-name { font-family: var(--font-serif); font-size: 0.9rem; font-weight: 700; font-variant: small-caps; letter-spacing: 0.05em; }
.ppv-hint { cursor: help; }
/* A NARROW WINDOW: each row's figures go under its own names, in the same
   two columns, rather than squeeze a credit into a column too narrow; the
   meter under the title. */
@media (max-width: 46rem) {
  .fx { grid-template-columns: minmax(4.2rem, max-content) minmax(0, 1fr); }
  .fx-names, .fx-title { padding-right: 0; }
  .fx-figs { display: grid; grid-column: 2; grid-template-columns: repeat(2, minmax(0, 7rem)); column-gap: 0.5rem;
    margin-top: 0.5rem; align-items: start; }
  .fx-fig-meter { grid-column: 2; width: calc(14rem + 0.5rem); margin-top: 0.45rem; }
}
/* THE SCORE, under a rule of its own: the player, this number's own-score
   notes and controls, then the engraving and its stanzas. */
.ppv-hymn-score { margin-top: 0.55rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
/* A music card on a page with no score card says what it is under its
   heading, in the Music row's words. */
.ppv-music-facts { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 0.25rem; margin: -0.35rem 0 0.75rem; font-size: 0.88rem; }
/* A PHONE: the number and title, the meter on a line of its own, then each
   row - its lead-in (a tune's letter beside its name) above its credits, a
   credit's role above its name, its two figures across the card; the
   player across the card, and the book's name cut short. */
@media (max-width: 40rem) {
  .ppv-nav-header { --ppv-step-gap: 0.75rem; }
  .ppv-nav-title { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fx { grid-template-columns: max-content minmax(0, 1fr); column-gap: 0.6rem; }
  .ppv-hymn-number { font-size: 1.5rem; }
  .card .fx-title h2 { font-size: 1.15rem; }
  .fx-title { flex-wrap: wrap; gap: 0.4rem 0.6rem; }
  .fx-fig-meter { grid-column: 1 / -1; width: auto; }
  .fx .ppv-lead { grid-column: 1 / -1; line-height: 1.6; }
  .fx .ppv-lead:empty { display: none; }
  .fx-names, .fx-figs, .fx-wide { grid-column: 1 / -1; }
  .fx-names { font-size: 0.9rem; }
  /* a tune's letter stands beside its name */
  .fx .ppv-lead.fx-lead-letter { grid-column: 1; }
  .fx .ppv-lead.fx-lead-letter + .fx-names { grid-column: 2; }
  .fx-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* a credit's role above its name, so the name keeps the card's width */
  .fx-roles { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .fx-roles .ppv-k { font-size: 0.74rem; line-height: 1.35; white-space: normal; }
  .fx-roles .ppv-k:empty { display: none; }
  .fx-roles .ppv-k:not(:first-child) { margin-top: 0.25rem; }
  .fx-n { font-size: 1.05rem; }
  .fx-controls .midi-player.ppv-sheet-player { width: 100%; margin-left: 0; }
}

.ppv-sub-title { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.3rem; }
.ppv-duration-block { text-align: center; }

/* Bravura, the SMuFL reference engraving font (Steinberg, SIL OFL 1.1) -
   self-hosted, never a CDN. The file and its licence sit together in
   static/fonts/. Used only for the time signature: the key signature itself is
   a picture. */
@font-face {
  font-family: "Bravura";
  src: url("/static/fonts/Bravura.otf") format("opentype");
  font-weight: normal; font-style: normal; font-display: swap;
}
/* Literata (TypeTogether for Google, SIL OFL 1.1) - the wordmark's
   typeface, self-hosted beside Bravura, the file and its licence together.
   SINCE THE SWAP (2026-10-03) THE LINE UNDER THE NAME'S: cut down to the letters of "library and
   workshop" in both cases, small capitals and all, at 400 with its optical-size axis (8.6KB).
   It was cut down to the seven letters of "Precentor" (P r e c n t o), keeping its
   weight and optical-size axes, which makes it 5.5KB. BLOCK, NOT SWAP: the
   mark and the staff are placed for Literata's letters, so the name waits
   the moment the file takes rather than flashing up in another face beside
   them. */
@font-face {
  font-family: "Precentor Literata";
  src: url("/static/fonts/Literata-Precentor.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}
/* SINCE THE SWAP (2026-10-03) THE NAME'S: cut down to the letters of "Precentor", its weight axis
   kept (the name is set at 360), 5.1KB.
   Montserrat (the Montserrat Project, SIL OFL 1.1) - the line under the
   name, self-hosted beside Literata with its licence. Cut down to the letters
   of "Hymn library and workshop" in both cases, at the regular weight, which
   makes it 5.1KB. block for the same reason as Literata. */
@font-face {
  font-family: "Precentor Montserrat";
  src: url("/static/fonts/Montserrat-Precentor.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: block;
}

/* Page/track view's Rights & permissions summary - Manager/admin only, one
   card for the whole page. Same list shape as the publish gate's blocked-work
   list (.publish-rights-block), which answers the same question for a whole
   container. */
/* "Also published in" - the last card on a page view. Three sections:
   other publications and other recordings, both linked to that container's
   own page view, then the original-language hymnals as a bare reference.

   One line per other container with its numbers beside it, because a hymn
   filed twice in the same book is one destination with two numbers, not two
   destinations. The number carries the weight rather than the name: the name
   is how you find the row, the number is what you came for. */
/* One reviewer per line in the dashboard's "Reviewed by" cell - a work can
   need sign-off from more than one, and comma-joining them read as a single
   long name at this column width. */
/* When the reviewer sign-off button is absent (a Manager is not a music
   reviewer), the approve form becomes the first thing pushed right. */
/* The pairing dashboard reuses the work dashboard's select-all behaviour
   with its own class names, since the rows are pairings not works. */
.bulk-pairing-form .btn-row { margin-top: 1rem; }
.pairing-approve-first { margin-left: auto; }
.rq-reviewed-by { white-space: nowrap; }
.ppv-also-heading {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin: 1.1rem 0 0.35rem;
}
.ppv-also-heading:first-of-type { margin-top: 0.25rem; }
.ppv-also-note { font-size: 0.85rem; margin: 0 0 0.4rem; }
.ppv-also-list { list-style: none; margin: 0; padding: 0; }
.ppv-also-list li { padding: 0.25rem 0; }
.ppv-also-name { margin-right: 0.4rem; }
.ppv-also-number { font-weight: 600; white-space: nowrap; }
.ppv-also-sep { color: var(--muted); margin: 0 0.35rem; }
/* A RECORDING'S LINE (the user, 11/13/2026: "each recording line should include the icon for recording style, the
   album number and year"; "the data element order should be icon+short word, year, album title, album number,
   track number"): its style's mark (the icon and its short word) in a column of its own, as the cross-reference's
   recording lines have it, then the year, the album, its number and its tracks. ON A PHONE, and where a browser
   has no subgrid, the line flows beside the mark, never sideways. */
.ppv-also-rec { display: grid; grid-template-columns: minmax(6.2em, auto) minmax(0, 1fr); column-gap: 0.45rem;
  align-items: baseline; }
.ppv-also-rec .style-icon { color: var(--ink); }
.ppv-also-about { color: var(--muted); margin-right: 0.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* COLUMNS ON A WIDE SCREEN (the user, 11/13/2026: "I wonder if this needs to be laid out in more of a column format
   instead of just rows - it might be easier to read"): the list one grid and each line a row of it (subgrid, as
   .ppv-facts and .xr-places are) - the mark, the year, the album, its number and its tracks each a column as wide
   as its widest entry, packed to the left. Each cell is placed in its own column, so a fact not set leaves its
   column empty rather than moving the rest along. */
@media (min-width: 701px) {
  @supports (grid-template-columns: subgrid) {
    .ppv-also-list.ppv-also-recs { display: grid; grid-template-columns: repeat(5, auto); justify-content: start;
      column-gap: 1rem; }
    .ppv-also-recs > .ppv-also-rec { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: 1rem; }
    .ppv-also-recs .ppv-also-main { display: contents; }
    .ppv-also-recs .ppv-also-icon { grid-column: 1; }
    .ppv-also-recs .ppv-also-year { grid-column: 2; }
    .ppv-also-recs .ppv-also-name { grid-column: 3; margin-right: 0; }
    .ppv-also-recs .ppv-also-no { grid-column: 4; }
    .ppv-also-recs .ppv-also-tracks { grid-column: 5; }
    .ppv-also-recs .ppv-also-about { margin-right: 0; }
  }
}
.ppv-rights-list { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; }
.ppv-rights-list li { padding: 0.15rem 0; }
.ppv-rights-note { font-size: 0.82rem; margin: 0.7rem 0 0; }

/* GENERATE FILE, A PLAIN LINK (user, 2026-10-24: "I'm wondering if 'generate file' should be a link right-justified
   above the search pill?" - drawn as r107, "yes"): a small file with an arrow before its words, in the back link's
   own type. Since r154 (one row, 2026-10-26) it is on the controls' row, before the search. */
.ppv-generate { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0;
  font-size: 0.9rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.ppv-generate:hover, .ppv-generate:focus-visible { text-decoration: underline; }
.ppv-generate svg { flex: 0 0 auto; }
/* THE CONTROLS' ROW, ONE HEIGHT (the user, 2026-10-24: "the switch pill, button pill, and search pill are all
   different heights"), the switch's own, said once: --ppv-ctl-h is .segmented > *'s 0.85rem label at the body's
   1.5 line height, its 0.35rem above and below, and the switch's 1px border top and bottom. Its layout is the
   List view's one row (r154, below at .pub-header-actions-row). */
.ppv-top-row { --ppv-ctl-h: calc(0.85rem * 1.5 + 0.7rem + 2px); }
.ppv-top-row .pub-view-switch { box-sizing: border-box; height: var(--ppv-ctl-h); }
/* THE CONTROLS' ROW'S RIGHT HALF (user, 2026-10-24 - the header's drawing, approved): ONE rounded search field
   with a magnifier in it, its hint naming the kind, the switch's height. On a phone the row wraps and the
   field takes the width (below). Reached by its id, past the base input rule. */
.ppv-find { position: relative; display: inline-flex; align-items: center; margin: 0; }
.ppv-find svg { position: absolute; left: 0.7rem; color: var(--muted); pointer-events: none; }
.ppv-find #ppv-find { box-sizing: border-box; width: 15rem; height: var(--ppv-ctl-h); margin: 0; padding: 0 0.8rem 0 2.1rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: inherit; font-size: 0.88rem; color: var(--ink); }
.ppv-find #ppv-find:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(122, 59, 46, 0.12); }
/* Shown when a typed "Go to" number isn't in this container - the reader
   landed somewhere other than where they asked, and needs telling. */
.ppv-missing-note {
  margin: -0.4rem 0 1rem; padding: 0.5rem 0.75rem; font-size: 0.9rem;
  border: 1px solid var(--border); border-left: 3px solid var(--accent-light);
  border-radius: var(--radius); background: var(--card);
}

/* Search-within-this-container dialog. Wider than the shared .modal-dialog,
   whose 480px is too narrow once every result carries a text preview. */
.ppv-search-dialog { max-width: 680px; }
.ppv-search-field { display: block; margin-bottom: 0.75rem; }
.ppv-search-field span { display: block; font-size: 0.82rem; margin-bottom: 0.35rem; }
.ppv-search-field input { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; }
.ppv-search-note { margin: 0.5rem 0; font-size: 0.88rem; }
.ppv-search-results { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
/* The number is the only control - the rest of the row is inert context, so
   it deliberately gets no hover/cursor affordance of its own. */
.ppv-search-result {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--border);
}
.ppv-search-result:last-child { border-bottom: none; }
.ppv-search-jump { flex: 0 0 auto; min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.ppv-search-result-body { min-width: 0; }
.ppv-search-result-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.ppv-search-result-title { font-weight: 600; }
.ppv-search-preview { font-size: 0.86rem; color: var(--muted); margin-top: 0.2rem; overflow-wrap: break-word; }
.ppv-search-field-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); margin-right: 0.3rem;
}
/* search.html's own <mark> rule is scoped under .search-result, so without
   this the dialog's highlights fall back to the browser's default yellow. */
.ppv-search-preview mark { background: #f3e3b3; color: inherit; border-radius: 2px; padding: 0 1px; }

.contrib-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.contrib-list li { padding: 0.35rem 0; border-bottom: 1px dashed var(--border); display: flex; gap: 0.5rem; align-items: center; }

/* Reviewer to-do list (landing-page preview card and the full /reviews page) */
/* TWO COMPONENTS HAVE SHARED THIS NAME, and both rules reached both of
   them. `todo.html` stacks link TILES in a <div>; the review queue lists
   ROWS in a <ul>, and they are not one thing because a row carries a
   button and a button cannot sit inside a link.

   WHAT IT COST: the queue's rows picked up the tiles' flex column and
   their 46rem cap on top of their own `display: flex` - so a row was a
   wrapping flex line with `margin-left: auto` on the button. Where the
   content fitted, the button sat at the right; where it did not, the row
   wrapped and that auto margin threw the button to the right of the NEXT
   line. It is the ragged stagger a reader sees, and it means the layout
   depended on how long each hymnal's name happened to be.

   QUALIFIED BY ELEMENT rather than renamed, because `class="todo-list"`
   is what the suite reads to tell the two pages apart. */
ul.todo-list { list-style: none; padding: 0; margin: 0.4rem 0 0; }
/* A ROW IS A GRID, not a line that wraps: the action keeps a column of its
   own whatever else the row carries, so the buttons line up down the page
   and the eye has one place to look for them. */
ul.todo-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'main action' 'where action';
  column-gap: 1rem; row-gap: 0.1rem;
  align-items: center;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
}
ul.todo-list > li:last-child { border-bottom: none; }
/* AND THE ROW UNDER THE POINTER IS THE ROW YOU ARE ABOUT TO ACT ON: the
   button sits at the far side of a wide row from the title it belongs to,
   so something has to tie the two ends of it together. */
ul.todo-list > li:hover { background: var(--card-alt); }
.todo-row-main { grid-area: main; display: flex; flex-wrap: wrap;
  gap: 0.45rem; align-items: baseline; }
.todo-row-title { font-weight: 600; }
/* WHERE IT IS PRINTED, on a line of its own and quiet. It is the same book
   on most rows, so it is context rather than news - and inline it was the
   longest thing in the row and the reason rows wrapped at all. */
.todo-row-where { grid-area: where; margin: 0; font-size: 0.85rem;
  color: var(--muted); }
.todo-row-action { grid-area: action; margin: 0; justify-self: end; }
/* NARROW: the action drops under the row rather than squeezing the title
   into a column of its own. */
@media (max-width: 38rem) {
  ul.todo-list > li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'main' 'where' 'action';
    row-gap: 0.3rem;
  }
  .todo-row-action { justify-self: start; }
}
.due-date { font-size: 0.8rem; color: var(--muted); }
.overdue { color: var(--error); font-weight: 600; }
.muted { color: var(--muted); }
.serial { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.01em; }

.tight-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; align-items: center; }
.tight-form input, .tight-form select, .tight-form textarea { padding: 0.4rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; }

.comment-list { list-style: none; padding: 0; margin: 0.5rem 0; }
/* ONE REMARK, ONE BLOCK (user, 2026-09-10: "the comments run together - can we
   give them a shaded background?"). A dashed hairline was the only thing
   between one person's remark and the next, and each remark is itself three
   stacked lines - a name, the words, two controls - so the eye had nothing to
   group them by. Same treatment as a file in the Files dialog, for the same
   reason and so the two read alike. */
.comment-list > li {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.45rem;
}
.comment-list > li:last-child { margin-bottom: 0; }
/* The edit box that opens in place sits inside the same block, so it gets a
   little air rather than butting against the shaded edge. */
.comment-list > li .comment-edit-form { margin-top: 0.5rem; }
.comment-meta { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.85rem; margin-bottom: 0.2rem; }
/* THE EDITED MARK beside a comment's date (_review_macros.edited_mark), in
   italics so "edited 10/2/2026" is not read as a second date of writing. */
.comment-edited { font-style: italic; }
/* THE OTHER WORKSTREAM'S QUEUE on a reviewer's /reviews (user, 2026-10-01):
   its comments open in place, inside the table, so they are kept to the
   column's width and set a size down from the page. */
.other-queue-note { margin: 0 0 0.75rem; font-size: 0.88rem; }
.other-queue-said { min-width: 14rem; max-width: 34rem; }
.other-queue-table .due-date { white-space: nowrap; }
.other-queue-comments > summary { cursor: pointer; color: var(--accent); }
.other-queue-comments .comment-list { margin: 0.4rem 0 0; padding: 0;
  list-style: none; font-size: 0.9rem; }
.other-queue-comments .comment-list li { margin: 0 0 0.6rem; }
.other-queue-comments .comment-text { margin: 0.15rem 0 0; }
.comment-actions { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
.comment-edit-form textarea { width: 100%; margin-bottom: 0.4rem; font-family: inherit; padding: 0.4rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius); }

.pub-rows { margin-bottom: 0.5rem; }
.pub-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.pub-row input { margin-top: 0; }
.pub-row input[name$="publication_name"] { flex: 2; }
.pub-row input[name$="publication_number"] { flex: 1; }
.pub-row input[name$="work_display"] { flex: 2; }
.pub-row input[name$="work_number"] { flex: 1; }

/* Audio publication rows have just the one field (unlike Publication's
   name+number pair) - without flex here, .stacked-form's width:100% on the
   input pushes Remove onto its own line below it. */
.audio-pub-rows { margin-bottom: 0.5rem; }
.audio-pub-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.audio-pub-row input { margin-top: 0; flex: 1; }

.pub-lookup { margin: 0.4rem 0 0.85rem; padding: 0.6rem 0.75rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.pub-lookup-row { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.35rem; }
.pub-lookup-row input { margin-top: 0; }
.pub-lookup-publication { flex: 2; }
.pub-lookup-number { flex: 1; }
.pub-lookup-results { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }

.item-rows { margin-bottom: 0.5rem; }
.item-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
/* Same 2:1 ratio as .pub-row's name/number split, so the year fields end up
   the same size as the Publication row's Number field. */
.item-row input[type="text"] { flex: 2; margin-top: 0; }
.item-row input[name$="_year"] { flex: 1; }
.item-row input[name$="_nationality"] { flex: 1; }
.item-row .checkbox-label { white-space: nowrap; margin: 0; }
/* THE GUIDED INTERVIEW'S CREATOR ROWS ARE LABELLED BLOCKS, not the compact
   line of inputs the three rules above are built for. They carry
   `.item-row` because item-rows.js finds rows by that class - and that
   handed them the one-page forms' layout too, where
   `.item-row input[type="text"]` (0,2,1) outranks `.guided-row label >
   input` (0,1,2) and replaced its `margin-top: auto` with 0 while adding
   `flex: 2`. The Nationality box grew to 60px beside its neighbour's 36,
   because its label is one line shorter and the input stretched to take
   up the slack (user, 2026-09-12: "this nationality field is a weird
   shape"). Put back here, where both halves can be read together. */
.guided-creator-rows .item-row { display: block; }

/* WHOSE BOXES ARE WHOSE (user, 2026-09-12: with a second creator "they run
   together and it can be confusing").

   A heavier rule on its own would not have done it. This block already
   carries rules BETWEEN its own field rows and a tinted panel below them,
   so one more line reads as another divider inside the same person rather
   than the start of the next one. What separates two people is a heading
   that says which one this is - and it answers the other question the
   screen was raising, which of them "Remove this creator" removes.

   COUNTED IN CSS, not written by the script that clones the rows. Adding
   and removing a creator then renumbers the rest on its own, and the
   number on screen cannot drift from the row it sits over - which is
   exactly the kind of bookkeeping a clone-and-clear script gets wrong.

   ONLY WHERE THERE IS MORE THAN ONE: `:has(> .item-row ~ .item-row)` is
   "a row that follows a row", so a lone creator is drawn as it always was.
   Written against the CLASS rather than :nth-of-type, which counts
   elements and would keep counting if anything else were ever put in
   this container. */
.guided-creator-rows { counter-reset: creator; }
.guided-creator-rows > .item-row { counter-increment: creator; }
/* ON A SPAN, NOT ON THE ROW. The number shares a line with Remove now, and
   a pseudo-element cannot have an element beside it - so it hangs off an
   empty span the header can lay out. `:empty` would have been the obvious
   way to quieten that span where there is no number, and is wrong: a
   ::before is not a child, so `:empty` matches even when the number is
   showing and would have switched it off everywhere. The `:has` on the
   container is what decides, exactly as before. */
/* THE WORD ALWAYS, THE NUMBER ONLY WHEN IT MEANS SOMETHING (user,
   2026-09-12: with a lone creator and the label gated off, "this empty
   space feels odd"). Withholding the label left the header band holding a
   button at one end and nothing at the other. "Creator 1" over a lone
   creator still names a distinction nobody is making - so the label stands
   on its own and gains a number the moment a second one arrives. */
.guided-creator-rows .guided-creator-no::before {
  content: "Creator";
  /* A STEP ABOVE THE FIELD CAPTIONS (user, 2026-09-12: "maybe this font
     just a touch larger"). At 0.75rem it matched them exactly and was
     told apart only by its weight and colour - which is thin grounds for
     a line that names the thing every caption under it belongs to. */
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); }
.guided-creator-rows:has(> .item-row ~ .item-row) .guided-creator-no::before {
  content: "Creator " counter(creator); }
/* AND A RULE DOWN THE SIDE OF EACH ONE (user, 2026-09-12: "something that
   visually ties each creator's information together... a vertical rule
   running the length of each creator entry").

   The heading says where a creator STARTS; a line beside them says how far
   they go - past the credit fields, past the tinted alteration panel, down
   to the Remove button - which a divider between entries cannot.

   COLOURED, NOT THICKER: the same 2px the revision levels inside already
   use, in the accent family instead of grey, so the outer bracket is told
   from the nested ones by what kind of line it is rather than by its size.
   That is this file's standing preference - see --border-strong, added
   because a 2px edge on a fractionally-scaled box truncated a frame at
   110% zoom.

   The divider that used to sit between entries is gone with it: a grey rule
   meeting a brown one at a corner is two boundaries drawn for one join, and
   the gap plus two separate rules already says where one ends. */
/* DRAWN EVEN FOR A LONE CREATOR (user, 2026-09-12: with one, Remove "sort
   of looks like it's floating out in space and not tied to a specific
   creator entry"). Gating the bracket on there being two creators left the
   single case with no number and no rule, so the button at the top right
   sat against nothing at all. The bracket is what says where a creator's
   block begins and ends, and a control acting on that block needs it to be
   there - which is as true of the only creator as of the third.
   The NUMBER stays conditional: "Creator 1" over a lone creator names a
   distinction nobody is making. */
.guided-creator-rows > .item-row {
  border-left: 2px solid var(--accent-light);
  /* AND ROOM AT THE FOOT (user, 2026-09-12: "a little more breathing room
     here"). The rule stopped dead on the last field's bottom edge, and the
     Add button sat 8px under that - so the block ended, the next control
     began, and nothing separated the two. The padding matches the 1rem
     the rule already stands off the fields on the left, so the bracket
     closes at the same distance it opens. */
  padding-left: 1rem; padding-bottom: 1rem; }
/* Clear of the block it adds to, rather than tucked against it. */
.guided-creator-rows + .add-item-row { margin-top: 1.25rem; }
.guided-creator-rows:has(> .item-row ~ .item-row) > .item-row + .item-row {
  margin-top: 2rem; position: relative; }
/* AND A HAIRLINE IN THE GAP (user, 2026-09-12: asking whether one could go
   here "to ensure that the 'remove this creator' button is visually clearly
   tied to the record below and not above").

   IN the gap, not on the block. A `border-top` here was the first attempt
   and was dropped because it met the brown bracket at a corner - a grey
   rule and a brown one drawn for one join. Floated into the middle of the
   32px margin instead, it meets nothing: the block above has closed its
   bracket, the block below has not opened one yet, so the line separates
   without adding a second boundary to either.

   It starts at the padding edge, so it begins where the fields begin
   rather than cutting across where the brackets stand.

   THE SAME COLOUR AS THE SPLITS INSIDE A CREATOR, not a lighter one.
   Drawn in --border it came out fainter than the rules it was meant to
   outrank, which puts the hierarchy upside down - a boundary BETWEEN two
   people reading as weaker than the one between a person and their own
   credit fields. It does not need to be heavier than those either: it
   sits alone in a 32px gap, and nothing else is near it. */
.guided-creator-rows:has(> .item-row ~ .item-row) > .item-row + .item-row::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1rem;
  border-top: 1px solid var(--rule, #d9d2c5); }
/* ONLY THE CREATOR'S OWN BOXES, which are the ones inside a <label>. Written
   as `.item-row input[type="text"]` this reached into the alteration levels
   too and overrode their `flex: 1 1 6rem`, so each level's four boxes stopped
   sharing a row and stacked full-width down the page - six levels of that is
   a column nobody can read (user, 2026-09-12: "this stacking is too much").
   The subentry's inputs are bare, not wrapped in a label, so this cannot
   reach them. */
.guided-creator-rows .item-row label > input[type="text"] { flex: 0 1 auto; }
/* The name takes the row; the year beside it is four digits and takes only
   what it needs. Without this they would split the row evenly, because
   `.guided-row label` is `flex: 1 1 8rem` for the Born/Died pairs. */
/* THE CAPTION SETS THE WIDTH, and the box underneath is as wide as the
   caption needs (user, 2026-09-12: "this needs to be one line, make field
   beneath longer if needed"). Four digits want a narrow box, but "Year they
   wrote it (optional)" is what has to fit - and a fixed basis was no good:
   `flex: 0 1 12.5rem` still SHRINKS, so a narrower window squeezed the
   column and the caption wrapped again. `0 0 auto` with the label set
   `nowrap` keeps the caption whole, and the basis is measured rather than
   guessed: the caption is 197px, so 12.5rem (200px) holds it with a little
   to spare. `flex-basis: auto` was tried and is wrong here - on a wrapping
   flex container it resolved to 394px, which ate the row and squeezed the
   NAME down to 180. Where there is genuinely no room, `.guided-row` wraps
   this onto a line of its own rather than breaking the caption. */
/* A four-digit year does not need a share of the row. Born and Died sit
   beside the name at the width they actually use, so the name keeps the
   rest - and "Born (optional)" still fits on one line.
   WORN IN BOTH PANELS now that the add-an-item panel has the width for a
   person on one line, so a year box is the same size wherever it is. */
/* A YEAR BOX IS AS WIDE AS THE WORDS OVER IT (user, 2026-09-13). Born and
   Died hold four digits and their captions - "Born (optional)" at 111px,
   "Died (optional)" at 105px - are the widest thing in the column, so 7rem
   is the whole of what either needs. What they gave back goes to the name,
   whose own caption is the longest on the row and was wrapping inside 135px.

   WRITTEN TO OUTRANK `.guided-row label.guided-year-box`, which sets the
   translation line's year to 12rem: that rule reached this row too and
   widened these to 192px, which is how a caption-sized box became half again
   the size of its caption. Same class, two lines, different jobs. */
[data-creator-row] .guided-row label.guided-year-box {
  /* 8rem, not the 7rem the caption strictly needs (user, 2026-09-13: the
     caption "is longer than the field now"). Measured, 7rem was 1px wider
     than "Born (optional)" - arithmetically clear and visually flush, which
     is not the same thing: a box that ends exactly where the words over it
     end reads as too small for them. 8rem leaves 17px of air. */
  flex: 0 0 8rem; white-space: nowrap; }
/* THE NAME TAKES THE LARGER SHARE of what is left, and the nationality the
   rest: one is a person's full name and the other is a word.

   KEYED ON THE FIELD, NOT ON ITS POSITION. Written as `:first-child` and
   `:nth-child(4)` these reached the creator's SECOND row as well - the one
   that asks the year and the note - and gave the year the name's width
   while the note kept a default meant for a short box. A creator is two
   rows, so a rule about the first one has to say which fields it means.
   `:has()` is how the rest of this sheet asks that question. */
[data-creator-row] .guided-row > label:has(> input[name$="creator_name"]) {
  flex: 2 1 14rem; }
[data-creator-row] .guided-row > label:has(> input[name$="creator_nationality"]) {
  flex: 1 1 9rem; }
/* And the credit's own row: a year is four digits, the note is a sentence. */
[data-creator-row] .guided-row > label:has(> input[name$="creator_note"]) {
  flex: 1 1 24rem; }
/* A language is one word off a list, so it takes a language's width and
   leaves the rest to the title beside it - the same bargain the year
   boxes strike with the name on the row below. */
/* THE LANGUAGE AND THE YEAR MATCH (user, 2026-09-13), and the title gives
   up the difference. 14rem was set when the line held a title and a
   language and nothing else; the line has three boxes now, and two of them
   asking for one short answer each should look alike rather than each
   taking whatever its own caption happened to need.

   Written as the same length in both places rather than as one rule over
   both: they are the same WIDTH, not the same KIND of box - a language is
   a word from a list and a year is four digits - so a later change to one
   should not silently move the other. */
.guided-card .guided-lang-box { flex: 0 0 12rem; }
/* Clear of the shaded box it acts on, the way Add another creator stands
   clear of the creator it follows. */
.guided-card .guided-add-more { margin-top: 0.9rem; }
/* A meter is seven characters and a fill-it-in button under it, so it
   takes a meter's width and leaves the melody's name the rest. The row
   aligns on its TOP, not its bottom: each of these two boxes carries its
   own note underneath, and bottom-aligning would push the shorter box
   down to meet the taller one's note. */
.guided-card .guided-melody-row { align-items: flex-start; }
/* THE METER VERDICT: its own line at the foot of the row, ending where the
   meter's column ends, and red because it is a disagreement rather than a
   remark (user, 2026-09-12). `flex: 1 0 100%` is what gives it the line -
   the row wraps, so a full basis puts it under everything above it. */
/* The pill that goes to the other meter, riding in the note's last line:
   held to that line's height so it does not push the row apart, and given
   a word's worth of space off the sentence it follows. */
.guided-meter-fix {
  margin-left: 0.5rem; vertical-align: middle; line-height: 1.1;
  text-transform: none; letter-spacing: normal; }
.guided-melody-row > .guided-meter-note {
  flex: 1 0 100%; text-align: right; color: var(--error);
  /* CLOSE TO THE BOX IT IS ABOUT, not to the row below (user, 2026-09-12).
     It sat 34px under the meter and flush against Key - nearer the fields
     it says nothing about than the one it does. The gap above it is not
     its own: it is the labels' 12px bottom margin plus the row's 16px
     row-gap, neither of which this line wants, so the negative top margin
     takes most of that back and the bottom margin buys the separation
     from the next row instead. */
  margin: -1.1rem 0 0.75rem; }
/* NARROWER NOW THE PILL SHARES THE ROW (user, 2026-09-12: "what if the
   melody title field and the meter field were shortened a bit"). A meter is
   seven characters, so 12rem is still far more than it needs, and what it
   gives up goes to the button beside it rather than to the name. */
.guided-card .guided-meter-box { flex: 0 0 12rem; }
.guided-creator-rows .guided-creator-year {
  flex: 0 0 12.5rem; white-space: nowrap; }
/* BOXES BOTTOM-ALIGNED, because captions differ in height: "Who wrote it
   (required)" takes two lines where "Born (optional)" takes one, and
   without this its box hangs below the row it belongs to. Keyed on the
   creator-row attribute rather than the creator step's container, so the
   add-an-item panel - which asks the same five questions - gets the same
   alignment instead of a second rule saying the same thing. */
[data-creator-row] .guided-row label > input { margin-top: auto; }
/* THE 'WAS THIS ALTERED' QUESTION, which on the one-page forms is a bare
   "alt." tick sitting inline in a compact row. Here the row is a stack of
   labelled questions, and `.item-row .checkbox-label` strips the margin a
   checkbox needs when it has a line to itself - so it ended up flush
   against Remove, which is a button that deletes the whole creator. Given
   room, given the body colour rather than muted grey so it reads as a
   question, and allowed to wrap, because it is a sentence now. */
/* A DIFFERENT SUBJECT, SET APART (user, 2026-09-12: "this part is asking now
   doing something different"). Everything above it is the person named at the
   top of the block and the credit they hold; this is about SOMEBODY ELSE, and
   it ran straight on from the credit boxes with nothing between them.

   A rule and room above it whether it is open or shut - and once open, the
   --card-alt tint this app already uses for a block of a different kind
   (.guided-frame-next), so the boxes inside plainly belong to the other
   person. `:has()` reads the tick box's own state, the same way the +/-
   marker does, so the panel cannot be tinted while the box says otherwise. */
.guided-creator-rows .guided-alt {
  margin: 1.4rem 0 0; padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  /* The button and the line that says when to press it, side by side; what
     the button opens takes a line of its own below them. */
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; }
.guided-creator-rows .guided-alt:has(input.alt-row-checkbox:checked) {
  background: var(--card-alt); border-radius: var(--radius);
  border-top-color: transparent;
  padding: 0.6rem 1rem 1rem; }
/* THE THIRD OF THE SCREEN'S THREE "+" CONTROLS (user, 2026-09-12: "it's not
   apparent enough, or clear enough what this is for and what I'm supposed to
   click on"). `+ Second nationality` and `+ Add another creator` are both
   plainly things to press; this was a bare tick box with a sentence beside
   it, which reads as fine print. Same hand as the second-nationality fold, so
   the page has ONE way of saying "there is more here" rather than three.

   THE BOX IS STILL THE CONTROL - it is what posts, what the keyboard
   reaches and what a screen reader announces. It is taken out of the
   PICTURE, not out of the form: `opacity: 0` over the marker rather than
   `display: none`, which would drop it out of the tab order. */
/* A BUTTON, so `.btn` supplies the border, the background and the size and
   this only has to place the +/- sign and hold the hidden box. The small-caps
   hand is gone with it: button text is what the button beside it uses. */
.guided-card label.alt-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  position: relative; margin: 0.4rem 0;
  text-transform: none; letter-spacing: normal; line-height: 1.4; }
.guided-card label.alt-toggle > input[type="checkbox"] {
  position: absolute; left: 0; width: 1em; height: 1em; margin: 0;
  opacity: 0; cursor: pointer; }
.guided-card label.alt-toggle::before {
  content: '+'; color: var(--accent); font-weight: 600; }
/* The open sign. `:has()` reads the box's own state, so the marker cannot
   drift from what is actually checked the way a scripted class would. */
.guided-card label.alt-toggle:has(input:checked)::before { content: '−'; }
/* Focus has to be visible, since the box it belongs to is not. */
/* A BUTTON OPEN AS WELL AS SHUT (user, 2026-09-12: "plus, it should be a
   button"). Open, this used to shed its border and read as the panel's
   heading, on the reasoning that a control already used need not still look
   pressable. It does: this one closes again, and a heading does not offer
   that. The prefix is what says which way it goes - a + to open, a - to
   close - so the two states differ by a character rather than by whether
   the thing looks like a control at all. */
.guided-card label.alt-toggle:focus-within {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* (The rule that gave this sentence body-sized ink is gone: it is a "+"
   control now, not a sentence, and it outranked the toggle's own size.) */
.guided-creator-rows .alt-subentry .checkbox-label { white-space: normal; }
/* Remove is the row's own action, below a rule, where it cannot be hit
   while reaching for the tick box above it. */
/* THE NUMBER AT ONE END, REMOVE AT THE OTHER. The header is the only line
   in a creator's block that belongs to the creator as a whole rather than
   to one of their fields, which is where a control acting on the whole of
   them goes. `space-between` rather than a margin, so Remove holds the
   block's right edge whatever the number beside it says - and with a
   single creator, where there is no number, it holds that edge alone. */
.guided-creator-rows .guided-creator-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.5rem; }
.item-row .folk-row-field { flex: 1 0 100%; white-space: normal; }
/* A creator's "alt." checkbox reveals a sub-entry recording who altered the
   work and when - itself nestable (an alteration can be altered again), so
   .alt-subentry blocks nest inside one another; each level's left border/
   indent accumulates naturally through that nesting. The flex-basis is
   shrunk by exactly the left margin (not a plain 100%) so the margin never
   pushes the box past its parent's right edge - this is what was letting
   the checkbox/fields spill outside the form at every nesting level. */
.alt-subentry {
  flex: 1 0 calc(100% - 1.25rem); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  min-width: 0; max-width: calc(100% - 1.25rem);
  margin: 0.35rem 0 0 1.25rem; padding: 0.4rem 0 0.1rem 0.75rem; border-left: 2px solid var(--border);
}
.alt-subentry input[type="text"] { flex: 1 1 6rem; min-width: 0; margin-top: 0; }
.alt-subentry input[name$="_name"] { flex: 1 1 8rem; }
.alt-subentry input[name$="_note"] { flex: 1 1 5rem; }
.alt-subentry .checkbox-label { white-space: nowrap; margin: 0; }
/* BORN AND DIED ON A CREATOR OR REVISOR ROW (user, 2026-10-18). Three or four
   digits each, so a fixed narrow box: the name, the nationality and the note
   keep the room. After the two rules above, which they share a weight with. */
.item-row input[name$="_birth_year"], .item-row input[name$="_death_year"] {
  flex: 0 1 4.6rem; min-width: 3.4rem; }
/* "Year written" - this work's year, not the person's - wide enough to say so. */
.item-row input[name$="creator_year"] { flex: 0 1 7rem; min-width: 6.9rem; }
.item-row input[name$="_nationality"] { min-width: 6.5rem; }
/* The rarely-used second nationality yields to the name, now the row holds two more boxes. */
.item-row > input[name$="_nationality_secondary"] { flex: 0 1 8.6rem; }
/* A YEAR THE REGISTRY RECORDS, shown and not edited here (nationality-autofill.js).
   !important because the base field rule's seven :not()s outweigh any class. */
input.lifespan-locked {
  background: var(--card-alt) !important; color: var(--muted) !important; cursor: default; }
/* AND THE LINE SAYING SO, a line of its own under the row's boxes (the script
   places it: before a Folk Melody tick, the next level or the alteration panel). */
.lifespan-lock-hint { flex: 1 0 100%; margin: -0.15rem 0 0.1rem; font-size: 0.8rem; }
/* AT PHONE WIDTH THE ROW WRAPS IN WHOLE LINES: the name on its own, then Born,
   Died and Year written, then the nationalities, then the note with Remove and
   alt. - rather than a box squeezed to a sliver at the end of a line. */
@media (max-width: 700px) {
  .item-row > input[name$="creator_name"], .alt-subentry > input[name$="_name"] { flex: 1 1 100%; }
  .item-row input[name$="_birth_year"], .item-row input[name$="_death_year"] { flex: 0 1 4.2rem; }
  .item-row input[name$="creator_year"] { flex: 1 1 6.4rem; min-width: 6.4rem; }
  .item-row > input[name$="_nationality"], .item-row > input[name$="_nationality_secondary"] { flex: 1 1 7rem; }
  .item-row > input[name$="creator_note"] { flex: 1 1 7rem; }
}
[data-creator-row] > .lifespan-lock-hint, .guided-creator-rows .lifespan-lock-hint { margin: 0.15rem 0 0.75rem; }

/* Per-stanza lyrics editor (intake + work forms): one box per stanza, its
   number derived purely from position, reordered with Move up/down. */
.stanza-rows { margin-bottom: 0.5rem; }
.stanza-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.75rem; margin-bottom: 0.6rem; }
.stanza-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.stanza-number { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.stanza-row-actions { display: flex; gap: 0.4rem; }
.stanza-row-actions button[disabled] { opacity: 0.35; cursor: not-allowed; }
.stanza-row textarea { margin-top: 0; }

/* THE STANZA PANELS on the work edit form (user, 2026-09-09). One panel per
   stanza, dragged by its grip to reorder and deleted through a dialog - so the
   save is told what happened to each stanza instead of inferring it from the
   text, and everything numbered by stanza can follow.

   Deliberately NOT sharing .stanza-row above. That is the retired editor, and
   a document-level click listener still binds to its class names; two editors
   answering the same click is the sort of thing that only shows up once
   something is deleted twice. */
.stanza-panels { margin-bottom: 0.6rem; }
.stanza-panel {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  /* Room between panels as well as a stronger edge: an 11px gap between
     two boxes of the same weight is what made the column read as one
     ruled list rather than as separate stanzas. */
  padding: 0.6rem 0.75rem 0.75rem; margin-bottom: 1.25rem;
  background: var(--card);
}
.stanza-panel-head {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem;
}
/* The grip is the ONLY draggable part: a panel draggable all over cannot have
   text selected inside its own textarea, which is what this form is for. */
.stanza-panel-grip {
  cursor: grab; color: var(--muted); font-size: 1.05rem; line-height: 1;
  letter-spacing: -0.25em; padding-right: 0.3em; user-select: none;
}
.stanza-panel-grip:active { cursor: grabbing; }
.stanza-panel-number {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted);
}
/* WHAT A DELETE WOULD COST, on the panel and not only in the dialog that
   follows it: which stanzas carry passages is worth knowing BEFORE reaching
   for Delete, not as an answer to having reached for it. */
.stanza-panel-refs {
  font-size: 0.72rem; color: var(--accent); line-height: 1.5;
  border: 1px solid var(--accent-light); border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
/* BOTH ACTIONS TO THE RIGHT (user, 2026-09-09: "these buttons seem
   misplaced"). The Add pill was next in the flex line after the stanza's
   number, so it sat jammed against the label while Delete stood alone at
   the far edge - two controls doing the same kind of thing, at opposite
   ends. The pill takes the free space instead, and the pair reads as the
   panel's own actions.
   Only inside a panel head: in a scripture block the pill is one half of
   a space-between line and must not claim the gap. */
.stanza-panel-head .scripture-pill { margin-left: auto; }
.stanza-panel-head .stanza-panel-delete { margin-left: 0.5rem; }
.stanza-panel-delete {
  margin-left: auto; font-family: inherit; font-size: 0.78rem; line-height: 1.4;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted); cursor: pointer;
}
.stanza-panel-delete:hover { border-color: var(--error); color: var(--error); }
/* THE STANZA AND ITS PASSAGES, SIDE BY SIDE (user, 2026-09-09). The scripture
   editor used to print the stanza again beside its own rows, which put every
   stanza on this form twice; the passages moved in here instead, so the words
   are written once and what is said about them sits alongside. One column
   where there are no passages to show - and on a narrow screen, where two
   columns of this width would leave neither readable. */
.stanza-panel-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.stanza-panel-body.has-scripture {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 1.5rem; align-items: start;
}
@media (max-width: 900px) {
  .stanza-panel-body.has-scripture {
    grid-template-columns: minmax(0, 1fr); gap: 0.9rem;
  }
}
/* TWO CLASSES, so this outranks `.stacked-form textarea`, which sets a
   0.3rem top margin and is declared later in this file. Without it the
   stanza starts 4.8px below its own passages, and two columns that do
   not begin level read as a mistake. */
.stanza-panel .stanza-panel-body textarea { margin-top: 0; }
.stanza-panel-dragging { opacity: 0.45; }
/* MARKED FOR DELETION, AND STILL HERE (user, 2026-09-09). Confirming a
   delete used to tear the panel out, which said the opposite of what the
   dialog had just promised: that nothing happens until Save. The card stays,
   crossed with thin diagonal lines - a mark, not a removal, and legible as
   one at a glance down a column of otherwise identical cards. */
.stanza-panel-deleting { position: relative; border-color: var(--error); }
.stanza-panel-deleting::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  /* Hard stops, and rgba rather than `transparent`: a gradient interpolating
     to `transparent` runs through transparent BLACK in some engines and
     fringes the lines grey. */
  background: repeating-linear-gradient(45deg,
    rgba(163, 61, 61, 0) 0, rgba(163, 61, 61, 0) 7px,
    rgba(163, 61, 61, 0.2) 7px, rgba(163, 61, 61, 0.2) 8px);
}
.stanza-panel-deleting .stanza-panel-number { color: var(--error); }
/* A disabled textarea is painted washed-out by the browser, on its own grey.
   Both are overridden: the hatching is what says this stanza is going, and a
   second treatment underneath it only makes the words harder to read - which
   is the one thing somebody deciding whether to restore it needs to do.

   `:disabled` IS LOAD-BEARING, not description. Without it this is (0,2,1) -
   the same weight as `textarea:disabled` further down the file, which is
   declared later and so won the tie, and the grey it sets stayed. It is also
   the truer sentence: the box is grey because it is disabled, and it is
   disabled because the stanza is marked. */
.stanza-panel-deleting textarea:disabled {
  background: transparent; color: var(--muted); -webkit-text-fill-color: var(--muted);
}
/* ABOVE THE HATCHING. The one control still live on a struck-through card
   cannot itself be struck through, or it reads as disabled like everything
   round it. A z-index needs a position to act on. */
.stanza-panel-deleting .stanza-panel-delete {
  position: relative; z-index: 1; background: var(--card);
  border-color: var(--error); color: var(--error);
}

/* Per-file upload rows in the Files modal: one file input per line, plus an
   "Upload another file" button - same add/remove pattern as the stanza
   editor above, just without reordering or numbering. */
.file-upload-rows { margin-bottom: 0.5rem; }
.file-upload-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.file-upload-row input[type="file"] { flex: 1; margin-top: 0; }
/* Remove appears only once a file is chosen. The attribute needs this rule to
   win, because .btn carries a display of its own (spec s66). */
.file-upload-remove[hidden] { display: none !important; }

/* File listing inside the Files modal, grouped into one section per file type */
.file-type-section + .file-type-section { margin-top: 1rem; }
.file-type-heading {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 600; margin: 0 0 0.3rem;
}
.file-list { list-style: none; padding: 0; margin: 0 0 0.75rem; }
/* ONE FILE, ONE BLOCK (user, 2026-09-10: "each file should have a shaded
   background with white space between files so they don't visually run
   together", then "files here also need shaded backgrounds" of the card on the
   page). A dashed hairline was doing this job and was not enough: in the
   Manage files dialog every name carries three controls under it, and even a
   bare list of names ran together. Shading each file and leaving air between
   them says where one ends; the dashed rule then has nothing left to do. */
.file-list li {
  background: var(--card-alt);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.4rem;
  overflow-wrap: break-word; word-break: break-word;
}
.file-list li:last-child { margin-bottom: 0; }
.file-list-line { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* THE PICKER WEARS THE BUTTON. A <label> is the only thing that opens a
   file dialog without scripting, so the control reading 'replace file' has
   to BE the label - which means borrowing the pointer a real button would
   have had, and keeping the hidden input from claiming any width. */
.file-replace-pick { cursor: pointer; }
.file-replace-form { display: inline; }
.file-list li audio { width: 100%; margin-top: 0.4rem; }
.file-thumb { max-width: 100%; border-radius: 4px; }

/* A work can hold several notation images - a transposition is the same
   arrangement in another key (spec section 33). Without separation the two
   staves read as one continuous composition, which is exactly what they are
   not. Each setting is its own figure: spaced, and divided by a rule when
   another follows. */
.music-figure { margin: 0 0 1.5rem; }
.music-figure + .music-figure { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.music-figure:last-child { margin-bottom: 0; }
/* Caption ABOVE its image, so it is read before the staves rather than after.
   The margin goes below it for the same reason: with equal space either side
   a caption between two figures reads as belonging to the one it follows,
   which is the wrong one. */
.music-figure figcaption {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.file-display-check { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--muted); white-space: nowrap; margin-left: auto; max-width: 100%; min-width: 0; }
/* A <select> sizes itself to its LONGEST OPTION, and one of these options is a
   whole book's name and number ("Songs and Hymns of Zion 2008 Supplement 1
   #709") - which made a control naming one short choice wider than the dialog
   holding it (user, 2026-09-10: "the drop-down is too long"). Capped here; the
   list it drops down still shows every option in full. */
.file-display-check select { max-width: 15rem; min-width: 0; }
/* Canonical notation - the collection's record of a work's music, which
   only an Admin may delete or replace. Quiet on purpose: it is a statement
   of standing, not a warning, and it sits in a row of small controls. */
.file-canonical-badge { font-size: 0.72rem; line-height: 1; white-space: nowrap;
  padding: 0.15rem 0.4rem; border-radius: 0.6rem; border: 1px solid var(--line);
  background: var(--card-alt); color: var(--muted); letter-spacing: 0.02em; }
/* The canonical toggle is pushed to the right edge of the file row. The
   row is a wrapping flex line, so the free space collects in front of
   this and the pill lands hard right whether or not the row wrapped. */
.file-canonical-toggle { margin-left: auto; }
/* A card's title row, with its controls pushed to the right of it: the
   MIDI player beside Music, Regenerate beside Details. The heading keeps
   its own margins so nothing about the cards below it shifts. */
/* THE RULE UNDER THE HEADING SPANS THE CARD, not the word (user,
   2026-09-25: "this rule needs to match the width of the other rules in
   the card"). `.card h2` carries the border, and in this head the h2 is
   a FLEX ITEM beside the tools - so it shrank to its text and underlined
   "Details" alone, 64px against the 464px of every group rule below it.
   The border belongs to the row, which is the width those rules are. */
.wd-card-head { display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem; margin-bottom: 0.9rem; }
/* AND THE HEADING GIVES ITS OWN UP - `.card .wd-card-head`, not
   `.wd-card-head`, because `.card h2` is declared later in this file at
   equal specificity and would win the tie. The note two rules above
   records the same collision costing `margin-right: auto`; measured here
   it drew a second rule 64px wide under the first. */
.card .wd-card-head h2 { border-bottom: 0; padding-bottom: 0;
  margin-bottom: 0; }
/* PUSHED FROM THE TOOLS, NOT FROM THE HEADING. `margin-right: auto` on the
   h2 is overruled: `.card h2` is declared later in this file at equal
   specificity and sets `margin: 0 0 0.9rem`, which puts margin-right back
   to zero - the same collision the note at the top of this file records
   for `.card-head h2`. Putting the auto margin on the tools settles it
   without a specificity fight, and is what the canonical pill already
   does one card away. */
.wd-head-tools { margin-left: auto; }
/* The Details card in two: what the work IS on the left, where it APPEARS
   on the right. One column on a narrow screen, where side-by-side
   definition lists would each be too cramped to read. */
/* THE DETAILS COLUMN STICKS BESIDE THE WORDS (user, 2026-09-16). It is what
   replaces the height-matching the Full text box used to do: the metadata
   stays in view while a long hymn is read, and the hymn is no longer cut to
   a window to achieve it.

   `align-self: start` IS NOT OPTIONAL. A grid item stretches to its row by
   default, so the card would be exactly as tall as the row and have nothing
   to travel through - sticky would compute perfectly and never move.

   OFF WHERE THERE IS NO SECOND COLUMN. `.grid-2` folds to one column at
   800px, and a sticky card in a single stack would hover over the content
   below it rather than beside anything. */
.wd-details-sticky { position: sticky; top: 1rem; align-self: start; }
/* AND THE VALUES KEEP A READABLE MEASURE. Stacking the groups cost nothing
   on a lyrics page, where Details is half the width already - but a melody,
   an arrangement and an original language work draw this card FULL WIDTH,
   and a single column there stretched every value across 897px: 'Finnish'
   sat a third of a metre from its own label. Capped, the label and its value
   stay in one glance at any page width, and the cap is wider than the
   half-width card so it changes nothing on the page that prompted this. */
.wd-details-card .def-list { max-width: 34rem; }
/* THE JUMP LIST IS A BUTTON ON THE TITLE ROW (user, 2026-09-16). It was a
   card in the sticky column: six links standing open above the work's own
   Details, which gave navigation the same weight as the record it sits
   beside. Folded into a menu it costs one line of the header.

   THE PANEL OPENS TO THE LEFT of its button - `right: 0`, not the topbar's
   `left: 0` - because this button sits at the right edge of the page and a
   panel hung from its left corner would run off it.

   The header is already `justify-content: space-between`, so nothing here
   needs to align it. */
.wd-jump { position: relative; }
.wd-jump-panel {
  display: none; position: absolute; top: 100%; right: 0;
  margin-top: 0.4rem; min-width: 14rem; z-index: 30;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 0.4rem 0; }
.wd-jump.is-open .wd-jump-panel { display: block; }
.wd-jump-panel a { display: block; padding: 0.35rem 0.9rem;
  color: var(--ink); font-size: 0.88rem; white-space: nowrap; }
.wd-jump-panel a:hover { background: var(--paper); text-decoration: none; }
/* AND A VERY LONG TEXT FOLDS. The mask says there is more below without a
   hard edge that could read as the end of the hymn; the button beneath says
   how much more, in stanzas, because that is the unit the reader counts in.
   The whole text stays in the document - this hides it, it does not remove
   it - so selecting and copying the hymn still takes all of it. */
.lyrics-text.is-clamped { max-height: 30rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent); }
.wd-showall { margin-top: 0.7rem; }
@media (max-width: 800px) {
  .wd-details-sticky { position: static; }
}

.wd-head-tools { display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; }
audio { width: 100%; }

/* "Manage uploaded files" trigger at the bottom of the Details card */
.details-files-trigger { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }

/* Combined Music panel (melody/arrangement pages): audio player above image,
   with muted placeholder text standing in for whichever one is missing. */
.music-panel audio { margin-bottom: 0.85rem; }
.music-panel p.muted { margin-bottom: 0.85rem; }
.music-panel > :last-child { margin-bottom: 0; }

/* Generic centered modal (currently: the work page's Files manager) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 32, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal-dialog {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); padding: 1.25rem 1.5rem;
  max-width: 480px; width: calc(100% - 2rem); max-height: 85vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-head button { font-size: 1.3rem; line-height: 1; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; }
/* EVERY DIALOG'S CLOSE X, IN THE DIALOG'S TOP-RIGHT CORNER (user, 2026-10-24, of the Stanzas dialog's x - the
   letter as underlined link text, on the row's baseline: "the 'x' feels like it needs to be higher"; then "it feels
   like the 'x' needs to go more into the corner, or at least closer to the right edge... right now it's not clear if
   it closes the dialog or somehow clears the button it's next to"; drawn r98 and r99, "yes"). Two crossed bars
   centred in a round box, no underline, muted, the accent on hover; pinned 9px from the dialog's top and right
   edges (its 1px border and 0.5rem), apart from the head's row, which keeps clear of it so nothing in the head
   runs under it. ONE rule for every dialog's x, the link-styled ones and the plain ones alike - and, approved with
   round 7 the same day, for EVERY kind of dialog, so no x in the app is drawn another way: a .modal-head's (the
   app's own dialogs), a .registry-dialog-header's (the registry and agreement dialogs, the Files card's Upload
   MusicXML, a track's recording), a .wp-dialog-header's (the work pickers, guided intake's book dialog and its
   picture, the scripture editor's two) and a scripture passage box's (the floating box and the one that opens in
   place under a line). The map pin's box keeps its own drawn x. Each x keeps its own id and wiring; the glyph
   stays in the markup for a reader without styles, and the button's name is still its aria-label. Only a box
   that has such an x becomes its positioning box, so no other dialog's layout can move; the floating passage box
   is positioned already. The dialogs' sides are 1.5rem, so their heads keep 1.6rem clear; the passage box's are
   0.85rem, so its head keeps 2.25rem - the same 0.9rem between the head's last word and the x. Where the box
   has no head line (a person's or a place's words, one column) the x sits in the column's head, which is ruled
   underneath: that head stops short of the x, so its rule does not run under it. */
.modal-dialog:has(.modal-head button[aria-label="Close"]),
.registry-dialog:has(.registry-dialog-header button[aria-label="Close"]),
:is(.wp-dialog, .guided-lightbox-dialog):has(.wp-dialog-header button[aria-label="Close"]),
.scripture-passage.sp-inplace:has(button[aria-label="Close"]) { position: relative; }
:is(.modal-head, .registry-dialog-header, .wp-dialog-header):has(button[aria-label="Close"]) { padding-right: 1.6rem; }
.scripture-passage .sp-head:has(button[aria-label="Close"]) { padding-right: 2.25rem; }
.scripture-passage .sp-colhead:has(button[aria-label="Close"]) { margin-right: 2.25rem; }
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"] {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 1.7rem; height: 1.7rem; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 0; text-decoration: none; border: none; border-radius: 999px; background: none; color: var(--muted);
}
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"]:hover,
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"]:focus-visible {
  background: rgba(122, 59, 46, 0.08); color: var(--accent);
}
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"]::before,
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"]::after {
  content: ""; position: absolute; width: 0.9rem; height: 1.6px; border-radius: 1px; background: currentColor;
}
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"]::before { transform: rotate(45deg); }
:is(.modal-head, .registry-dialog-header, .wp-dialog-header, .scripture-passage) button[aria-label="Close"]::after { transform: rotate(-45deg); }
/* The dialog stacks three controls under every name - Show on page, Setting,
   delete - so its blocks want a little more room inside than the card's do.
   The shading itself is .file-list's, above. */
.modal-file-list { margin-bottom: 0.75rem; }
.modal-file-list li { padding: 0.55rem 0.7rem; margin-bottom: 0.45rem; }
.modal-actions { margin-top: 1rem; display: flex; justify-content: flex-end; gap: 0.5rem; }

/* A LONG WORD BREAKS RATHER THAN RUNNING OFF THE EDGE.

   Reported 2026-08-31: a "Saved <filename>.wav" dialog whose filename ran out
   through the side of the box. The filename is one unbroken word - underscores
   are not break opportunities - and the browser's default is to let such a word
   overflow rather than split it.

   The app is full of places this can happen, because it is full of names people
   supply: uploaded filenames, work titles, creator names, publication names.
   Injecting one long filename into every text holder on 13 pages and their
   dialogs found 98 containers that could not cope, across 17 different
   elements, every one of them at `overflow-wrap: normal`.

   So it is set ONCE, here, and inherited. It changes nothing for text that
   already fits - it only ever splits a word that would otherwise leave the
   box. `break-word` rather than `anywhere` deliberately: `anywhere` also feeds
   into intrinsic sizing and can make columns collapse narrower than intended.
   Where a flex or grid item still refuses to shrink, the companion is
   `min-width: 0` on that item, not a stronger break here.

   Three rules elsewhere in this file already say this for one element each
   (.file-list li, .ppv-search-preview, .pub-header-titletext). They are left
   alone: they now agree with the base rather than contradicting it, and the
   last of those needs `anywhere` for its own reason. */
body { overflow-wrap: break-word; }
/* NO PARAGRAPH ENDS ON ONE WORD ALONE (the user, 10/31/2026, of the Reference's intro: "resolve the 'it'
   orphan"): the browser balances a paragraph's last lines; one rule for every page, not one sentence. */
p { text-wrap: pretty; }

/* ...AND A FLEX ITEM WILL NOT SHRINK BELOW ITS LONGEST WORD.

   `min-width` is `auto` for a flex item, which means "never narrower than my
   contents" - the same trap as a grid's bare `1fr`, and the reason
   `overflow-wrap` alone does not save a heading in a flex row: the word breaks,
   but the item never narrows enough for the break to matter.

   These are the heads that carry a name somebody typed - a work title, a
   publication name, a dialog's subject. Everything else in this app that
   needed it already says so at its own rule. */
.page-header > *, .card-head > *, .wp-dialog-header > *,
.pub-about-head > * { min-width: 0; }

/* THE `hidden` ATTRIBUTE ACTUALLY HIDES THINGS.

   The browser's own [hidden]{display:none} is the weakest rule there is, so
   ANY class that declares a display of its own outranks it - and this app has
   many. The result is markup that says `hidden`, a script that sets
   `el.hidden = true`, and a box that stays on screen. It has now cost two
   user-visible bugs: an empty dialog on every page load (spec section 66) and,
   on 2026-08-31, the cross-reference picker's recording styles staying
   visible and ticked after their kind was unticked.

   Both were fixed one class at a time. This is the rule that stops the next
   one: `hidden` means hidden, everywhere, and a place that wants to override
   it must say so as loudly. Nothing in the app relies on showing an element
   it has marked hidden - checked by scanning every [hidden] element across
   15 pages and their dialogs, before and after.
   =================================================================== */
[hidden] { display: none !important; }

/* ===================================================================
   THE FIELD LOOK - applied by element and type, not by wrapper class.

   Measured across 14 pages and dialogs on 2026-08-31: 151 visible fields
   wearing 13 different looks. 44 of them - every field in a dialog built in
   JavaScript, plus the number and search boxes on the Add-track picker and
   the cross-reference picker - had NO app styling at all and fell back to the
   browser's own control: `2px inset #767676`, square corners, 1px of padding,
   13.3px Arial. Against the app's `1px solid #E4DCD1`, rounded, 8px padding,
   in the app's own face. That is the "old fashioned" look, and its cause is
   that every field rule in this stylesheet was scoped to a wrapper - a form
   with no `.stacked-form` around it, or a node created by a script, matched
   none of them and inherited nothing.

   So the base lives HERE, on the elements themselves. Specificity is the
   lowest there is (one element, one attribute), so every existing rule still
   wins where a field is deliberately different - the login box stays large,
   the filter bar's search stays compact. What changes is only what had
   nothing.

   `font: inherit` is the half that is easy to miss: form controls do NOT
   inherit the page's font, which is why several fields that DID have a border
   were still sitting in Arial while the page around them was not.
   =================================================================== */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="range"]),
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.55rem;
}
/* THE FILE PICKER, the last control still wearing the browser's own look
   (user, 2026-09-04: "the 'choose file' button looks old and outdated").

   The input itself carries no chrome: it already CONTAINS a button, and a
   bordered button inside a bordered field is two frames around one control.
   What it carries is the app's face and its muted colour, so "No file chosen"
   reads as the aside it is.

   One rule reaches all ten upload points in the app, including the two that
   are built by script and have no markup to edit. */
input[type="file"] {
  font: inherit; font-size: 0.9rem; color: var(--muted);
  background: transparent; border: 0; padding: 0; max-width: 100%;
}
/* The button, as .btn-sm draws one. `font: inherit` rather than a size of its
   own, so a picker that has deliberately been made small takes its button
   down with it instead of arguing with it. Written twice, not as one selector
   list: an older WebKit that knows only its own prefix would throw away a
   rule that named the standard one beside it. */
input[type="file"]::file-selector-button {
  margin: 0 0.6rem 0 0; padding: 0.35rem 0.7rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font: inherit; cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
  margin: 0 0.6rem 0 0; padding: 0.35rem 0.7rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font: inherit; cursor: pointer;
}
/* Hover on the INPUT rather than on the button: the whole control is one
   target, and the filename beside the button is part of what you are
   pointing at. */
input[type="file"]:hover::file-selector-button {
  border-color: var(--accent-light); box-shadow: 0 2px 6px rgba(43,38,32,0.08);
}
input[type="file"]:hover::-webkit-file-upload-button {
  border-color: var(--accent-light); box-shadow: 0 2px 6px rgba(43,38,32,0.08);
}
input[type="file"]:active::file-selector-button { box-shadow: none; }
input[type="file"]:active::-webkit-file-upload-button { box-shadow: none; }
/* Keyboard focus lands on the input, so the ring has to be drawn there - a
   focus style on the pseudo-element alone is never reached. */
input[type="file"]:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 2px; border-radius: var(--radius);
}
/* Buttons do not inherit the page's face either. Measured 2026-08-31: 30 of
   1,315 buttons across five pages and their dialogs were still in Arial -
   the work-picker's close control, a publication row's remove button - which
   is the same fault as the fields and just as visible once you see it. */
button { font-family: inherit; }
/* A DISABLED BUTTON HAS TO LOOK DISABLED (user, 2026-09-09: "I can click
   the button, but nothing happens, no error message, nothing"). There was
   no rule for one anywhere in this file - the line below covers the fields
   and stops - so `Add to row` sat there in full-strength brown with a
   pointer cursor while the browser silently ate every click on it. A
   handler cannot report a click it never receives, so this is the only
   layer where it can be said at all.

   `[disabled]` as well as `:disabled`: they are the same thing on a button
   but not on an element that only carries the attribute, and the pair costs
   nothing. !important on the cursor because .btn sets `pointer` and several
   variants set it again. */
.btn:disabled, .btn[disabled] {
  opacity: 0.45; cursor: not-allowed !important; box-shadow: none;
}
.btn:disabled:hover, .btn[disabled]:hover {
  filter: none; transform: none;
}
/* WHAT IS MISSING, beside the button that is waiting for it. Greying the
   button answers "can I press this"; it does not answer "what do I do
   instead", which is the question somebody staring at a dead button has. */
.wp-confirm-hint { font-size: 0.8rem; color: var(--muted); margin-left: 0.15rem; }
input:disabled, select:disabled, textarea:disabled {
  background: var(--bg); color: var(--muted); cursor: not-allowed;
}
/* A PLACEHOLDER IS NOT A LABEL, and using one colour for both made every
   empty field look filled in (user, 2026-09-02) - "1-3,7" in the verses box
   read as something they had typed. --muted is deliberately dark: the palette
   comment records it being raised from #8a8073 to #6b6156 precisely so LABELS
   and secondary text clear 4.5:1. A hint inside a field wants the opposite,
   and is exempt from that floor because it is never the only way to know what
   a field is for - every one of these has a visible label as well.
   3.1:1 against white: clearly a hint, still readable. */
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
/* One focus ring for everything, rather than the browser's per-control one. */
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
/* Ticks and radios in the app's own colour rather than the browser's blue -
   they appear in every dialog and were the last obviously foreign control. */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

.stacked-form label:not(.checkbox-label) { display: block; margin-bottom: 0.85rem; font-size: 0.88rem; color: var(--muted); }
/* LAYOUT only - block, full width, and the gap under its label. The look
   (border, radius, padding, font) is the base field rule's job; this used to
   restate it at 1rem/0.5rem and so made a third size. */
.stacked-form input, .stacked-form textarea, .stacked-form select {
  display: block; width: 100%; margin-top: 0.3rem;
}
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 700px) { .form-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Vertically centers the login card in the space below the header, rather
   than leaving it stranded near the top of a tall, otherwise-empty page. */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 220px); }
.auth-card {
  max-width: 380px; width: 100%; background: var(--card); border: 1px solid var(--border);
  padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(43,38,32,0.06);
}
.auth-card h1 { margin: 0 0 0.3rem; }
.auth-card .subtitle { margin-bottom: 1.5rem; }
.auth-card .btn-primary { width: 100%; margin-top: 0.4rem; padding-top: 0.65rem; padding-bottom: 0.65rem; }

.flash { padding: 0.7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.flash-success { background: #e3efe2; color: var(--success); }
.flash-error { background: #f6dede; color: var(--error); }
.flash-info { background: #e6eef5; color: #35618a; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

.checkbox-grid { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.3rem; }
.checkbox-grid label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; color: var(--ink); margin-bottom: 0; }

/* Accessibility: consistent focus ring across interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
/* Text fields additionally pick up the accent on their own border plus a
   soft glow when focused, so a long form makes it obvious which field has
   focus even at a glance, not just via the outline ring. */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(201,139,111,0.25);
}
/* THE RING IS DRAWN INSIDE A FIELD (user, 2026-09-07). An outline takes no
   space - it paints over whatever is beside it - so at `outline-offset: 1px`
   a focused field put a hard accent line straight through the label above it,
   and through its neighbours left and right wherever fields sit close
   together. Reported across several pages, not one.

   Inside rather than tighter: any positive offset still overlaps something
   somewhere, and the alternative - finding every cramped label in the app and
   adding a margin - is a fix that has to be repeated for every field added
   afterwards. The soft glow stays outside, being a 25% tint that reads as a
   halo rather than as a line through the words.

   Buttons and links keep the outside ring: an inset one on a small button
   looks cramped, and on an inline link it would strike through the text. */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-offset: -2px;
}

/* Plain-text work-type labels on the work detail page: keep the per-type
   color cue, but as small uppercase text rather than a pill. */
.type-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.type-label.type-original_language { color: var(--type-original-language-fg); }
.type-label.type-melody { color: var(--type-melody-fg); }
.type-label.type-arrangement { color: var(--type-arrangement-fg); }
.type-label.type-lyrics { color: var(--type-lyrics-fg); }
.removed-note { color: var(--error); font-size: 0.55em; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; }

/* Per-work-type color coding, reused on list tags, detail badges, and related-work tags */
.tag-original_language { background: var(--type-original-language-bg); color: var(--type-original-language-fg); }
.tag-melody { background: var(--type-melody-bg); color: var(--type-melody-fg); }
.tag-arrangement { background: var(--type-arrangement-bg); color: var(--type-arrangement-fg); }
.tag-lyrics { background: var(--type-lyrics-bg); color: var(--type-lyrics-fg); }
/* A work un-archived automatically because its copyright term expired, shown
   on "Works without a publication" for the rest of the release year. Green
   rather than a type colour: it is news about the work, not a kind of work. */

/* "Unable to secure rights" opens the #rights-blocked-overlay modal and reuses
   that dialog's existing styles, so there is nothing extra to define here. */

/* The "Works without a publication" section on the Publications landing page.
   Its heading is a link, so it has to read as a heading rather than as body
   copy that happens to be blue - the other sections' headings are plain text
   that toggles a disclosure, and this one must not look like a different kind
   of thing sitting among them. */
.pub-unassigned-link { color: inherit; text-decoration: none; }
.pub-unassigned-link:hover,
.pub-unassigned-link:focus-visible { text-decoration: underline; }
/* Matches the negative top margin the sections' own intro copy uses, so the
   note sits under the header row rather than floating away from it. */

/* Impact summary list inside rename/remove confirmation dialogs */
.impact-list {
  max-height: 220px; overflow-y: auto; margin: 0 0 1rem; padding-left: 1.1rem;
  font-size: 0.88rem;
}
.impact-list li { margin-bottom: 0.2rem; }

/* Inline rename on the admin lookup lists */
.lookup-edit-form { display: inline-flex; gap: 0.4rem; align-items: center; }
/* REMOVE ON A FEEDBACK OUTCOME THAT NOTES HAVE (the user, 11/13/2026: "This should throw a dialog asking what to do:
   leave the old (existing) value, replace with a new value, or set back to 'new'"): admin_lookup.html's three
   answers in a column, each an outlined choice the dialog's width (.outlined-choice: outlined, and tinted when
   chosen) - its words, and under them a smaller line, muted until it is chosen. The second's select is drawn inside
   its box, under its words: the label's neighbour, not inside it, so the label names its radio alone - laid over
   the room the label keeps for it at its foot. */
.lookup-notes-choices { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1rem; }
.lookup-notes-choices label.outlined-choice { flex-direction: column; align-items: flex-start;
  justify-content: flex-start; gap: 0.1rem; text-align: left; }
.lookup-notes-small { font-size: 0.82rem; font-weight: 400; color: var(--muted); }
label.outlined-choice:has(input:checked) .lookup-notes-small { color: inherit; }
.lookup-notes-move { position: relative; }
.lookup-notes-move > label.outlined-choice { display: flex; padding-bottom: 3rem; }
.lookup-notes-move > select { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.55rem; width: auto;
  height: 2.1rem; margin: 0; padding: 0.2rem 0.5rem; font-size: 0.9rem; }
.lookup-edit-form input { padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; }
.lookup-edit-form[hidden] { display: none; }
/* KEPT, BUT NOT OFFERED (user, 2026-09-12). Beside the value, not a dim
   row: a faint row reads as a rendering fault, and what somebody comes
   back to this page for is the DATE - when did we stop using this. */
.lookup-retired { margin-left: 0.6rem; font-size: 0.85em; font-style: italic;
  white-space: nowrap; }
.lookup-actions { white-space: nowrap; }
.lookup-actions .link-btn { margin-right: 0.6rem; }
.lookup-actions .btn { margin-right: 0.4rem; }
/* THE COUNT COLUMN ON EVERY LOOKUP LIST (r143, 2026-10-25): how many records use each value, right-aligned
   under its heading, beside the name - which keeps two fifths of the width, as drawn. */
.lookup-table th.lk-name { width: 40%; }
.data-table th.lk-n, .data-table td.lk-n { width: 9rem; text-align: right; padding-right: 2.2rem;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Possible-duplicate hint under a lookup value, e.g. "8.7.8.7D" flagged
   against an existing "8.7.8.7 D" - reuses the "needs attention" status-pill
   color so it stands out from ordinary muted text without reading as a hard
   error. */
.lookup-dup-hint { font-size: 0.8rem; color: var(--status-revision_needed-fg); margin-top: 0.2rem; }
.lookup-dup-hint .link-btn { margin-left: 0.35rem; }

/* Former-name chips on a creator/revisor's edit row (admin_registry.html) */
.registry-alias-field {
  grid-column: 1/-1; display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.4rem; padding-top: 0.5rem; border-top: 1px solid var(--border);
}
/* Width only. It carried an INLINE font-size of 0.85rem, which is how it
   stayed the one field in the app at a different size after everything else
   was unified - an inline style outranks every rule in this file. */
.registry-alias-input { width: 150px; }
.registry-alias-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.registry-alias-chip .link-btn { color: var(--muted); }
.registry-alias-chip .link-btn:hover { color: var(--status-revision_needed-fg); }
/* ONE REGISTRY (2026-10-18): former names and other forms of a name, each under
   its own label; another form is never printed, so its chip reads quieter. */
.registry-alias-label { font-size: 0.82rem; color: var(--muted); min-width: 6.5rem; }
.registry-alias-field-more { border-top: 0; padding-top: 0.15rem; }
.registry-alias-chip-other { font-style: italic; border-style: dashed; }
/* The What-they-did filter under the registry's search box. */
.registry-did { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.6rem; font-size: 0.85rem; }
.registry-did .seg-switch { max-width: 100%; flex-wrap: wrap; }
.registry-did-n { opacity: 0.75; font-variant-numeric: tabular-nums; }
/* What they are, a second row of the same switch under What they did; the two labels one width, so both rows'
   choices start in line. */
.registry-did > .muted { min-width: 6.4rem; }
/* ONE ROW, A RULE BETWEEN THEM (the user, 11/5/2026), and the two rows again where one will not fit. */
.registry-filters { display: flex; align-items: stretch; margin-top: 0.6rem; }
/* Each label above its switch (the user, 11/5/2026). */
.registry-filters > .registry-did { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.registry-filters > .registry-did > .muted { min-width: 0; }
.registry-filters > .registry-did + .registry-did { margin-left: 1.1rem; padding-left: 1.1rem; border-left: 1px solid var(--border); }
.registry-filters .seg-switch { flex-wrap: nowrap; }
@media (max-width: 880px) {
  .registry-filters { display: block; margin-top: 0; }
  .registry-filters > .registry-did { margin-top: 0.6rem; }
  .registry-filters > .registry-did + .registry-did { margin-left: 0; padding-left: 0; border-left: 0; }
  .registry-filters .seg-switch { flex-wrap: wrap; }
}
/* AT PHONE WIDTH THE FOUR CHOICES STAY ON ONE ROW (user, 2026-10-18: "Both 48"
   broke inside the rounded border at 390): never wrapped inside the pill -
   narrower padding and a smaller face make the room, and the label takes a
   line of its own. */
@media (max-width: 600px) {
  .registry-did .seg-switch { flex-wrap: nowrap; }
  .registry-did .seg-opt { padding: 0.2rem 0.5rem; font-size: 0.8rem; }
  /* What they are has four longer choices: two by two at phone width, never cut off at the card's edge. */
  .registry-kind .seg-switch { display: inline-grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 0.8rem; }
  .registry-kind .seg-opt { text-align: center; }
  .registry-kind .seg-opt:nth-child(odd) { border-left: 0; }
  .registry-kind .seg-opt:nth-child(n+3) { border-top: 1px solid var(--line, #d8d2c8); }
}

/* ---- creator/revisor registry: toolbar, sorting, per-row dialog --------- */

/* The search box has the row to itself, and grows into the space it has; Add is on the heading's row. */
.registry-toolbar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.registry-toolbar .registry-search {
  flex: 1 1 18rem; min-width: 14rem; padding: 0.4rem 0.6rem;
  border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit;
}
.registry-toolbar-count { font-size: 0.85rem; white-space: nowrap; }
.registry-toolbar-count:empty { display: none; }
.registry-no-match { margin: 0.5rem 0 0; font-size: 0.85rem; }
.registry-no-match[hidden] { display: none; }

/* The two rights cards fold. The summary keeps the weight the <h2> had, so
   collapsed it still reads as the heading of a card and not as a link. */
.rights-gap-details > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.5rem;
}
.rights-gap-details > summary::-webkit-details-marker { display: none; }
.rights-gap-details > summary::before {
  /* No transition on this marker - see the .collapse-card note further down.
     With one, toggling [open] never resolved the rotation at all and the
     arrow stayed pointing right permanently. */
  content: "\25B8"; color: var(--muted); font-size: 0.9em;
}
.rights-gap-details[open] > summary::before { transform: rotate(90deg); }
.rights-gap-summary-text { font-size: 1.05rem; font-weight: 600; }
.rights-gap-details > summary:hover .rights-gap-summary-text { text-decoration: underline; }
.rights-gap-details > p:first-of-type { margin-top: 0.6rem; }

/* Sortable column headers. The button carries the click target so the header
   is reachable by keyboard without making the whole <th> focusable. */
/* Sortable column headers, wherever a table opts in with `data-sortable`
   (static/js/table-sort.js). Keyed off the SAME attributes the script matches
   on, rather than off a class of their own: a header that sorts therefore
   always looks sortable, and one that does not never does. A class pair could
   drift apart from the behaviour; these cannot.
   Was .registry-sort* until 2026-08-31, when the Archive needed the same
   thing and a second name for one mechanism was the wrong answer. */
table[data-sortable] th[data-sort-key] { padding: 0; }
.table-sort-btn {
  display: flex; align-items: center; gap: 0.3rem; width: 100%;
  background: none; border: 0; padding: 0.5rem 0.6rem; margin: 0;
  font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer;
  /* The browser's own stylesheet resets these two on form controls, and `font:
     inherit` does not carry them - they are not part of the shorthand. Without
     them a sortable header sat in Title Case beside a plain one in CAPS, in the
     same row (measured 2026-08-31: uppercase/0.47px on the th, none/normal on
     the button). */
  text-transform: inherit; letter-spacing: inherit;
}
.table-sort-btn:hover { color: var(--accent, inherit); text-decoration: underline; }
.table-sort-arrow::after { content: ""; color: var(--muted); font-size: 0.8em; }
th[data-sort-key][aria-sort="ascending"] .table-sort-arrow::after { content: "\25B2"; }
th[data-sort-key][aria-sort="descending"] .table-sort-arrow::after { content: "\25BC"; }

/* One dialog per row, holding Edit + Merge + Remove.
   z-index 40 is deliberate and load-bearing: impact-dialog.js's confirmation
   overlay is 50, and every action in here raises one. Above 50 this dialog
   would cover the prompt asking whether to go ahead. */
.registry-dialog-overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 32, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 40; padding: 1rem;
}
.registry-dialog-overlay[hidden] { display: none; }
.registry-dialog {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); padding: 1.25rem 1.5rem;
  max-width: 620px; width: 100%; max-height: 85vh; overflow-y: auto;
}
.registry-dialog-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 0.9rem;
}
.registry-dialog-header h2 { margin: 0; font-size: 1.1rem; }
/* Its x: EVERY DIALOG'S CLOSE X, with every other dialog's. */
.registry-dialog-section { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.registry-dialog-section h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.registry-dialog-section .muted { font-size: 0.85rem; }
/* Details is the first section, directly under the dialog's own header - a rule
   there would read as a second underline to the title rather than as a divider
   between sections. */
.registry-dialog-section.is-first { margin-top: 0; padding-top: 0; border-top: none; }
/* The edit form lays its own rows out rather than using .form-grid's two-column
   auto-flow, which filled columns in source order and so split Birth year from
   Death year across two rows while pairing Name with a checkbox. Each row here
   groups fields that belong together, and a year input is sized to a year. */
/* Deliberately UNSCOPED - not tied to .registry-dialog or to any one form.
   These are the app's paired form rows, used by the registry dialogs, the
   Contact Info dialogs and the full-page contact form alike. They started
   dialog-scoped, which meant the shared field macro rendered unstyled on the
   page that is not a dialog, and that was the only thing stopping one
   definition from serving all three (see _person_fields.html). */
.rf-row { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: flex-start; }
.rf-row > label { flex: 1 1 11rem; min-width: 0; }
/* A year is four characters, so the INPUT is sized to one while its label keeps
   its half of the row - which lines Birth/Death up with Nationality/Second
   nationality underneath, instead of leaving two short boxes adrift at the left
   with dead space beside them. Overrides .stacked-form's width:100%, and is
   more specific than it rather than merely later in the file. */
label.rf-year input { width: 7.5rem; }
.rf-wide { display: block; }
.rf-note { margin: 0 0 0.85rem; font-size: 0.85rem; }
/* The flags decide what the rest of the form means, so they sit together on one
   line under the name rather than being scattered between the text fields. */
.rf-flags {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.35rem; margin-bottom: 0.35rem;
}
.rf-flags .checkbox-label { margin-bottom: 0; }
.rf-members { align-items: baseline; margin-bottom: 0.85rem; }
.rf-members-label { font-size: 0.88rem; color: var(--muted); }
.registry-member-box { max-width: 26rem; }

/* Five independent forms are stacked in this dialog and Save governs only the
   fields above it, so the note explaining that reach sits ON the button row and
   is read with the buttons. Note left, buttons right; it drops to its own line
   before it can squeeze them. */
.registry-details-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem;
}
/* The two merge directions, stacked so they read as a pair of sentences rather
   than a row of controls - which of the two entries survives is the whole
   decision, and it cannot be undone. */
.registry-merge-dirs { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.6rem; }
.registry-merge-dirs .checkbox-label { margin-bottom: 0; align-items: flex-start; line-height: 1.35; }
.registry-merge-dirs .checkbox-label input { margin-top: 0.2rem; }

/* The rights-holder fields a Deceased tick reveals. Set off with a rule and an
   indent rather than made a section of its own, because it saves with the same
   button as the fields above it - in these dialogs a section heading means
   "this block acts on its own", and this block does not. */
.person-estate-block {
  margin: 0.25rem 0 0; padding-left: 0.9rem;
  border-left: 3px solid var(--border);
}
/* THE RIGHTSHOLDER BOX (the user, 10/31/2026; 0121): a contact record found by
   name as it is typed, "+ New contact" beside it, and under it the chosen
   record's own details, read only - entered once, on that record. Its label
   reads as the stacked form's labels do; the card is a quiet recessed panel. */
.rh-pick { margin-bottom: 0.85rem; }
.rh-pick-label { display: block; font-size: 0.88rem; color: var(--muted); }
.rh-pick-row { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.3rem; }
.stacked-form .rh-pick-row input, .rh-pick-row input { flex: 1 1 auto; width: auto; min-width: 0; margin-top: 0; }
.rh-pick-row .btn { flex: 0 0 auto; white-space: nowrap; }
.rh-pick-add {
  margin-top: 0.6rem; padding: 0.7rem 0.8rem 0.1rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.rh-pick-add[hidden], .rh-card[hidden] { display: none; }
/* THE NAME BOXES BOTTOM-ALIGNED (the user, 11/1/2026: "these are not aligned"): "First & Middle name (a person
   only)" took two lines where "Last name or organization" took one, so its box hung lower - the guided form's
   creator rows answer the same way. The note stays whole beside its caption. */
.rh-pick-add .rf-row { align-items: flex-end; }
.rh-pick-add .rf-row > label > .muted { white-space: nowrap; }
.rh-add-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.rh-add-msg { margin-right: auto; font-size: 0.8rem; }
/* A PERSON OR AN INSTITUTION (the user, 11/2/2026; contact-kind.js): the app's two-option switch heads a contact
   record's Details and each "+ New" add panel, on a line of its own. The other kind's boxes are hidden by attribute,
   which .rf-row's display and .stacked-form label's would otherwise outrank. */
.rf-kind-switch { display: flex; width: max-content; max-width: 100%; margin: 0 0 0.75rem; }
/* On the Details heading's row, at its right (the user, 11/2/2026); under the heading when the row is too narrow. */
.rf-kind-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.4rem 0.75rem; margin: 0 0 0.75rem; }
.rf-kind-head h3 { margin: 0; }
.rf-kind-head .rf-kind-switch { margin: 0; }
[data-kind-scope] [data-kind-only][hidden] { display: none; }
.rh-card {
  margin-top: 0.6rem; padding: 0.65rem 0.85rem; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.92rem; line-height: 1.5; color: var(--ink);
}
.rh-card-name { font-weight: 600; }
.rh-card-gap, .rh-card-unknown { color: #7a5a17; font-weight: 600; }
.rh-card-also { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

/* The Backlog page's intro. */
.backlog-intro { max-width: 62ch; margin: 0 0 1rem; }
/* Backlog notes on a work page. Marked off from the review card below it so
   "these two are different audiences" is visible, not just stated. */
.backlog-notes-card { border-left: 4px solid var(--status-revision_needed-fg); }
.backlog-notes-intro { max-width: 68ch; font-size: 0.85rem; margin: 0 0 0.8rem; }
.backlog-notes-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.backlog-notes-list li { padding: 0.5rem 0; border-top: 1px solid var(--border); }
.backlog-note-text { white-space: pre-wrap; }
.backlog-note-meta { font-size: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.backlog-note-form textarea { width: 100%; padding: 0.45rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; }
/* AT PHONE WIDTH THE ROWS STACK, as Legal agreements' and the other lists' do, and nothing scrolls sideways inside
   the card: the title, Type and Creator under their small labels. */
@media (max-width: 640px) {
  .backlog-table thead { display: none; }
  .backlog-table, .backlog-table tbody, .backlog-table tr, .backlog-table td { display: block; width: 100%; }
  .backlog-table tr { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
  .backlog-table tr:last-child { border-bottom: 0; }
  .backlog-table td { border: 0; padding: 0.12rem 0; }
  .backlog-table td:first-child { font-weight: 600; }
  .backlog-table td[data-l]::before { content: attr(data-l); display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-top: 0.2rem; }
}
/* THE BACKLOG IN TWO LEVELS (the user, 11/7/2026): Up next on the accent's edge and tint, Later in grey - "a bit more
   visual definition between 'up next' and 'later' so it doesn't read as a single long list". One list a level, its
   own bulk row drawn flush at the top of the list's card (the Reviews page's agd-bulk rv-bulk, here without its
   frame), its tick boxes Living artists' (life-check-hit), the whole cell clicking its box. */
.bl-box { border: 1px solid var(--border); border-left-width: 6px; border-radius: 12px; padding: 1.1rem 1.25rem 0.4rem;
  margin: 1.1rem 0 1.6rem; }
.bl-box-up { border-left-color: var(--accent); background: rgba(122, 59, 46, 0.055); }
.bl-box-later { border-left-color: var(--border-strong); background: rgba(90, 90, 90, 0.07); }
.bl-box .card { margin-bottom: 1rem; }
.bl-level { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.15rem; font-size: 1.4rem; }
.bl-box-up .bl-level { color: var(--accent); }
.bl-box-later .bl-level { color: var(--muted); }
.bl-level-note { margin: 0 0 0.75rem; }
.bl-empty { margin: 0 0 0.9rem; }
.bl-who-acts { margin: 0 0 0.4rem; font-size: 0.9rem; }
.bl-box .agd-bulk.rv-bulk { margin: 0 0 0.35rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: none; padding: 0.1rem 0.1rem 0.7rem 0.675rem; }
.bl-all-lbl { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--muted);
  white-space: nowrap; margin: 0 0.3rem 0 0; cursor: pointer; }
.bl-all-lbl input { width: 1.25rem; height: 1.25rem; margin: 0; }
.bl-box .data-table th.bl-check { width: 2.6rem; padding: 0; }
.bl-why { display: block; margin-top: 0.15rem; font-size: 0.82rem; color: var(--muted); font-style: italic;
  font-weight: 400; }
/* WHERE A SETTLED OR LOCKED BOOK OR RECORDING KEEPS IT: one plain muted line under the title, above the note's
   italic one. */
.bl-kept { display: block; margin-top: 0.15rem; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
/* Add a note...'s box, the width of its dialog. */
.bl-note-box textarea { display: block; width: 100%; margin: 0.3rem 0 0.15rem; padding: 0.45rem 0.55rem;
  border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.9rem;
  resize: vertical; }
/* THREE COLUMNS, NO IN (the user, 11/7/2026: "remove it"), the same widths in both lists so they line up: the
   title most of the row, the type a fixed share, the creator the rest. */
.bl-box .backlog-table { table-layout: fixed; }
.bl-box .backlog-table.bl-ticks th:nth-child(2) { width: 48%; }
.bl-box .backlog-table.bl-ticks th:nth-child(3) { width: 17%; }
.bl-box .backlog-table:not(.bl-ticks) th:nth-child(1) { width: 50%; }
.bl-box .backlog-table:not(.bl-ticks) th:nth-child(2) { width: 17%; }
@media (max-width: 700px) {
  .bl-box .agd-bulk.rv-bulk { padding-left: 0.1rem; }
}
/* ...AND ON A PHONE, where the rows stack as above, the tick stands at the left of each row, beside all three lines. At
   the stacking's own width, so the header row never stands over rows already stacked. */
@media (max-width: 640px) {
  .bl-box .backlog-table.bl-ticks tr { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.35rem; }
  .bl-box .backlog-table.bl-ticks td { grid-column: 2; }
  .bl-box .backlog-table.bl-ticks td.life-check-col { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  .bl-box .backlog-table.bl-ticks td.life-check-col .life-check-hit { min-height: 0; height: 100%; align-items: flex-start;
    justify-content: flex-start; padding-top: 0.1rem; }
  .bl-box .backlog-table.bl-ticks td:nth-child(2) { font-weight: 600; }
}

.registry-actions-note { font-size: 0.8rem; line-height: 1.3; margin-right: auto; }
/* The registry edit dialog's own footer - Save and Cancel at the bottom right
   of the box (user, 2026-08-30), under Remove rather than stranded halfway up
   the stack. Same row shape as .registry-details-actions, plus the divider
   every other section in that dialog carries, so it reads as the foot of the
   dialog and not as part of Remove. */
.registry-dialog-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 0.6rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border);
}
/* The note SHRINKS and wraps its own text; the buttons do not move. Left to
   .registry-actions-note's margin-right:auto it pushed Save onto a line of its
   own in a narrow dialog, which is the thing this change was meant to stop. */
.registry-dialog-footer .registry-actions-note {
  flex: 1 1 12rem; min-width: 0; margin-right: 0;
}
@media (max-width: 620px) {
  .registry-actions-note { flex-basis: 100%; margin-right: 0; order: 1; }
}
/* Remove sits last and is marked, so the destructive action is never the one
   the eye lands on first - the reason the row itself is down to one button. */
.registry-dialog-danger h3 { color: var(--status-revision_needed-fg); }
.registry-dialog .registry-alias-field { grid-column: auto; }

/* "Did you mean an existing creator/revisor?" dialog on the work forms */
/* An overlay is display:flex, which OUTRANKS the browser's [hidden]{display:none} -
   so a dialog marked hidden reported hidden===true in the DOM and sat on screen
   anyway, empty, on every page load (user, 2026-08-25). Say it here once, for
   every overlay, rather than in whichever script happens to toggle one. */
/* AN ENGRAVING NEEDS THE WIDTH OF A PAGE. The score intake draws the file
   you chose before anything is saved, and a stave squeezed into the
   ordinary dialog width tells you nothing about whether it is the right
   file. */
.name-check-dialog.score-preview-dialog { max-width: 62rem; width: 94vw; }
.score-preview-box { max-height: 60vh; overflow: auto; background: #fff;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.2rem; }
.score-preview-note { margin: 0.5rem 0 0; font-size: 0.85rem; }
.name-check-overlay[hidden] { display: none; }
.name-check-overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 32, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.name-check-dialog {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); padding: 1.25rem 1.5rem;
  max-width: 440px; width: calc(100% - 2rem);
}
/* One title size for every dialog in the app - this was 1.05rem while the
   registry and work-picker dialogs used 1.1rem. */
.name-check-dialog h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.name-check-dialog p { margin: 0 0 1rem; font-size: 0.92rem; }
.name-check-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.name-check-buttons .btn { width: 100%; }
.name-check-candidate-detail { font-size: 0.8rem; margin: 0.2rem 0 0; text-align: center; }
/* "Has this been looked at before?" - the intake duplicate dialog. It reuses
   .name-check-overlay / .name-check-dialog so it looks like every other
   dialog in the app, and only widens the box, because this one lists whole
   works rather than asking about a single value. */
.dup-dialog { max-width: 620px; }
.dup-candidates {
  display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem;
  max-height: 46vh; overflow-y: auto;
}
.dup-candidate {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.6rem 0.75rem; min-width: 0;
}
.dup-candidate-head {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem;
  align-items: baseline; justify-content: space-between;
}
.dup-candidate-head > * { min-width: 0; }
.dup-candidate-title { font-weight: 600; overflow-wrap: anywhere; }
/* The badge carries the point of the whole dialog - what was decided about
   this work last time - so rights-blocked reads as the loudest of the three. */
.dup-standing {
  font-size: 0.72rem; border-radius: 999px; padding: 0.1rem 0.55rem;
  background: var(--status-backlog-bg); color: var(--status-backlog-fg);
}
.dup-standing-archived { background: var(--status-archived-bg); color: var(--status-archived-fg); }
.dup-standing-blocked { background: #f6dcdc; color: var(--error); font-weight: 600; }
.dup-candidate-meta, .dup-candidate-why, .dup-candidate-note {
  margin: 0.25rem 0 0; font-size: 0.82rem; overflow-wrap: anywhere;
}
.dup-candidate-meta { color: var(--muted); }
.dup-candidate-note { color: var(--error); }
.dup-candidate-why { color: var(--muted); font-style: italic; }
.dup-candidate-open { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; }

/* Readiness board and the "what needs you" list. Both reuse the app's existing
   status colours rather than inventing a second palette for the same idea -
   "held up" here means what "revision needed" means elsewhere. */
.readiness-summary { margin: 0 0 1rem; font-size: 0.95rem; }

/* The living-person review. Borrows the app's status palette rather than
   inventing another one, and keeps the two weights of action visibly
   different: bulk marking is quiet, a death year is not. */
.life-tabs { display: flex; gap: 0.4rem; margin: 1.2rem 0 1rem; flex-wrap: wrap; }
.life-tab {
  padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; background: var(--card); white-space: nowrap;
}
.life-tab-active { border-color: var(--accent); font-weight: 600; }
.life-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: baseline;
  justify-content: space-between; margin: 0 0 0.8rem; font-size: 0.93rem;
}
.life-toolbar > * { min-width: 0; }
.life-bulk {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center;
  padding: 0.6rem 0.75rem; margin-bottom: 0.6rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.life-bulk-count { font-size: 0.88rem; margin-right: auto; }
.life-check-col { width: 2.6rem; }
.life-due td { background: var(--status-backlog-bg); }
.life-noleads { font-size: 0.75rem; margin-left: 0.4rem; font-style: italic; }
.life-pill {
  display: inline-block; font-size: 0.76rem; border-radius: 999px; padding: 0.1rem 0.55rem;
  white-space: nowrap;
}
.life-living { background: var(--status-published-bg); color: var(--status-published-fg); }
.life-not_established { background: var(--status-backlog-bg); color: var(--status-backlog-fg); }

/* "Only the year is missing": the contact record says their estate or successors
   hold the rights (people.rights_contact_reason) - a lead to follow, never an
   answer, so it is styled as a quiet note rather than a warning. */
.life-known-dead {
  font-size: 0.74rem; margin-left: 0.4rem; padding: 0.05rem 0.45rem;
  border-radius: 999px; white-space: nowrap; font-weight: 600;
  background: var(--status-revision_needed-bg); color: var(--status-revision_needed-fg);
}
.life-toolbar-flag { color: var(--status-revision_needed-fg); font-weight: 600; }
.life-elsewhere {
  font-size: 0.74rem; margin-left: 0.4rem; padding: 0.05rem 0.45rem;
  border-radius: 999px; white-space: nowrap;
  background: var(--status-approved-bg); color: var(--status-approved-fg);
}

/* The death-year dialog. */
.life-dialog { max-width: 480px; }
.life-dialog-field { display: block; margin: 0 0 0.8rem; }
.life-dialog-field span { display: block; font-size: 0.85rem; margin-bottom: 0.25rem; }
.life-year-input { width: 7rem; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.life-impact {
  font-size: 0.9rem; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.6rem 0.75rem; margin: 0 0 1rem; min-height: 3rem;
}
.life-impact p { margin: 0 0 0.35rem; }
.life-impact p:last-child { margin-bottom: 0; }
.life-impact-bad { border-color: var(--error); color: var(--error); }
.life-impact-warn-box { border-color: var(--error); }
.life-impact-warn { color: var(--error); font-weight: 600; }

.readiness-filtered {
  margin: 0 0 0.9rem; font-size: 0.92rem; padding: 0.5rem 0.75rem;
  background: var(--status-backlog-bg); color: var(--status-backlog-fg);
  border-radius: var(--radius);
}
.readiness-pill {
  display: inline-block; font-size: 0.78rem; border-radius: 999px;
  padding: 0.1rem 0.6rem; white-space: nowrap;
}
.readiness-blocked { background: var(--status-revision_needed-bg); color: var(--status-revision_needed-fg); font-weight: 600; }
.readiness-ready   { background: var(--status-published-bg); color: var(--status-published-fg); font-weight: 600; }
.readiness-exposed { background: var(--status-in_review-bg); color: var(--status-in_review-fg); font-weight: 600; }
.readiness-done    { background: var(--status-archived-bg); color: var(--status-archived-fg); }
.readiness-empty   { background: var(--status-backlog-bg); color: var(--status-backlog-fg); }
.readiness-waiting { display: flex; flex-wrap: wrap; gap: 0.25rem; min-width: 0; }

/* THE WORK-SESSION CONTROLS over a reviewer's list: a date to work back
   from, which kind of work, and what the two of them left showing. A row
   of labels rather than a form, because nothing here is submitted - see
   todo-filter.js. */
.todo-tools { display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 0.75rem; margin: 0.2rem 0 0.9rem; }
.todo-tool { display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.82rem; color: var(--muted); }
.todo-tool input, .todo-tool select {
  padding: 0.35rem 0.5rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.9rem;
  color: var(--ink); background: var(--card); }
/* WHAT THE FILTER LEFT, beside the controls that did it. Empty when
   nothing is hidden, so an unfiltered list says nothing at all. */
.todo-tool-count { margin: 0 0 0.3rem; font-size: 0.85rem; }
/* THE COLUMNS. The hymn takes what is going, the three that follow take
   only what they need, and the action sits at the end where the eye can
   run down it. */
.todo-table td { vertical-align: middle; }
.todo-table th:nth-child(2), .todo-table td:nth-child(2),
.todo-table th:nth-child(3), .todo-table td:nth-child(3) {
  white-space: nowrap; width: 1%; }
.todo-table .todo-where { color: var(--muted); font-size: 0.86rem; }
/* A TUNE AND ITS SETTINGS IN ONE ROW, and one button for each of them -
   stacked, because a row of four side by side is wider than the column
   they sit in and the table would grow a sideways scrollbar for it. */
.todo-actions { display: flex; flex-direction: column; gap: 0.25rem;
  align-items: flex-end; }
.todo-actions form { margin: 0; }
/* THE KINDS, side by side with a quiet plus between them. */
.todo-kinds { white-space: nowrap; }
.todo-kind-plus { color: var(--muted); font-size: 0.8rem; }
.todo-table .todo-action-cell { width: 1%; white-space: nowrap;
  text-align: right; }
.todo-table .todo-action-cell form { margin: 0; }
/* THE DATE READS AS A DATE HERE, not as a line of prose: the column says
   `Due`, so the cell does not have to. */
.todo-table .due-date { font-size: 0.86rem; }

/* THE TILES, not the rows - see the note beside `ul.todo-list`. */
div.todo-list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 46rem; }
.todo-item {
  display: flex; align-items: center; gap: 0.9rem; text-decoration: none;
  color: inherit; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.7rem 0.9rem; min-width: 0;
}
.todo-item:hover { border-color: var(--accent-light); }
.todo-count {
  font-size: 1.25rem; font-weight: 700; color: var(--accent);
  min-width: 2.2rem; text-align: right; flex: none;
}
.todo-label { flex: 1; min-width: 0; }
.todo-go { color: var(--muted); flex: none; }
.todo-clear { margin-top: 1.4rem; font-size: 0.88rem; color: var(--muted); max-width: 46rem; }

.name-check-input {
  width: 100%; min-height: 4.5rem; margin-bottom: 1rem; font-family: inherit; font-size: 0.92rem;
  padding: 0.4rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius); resize: vertical;
}
.name-check-input-number, .name-check-input-line { min-height: 0; resize: none; }

/* Global search page */
.search-bar input[name="q"] { width: 320px; max-width: 100%; }

/* A grid of tiles, each wholly a link: the intake chooser's (work_intake_picker.html). */
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.home-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; color: var(--ink); box-shadow: 0 1px 3px rgba(43,38,32,0.05);
}
.home-card:hover { border-color: var(--accent-light); text-decoration: none; box-shadow: 0 6px 16px rgba(43,38,32,0.09); transform: translateY(-2px); }
.home-card h3 { margin: 0 0 0.3rem; font-size: 1.02rem; color: var(--accent); }
.home-card p { margin: 0 0 0.4rem; font-size: 0.88rem; }
.home-card .muted { font-size: 0.8rem; }

/* THE SHELF PAGES (user, 2026-10-09: "rows, not tiles"). One card per kind, one
   row per book or recording, every fact in a fixed column so the books compare
   down the page; the List View card's figures one level up. The columns are
   set by the template (--sh-cols), since a page draws State and the No. box
   only where some row on it has one; Recordings draw their own (.sh-rec). */
.sh-titlebar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.55rem; min-width: 0; }
.sh-count { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 0.75rem; }
.sh-sort { margin: 0; }
.sh-sort label { font-size: 0.85rem; }
.btn.sh-on { border-color: var(--accent); color: var(--accent); background: #fbf3ee; box-shadow: inset 0 0 0 1px var(--accent); } .sh-arrange-row { margin: 0.5rem 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; font-size: 0.9rem; }

.card.sh-shelf { padding: 0.55rem 0.9rem 0.25rem; }
.sh-row { display: grid; grid-template-columns: var(--sh-cols); column-gap: 0.85rem; align-items: start; }
.sh-cols { font-size: 0.64rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); padding: 0.45rem 0.5rem; background: var(--card-alt); border-radius: 5px; text-align: center; }
.sh-row:not(.sh-cols) { padding: 0.62rem 0.5rem; border-bottom: 1px solid #efe9df; }
.sh-row:not(.sh-cols):last-child { border-bottom: none; }
/* THE DRAFTS CARD (user, 2026-10-30): every draft the reader is shown, above
   the main card in the same columns, under a heading of its own. TOLD APART
   FROM THE PUBLISHED (the user, 10/31/2026) in the Draft pill's own slate: a
   dashed border, a light blue-grey wash, the heading and the column band in
   the slate; the rows as on the main card. The page's Create button sits at
   the right of the heading's row, outlined, on white (the user, 10/31/2026).
   With no drafts, a muted line says so. */
.card.sh-drafts { border: 1px dashed var(--status-draft-fg); background: var(--status-draft-wash); }
.sh-drafts .sh-cols { background: var(--status-draft-bg); color: var(--status-draft-fg); }
.sh-card-hrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.4rem 0.75rem; margin: 0.3rem 0 0.55rem; padding: 0 0.5rem; }
.sh-card-hrow > .sh-card-h { margin: 0; padding: 0; border: none; font-size: 1.02rem; color: var(--status-draft-fg); }
.sh-card-hrow > .sh-create { margin-left: auto; background: var(--card); }
.sh-none { margin: 0 0 0.6rem; padding: 0 0.5rem; color: var(--muted); font-size: 0.9rem; }

/* The name: the cover (or its empty slot), the full name, the line under it. */
.sh-name { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.85rem; align-items: start; min-width: 0; }
.sh-thumb { display: flex; justify-content: center; align-items: flex-start; width: 2.6rem; min-height: 1px; }
a.sh-thumb:hover { text-decoration: none; }
.sh-thumb img { display: block; height: 3.4rem; width: auto; max-width: 2.6rem; object-fit: cover;
  border: 1px solid var(--border-strong); border-radius: 3px; }
.sh-thumb.rec img { height: 2.6rem; width: 2.6rem; max-width: none; }
.sh-nm { min-width: 0; padding-top: 0.05rem; }
.sh-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.06rem; line-height: 1.3; color: var(--accent);
  text-wrap: balance; }
.sh-np { display: inline-block; }
.sh-nm .status-pill { font-size: 0.64rem; margin-left: 0.2rem; vertical-align: 0.15em; }
.sh-sub { font-size: 0.84rem; color: var(--muted); margin-top: 0.1rem; line-height: 1.45; }

/* The figures, the card's own words under each - only those that say
   something; a figure of 0 is an empty cell in its place. The label is the
   column head here, and said above the figure on a phone. */
.sh-fig { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.sh-l { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sh-v { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.sh-c { font-size: 0.72rem; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.sh-state { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sh-sv { font-weight: 600; font-size: 0.84rem; line-height: 1.6; }
.sh-state .sh-c { white-space: nowrap; }

/* A RECORDING'S ROW (user, 2026-10-26, r157): its No., Style (the icon, named
   on hover), Year and Category each a column after the name, the category in
   the figures' serif; on a wide screen every cell centred on the row's middle
   and the slack shared evenly between the columns (the name's stops at
   22.5rem), a caption ("estimated", or two lines: "estimated" / "1 of 2
   tracks") hanging under its figure without lifting it: each figure cell is a
   grid of three rows, the empty top one as tall as the caption, so the figure
   is the cell's middle; the negative margins let the caption hang into the
   row's padding, and a row grows only where two lines need the room. A
   narrow window and a phone draw the four on one line under the name. */
.sh-sty { display: flex; justify-content: center; }
.sh-sty .style-icon { width: 1.2rem; height: 1.2rem; color: var(--ink); }
/* A RECORDING STYLE'S MARK (the user, 10/31/2026, of the marks drawn: "build it"; _style_icon.html's mark): the
   icon says WHO performs, a small word under it WHICH kind - Mixed, Live, Solo - both from the lookups. Here,
   before the shelf's narrow-window and phone rules, which move it. */
.style-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 0.08rem; color: var(--ink);
  line-height: 1; }
.style-mark-w { font: 500 0.625rem/1.1 var(--font-sans); color: var(--muted); white-space: nowrap;
  letter-spacing: 0.01em; }
/* the word's line is kept where a style has no word, so every icon in the column sits at one height */
.sh-sty .style-mark-w:empty::before { content: "\00a0"; }
/* A WORD WITH A "/" (the user, 10/31/2026: "Solo/" over "sm group"; _style_icon.html's mark): each part a line
   of its own that never wraps, centred under the icon. Its row alone grows, by the second line; the column keeps
   its width. */
.style-mark-p { display: block; white-space: nowrap; text-align: center; }
.style-mark-w > wbr { display: none; }
/* a narrow window's line under the name, and Also published in: the icon with its word beside it, small, a
   little apart (the user, 11/13/2026: "can there be a bit more space between the icon and its word?") */
.style-mark.style-mark-inline { display: inline; }
.style-mark-inline .style-mark-w { margin-left: 0.4em; }
.style-mark-inline .style-mark-w:empty { display: none; }
/* on a line of text the parts run on, the line breaking (if it must) only after the slash */
.style-mark-inline .style-mark-w:has(> .style-mark-p) { white-space: normal; }
.style-mark-inline .style-mark-p { display: inline; }
.style-mark-inline .style-mark-w > wbr { display: inline; }
.sh-cat { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.3; min-width: 0; }
.sh-cols .sh-cat { font-family: inherit; font-size: inherit; line-height: inherit; text-align: left; }
.sh-rec-line { display: none; }
@media (min-width: 64.01rem) {
  .sh-rec .sh-row { justify-content: space-between; align-items: center; }
  .sh-rec .sh-name { align-items: center; }
  .sh-rec .sh-nm { padding-top: 0; }
  .sh-rec .sh-row > .sh-fig { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
    margin-block: -0.5rem; }
  .sh-rec .sh-row > .sh-fig > .sh-v { grid-row: 2; }
  .sh-rec .sh-row > .sh-fig > .sh-c { grid-row: 3; }
}
@media (max-width: 64rem) {
  .sh-rec .sh-row > .sh-id { display: none; }
  .sh-rec-line { display: block; }
}

/* The end of a row: a hymnal's No. box (the Page View at that number). The
   box is compact; the field rule it overrides is the app-wide one. */
.sh-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; min-width: 0; }
.sh-nobox { display: flex; align-items: stretch; gap: 0.3rem; margin: 0; }
.sh-nobox label { align-self: center; font-size: 0.84rem; color: var(--muted); }
.sh-nobox input[name="number"]:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="range"]) {
  width: 3.1rem; padding: 0.2rem 0.4rem; font-size: 0.85rem; line-height: 1.3; }
.sh-nobox .btn-sm { padding: 0.2rem 0.6rem; font-size: 0.8rem; line-height: 1.3; }

/* WHAT HOLDS A BOOK BACK: one line under its row, the List View's words, a
   pink count, each a link to that filter. */
.sh-loose { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.55rem;
  margin-top: 0.45rem; padding-left: 3.45rem; font-size: 0.82rem; }
.sh-loose a { color: var(--ink); white-space: nowrap; }
.sh-loose a:hover { color: var(--accent); }
.sh-sep { color: var(--muted); }
.sh-cnt { display: inline-block; min-width: 1.1rem; padding: 0 0.32rem; border: 1px solid #ebc4c4; border-radius: 999px;
  background: #f3d9d9; color: var(--error); font-size: 0.72rem; font-weight: 600; line-height: 1.35;
  text-align: center; font-variant-numeric: tabular-nums; }

/* PERIODICALS, Producer and up: which ones a Viewer is shown, under the rows,
   in line with the names. */
.sh-viewers { margin: 0; padding: 0.55rem 0.5rem 0.6rem 3.95rem; font-size: 0.84rem; color: var(--muted); }

/* ARRANGE (an Admin): the whole kind - on Hymnals a list for each group under its name, elsewhere one list - each
   row dragged by its grip (the ONE DRAG GRIP below) or moved with the arrow keys on it - static/js/sortable-list.js,
   reorder only; Save order posts it. */
.card.sh-arrange { padding: 0.7rem 1.1rem 0.5rem; }
.sh-ar-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.sh-ar-err { margin: 0; color: var(--error); font-size: 0.86rem; flex: 1 1 12rem; }
.sh-ar-acts { display: flex; gap: 0.5rem; margin-left: auto; }
.sh-ar-list { list-style: none; margin: 0; padding: 0; }
/* EACH GROUP ITS OWN LIST (the user, 11/8/2026: "for the groupings to be made more clear when rearranging"): its
   name above it in the Hymnals page's Other hymnals heading's look, a rule between one group and the next; a book
   alone in its group has nothing to pass, so its grip is not drawn - its place kept, the columns where they were */
.sh-ar-group + .sh-ar-group { border-top: 1px solid var(--border); }
.card h2.sh-ar-gh { font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin: 0;
  padding: 0.75rem 0.3rem 0.15rem; border: 0; }
.sh-ar-list > .sh-ar-row:only-child > .sh-ar-grip { visibility: hidden; }
.sh-ar-row { display: grid; grid-template-columns: auto 1.4rem 2.6rem minmax(0, 1fr) 8rem; column-gap: 0.85rem;
  align-items: center; padding: 0.4rem 0.3rem; border-bottom: 1px solid #efe9df; }
.sh-ar-row:last-child { border-bottom: none; }
.sh-ar-row .sh-thumb img { height: 2.3rem; }
.sh-ar-n { font-family: var(--font-serif); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sh-ar-name { font-family: var(--font-serif); font-weight: 700; font-size: 0.98rem; line-height: 1.3; min-width: 0;
  text-wrap: balance; }
.sh-ar-st { font-size: 0.8rem; color: var(--muted); }
.sh-ar-st.use { color: var(--ink); font-weight: 600; }
.sh-ar-grip { touch-action: none; }
.sh-ar-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* the row taken up, drawn over the rows it passes */
.sh-ar-list > .sh-ar-row.is-dragging, .sh-ar-list > .sh-ar-row.is-lifted { background: var(--card); border-radius: 6px; }
@media (pointer: coarse) {
  .sh-ar-row > .sh-ar-grip { width: 1.75rem; padding-block: 0.7rem; margin-block: -0.7rem; }
}

/* A NARROW WINDOW (a tablet, half a screen), where the columns would squeeze
   the name to nothing: the name on its own line, the figures under it in
   their fixed columns, each with its label, the State at the right of the
   name and the No. box at the end of the figures (--sh-mid, from the
   template). The cover's slot runs down beside both. */
@media (min-width: 46.01rem) and (max-width: 64rem) {
  .card.sh-shelf { padding: 0.25rem 0.9rem; }
  .sh-cols { display: none; }
  .sh-row { grid-template-columns: 2.6rem var(--sh-mid); row-gap: 0.4rem; }
  .sh-name { display: contents; }
  .sh-name > .sh-thumb { grid-column: 1; grid-row: 1 / span 2; }
  .sh-name > .sh-nm { grid-column: 2 / -1; grid-row: 1; }
  .sh-row:has(> .sh-state:not(:empty)) > .sh-name > .sh-nm { grid-column: 2 / -2; }
  .sh-row > .sh-state { grid-column: -2 / -1; grid-row: 1; align-items: flex-end; text-align: right; }
  .sh-fig { grid-row: 2; align-items: flex-start; text-align: left; }
  .sh-nofig > .sh-fig { display: none; }
  .sh-row > .sh-end { grid-column: -2 / -1; grid-row: 2; padding-top: 0.75rem; }
  .sh-l { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
    font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
  .sh-loose { grid-column: 2 / -1; grid-row: 3; padding-left: 0; margin-top: 0.1rem; }
}

/* A PHONE: each book a block - its name on top, the figures labelled in a
   row under it, the pink line, then the No. box with the State. */
@media (max-width: 46rem) {
  .sh-actions { flex: 1 1 100%; }
  .sh-actions .btn-primary { margin-left: auto; }
  .card.sh-shelf { padding: 0.15rem 0.85rem; }
  .sh-cols { display: none; }
  .sh-row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0.5rem; row-gap: 0.5rem; }
  .sh-row:not(.sh-cols) { padding: 0.85rem 0 0.8rem; }
  .sh-row > .sh-name { grid-column: 1 / -1; grid-row: 1; }
  .sh-row > .sh-state { grid-column: 3 / -1; grid-row: 3; align-items: flex-end; text-align: right; }
  .sh-row:has(> .sh-loose) > .sh-state, .sh-row:has(> .sh-loose) > .sh-end { grid-row: 4; }
  .sh-state:empty { display: none; }
  .sh-end { grid-column: 1 / 3; grid-row: 3; align-items: flex-start; }
  .sh-end:not(:has(form)) { display: none; }
  .sh-fig { grid-row: 2; align-items: flex-start; text-align: left; }
  .sh-nofig > .sh-fig { display: none; }
  .sh-l { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
    font-size: 0.72rem; line-height: 1.35; color: var(--muted); }
  .sh-v { font-size: 1.05rem; }
  .sh-c { white-space: normal; font-size: 0.68rem; }
  .sh-loose { grid-row: 3; padding-left: 0; margin-top: 0; gap: 0.2rem 0.9rem; }
  .sh-loose a { white-space: normal; }
  .sh-sep { display: none; }
  .sh-viewers { padding-left: 0; }
  /* A RECORDING'S STYLE ON A PHONE: not on the line under the name, but a figure after Tracks and Run time,
     labelled as they are, the icon with its word beside it (as tall as a figure, so the row keeps its height).
     A recording with no tracks yet draws no figures: its mark stays on the line. */
  .sh-rec-line .style-mark-inline { display: none; }
  .sh-rec .sh-row > .sh-sty.sh-id { display: flex; flex-direction: column; align-items: flex-start; grid-row: 2;
    order: 1; min-width: 0; }
  .sh-rec .sh-row > .sh-sty .style-mark { flex-direction: row; align-items: center; gap: 0.2rem;
    min-height: calc(1.05rem * 1.3); }
  /* a two-part word beside the icon: its two lines, left-aligned, the row growing by the second */
  .sh-rec .sh-row > .sh-sty .style-mark-p { text-align: left; line-height: 1.05; }
  .sh-rec .sh-row > .sh-sty .style-mark-w { font-size: 0.8rem; color: var(--ink); }
  .sh-rec .sh-row > .sh-sty .style-mark-w:empty::before { content: none; }
  .sh-rec .sh-nofig > .sh-sty.sh-id { display: none; }
  .sh-rec .sh-nofig .sh-rec-line .style-mark-inline { display: inline; }
  .card.sh-arrange { padding: 0.55rem 0.85rem 0.4rem; }
  .sh-ar-row { grid-template-columns: auto 1.2rem 2rem minmax(0, 1fr); column-gap: 0.6rem; padding: 0.45rem 0; }
  .sh-ar-row .sh-thumb { width: 2rem; }
  .sh-ar-row .sh-thumb img { max-width: 2rem; height: 2rem; }
  .sh-ar-grip, .sh-ar-n, .sh-ar-row > .sh-thumb { grid-row: 1 / span 2; align-self: center; }
  .sh-ar-name { grid-column: 4; grid-row: 1; font-size: 0.92rem; }
  .sh-ar-st { grid-column: 4; grid-row: 2; font-size: 0.74rem; line-height: 1.3; }
  .sh-ar-st:empty { display: none; }
  .card h2.sh-ar-gh { padding: 0.65rem 0 0.1rem; }
}

/* THE HYMNALS PAGE (the user, 11/6/2026: "The primary hymnals are the main thing. Foreign language and historical
   hymnals should be minimized."; version 4, drawn on real data: "yes"). Hymnals alone: every other shelf keeps the
   rows above. The title row's one No. box, wider than a line's; ONE CARD for the books in use, the first published
   large beside the hymn panel, the rest smaller below a rule, wrapping as more come, a draft in its place in the
   Drafts card's own dashed slate; every other hymnal one quiet line on the page's ground, with its own No. box;
   Create and Arrange quiet links at the foot. */
.hb-head { align-items: center; margin-bottom: 0.9rem; }
.hb-head .sh-nobox { margin-left: auto; }
.hb-head .sh-nobox label { font-size: 0.92rem; }
.hb-head .sh-nobox input[name="number"]:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="range"]) { width: 5.5rem; }
.hb-shelf { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.4rem; box-shadow: 0 1px 2px rgba(43,38,32,0.05); }
/* The hymn panel wide enough that a hymn's opening lines do not break (the user, 11/8: "can 'a hymn for today' be
   widened so that there are no line breaks"): 26rem holds 99.7% of the 642 hymns' first four lines at 0.95rem
   beside the large first letter (measured 11/8); the book's four figures a size smaller to make the room. */
.hb-main { display: grid; grid-template-columns: 160px minmax(0, 1fr) 26rem; gap: 1.6rem; align-items: stretch; }
/* no hymn to show: the large book takes the room */
.hb-solo { grid-template-columns: 160px minmax(0, 1fr); }
.hb-cover { display: block; align-self: start; border-radius: 3px 6px 6px 3px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(43,38,32,0.25), 0 6px 16px rgba(43,38,32,0.20);
  transition: transform 0.15s ease, box-shadow 0.15s ease; }
.hb-cover:hover { transform: translateY(-2px); box-shadow: 0 2px 3px rgba(43,38,32,0.25), 0 10px 22px rgba(43,38,32,0.24); }
.hb-cover img { display: block; width: 100%; height: auto; }
/* a book with no cover: the cover's shape, its short name; dashed on a draft */
.hb-blank { display: flex; flex-direction: column; justify-content: center; align-items: center; align-self: start;
  text-align: center; aspect-ratio: 5 / 7; border: 1px solid var(--border-strong); border-radius: 3px 6px 6px 3px;
  background: var(--card); color: var(--muted); font-size: 0.72rem; line-height: 1.25; padding: 0.3rem; }
a.hb-blank:hover { text-decoration: none; }
.hb-draft .hb-blank { border: 1px dashed var(--status-draft-fg); color: var(--status-draft-fg); }
.hb-info { display: flex; flex-direction: column; min-width: 0; }
.hb-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.75rem; line-height: 1.18; color: var(--accent);
  display: block; margin: 0.1rem 0 0.25rem; text-wrap: balance; }
.hb-meta { color: var(--muted); font-size: 0.92rem; }
.hb-draftword { color: var(--status-draft-fg); font-weight: 600; }
.hb-figs { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; margin: 1.05rem 0 1.15rem; }
.hb-f { display: flex; flex-direction: column; min-width: 0; }
.hb-f .l { font-size: 0.72rem; color: var(--muted); }
.hb-f .v { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hb-f .c { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.hb-info .hb-figs { margin: auto 0 0; padding-top: 0.8rem; }
.hb-info .sh-loose { padding: 0; margin: 0.55rem 0 0; }
/* THE HYMN FOR THE DAY, SET LIKE A PRINTED PAGE (the user, 11/6/2026: "could it look more 'bookish' somehow?"; "much
   better"; "the entire text should be indented a bit"): no box and no background, a thick and a thin rule at the head and
   mirrored at the foot, the heading in small capitals, the source in italics, a large first letter in the app's brown. Its
   rules stand on the column's own edges. A line that wraps hangs, as a hymnal's does: the second line beside the capital
   needs no negative indent, since the capital already pushes it in. */
.ht-page { min-width: 0; display: flex; flex-direction: column; font-family: var(--font-serif); color: var(--ink); }
.ht-rule { height: 6px; flex: none; border-top: 2.5px solid var(--accent); border-bottom: 1px solid var(--accent); }
.ht-rule-end { border-top-width: 1px; border-bottom-width: 2.5px; margin-top: 0.7rem; }
.ht-page h2 { font-family: var(--font-serif); font-size: 1.04rem; font-weight: 600; font-variant: small-caps; letter-spacing: 0.07em;
  color: var(--accent); text-align: center; margin: 0.75rem 0 0; padding: 0; border: 0; }
.ht-sub { font-size: 0.86rem; font-style: italic; color: var(--muted); text-align: center; margin: 0.05rem 0 0; }
.ht-t { font-weight: 700; font-size: 1.02rem; line-height: 1.25; margin: 0.8rem var(--ht-indent, 1.15rem) 0; }
.ht-q { font-size: 1.01rem; line-height: 1.52; margin: 0.8rem var(--ht-indent, 1.15rem) 0; }
.ht-t + .ht-q { margin-top: 0.4rem; }
.ht-l { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.ht-st + .ht-st { margin-top: 1.15em; }
.ht-st + .ht-joined { margin-top: 0; }
.ht-more { display: none; }
.ht-more.ht-shown { display: block; }
.ht-st:first-child .ht-l:first-child { padding-left: 0; text-indent: 0; }
.ht-st:first-child .ht-l:nth-child(2) { text-indent: 0; }
.ht-st:first-child .ht-l:first-child::first-letter { font-size: 3.22em; line-height: 0.8; float: left; color: var(--accent); padding: 0.075em 0.08em 0 0; margin-right: 0; }
/* THE TYPE FITS THE COLUMN (static/js/hymn-today.js): where the large letter would wrap a line, a smaller one stands in the
   first line, so no line is indented. */
.ht-inline-cap .ht-st:first-child .ht-l:first-child, .ht-inline-cap .ht-st:first-child .ht-l:nth-child(2) { padding-left: 1.1em; text-indent: -1.1em; }
.ht-inline-cap .ht-st:first-child .ht-l:first-child::first-letter { font-size: 1.9em; line-height: 0.7; float: none; padding: 0; margin: 0; }
.ht-by { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 1rem;
  margin: auto var(--ht-foot-indent, var(--ht-indent, 1.15rem)) 0; padding-top: 0.7rem; font-size: 0.86rem; }
.ht-by cite { font-style: italic; color: var(--muted); }
/* the rest of the books in use, below a rule where the large book stands above them */
.hb-sups { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 1rem; }
.hb-main + .hb-sups { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.hb-sup { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: start;
  border-radius: var(--radius); padding: 0.55rem; margin: -0.55rem 0 -0.55rem -0.55rem; }
.hb-sup .hb-name { font-size: 1.2rem; margin: 0 0 0.1rem; }
.hb-sup .hb-figs { gap: 0.3rem 1.05rem; margin: 0.5rem 0 0.55rem; }
.hb-sup .hb-f .l { font-size: 0.68rem; }
.hb-sup .hb-f .v { font-size: 1.05rem; }
.hb-sup .hb-f .c { font-size: 0.66rem; }
.hb-sup.hb-draft { border: 1px dashed var(--status-draft-fg); background: var(--status-draft-wash); }
.hb-sup .sh-loose { padding: 0; margin: 0 0 0.5rem; font-size: 0.82rem; }
/* OTHER HYMNALS: one line each, on the page's ground */
.hb-others { margin: 1.3rem 0.25rem 0; }
.hb-others h2 { font-size: 0.88rem; font-weight: 600; color: var(--muted); margin: 0 0 0.25rem; padding: 0; border: 0;
  font-family: inherit; }
.hb-o { display: grid; grid-template-columns: 23rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.3rem 0;
  border-top: 1px solid var(--border); font-size: 0.88rem; }
.hb-o a.nm { font-family: var(--font-serif); color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.hb-o .mut { color: var(--muted); }
.hb-o .sh-nobox label { font-size: 0.78rem; }
.hb-o .sh-loose { grid-column: 1 / -1; grid-row: auto; padding: 0; margin: -0.5rem 0 0; font-size: 0.8rem; }
.hb-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.9rem; margin: 0.6rem 0 0; }
@media (max-width: 1100px) {
  .hb-main { grid-template-columns: 150px minmax(0, 1fr); }
  .hb-main > .ht-page { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hb-shelf { padding: 1rem; }
  .hb-main { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .hb-name { font-size: 1.25rem; }
  .hb-f .v { font-size: 1.15rem; }
  .hb-figs { gap: 0.5rem 1.1rem; margin: 0.6rem 0; }
  .hb-sups { grid-template-columns: minmax(0, 1fr); }
  .hb-sup { grid-template-columns: 62px minmax(0, 1fr); margin: 0; padding: 0.55rem 0; }
  .hb-sup.hb-draft { padding: 0.55rem; }
  .hb-o { grid-template-columns: minmax(0, 1fr); gap: 0.1rem 0.8rem; padding: 0.45rem 0; }
  .hb-o .mut.fig { grid-column: 1; grid-row: 2; }
  .hb-o .sh-nobox { grid-column: 1; grid-row: 3; justify-self: end; margin-top: 0.2rem; }
  .hb-o .sh-loose { margin: 0.2rem 0 0; }
}

/* The Public domain column - Works list and both Archive tables. Three
   states, and the colour carries the one that matters: a work already free is
   the answer somebody is usually looking for, a future date is plain text
   because it is just a fact, and "Date unknown" is muted because it is an
   absence rather than a status. Deliberately NOT a status-pill: those mean
   REVIEW state, and a second family of pills in the same row would read as one
   vocabulary when it is two. */
.pd-cell { white-space: nowrap; font-size: 0.88rem; }
.pd-now { color: var(--status-published-fg); font-weight: 600; }
.pd-needs { font-style: italic; }

/* Admin Manage Publications/Recordings: the at-a-glance thumbnail in the
   Cover column, and the current-image block inside the edit row. */
.cover-thumb {
  display: block; width: 56px; height: 56px; object-fit: contain;
  border-radius: 4px; background: var(--bg); border: 1px solid var(--border);
}
.cover-edit-field { display: flex; flex-direction: column; gap: 0.5rem; }
.cover-edit-current { display: flex; align-items: center; gap: 0.6rem; }
.cover-edit-current .cover-thumb { width: 72px; height: 72px; }
/* THE ADMIN EDIT DIALOG - Manage Publications, Manage Recordings, the lookup
   lists and Themes. admin-edit-dialog.js MOVES the row's own <form> in here
   rather than rebuilding it, which is right (see that file) but means a form
   laid out for a table row has to sit inside a 440px dialog.

   Measured 2026-08-30 on Manage Recordings: the dialog was 440px wide and the
   grid's own tracks came to 450px, so the right-hand column - Number, and the
   whole cover-art block - ran 35px past the border. Three things fix it:

   1. minmax(0, 1fr) on .form-grid above, so a column may be narrower than the
      input inside it. That alone stops the spill.
   2. A wider dialog. Two columns of labelled fields plus a file picker do not
      belong in the width used for a one-sentence confirmation.
   3. Cover art across the full width. A file input is intrinsically wide, and
      the picker, the current image and "Remove image" read as one row rather
      than as three things stacked in half a column. */
.admin-edit-dialog { max-width: 34rem; }
.admin-edit-dialog .form-grid { row-gap: 0.1rem; }
/* A field that takes the whole dialog rather than half of it. Used by the
   title, which is the longest value on the form and the one the dialog is
   named after; it also pushes the field that followed it onto the next row. */
.admin-edit-dialog .form-grid > .field-wide { grid-column: 1 / -1; }
/* Grid items default to min-width:auto, which would reintroduce (1) one level
   down - the column can shrink, but the label inside it could not. */
.admin-edit-dialog .form-grid > label,
.admin-edit-dialog .form-grid > div { min-width: 0; }
.admin-edit-dialog input,
.admin-edit-dialog select,
.admin-edit-dialog textarea { max-width: 100%; }
/* Every field the same shape: label above, control below, control full width.
   They were inline, so a field wrapped to a second line only when its text
   happened not to fit - which is why Name sat beside its box and Year
   published sat above one, in the same dialog. Checkboxes are excluded: they
   belong beside their text, and the foreign-language flag carries its own
   inline flex layout. */
.admin-edit-dialog .form-grid > label:not(.checkbox-label) {
  display: block; margin-bottom: 0.7rem; font-size: 0.85rem; color: var(--muted);
}
/* Layout only, for the same reason as .stacked-form above. */
.admin-edit-dialog .form-grid > label:not(.checkbox-label) > input:not([type=checkbox]):not([type=radio]),
.admin-edit-dialog .form-grid > label:not(.checkbox-label) > select,
.admin-edit-dialog .form-grid > label:not(.checkbox-label) > textarea {
  display: block; width: 100%; margin-top: 0.25rem;
}
/* Cover art takes the whole width, and its three parts sit on ONE line in the
   order the job is done: pick a file, see what is held now, or drop it. They
   were stacked inside half a column, which is where the crowding came from. */
.admin-edit-dialog .cover-edit-field {
  grid-column: 1 / -1;
  flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 1.1rem; margin: 0.15rem 0 0;
}
/* The picker takes its own line so "Cover art" sits above its control like
   every other field, and the image held now sits under it. */
.admin-edit-dialog .cover-edit-field > label {
  flex: 1 1 100%; margin-bottom: 0; font-size: 0.85rem; color: var(--muted);
}
.admin-edit-dialog .cover-edit-field > label > input[type=file] {
  display: block; margin-top: 0.3rem;
}
.admin-edit-dialog .cover-edit-field input[type=file] { max-width: 100%; }
.admin-edit-dialog .cover-edit-current { flex: 0 1 auto; }
.admin-edit-dialog .cover-edit-current .checkbox-label { margin-bottom: 0; }
.admin-edit-dialog .btn-row { justify-content: flex-end; margin-top: 1.1rem; }
.search-result { padding: 1rem 1.5rem; }
.search-result h3 { margin: 0.1rem 0 0; font-size: 1.05rem; }
.search-result .search-matches { margin-top: 0.6rem; font-size: 0.88rem; }
.search-result mark { background: #f3e3b3; color: inherit; border-radius: 2px; padding: 0 1px; }

/* Wrap any .data-table in this so wide tables scroll instead of breaking layout on small screens */
.table-scroll { overflow-x: auto; }
/* THE CREATOR REGISTRY'S COLUMNS ARE FIXED (the user, 10/31: they "'jump' - widen and shrink" on every load):
   sized from the rows, they changed as the 1,105 rows arrived and the filter hid some. Shares of the width, Name
   taking the rest (35% on People and All); long words wrap in their cell; on a phone the table keeps a readable width and scrolls
   sideways in its .table-scroll. */
.registry-table { table-layout: fixed; min-width: 56rem; }
.registry-table td { overflow-wrap: break-word; }
.registry-table .rg-c-year { width: 7%; }
.registry-table .rg-c-contact { width: 18%; }
.registry-table .rg-c-nat { width: 12%; }
.registry-table .rg-c-member { width: 8%; }
.registry-table .rg-c-pd { width: 9%; }
.registry-table .rg-c-edit { width: 8%; }
/* WHAT THEY ARE (the user, 10/31/2026): each view draws its own columns (the colgroup in admin_registry.html).
   Organizations have no years, so their rights and nationality take more of the width; folk sources have a name
   and a nationality only, in a table no wider than they need, so the nationality never sits at the far right of
   a wide empty row - and at phone width it fits without scrolling. */
.registry-table.rg-v-org { min-width: 44rem; }
.registry-table.rg-v-org .rg-c-contact { width: 28%; }
.registry-table.rg-v-org .rg-c-nat { width: 16%; }
.registry-table.rg-v-org .rg-c-pd { width: 11%; }
.registry-table.rg-v-folk { min-width: 0; max-width: 40rem; }
.registry-table.rg-v-folk .rg-c-nat { width: 38%; }
.registry-table.rg-v-folk .rg-c-edit { width: 6.5rem; }
/* All: after a folk source's or an organization's name, what it is, quietly. */
.rg-kind-pill { display: inline-block; font-size: 0.72rem; line-height: 1.5; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 0.45rem; margin-left: 0.3rem;
  white-space: nowrap; vertical-align: 0.05rem; }

.data-table tbody tr:hover { background: #f7f2ea; }

.card h2 { font-size: 1.1rem; margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
/* The hymn text itself, not just its heading, gets the serif treatment and
   a bit more breathing room - it's the one place in the app someone sits
   and reads at length rather than scans. */
.lyrics-text { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.7; }

/* Row-scoped stanza arrangement editor (work_detail.html, shown when a
   lyrics work's page is reached via a publication/recording row's own
   link - see row_context in WorkDetailHandler). Full-width prose sizing,
   deliberately NOT reusing the contents table's own .pub-stanza-* rules,
   which were sized for an 18rem-wide table-cell disclosure rather than a full
   card - and which is why this survived unchanged when that disclosure was
   removed on 2026-08-20. */
.wd-stanza-context-note { margin-top: -0.3rem; margin-bottom: 0.85rem; }
.wd-stanza-selected, .wd-stanza-excluded { display: flex; flex-direction: column; gap: 0.9rem; }
.wd-stanza-divider {
  margin: 1rem 0 0.6rem; padding-top: 0.85rem; border-top: 1px dashed var(--border);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.wd-stanza-row { padding-bottom: 0.9rem; border-bottom: 1px dashed var(--border); }
.wd-stanza-row:last-child { border-bottom: none; padding-bottom: 0; }
.wd-stanza-row-controls { display: flex; align-items: center; justify-content: flex-start; gap: 0.4rem; margin-bottom: 0.3rem; }
.wd-stanza-checkbox { margin: 0; font-size: 0.85rem; white-space: nowrap; }
.wd-stanza-label {
  display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--muted); margin-bottom: 0.3rem;
}
/* THE GRIP BEFORE A TICKED STANZA'S CHECKBOX (user, 2026-10-24, of the up and down arrow buttons that stood at
   the line's right: "I dislike the UI of these arrow buttons" - drawn, "this is good"). Its look is the ONE
   DRAG GRIP rule at the end of this file; here what is its own: a finger on it drags rather than scrolls, a
   keyboard's focus shows, and a stanza left out keeps the grip's place with nothing in it, so the checkboxes
   stay in line. While a stanza is dragged every ticked stanza shows its first line only (stanza-grips.js), so
   a long hymn fits the dialog. */
.wd-stanza-grip { touch-action: none; }
.wd-stanza-grip:focus-visible { color: var(--accent); background: rgba(122, 59, 46, 0.1); outline: 2px solid var(--accent); outline-offset: 1px; }
.wd-stanza-row-excluded .wd-stanza-grip { visibility: hidden; }
.wd-stanza-selected.is-sorting { user-select: none; }
.wd-stanza-selected.is-sorting .lyrics-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
  margin: 0.3rem 0 0; }
.wd-stanza-row.is-dragging { background: rgba(122, 59, 46, 0.06); border-radius: 6px; box-shadow: 0 2px 10px rgba(43, 38, 32, 0.12); }
.wd-stanza-row.is-dragging .wd-stanza-grip { cursor: grabbing; color: var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.9rem; }
.card-head h2 { margin: 0; padding: 0; border: none; }

.intake-section summary {
  cursor: pointer; font-size: 1.1rem; font-weight: 600; color: var(--ink);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.intake-section[open] summary { margin-bottom: 0.5rem; }
.intake-section .form-section:first-of-type { margin-top: 1rem; }

/* Collapsed per-row relation editor on the Works list */
.relation-disclosure summary {
  cursor: pointer; color: var(--accent); font-size: 0.82rem; list-style: none; white-space: nowrap;
}
.relation-disclosure summary::-webkit-details-marker { display: none; }
.relation-disclosure summary::before { content: '▸ '; }
.relation-disclosure[open] summary::before { content: '▾ '; }
.relation-disclosure .rel-fields { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 220px; }
.relation-disclosure .rel-fields label { font-size: 0.75rem; color: var(--muted); display: block; }
.relation-disclosure .rel-fields input { width: 100%; }

/* Publications tab header: the container-scoped actions (Back link, Page/
   Track view, Reveal creator info) stay grouped on the left, while
   Publish/Unpublish is pushed to the row's own right edge.

   The row grows to claim the .page-header's remaining width (its sibling
   <h1> doesn't grow), but min-width stops it being squeezed into a narrow
   column: a long container name like "A New Hymn - SHZ Supplement 1"
   leaves too little room beside the title, and without a floor the row
   shrank until every button wrapped onto its own line. max-content is the
   row's natural single-line width, so it either sits beside the title or
   wraps whole onto the next line, where it spans full width; min() caps
   that against the header itself so a narrow viewport still wraps the
   buttons internally instead of overflowing sideways.

   margin-left:auto on the second group (rather than
   justify-content:space-between on the row) keeps Publish/Unpublish
   pinned right even when it lands on a line of its own - space-between
   goes inert with a single item, margin-left:auto does not. */
.pub-header-actions { flex: 1 1 auto; min-width: min(100%, max-content); }
/* A recording's number/year/style, directly under its name. Carries --ink
   rather than the --muted most secondary lines use: these are the
   recording's own identifying facts, not incidental chrome, so they read
   at full body-text weight. The "nothing recorded yet" fallback keeps
   .muted, since that genuinely is an absence rather than information. */
.pub-meta-line { margin: 0; color: var(--ink); }
.pub-header-actions-group { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.pub-header-actions-group + .pub-header-actions-group { margin-left: auto; }
/* ONE ROW IN THREE CELLS (r154, the user, 2026-10-26: "I'm wondering if all the controls should just go on one row
   at the top. How could a single row be arranged to be simple and clear, and not cluttered, yet show everything it
   needs to show?" - drawn, "yes"), a book's List view and its Page/Track view alike: LEFT where you are ("<- Hymnals",
   the view switch, a Manager's eye), MIDDLE the book's state, RIGHT this view's tools. A GRID whose two side columns
   are equal shares of what is left, so the middle cell sits on the row's TRUE centre in flow - nothing placed out of
   flow, nothing on top of anything; a side wider than its share moves the middle a little, never over a control.
   It replaces the pill taken out of flow and centred with :has() (2026-09-26 and 2026-10-25), and the top line the
   back link stood on alone (r107, r112, r117). Every item the controls' one height. ONLY A DRAFT says so in the
   middle (the user, the same day: "I understand a pill for things that are in draft form or are incomplete or need
   attention"); on a published book the cell stays, empty, so nothing moves. */
.pub-header-actions-row, .ppv-top-row { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  column-gap: 1.5rem; row-gap: 0; align-items: center; min-height: var(--pub-ctl-h); }
.pub-row-left { grid-column: 1; grid-row: 1; justify-self: start; flex-wrap: nowrap; gap: 0 1.25rem; margin: 0; }
.pub-row-left .pub-back-link { font-size: 0.9rem; }
.pub-row-left > .pub-eye-btn { margin-left: -0.65rem; }
.pub-header-actions-row > .pub-status-centre, .ppv-top-row > .pub-status-centre { grid-column: 2; grid-row: 1;
  justify-self: center; display: flex; align-items: center; }
.pub-row-right { grid-column: 3; grid-row: 1; justify-self: end; flex-wrap: nowrap; gap: 0.5rem; margin: 0; }
.pub-header-actions-row > .pub-row-right > #open-publish-container { margin-left: 0.4rem; }
.ppv-top-row > .pub-row-right { gap: 1rem; }
/* Bigger than a table pill: this one answers "where is this book up to",
   not "which of these thirty rows is which". */
.pub-status-centre .status-pill {
  font-size: 0.9rem; padding: 0.35rem 1.15rem; letter-spacing: 0.1em;
}
/* THE MANAGER'S EYE (r154): Reveal creator info as a round button the size of Slides and Print, an eye drawn in it;
   pressed, the eye struck through and named Hide creator info, outlined in the accent on its tint - a choice made,
   not an action (choices outlined, actions filled). base.html's handler sets aria-pressed; the drawing follows. */
.pub-eye-btn .pub-eye-off { display: none; }
.pub-eye-btn[aria-pressed="true"] .pub-eye-on { display: none; }
.pub-eye-btn[aria-pressed="true"] .pub-eye-off { display: block; }
.btn.pub-round-btn.pub-eye-btn[aria-pressed="true"] { background: #f7ebe6; border-color: var(--accent); }
/* THE SEARCH NARROWS to 12.5rem below 1000px, where the row would otherwise run short of room - still wide enough
   for its own hint, "Search this recording" the longest (at 11rem "Search this hymnal" lost its last letter). */
@media (max-width: 999.98px) { .ppv-find #ppv-find { width: 12.5rem; } }
/* BELOW 900px, TWO LINES (r154), nothing hidden and nothing in a menu: line 1 the left cell; line 2 the state at the
   left and the right cell at the right, drawn only when it holds something; the right cell wraps, so at 320px
   Publish takes a line of its own, flush right. The Page view below 640px takes a third line for the search where
   Generate file shares line 2 with the state; a reader with no Generate file has the search on line 2. */
@media (max-width: 899.98px) {
  .pub-header-actions-row, .ppv-top-row { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.6rem; }
  .pub-row-left { grid-column: 1 / -1; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .pub-row-left > .pub-eye-btn { margin-left: 0; }
  .pub-header-actions-row > .pub-status-centre, .ppv-top-row > .pub-status-centre { grid-column: 1; grid-row: 2; justify-self: start; }
  .pub-header-actions-row > .pub-status-centre:empty, .ppv-top-row > .pub-status-centre:empty { display: none; }
  .pub-row-right { grid-column: 2; grid-row: 2; flex-wrap: wrap; justify-content: flex-end; }
  .pub-header-actions-row > .pub-row-right:not(:has(> .btn, > .pub-more)) { display: none; }
}
@media (max-width: 639.98px) {
  .ppv-top-row > .pub-row-right { display: contents; }
  .ppv-top-row .ppv-generate { grid-column: 2; grid-row: 2; justify-self: end; }
  .ppv-top-row .ppv-find { grid-column: 2; grid-row: 2; min-width: 9rem; }
  .ppv-top-row:not(:has(.status-pill)) .ppv-find { grid-column: 1 / -1; }
  .ppv-top-row:has(.ppv-generate) .ppv-find { grid-column: 1 / -1; grid-row: 3; }
  .ppv-find #ppv-find { width: 100%; }
}
/* THE NOTICE UNDER THE ROW (2026-10-25, the user: "fix these" - in the row a two-line Locked notice made the
   band 61px tall and pushed PUBLISHED off centre): the row's whole width, on a line of its own under the
   three cells; its box as wide as its words, centred. */
.pub-header-actions-row > .pub-header-locked { grid-column: 1 / -1; margin: 0.55rem 0 0; text-align: center; }
.pub-header-locked > .pub-numbering-locked { display: inline-block; max-width: 100%; margin: 0; border-left: none; }
/* THE BAND, GROUPED BY JOB (user, 2026-10-24: "I'm also wondering about this row of buttons and information. What
   can be done here?" - drawn, then "I'm liking this direction"). LEFT, getting around: "<- Hymnals" a quiet link,
   then the view as a two-way switch, the app's own .segmented, rounded as the band's pills are, the view you are
   on filled and the other a link. The Page/Track view's band carries the same two. */
.pub-back-link { color: var(--accent); text-decoration: none; padding: 0.3rem 0.2rem; font-size: 0.92rem; white-space: nowrap; }
.pub-back-link:hover, .pub-back-link:focus-visible { text-decoration: underline; }
/* THE WAY BACK ON EVERY PAGE (the button sweep, 2026-10-25: "back action to link"): "<- <where>", or "<- Back"
   where the page returns to wherever you came from. It starts the page's top line; where the page has a
   controls' row, it is that row's first item - a book's List view and Page view (r154, 2026-10-26: "all the
   controls should just go on one row at the top"), and a gap list. */
.page-back { display: flex; margin: 0 0 0.55rem; }
.page-back .pub-back-link { font-size: 0.9rem; }
.segmented.pub-view-switch { margin: 0; border-color: var(--border-strong); background: var(--card); }
.pub-view-switch > * { font-size: 0.88rem; padding: 0.32rem 0.9rem; }
.pub-view-switch > a { color: var(--accent); }
/* RIGHT: what is rare and sweeping - Lock, Settle, Unlock, Unpublish - behind one "More" (three dots), left of
   Publish (user, 2026-10-24: "I wonder if instead of grouping it would make sense to put any or all of the
   buttons behind a 'hamburger' menu"). A <details>; its menu hangs from its right edge, or from its left where
   that would run off the screen (.pub-more-left, set by the script as it opens). */
.pub-more { position: relative; display: inline-block; }
.pub-more > summary { list-style: none; }
.pub-more > summary::-webkit-details-marker { display: none; }
.pub-more-btn { padding-left: 0.85rem; padding-right: 0.85rem; line-height: 1.35; }
.pub-more[open] > .pub-more-btn { border-color: var(--accent-light); background: var(--card); }
.pub-more-menu { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 40; min-width: 13rem;
  display: flex; flex-direction: column; padding: 0.35rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 6px 18px rgba(43, 38, 32, 0.14); }
.pub-more-menu.pub-more-left { right: auto; left: 0; }
.pub-more-menu > form { display: block; margin: 0; }
.pub-more-item { display: block; width: 100%; appearance: none; border: 0; background: none; font: inherit;
  font-size: 0.92rem; color: var(--ink); text-align: left; padding: 0.45rem 0.75rem; border-radius: 6px;
  cursor: pointer; white-space: nowrap; }
.pub-more-item:hover, .pub-more-item:focus-visible { background: var(--card-alt); }
/* THE ROW'S RIGHT (user, 2026-10-24, of Supplement 2's band - "...", Publish, Slides and Print square-cornered
   beside the List view | Page view pill: "Should these be pill style?"; then "I wonder if the slides and print
   button should just be round with an icon instead of oval and text", "in that case, then maybe 'publish' needs
   to be move to the far right?" and "Can the slides icon be a projector screen instead of whatever it currently
   is?" - drawn as r112, r114, r115 and r116, "yes - i like it"; every kind alike, r117): Slides, Print and More
   ROUND, an icon or the three dots each, then Publish the filled pill at the far right - all THE SWITCH'S
   HEIGHT, said once as the Page view says it (--ppv-ctl-h): .segmented > *'s 0.85rem label at the body's 1.5
   line height, 0.35rem above and below, the switch's 1px border top and bottom. .pub-pill-btn is the page's
   pill at that height (Generate Legal Agreements). The row is that height however little it holds (r154). */
:root { --pub-ctl-h: calc(0.85rem * 1.5 + 0.7rem + 2px); }
.pub-header-actions-row .pub-view-switch { box-sizing: border-box; height: var(--pub-ctl-h); }
.btn.pub-round-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: var(--pub-ctl-h); height: var(--pub-ctl-h); padding: 0; border-radius: 50%; line-height: 1;
  background: var(--card); color: var(--accent); border: 1px solid rgba(122, 59, 46, 0.45); }
.btn.pub-round-btn:hover, .btn.pub-round-btn:focus-visible { background: rgba(122, 59, 46, 0.08); border-color: var(--accent); box-shadow: none; }
.pub-round-btn svg { display: block; flex: 0 0 auto; }
.btn.pub-pill-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  height: var(--pub-ctl-h); padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.btn-primary.pub-pill-btn { padding-left: 1.1rem; padding-right: 1.1rem; }

/* Publications tab: one hymn row's Lyrics/Melody/Arrangement/Original
   Language columns can each stack more than one entry (e.g. two
   arrangements sharing a number) - .pub-entry-edit reuses
   .relation-disclosure's summary-arrow styling above via the same class. */
.pub-hymn-table td { vertical-align: top; }
.pub-hymn-entry { margin-bottom: 0.45rem; }
.pub-hymn-entry:last-child { margin-bottom: 0; }
/* Each work in a row is FRAMED (user, 2026-08-20). The × removes one entry,
   and with the entries separated only by a dashed rule it was not obvious
   which one a given × belonged to - the title, its markers, its creator and
   the next work's title all ran together down one cell. A box says what the
   button is about to take out.

   Subtle on purpose: a 1px border in the page's own border colour on the card
   ground, not a card of its own. Twelve of these to a screen, and anything
   heavier turns a contents table into a wall of boxes.

   It REPLACES the dashed rule that used to separate stacked entries - a frame
   and a divider are two answers to one question, and drawing both put a line
   between every pair of boxes that were already visibly apart. */
.pub-hymn-entry {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.4rem 0.5rem;
}
/* "Take this one selection out of the row" - pinned to the entry's TOP RIGHT
   (user, 2026-08-20) - the bin since 2026-10-24. It used to run inline after
   the title and its markers, which put it in the middle of a line of text
   where it read as punctuation rather than as a control, and moved every time
   a marker appeared or disappeared. A fixed corner is a control you can aim
   at without reading the row first.

   The entry reserves room for it on the right, so a long title wraps before
   it reaches the button rather than running underneath it. Inset from the
   frame's own corner rather than sitting on it. */
.pub-hymn-entry { position: relative; padding-right: 1.9rem; }
.pub-entry-remove { position: absolute; top: 0.3rem; right: 0.35rem; margin: 0; line-height: 0; }
/* THE BIN, not an x in a circle (user, 2026-10-24: "the circle buttons with 'x' should probably be a trash can
   to more clearly indicate that they remove the item from the row"): .ico-btn's look - no box, faint until its
   entry is pointed at, red on the bin itself. */
.pub-entry-remove-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0.15rem; border: 0; border-radius: 4px; background: none;
  line-height: 0; color: var(--muted); opacity: 0.75; cursor: pointer;
}
.pub-hymn-entry:hover .pub-entry-remove-btn { opacity: 1; }
.pub-entry-remove-btn:hover { color: var(--error); opacity: 1; background: none; }
.pub-entry-remove-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pub-hymn-creator { font-size: 0.8rem; }
.pub-entry-edit { margin-top: 0.25rem; }
.pub-entry-edit input[name="number"] { width: 4rem; margin-top: 0; }
/* Remove sits directly under Edit in the number column rather than folded
   inside it. Its own line, so it never reads as part of the number. */
.pub-entry-remove-row { display: block; margin-top: 0.2rem; }
.pub-entry-remove-row .link-btn.danger { font-size: 0.85em; }

/* The container's cover, left of its name in the page header, exactly as
   tall as the title block beside it (h1, plus a recording's number/year/
   style line) - never a fixed box.

   The height comes from --pub-cover-h, which the small script under the
   header sets from that block's measured height. CSS alone cannot express
   it: the constraint is circular. `align-self: stretch` does not work
   because a stretched flex item still offers its INTRINSIC height as its
   contribution to the line, so a 752px cover makes the line 752px tall and
   then dutifully fills it; and `height: 0; min-height: 100%` collapses to
   nothing, because the container's height is content-derived and so never
   definite enough for the percentage to resolve against. Measured both.

   The fallback in the var() is what a reader with JS off gets - a plain
   thumbnail rather than a broken one. With a definite height and `width:
   auto` the image's own aspect ratio settles the width, so a portrait book
   cover and square album art both end level with the text, neither
   letterboxed nor cropped. */
.pub-header-title { display: flex; align-items: flex-start; gap: 0.9rem; min-width: 0; }
/* min-width:0 lets the title column actually shrink inside the flex row, and
   overflow-wrap breaks the one long word that otherwise runs off the right
   edge on a narrow screen ("...SHZ Supplement 1" at 375px). */
.pub-header-titletext { min-width: 0; overflow-wrap: anywhere; }
.pub-header-cover {
  height: var(--pub-cover-h, 3.25rem); width: auto;
  /* The height tracks the title block, but only up to a point. On a narrow
     screen a long name wraps to four lines and the block goes past 500px -
     matching that turned a thumbnail into a banner, letterboxed top and
     bottom once max-width capped how wide it could grow to keep up. The cap
     is above every unwrapped case (50px for a hymnal, 74px for a recording
     with its meta line), so at normal widths the two still end level. */
  max-height: 6rem; max-width: 10rem; object-fit: contain;
  border: 1px solid var(--border); border-radius: 3px; background: var(--paper);
}
/* The .pub-stanza-* rules that styled the per-entry stanza editor inside a
   contents-table cell are gone (user, 2026-08-20, with the disclosure). The
   row-selection dialog's own wider stanza editor is a DIFFERENT control and
   keeps its .wp-stanza-* rules below - the comment at line ~1506 that says it
   deliberately does not reuse these is why they were never shared, and why
   removing these took nothing with them. */
.pub-number-cell { white-space: nowrap; }
.pub-number-cell .drag-handle { cursor: grab; color: var(--muted); margin-right: 0.35rem; user-select: none; }
.pub-number-cell .drag-handle:active { cursor: grabbing; }
.pub-hymn-row.drag-over { box-shadow: inset 0 2px 0 var(--accent); }
.pub-hymn-row.drag-over.drag-after { box-shadow: inset 0 -2px 0 var(--accent); }
/* BACK TO THE ROW (user, 2026-10-08): a page view's List View lands on its
   number's row (#n-<number>), lit for a moment so the eye finds it - the
   colour the Service Planner lights a change with - and kept clear of the
   pinned banner when the page goes to it. On the cells, because a row's own
   background is what :hover already paints. */
@keyframes pub-row-lit { from { background-color: #fff6dc; } to { background-color: transparent; } }
.pub-hymn-table tbody tr:target > td { animation: pub-row-lit 2s ease-out; }
.pub-hymn-table tbody tr[id] { scroll-margin-top: 3.5rem; }

/* A periodical's edition holds one sub-row per hymn (see _split_hymn_units).
   The rule separates them WITHOUT crossing the issue-date cell: the date cell
   is rowspanned, so a border-top on the sub-row's own cells starts after it -
   which is exactly the statement, one edition, several hymns inside it. */
.pub-hymn-subrow > td { border-top: 1px dashed var(--border); }

/* A periodical's issue publishes on its own, so its Publish/Unpublish sits
   in the Issue Date cell with Edit and Remove rather than in the page
   header. Its own line: inline beside the date it read as part of the date. */
/* The Issue Date / Number cell's controls are BUTTONS now (user,
   2026-08-21) - they act rather than navigate, and as links they read as
   part of the number above them. Stacked, each on its own line, and sized
   to the narrowest column on the page rather than to their labels. */
.pub-edition-status { display: block; margin-top: 0.3rem; }
.pub-number-cell .btn-sm { width: 100%; text-align: center; }
.pub-entry-remove-row { display: block; margin-top: 0.3rem; }
.pub-edition-pill { display: inline-block; margin-left: 0.35rem; vertical-align: middle; }

/* The line that says a placement's text is the copy frozen when its
   container was published. Marked rather than merely worded: a frozen panel
   and a live one are otherwise identical on screen, and the difference only
   surfaces when somebody notices an edit did not appear. */
.wd-stanza-frozen {
  border-left: 3px solid var(--accent-light); padding-left: 0.6rem;
  margin-top: -0.2rem; font-size: 0.85rem;
}
/* And the edition itself gets the solid rule the table already uses between
   rows, so an edition boundary still reads as heavier than a hymn boundary. */
.pub-hymn-table tbody tr.pub-hymn-row > td { border-top: 1px solid var(--border); }
.pub-hymn-table tbody tr.pub-hymn-row:first-child > td { border-top: none; }
/* Melody lettering (a/b/c..., only shown once a row has 2+ melodies) and
   the small nested drag handle for reordering melodies within one row, or
   arrangements within one melody's own group - a smaller, inline sibling
   of .pub-number-cell's row-level drag-handle above, not a replacement
   for it. */
.pub-melody-letter { font-weight: 600; color: var(--accent); margin-right: 0.15rem; }
.pub-entry-drag-handle {
  cursor: grab; color: var(--muted); margin-right: 0.3rem; user-select: none; font-size: 0.85rem;
}
.pub-entry-drag-handle:active { cursor: grabbing; }
.pub-hymn-entry.drag-over { box-shadow: inset 0 2px 0 var(--accent); }
.pub-melody-arrangement-row.drag-over { box-shadow: inset 0 2px 0 var(--accent); }
/* Per-cell Select/+Add button that opens the row-selection dialog - sits
   right under that column's entries (or alone, in an empty column). Small
   and quiet by design - it's a secondary, always-visible action repeated
   on every row, not something that should compete with the row's own
   content for attention. */
.pub-hymn-table .work-picker-open {
  margin-top: 0.3rem; display: inline-block; padding: 0.15rem 0.4rem;
  font-size: 0.76rem; border-color: transparent; color: var(--muted);
}
.pub-hymn-table .work-picker-open:hover { border-color: var(--border); color: var(--accent); }

/* Melody/Arrangement share one colspan'd cell, laid out as a grid with one
   row per melody group - see the template comment above this <td> for why.
   .pub-melody-arrangement-cell drops the table's own cell padding so each
   inner row can carry its own (consecutive rows would otherwise double up
   the padding between them); the dashed divider sits on the row itself so
   it spans the full width of both columns in one unbroken line, instead of
   the old two independently-drifting per-column dividers. */
/* QUALIFIED BY THE TABLE, or it never applied (user, 2026-09-11: "these tiles
   are not aligned nicely (top aligned)"). `.data-table td` sets the padding
   and is one specificity point HIGHER than a lone class, so this rule lost and
   the cell kept 0.65rem of its own - which the inner row then added to again.
   Measured: the Lyrics and Original Language tiles sat 11px from the top of
   the row and the Melody/Arrangement pair 22px, in every row on the page. */
.pub-hymn-table td.pub-melody-arrangement-cell { padding: 0; }
.pub-melody-arrangement-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem;
  align-items: start; padding: 0.65rem 0.8rem;
}
.pub-melody-arrangement-row-divided { border-top: 1px dashed var(--border); }
/* The grid row already spaces one melody group from the next, so the last
   entry in a column needs no margin of its own - but a column stacking two
   arrangements still does, or their two frames would touch. */
.pub-melody-arrangement-col .pub-hymn-entry:last-child { margin-bottom: 0; }

/* "Renumber all" - sits inline in the "Numbered [count]" heading itself,
   right after the count badge, rather than buried in the table header. */
.pub-renumber-all { margin-left: 0.6rem; vertical-align: middle; }

/* Recordings section header: the "Sort by" control sits directly next to
   the "Recordings" title itself (both grouped on the left), leaving
   "Create new recording" as .page-header's sole right-hand child - without
   this wrapper, .page-header's own space-between would spread all three
   (title/sort-by/button) apart across the row instead of grouping the
   first two. */
.pub-section-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* The three cross-references stacked in one cell. Each disclosure keeps its
   own line so "2 hymnals / 1 recording" reads as two facts rather than a
   run-on. */
.pub-pills-cell > .relation-disclosure { display: block; margin-bottom: 0.25rem; }
.pub-pills-cell > .relation-disclosure:last-child { margin-bottom: 0; }

/* Column widths for the contents table. Before the three cross-reference
   columns were merged, the four work columns were squeezed into whatever the
   seven-column table left them and a title like "Christmas Peace (In the world
   of sin)" wrapped onto three lines. Stated as percentages so the table divides
   the width deliberately rather than by content measurement, which gave the
   widest cell in any row the casting vote.

   table-layout stays `auto`: `fixed` would ignore a long untruncatable title
   entirely and overflow the cell instead of growing the row. These are hints
   the browser honours where it can. */
.pub-hymn-table th:nth-child(1) { width: 7%; }    /* Number */
.pub-hymn-table th:nth-child(2) { width: 21%; }   /* Lyrics */
.pub-hymn-table th:nth-child(3),                  /* Melody + Arrangement, */
.pub-hymn-table th:nth-child(4) { width: 21%; }   /* one colspan=2 cell */
.pub-hymn-table th:nth-child(5) { width: 18%; }   /* Original Language */
.pub-hymn-table th:nth-child(6) { width: 12%; }   /* Other Publications, or
                                                     Other Recordings on a
                                                     recording's own view */
/* The number set larger than the cell's own 0.92rem (user, 2026-08-17). It is
   what a reader scans the left edge of the table for, and it is now the link
   into that row's page view, so it earns being the biggest thing in its cell -
   the Edit and Remove controls beneath it stay at the table's size. */
.pub-number-link {
  font-weight: 600; font-size: 1.35rem; line-height: 1.15;
  display: inline-block; vertical-align: middle;
}

/* The landing-page collapse toggle these styled is gone (user,
   2026-08-20). Each of the five sections is its own page now, and a page
   holding one kind and nothing else had no use for a disclosure between
   the reader and the only thing on it - see container_landing.html. */

/* Row-selection dialog (work-picker-dialog.js) - same overlay pattern as
   .modal-overlay/.modal-dialog, wider to fit tabs + search results + the
   stanza sub-editor. */
.wp-overlay {
  position: fixed; inset: 0; background: rgba(43, 38, 32, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  padding: 1rem;
}
.wp-overlay[hidden] { display: none; }
.wp-dialog {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); padding: 1.25rem 1.5rem;
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
}
.wp-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.wp-dialog-header h2 { margin: 0; font-size: 1.1rem; }
/* Its x: EVERY DIALOG'S CLOSE X, with every other dialog's. .wp-dialog-close also tags the dialog's Cancel
   button, as the one hook work-picker-dialog.js closes by; that button keeps its .btn.btn-ghost look, which is
   why the x is found by its name, Close, and not by this class. */

.wp-type-select, .wp-number-field { margin-bottom: 0.85rem; }
.wp-type-select { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wp-type-select .checkbox-label { margin-bottom: 0; }
.wp-number-field label { font-size: 0.85rem; color: var(--muted); }
.wp-number-field input { margin-top: 0.3rem; }
/* WHAT THE NUMBER DOES, UNDER THE BOX (r150, the user, 2026-10-26: "yes"): the number a blank box takes and an
   open book's gaps as chips that fill it; then what a typed number meets - free in green, moved or joined in
   ink, refused in red - the occupant's title in curly quotes. */
.wp-free { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0 0; font-size: 0.86rem; color: var(--muted); }
.wp-free[hidden], .wp-number-say[hidden] { display: none; }
.wp-free-gaps { margin-left: 0.45rem; }
.wp-free-chip { font: inherit; font-variant-numeric: tabular-nums; color: var(--accent); background: var(--card);
  border: 1px solid rgba(122, 59, 46, 0.45); border-radius: 999px; padding: 0.05rem 0.6rem; cursor: pointer; }
.wp-free-chip:hover, .wp-free-chip:focus-visible { background: rgba(122, 59, 46, 0.08); border-color: var(--accent); }
.wp-number-say { margin: 0.45rem 0 0; font-size: 0.86rem; color: var(--muted); }
.wp-number-say.is-free { color: var(--success); }
.wp-number-say.is-moves, .wp-number-say.is-joins { color: var(--ink); }
.wp-number-say.is-taken, .wp-number-say.is-invalid { color: var(--error); }
.wp-number-say q { font-style: italic; quotes: "\201C" "\201D"; }

.wp-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0.85rem; }
.wp-tab {
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  font: inherit; font-size: 0.88rem; color: var(--muted); padding: 0.45rem 0.7rem;
}
.wp-tab:hover { color: var(--ink); }
.wp-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.wp-tab-body[hidden] { display: none; }

.wp-search-modes { display: flex; gap: 1rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.wp-search-modes .checkbox-label { margin-bottom: 0; font-size: 0.85rem; }
.wp-search-inputs { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.wp-search-inputs input, .wp-search-inputs select { flex: 1 1 180px; }
.wp-search-hymnal-field[hidden] { display: none; }

.wp-empty-note { margin: 0.5rem 0; }
.wp-results { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem; }
.wp-result-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
  width: 100%; text-align: left; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 0.7rem; cursor: pointer; font: inherit; color: var(--ink);
}
.wp-result-row:hover { border-color: var(--accent-light); background: #f8f4ee; }
.wp-result-row.selected { border-color: var(--accent); background: #f1ebe1; }
.wp-result-title { font-weight: 600; }
.wp-result-creator, .wp-result-meter { font-size: 0.8rem; }
/* Arrangement's Already-related tab, grouped by melody when more than one
   melody sits on the row - a plain label above each melody's own indented
   arrangement row(s), not a clickable result itself. */
.wp-result-group-header {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); margin: 1rem 0 0.4rem; padding: 0.7rem 0 0 0.7rem;
  border-top: 1px dashed var(--border);
}
.wp-result-group-header:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.wp-result-row-sub { margin-left: 1rem; width: calc(100% - 1rem); }

/* Row-selection dialog's melody/arrangement chooser, shown when a Lyrics
   work is selected (see WorkPickerFamilyHandler) - one row per already-
   related melody, its own arrangement(s) indented beneath it, mirroring
   .wp-result-group-header/.wp-result-row-sub's grouped look but as
   checkboxes rather than clickable buttons. */
.wp-family-chooser { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.wp-family-chooser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.wp-family-clear-link { font-size: 0.82rem; white-space: nowrap; }
.wp-family-melody-row, .wp-family-arrangement-row {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; font-size: 0.9rem;
}
.wp-family-arrangement-row { margin-left: 1.5rem; }
.wp-family-title { font-weight: 600; }
.wp-family-meta { font-size: 0.8rem; color: var(--muted); }

.wp-stanza-editor { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.wp-stanza-row {
  display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--border);
}
.wp-stanza-row:last-child { border-bottom: none; }
.wp-stanza-checkbox { flex: 0 0 auto; margin-bottom: 0; font-size: 0.85rem; white-space: nowrap; }
.wp-stanza-preview { flex: 1 1 auto; font-size: 0.82rem; }
.wp-stanza-actions { flex: 0 0 auto; display: flex; gap: 0.3rem; white-space: nowrap; }

.wp-dialog-footer { display: flex; gap: 0.6rem; margin-top: 1.1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }

/* App Reference page (admin_docs.html) */
.docs-toc ul { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.2rem; }
.docs-toc li { break-inside: avoid; margin-bottom: 0.3rem; }
@media (max-width: 700px) { .docs-toc ul { columns: 1; } }
.docs-entry summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
  padding: 0.55rem 0; border-bottom: 1px dashed var(--border);
}
.docs-entry:last-of-type summary { border-bottom: 1px dashed var(--border); }
.docs-entry summary::-webkit-details-marker { display: none; }
.docs-entry summary::before { content: '▸ '; color: var(--accent); }
.docs-entry[open] summary::before { content: '▾ '; }
.docs-entry-hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 0.4rem; }
.docs-entry-body { padding: 0.7rem 0 1rem 1.1rem; }
.docs-entry-body p:first-child { margin-top: 0; }

/* Reviews dashboard: collapsible work-type sections and, nested inside
   each, collapsible review-status subsections - same triangle-marker
   disclosure language as .docs-entry/.relation-disclosure above, applied
   to the existing h2/h3 headings instead of plain text. .docs-section
   (admin_docs.html/admin_roles.html's own top-level <details class="card">
   sections) reuses this exact same look rather than duplicating it. */
.dashboard-section > summary, .dashboard-subsection > summary, .docs-section > summary,
.report-section > summary {
  cursor: pointer; list-style: none;
}
.dashboard-section > summary::-webkit-details-marker,
.dashboard-subsection > summary::-webkit-details-marker,
.docs-section > summary::-webkit-details-marker,
.report-section > summary::-webkit-details-marker { display: none; }
.dashboard-section > summary::before, .dashboard-subsection > summary::before, .docs-section > summary::before,
.report-section > summary::before {
  content: '▸ '; color: var(--accent);
}
.dashboard-section[open] > summary::before, .dashboard-subsection[open] > summary::before,
.report-section[open] > summary::before,
.docs-section[open] > summary::before { content: '▾ '; }
.dashboard-section > summary h2, .docs-section > summary h2, .report-section > summary h2 { display: inline; border: none; padding: 0; margin: 0; }
.dashboard-subsection > summary h3 { display: inline; margin: 0; }
.dashboard-section > summary, .docs-section > summary, .report-section > summary { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.9rem; }
.dashboard-subsection { margin-top: 1rem; }
/* Themes admin page: the rename/remove-section controls sit below the
   collapsible summary rather than in a table cell, so .lookup-actions'
   table-oriented nowrap would overflow narrow viewports - let this one
   wrap, with a bit of row spacing and a bottom margin before the theme
   table starts. */
.section-actions { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.docs-field-table th, .docs-field-table td { font-size: 0.85rem; }
/* THE APP REFERENCE'S SUMMARIES AND PICTURES (user, 2026-10-05: "favor short and sweet language with a
   bias toward bullet points, and use diagrams and other visualizations"). Three components every section
   may use - the At a glance box, a row of steps joined by arrows, two columns side by side - and the size
   of the drawn figures. Colored from the theme, so they sit in a card like everything else in it. */
.docs-glance { background: var(--card-alt); border-left: 3px solid var(--accent-light); border-radius: var(--radius); padding: 0.6rem 1rem 0.5rem; margin: 0 0 1rem; max-width: 80ch; }
.docs-glance-head { margin: 0 0 0.3rem; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.docs-glance ul { margin: 0; padding-left: 1.2rem; }
.docs-glance li { margin-bottom: 0.25rem; }
/* THE STEP FLOW IS A NUMBERED STEPPER (user, 2026-10-05: the planner's seven steps wrapped onto a second
   line with an arrow left hanging - "make it look more clear and not spill onto a new line"). Up to seven
   steps sit in ONE ROW of equal columns that shrink to fit, each a numbered dot on the line joining them,
   its name and detail beneath. Eight or more - and every flow on a narrow screen - stand in a column, the
   dots on a line down the left. */
.docs-flow { list-style: none; counter-reset: docs-step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 12rem); justify-content: start; margin: 1rem 0 1.2rem; padding: 0; }
.docs-flow > li { position: relative; counter-increment: docs-step; padding: 2.25rem 0.5rem 0; text-align: center; font-size: 0.84rem; line-height: 1.35; }
.docs-flow > li::before { content: counter(docs-step); position: absolute; top: 0; left: 50%; z-index: 1; box-sizing: border-box; width: 1.7rem; height: 1.7rem; margin-left: -0.85rem; border: 2px solid var(--accent); border-radius: 50%; background: var(--card); color: var(--accent); font-weight: 700; font-size: 0.8rem; line-height: calc(1.7rem - 4px); text-align: center; }
.docs-flow > li:not(:last-child)::after { content: ''; position: absolute; top: calc(0.85rem - 1px); left: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.docs-flow > li b { display: block; font-size: 0.88rem; }
.docs-flow > li span { display: block; color: var(--muted); margin-top: 0.1rem; }
.docs-flow:has(> li:nth-child(8)) { grid-auto-flow: row; grid-auto-columns: auto; max-width: 44rem; }
.docs-flow:has(> li:nth-child(8)) > li { text-align: left; padding: 0.2rem 0 0.8rem 2.6rem; min-height: 1.7rem; }
.docs-flow:has(> li:nth-child(8)) > li::before { left: 0; margin-left: 0; }
.docs-flow:has(> li:nth-child(8)) > li:not(:last-child)::after { top: 1.7rem; left: calc(0.85rem - 1px); width: 2px; height: calc(100% - 1.7rem); }
@media (max-width: 700px) {
  .docs-flow { grid-auto-flow: row; grid-auto-columns: auto; }
  .docs-flow > li { text-align: left; padding: 0.2rem 0 0.8rem 2.6rem; min-height: 1.7rem; }
  .docs-flow > li::before { left: 0; margin-left: 0; }
  .docs-flow > li:not(:last-child)::after { top: 1.7rem; left: calc(0.85rem - 1px); width: 2px; height: calc(100% - 1.7rem); }
}
.docs-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; margin: 0.8rem 0 1.1rem; }
.docs-compare > div { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0.6rem 0.9rem; }
.docs-compare-head { margin: 0 0 0.35rem; font-weight: 600; color: var(--accent); }
.docs-compare ul { margin: 0; padding-left: 1.1rem; }
.docs-compare li { margin-bottom: 0.2rem; }
.docs-figure { margin: 0.8rem 0 1.2rem; max-width: 760px; }
.docs-figure svg { display: block; width: 100%; height: auto; color: var(--ink); }
/* DG-KIT START */
/* THE APP REFERENCE'S DIAGRAMS (user, 2026-10-05: "simple to understand while also comprehensive
   in what it covers and aesthetically pleasing"). One visual language, colored by MEANING from the
   app's own palette: work types as the tags show them, statuses as the pills do, a scripture
   reference as its tag, and the accent for what a process ends in. Built by the reference's
   diagram kit; every rule is scoped to .docs-figure. */
.docs-figure svg text { font-family: var(--font-sans); fill: var(--ink); }
.docs-figure .dg-title { font-size: 12.5px; font-weight: 600; }
.docs-figure .dg-body { font-size: 11.5px; }
.docs-figure .dg-sub { font-size: 11px; fill: var(--muted); }
.docs-figure .dg-small { font-size: 10.5px; fill: var(--muted); }
.docs-figure .dg-cap { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; fill: var(--muted); }
.docs-figure .dg-num { font-size: 11px; font-weight: 700; fill: #fff; }
.docs-figure .dg-box { fill: var(--card); stroke: var(--border-strong); stroke-width: 1.2; }
.docs-figure .dg-lane { fill: var(--card-alt); }
.docs-figure .dg-ghost { fill: none; stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 4 3; }
.docs-figure .dg-key { fill: #f6ebe5; stroke: var(--accent); stroke-width: 1.6; }
.docs-figure .dg-key-t { fill: var(--accent); }
.docs-figure .dg-badge { fill: var(--accent); }
.docs-figure .dg-line { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.docs-figure .dg-faint { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.docs-figure .dg-dash { stroke-dasharray: 5 4; }
.docs-figure .dg-strong { stroke-width: 2.2; }
.docs-figure .dg-head { fill: var(--muted); stroke: none; }
.docs-figure .dg-key-line { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.docs-figure .dg-key-head { fill: var(--accent); stroke: none; }
.docs-figure .dg-tag { fill: #efe6da; }
.docs-figure .dg-tag-t { font-size: 11.5px; fill: var(--accent); }
.docs-figure .dg-tag-apoc { fill: var(--scripture-apocrypha-bg); }
.docs-figure .dg-white { fill: var(--card); }
.docs-figure .dg-note { fill: var(--muted); stroke: none; }
.docs-figure .dg-big { font-size: 16px; font-weight: 700; }
.docs-figure .dg-icon { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.docs-figure .dg-staff { stroke: var(--border-strong); stroke-width: 1; }
.docs-figure .dg-halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.docs-figure .dg-halo-lane { paint-order: stroke; stroke: var(--card-alt); stroke-width: 4px; stroke-linejoin: round; }
.docs-figure .dg-x { stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.docs-figure .dg-danger { fill: var(--error); }
.docs-figure .dg-danger-t { font-size: 12.5px; fill: #fff; font-weight: 600; }
.docs-figure .dg-frozen { fill: var(--card-alt); stroke: var(--border-strong); stroke-width: 1.2; }
.docs-figure .dg-quote { font-family: var(--font-serif); font-style: italic; font-size: 11.5px; fill: var(--muted); }
.docs-figure .dg-serif { font-family: var(--font-serif); }
.docs-figure .dg-stem { stroke: var(--muted); stroke-width: 1; }
.docs-figure .dg-lyrics { fill: var(--type-lyrics-bg); stroke: var(--type-lyrics-fg); stroke-width: 1.2; }
.docs-figure .dg-lyrics-t { fill: var(--type-lyrics-fg); }
.docs-figure .dg-lyrics-l { fill: none; stroke: var(--type-lyrics-fg); stroke-width: 1.6; }
.docs-figure .dg-lyrics-h { fill: var(--type-lyrics-fg); stroke: none; }
.docs-figure .dg-melody { fill: var(--type-melody-bg); stroke: var(--type-melody-fg); stroke-width: 1.2; }
.docs-figure .dg-melody-t { fill: var(--type-melody-fg); }
.docs-figure .dg-melody-l { fill: none; stroke: var(--type-melody-fg); stroke-width: 1.6; }
.docs-figure .dg-melody-h { fill: var(--type-melody-fg); stroke: none; }
.docs-figure .dg-arrangement { fill: var(--type-arrangement-bg); stroke: var(--type-arrangement-fg); stroke-width: 1.2; }
.docs-figure .dg-arrangement-t { fill: var(--type-arrangement-fg); }
.docs-figure .dg-arrangement-l { fill: none; stroke: var(--type-arrangement-fg); stroke-width: 1.6; }
.docs-figure .dg-arrangement-h { fill: var(--type-arrangement-fg); stroke: none; }
.docs-figure .dg-original-language { fill: var(--type-original-language-bg); stroke: var(--type-original-language-fg); stroke-width: 1.2; }
.docs-figure .dg-original-language-t { fill: var(--type-original-language-fg); }
.docs-figure .dg-original-language-l { fill: none; stroke: var(--type-original-language-fg); stroke-width: 1.6; }
.docs-figure .dg-original-language-h { fill: var(--type-original-language-fg); stroke: none; }
.docs-figure .dg-st-backlog { fill: var(--status-backlog-bg); stroke: var(--status-backlog-fg); stroke-width: 1.2; }
.docs-figure .dg-st-backlog-t { fill: var(--status-backlog-fg); }
.docs-figure .dg-st-in_review { fill: var(--status-in_review-bg); stroke: var(--status-in_review-fg); stroke-width: 1.2; }
.docs-figure .dg-st-in_review-t { fill: var(--status-in_review-fg); }
.docs-figure .dg-st-revision_needed { fill: var(--status-revision_needed-bg); stroke: var(--status-revision_needed-fg); stroke-width: 1.2; }
.docs-figure .dg-st-revision_needed-t { fill: var(--status-revision_needed-fg); }
.docs-figure .dg-st-revision_review { fill: var(--status-revision_review-bg); stroke: var(--status-revision_review-fg); stroke-width: 1.2; }
.docs-figure .dg-st-revision_review-t { fill: var(--status-revision_review-fg); }
.docs-figure .dg-st-approved { fill: var(--status-approved-bg); stroke: var(--status-approved-fg); stroke-width: 1.2; }
.docs-figure .dg-st-approved-t { fill: var(--status-approved-fg); }
.docs-figure .dg-st-published { fill: var(--status-published-bg); stroke: var(--status-published-fg); stroke-width: 1.2; }
.docs-figure .dg-st-published-t { fill: var(--status-published-fg); }
.docs-figure .dg-st-archived { fill: var(--status-archived-bg); stroke: var(--status-archived-fg); stroke-width: 1.2; }
.docs-figure .dg-st-archived-t { fill: var(--status-archived-fg); }
.docs-figure .dg-st-draft { fill: var(--status-draft-bg); stroke: var(--status-draft-fg); stroke-width: 1.2; }
.docs-figure .dg-st-draft-t { fill: var(--status-draft-fg); }
.docs-figure .dg-legend { margin: 0.4rem 0 0; padding-left: 1.6rem; columns: 2; column-gap: 2rem; font-size: 0.85rem; }
.docs-figure .dg-legend li { break-inside: avoid; margin-bottom: 0.2rem; }
.docs-figure .dg-legend li::marker { color: var(--accent); font-weight: 700; }
@media (max-width: 700px) { .docs-figure .dg-legend { columns: 1; } }
/* DG-KIT END */
.docs-figure figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.docs-field-table td:first-child, .docs-field-table th:first-child { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.8rem; white-space: nowrap; }
/* A figure inside the App Reference: the diagram, then a caption explaining
   what it shows. The drawing takes the page's own ink so it reads the same as
   the text around it, and scales down rather than overflowing. */
.docs-figure { margin: 1.2rem 0 1.4rem; }
.docs-figure svg {
  display: block; width: 100%; max-width: 44rem; height: auto; color: var(--ink);
}
.docs-figure figcaption {
  margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border);
  font-size: 0.86rem; line-height: 1.5; color: var(--muted); max-width: 44rem;
}
.docs-section h3 { margin: 1.5rem 0 0.5rem; font-size: 1rem; }
.docs-section > p, .docs-section > ul { max-width: 74ch; }

/* Grouped sections on the work form.

   SHADED UNTIL THERE IS NOTHING LEFT TO ANSWER (user, 2026-09-08). These
   forms are long, and a group of fields looked the same filled in as
   empty - the only way to find what was outstanding was to read the whole
   page again. Grey is the recessed `--card-alt` these forms already use
   for a band sitting ON a card; white is the card's own fill, so a
   finished section stops being a thing on the page at all.

   THE DEFAULT IS SHADED, so a browser that cannot run form-progress.js
   shows every section grey rather than claiming they are all done. What
   counts as done is that script's business; this only paints it.

   The rule that separated them was a top border. Blocks with their own
   fill do not need one, and two dividers would read as four groups. */
.form-section {
  margin: 0 0 1rem; padding: 1.1rem 1.2rem 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-alt);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.form-section.section-done { background: var(--card); }
.form-section:last-child { margin-bottom: 0; }
.form-section-title {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  margin: 0 0 0.85rem;
}

/* Legal agreement generation screen. One block per rightsholder, listing the
   works their agreement will cover. */
/* Each rightsholder a group of its own (user, 2026-10-16: "more differentiated by each name group"): a
   bordered panel, the name on its head row, the works in columns as tick boxes with no bullets; the chosen
   group is tinted. */
.agr-batch { margin: 0.6rem 0; padding: 0.55rem 0.85rem 0.65rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); }
.agr-batch:has(.agr-batch-toggle input:checked) { border-color: var(--accent-light); background: #fdf9f6; }
.agr-batch-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* Inside a card: a column per work type, a row per title (user, 2026-10-16). */
.agr-work-grid { border-collapse: collapse; margin: 0.4rem 0 0 1.6rem; font-size: 0.88rem; }
.agr-work-grid th, .agr-work-grid td { padding: 0.2rem 1.4rem 0.2rem 0; font-weight: normal; text-align: left; }
.agr-work-grid thead th { padding-bottom: 0.3rem; border-bottom: 1px solid var(--card-alt); }
.agr-work-grid tbody th { padding-right: 2.2rem; }
.agr-work-grid td, .agr-work-grid thead th + th { text-align: center; }
/* The same widths in every card, so the type columns line up down the list. */
.agr-work-grid thead th:first-child, .agr-work-grid tbody th { width: 20rem; }
.agr-work-grid td, .agr-work-grid thead th + th { width: 8rem; padding-right: 0; }
.agr-work-cell { display: inline-flex; padding: 0.1rem 0.4rem; cursor: pointer; }
.agr-work-cell input { margin: 0; }
.agr-choice-value { display: block; margin: 0.2rem 0 0.6rem 1.6rem; font-size: 0.88rem; }
.agr-warning { margin-top: 0.8rem; font-size: 0.88rem; }
/* An agreement's serial number, wherever it is shown. */
.agr-serial { font-size: 0.82rem; color: var(--muted); margin: 0 0.4rem; }
/* Generate legal agreements: the bullets under Agreements to generate, the line
   naming an agreement a rightsholder already has, the Rights status card's
   agreement tags, and the Generated agreements card - one compact row per
   agreement (rightsholder, works, dates, actions), with "Changed since
   generated" across the foot of the row - and its Regenerate dialog. */
.agr-howto { margin: 0.4rem 0 1rem; padding: 0.55rem 0.9rem; background: var(--card-alt);
  border-left: 3px solid var(--border-strong); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem; color: var(--muted); }
.agr-howto-head { margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; }
.agr-howto ul { margin: 0; padding-left: 1.1rem; }
.agr-howto li { margin: 0.1rem 0; }
.agr-batch-note { margin: 0.2rem 0 0 1.6rem; font-size: 0.85rem; }
.agr-gen-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 0.25rem 1rem; align-items: baseline; padding: 0.45rem 0; border-top: 1px dotted var(--border); }
.agr-gen-row:first-child { border-top: none; }
.agr-gen-works > summary { cursor: pointer; font-size: 0.88rem; }
.agr-gen-works ul { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }
.agr-gen-dates { font-size: 0.85rem; }
.agr-gen-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.agr-gen-replaces { font-size: 0.82rem; }
.agr-gen-who .agr-serial { white-space: nowrap; }
.agr-gen-changed { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--status-revision_needed-fg); }
.agr-regen-dialog { max-width: 640px; }
.agr-regen-points { margin: 0 0 0.75rem; padding-left: 1.2rem; font-size: 0.9rem; }
.agr-regen-points li { margin: 0.15rem 0; }
.agr-regen-works { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem;
  margin: 0 0 0.75rem; }
.agr-regen-works legend { font-size: 0.85rem; color: var(--muted); padding: 0 0.3rem; }
.agr-regen-works .checkbox-label { display: block; margin: 0.15rem 0; font-size: 0.9rem; }
.agr-regen-dropped { color: var(--muted); }
.agr-wait { max-width: 420px; text-align: center; }
@media (max-width: 700px) {
  .agr-gen-row { grid-template-columns: minmax(0, 1fr); }
  .agr-gen-actions { justify-content: flex-start; }
}
/* THE LEGAL AGREEMENTS DASHBOARD, BY BOOK (user, 2026-10-16, approving design C):
   the find row and the Order switch; the chips, Show and Chase; a section per
   book or recording with its count line and a link to its Generate page; the
   rows in aligned columns - the Generate page's own row with a tick box, the
   serial in a column of its own and a short state at the end ("waiting 5 wks"
   in the warning color) - so rows needing action stand out without pills; and
   the bulk bar, pinned to the foot of the window while anything is ticked. */
.agd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 0 0 0.6rem; }
.agd-find { display: flex; gap: 0.4rem; align-items: center; flex: 1 1 24rem; max-width: 40rem; margin: 0; }
.agd-find input[type="search"] { flex: 1 1 auto; min-width: 0; padding: 0.35rem 0.5rem; }
.agd-order { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.agd-order .segmented { margin: 0; }
.agd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1.15rem; }
.agd-fgroup { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.agd-flabel { font-size: 0.8rem; color: var(--muted); margin-right: 0.1rem; }
.agd-fsep { width: 1px; height: 1.3rem; background: var(--border); margin: 0 0.45rem; }
.agd-n { color: var(--muted); margin-left: 0.15rem; font-variant-numeric: tabular-nums; }
.btn.sh-on .agd-n { color: var(--accent); }
.agd-result { margin: -0.5rem 0 1rem; font-size: 0.88rem; color: var(--muted); }
.card.agd-book, .card.agd-chase { padding: 0.8rem 1.25rem 0.55rem; margin-bottom: 1rem; }
.agd-book > summary.card-head { flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin-bottom: 0.35rem; }
.agd-book > summary.card-head > h2 { font-size: 1.1rem; margin-right: 0.2rem; }
.agd-book:not([open]) > summary.card-head { border-bottom: 0; padding-bottom: 0.1rem; margin-bottom: 0; }
.agd-book:not([open]) { padding-bottom: 0.7rem; }
.agd-prog { font-size: 0.85rem; color: var(--muted); font-family: var(--font-sans); }
.agd-prog strong { color: var(--ink); font-weight: 600; }
.agd-genlink { margin-left: auto; font-size: 0.85rem; font-family: var(--font-sans); }
.agd-genlink::after { content: " \2192"; }
.agd-finished { font-size: 1rem; margin: 1.6rem 0 0.6rem; }
.agd-finished .muted { font-weight: 400; font-size: 0.85rem; margin-left: 0.4rem; }
.agd-group + .agd-group { margin-top: 1.1rem; }
.agd-group-head { font-size: 1rem; margin: 0 0 0.3rem; }
/* Every column but the two text ones is a fixed width, so a book's column heads
   and its rows - each a grid of its own - line up. */
.agd-cols, .agr-gen-row.agd-row { display: grid; align-items: center; column-gap: 0.9rem; row-gap: 0.1rem;
  grid-template-columns: 1.1rem minmax(0, 2.2fr) 9.4rem 3.6rem 6.2rem minmax(0, 1.5fr) 6rem;
  margin: 0 -0.6rem; padding: 0.36rem 0.6rem; }
.agd-cols { padding-top: 0.1rem; padding-bottom: 0.25rem; font: 600 0.68rem/1.2 var(--font-sans);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.agd-cols-all { display: none; }
.agd-cols > input, .agd-row > .agr-pick { margin: 0; }
/* THE ROW BOXES AND SELECT ALL, OUTLINED (the user, 11/1/2026: "do these too" - the Generated tab to match To
   secure): no words to carry, so the checkbox itself is drawn - outlined; chosen, outlined in the accent on its
   tint with a check; Select all, while only some rows are chosen, a dash. The check is the accent (#7a3b2e). */
.agd-cols > input[type="checkbox"], .agd-row > input.agr-pick, input.life-row-check, input#life-select-all, input.rv-pick, input[data-rv-all], .wl-thm > input.wl-ti { appearance: none; -webkit-appearance: none;
  width: 1.1rem; height: 1.1rem; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 4px;
  background: var(--card) center / 0.8rem no-repeat; cursor: pointer; vertical-align: middle; }
.agd-cols > input[type="checkbox"]:hover, .agd-row > input.agr-pick:hover, input.life-row-check:hover, input#life-select-all:hover, input.rv-pick:hover, input[data-rv-all]:hover, .wl-thm > input.wl-ti:hover { border-color: var(--accent); }
.agd-cols > input[type="checkbox"]:checked, .agd-row > input.agr-pick:checked, input.life-row-check:checked, input#life-select-all:checked, input.rv-pick:checked, input[data-rv-all]:checked, .wl-thm > input.wl-ti:checked { border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent); background-color: #f7ebe6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.4 2.4 4.8-5.2' fill='none' stroke='%237a3b2e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.agd-cols > input[type="checkbox"]:indeterminate, input#life-select-all:indeterminate, input[data-rv-all]:indeterminate { border-color: var(--accent); background-color: #fbf3ef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%237a3b2e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.agd-cols > input[type="checkbox"]:focus-visible, .agd-row > input.agr-pick:focus-visible, input.life-row-check:focus-visible, input#life-select-all:focus-visible, input.rv-pick:focus-visible, input[data-rv-all]:focus-visible, .wl-thm > input.wl-ti:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.agd-row .agr-gen-who .link-btn { text-align: left; }
.agd-serial .agr-serial { margin: 0; white-space: nowrap; }
.agd-state { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.agd-state.is-late { color: var(--status-revision_needed-fg); }
.agd-gap, .agd-from { display: block; font-size: 0.8rem; }
.agd-gap { color: var(--status-revision_needed-fg); }
.agd-row.is-picked { background: #fbf3ee; }
.agd-row.is-found { box-shadow: inset 3px 0 0 var(--accent); background: #fbf3ee; }
.agd-row.is-void .agr-gen-name { color: var(--muted); font-weight: 400; }
.agd-row .agr-gen-changed, .agd-match { grid-column: 2 / -1; margin: 0; font-size: 0.82rem; }
.agd-match { color: var(--muted); }
/* The bulk bar: a plain row above the books, always there (user, 2026-10-16). */
.agd-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem;
  margin: 0 0 0.9rem; padding: 0.5rem 0.8rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); }
.agd-bulk.is-empty .agd-bulk-n { color: var(--muted); font-weight: 400; }
.agd-bulk-n { font-weight: 600; }
.agd-bulk-clear { font-size: 0.85rem; margin-left: -0.4rem; }
.agd-bulk-acts { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.agd-bulk-more { display: none; }
.agd-vsep { width: 1px; height: 1.4rem; background: var(--border); margin: 0 0.3rem; }
.agd-small-dialog { max-width: 30rem; }
.agd-small-dialog input[type="date"], .agd-step-form input[type="date"] { width: auto; padding: 0.15rem 0.35rem;
  font-size: 0.88rem; }
/* The agreement dialog's Where it has got to: Generated, Sent and Reply, each
   with its date or "Not yet" and the next step's button at its end. */
.agd-steps { border-top: 1px solid var(--border); padding-top: 0.7rem; margin: 0.2rem 0 0; }
.agd-step { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 0.3rem 0.8rem; align-items: center;
  padding: 0.3rem 0; border-top: 1px dotted var(--border); font-size: 0.92rem; }
.agd-steps h3 + .agd-step { border-top: 0; }
.agd-step-k { color: var(--muted); }
.agd-step-act { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; align-items: center; margin: 0; }
/* A signed copy's buttons (View signed copy, Replace, Mark not signed) go under its day, so the day keeps its
   line (user, 2026-10-19: Mark not signed on the Signed line). */
.agd-step-act.agd-act-below { grid-column: 2 / -1; justify-content: flex-start; }
.agd-step-form { display: flex; gap: 0.4rem; align-items: center; margin: 0; }
.agd-change > summary { cursor: pointer; list-style: none; color: var(--accent); font-size: 0.85rem; text-align: right; }
.agd-change > summary::-webkit-details-marker { display: none; }
.agd-change[open] { grid-column: 2 / -1; }
.agd-change .agd-step-form { justify-content: flex-end; margin-top: 0.3rem; }
.agd-reply-dialog { max-width: 32rem; }
.agd-reply-who { margin: -0.5rem 0 0.7rem; }
.agd-reply-switch { margin: 0 0 0.8rem; }
.agd-admin-link { margin: 0.55rem 0 0; text-align: right; font-size: 0.85rem; }
/* ONE LEGAL AGREEMENTS PAGE (user, 2026-10-16: "Yes, one page"): the scope line, the
   two tabs (Cross-reference's xr-tabs, sitting on a rule rather than a panel), the
   chips with Order beside them, a heading's "still to generate" link and a heading
   with nothing under it, Missing requirements' Agreement column, and the To generate
   lists for every book. */
.agl-scope { margin: 0.15rem 0 0; font-size: 0.95rem; color: var(--muted); }
.agl-scope a { color: var(--accent); }
.agl-scope strong { color: var(--ink); font-weight: 600; }
.agl-scope .type-label { margin-left: 0.3rem; }
.agl-sep { margin: 0 0.4rem; color: var(--placeholder); }
.agd-find.agl-find { margin: 0 0 1.1rem; }
.agl-tabs { border-bottom: 1px solid var(--border); margin: 0 0 1.15rem; }
.agl-tabs .xr-tabs { margin-bottom: -1px; padding-left: 0.2rem; }
.agl-tabs .xr-tabs [role="tab"] .agd-n { font-weight: 400; margin-left: 0.4rem; }
.agl-tabs .xr-tabs [role="tab"][aria-selected="true"] { background: var(--paper); border-bottom-color: var(--paper); }
.agl-filterrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 0 0 1.15rem; }
.agl-filterrow .agd-filters { margin: 0; }
.agd-book > summary.card-head > .agl-still + .agd-genlink,
.agd-book > .card-head > .agl-still + .agd-genlink { margin-left: 0; }
.card.agd-book.agl-bare, .card.agd-book.agl-gen-book { padding-bottom: 0.7rem; }
.agd-book > .card-head { flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; }
.agd-book > .card-head > h2 { font-size: 1.1rem; margin: 0 0.2rem 0 0; }
.agd-book.agl-bare > .card-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.agl-gen-table td { vertical-align: baseline; }
.agl-gen-table td:first-child { width: 34%; }
.agl-gen-table .agd-gap { margin-top: 0.1rem; }
.agl-work { white-space: nowrap; }
.agl-work + .agl-work::before { content: "\00b7"; margin: 0 0.45rem; color: var(--placeholder); }
.agl-gen-table td.agl-gen-act { text-align: right; white-space: nowrap; }
.agl-gen-table .status-pill { margin-left: 0.3rem; }
.agl-gen-act .agd-genlink { margin-left: 0; }
.agl-quiet { margin: -0.2rem 0 1.1rem; font-size: 0.88rem; }
.agl-loose > summary.card-head { flex-wrap: wrap; gap: 0.2rem 0; }
.agl-req td { vertical-align: baseline; }
.agl-req .agl-ph { display: none; }
.agl-req .agl-serial { display: inline-block; margin-right: 0.4rem; }
.agl-req .agl-serial code { margin: 0; white-space: nowrap; color: var(--accent); text-decoration: underline;
  text-decoration-color: var(--accent-light); text-underline-offset: 3px; }
.agl-req .agl-then { display: block; font-size: 0.85rem; color: var(--muted); }
.agl-req td:last-child { font-size: 0.85rem; }
/* THE RIGHTS TAB AND THE ACTION LINE (user, 2026-10-16). Rights (agf-*), a summary:
   Rights status - its head the three figures - then the works still needing permission
   in two sections, each a card of its own (agf-part); at All, a row for every book and
   recording that tracks rights. The action line (agb-*): amber, the app's "a gap to fill, not a failure"
   (.tpl-warnings, .rights-gap-card), between the search and the tabs, opening in
   place to Missing requirements; a missing-detail tag elsewhere links to its line. */
.agf-card > .card-head { flex-wrap: wrap; justify-content: flex-start; gap: 0.2rem 0.9rem; }
.agf-card > .card-head > .muted { flex: 1 1 auto; }
.agf-card > .card-head:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
tr.agf-group-row > th { padding: 1.05rem 0.75rem 0.35rem; border-bottom: 1px solid var(--border); background: none;
  text-align: left; text-transform: none; letter-spacing: 0; font: 600 0.95rem/1.3 var(--font-serif); color: var(--ink); }
tr.agf-group-row > th .scx-kind { margin-right: 0.3rem; }
tbody.agf-group:first-of-type > tr.agf-group-row > th { padding-top: 0.5rem; }
/* Need one generated, open; Waiting on an agreement already generated, folded
   (.collapse-card), its heading line saying what it holds (user, 2026-10-16: "a single
   long list instead of true sections. It's really long"). */
details.agf-part:not([open]) > summary.card-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
/* Its at-a-glance line as plain text: `.collapse-card > summary > .muted` is also in
   .review-page-head's selector list (a flex box with a 1.4rem bottom margin). */
details.agf-part > summary.card-head > .muted { display: block; margin: 0; }
details.agf-part { scroll-margin-top: 2.75rem; }
.agf-after { margin: -0.9rem 0 1.5rem; padding: 0 0.3rem; }
/* Secured without an agreement's works (agf-works agf-held): a row a work, its type, the
   rightsholder, and when it was secured and by whom. */
.agf-works th:first-child { width: 30%; }
.agf-works th:nth-child(2) { width: 8.5rem; }
.agf-works th:last-child { width: 16rem; }
.agf-works tbody td { border-bottom: 0; vertical-align: top; padding-top: 0.15rem; padding-bottom: 0.15rem; }
.agf-works tbody > tr:first-child > td { padding-top: 0.6rem; }
.agf-works tbody > tr:last-child > td, .agf-works tbody td[rowspan] { padding-bottom: 0.6rem; }
.agf-works tbody + tbody { border-top: 1px solid var(--border); }
.agf-works tbody tr:hover { background: none; }
.agf-works tbody:hover { background: #f7f2ea; }
.agf-ag { font-size: 0.85rem; white-space: nowrap; }
.agf-ag .agd-state { margin-right: 0.55rem; }
.agf-ag .agd-state:not(.is-late) { color: var(--ink); }
a.agf-serial { color: var(--muted); text-decoration: none; }
a.agf-serial:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a.agf-serial code { font-size: 0.8rem; }
.agf-none { color: var(--muted); }
/* NEED AND WAITING, ONE ROW PER AGREEMENT, ITS WORKS BY TYPE (user, 2026-10-17, of the
   mockup: "I like this"). Left, the agreement: its name once, where it has got to and its
   serial under it. Right, its works under their type - the type first, its titles beside
   it, two columns past four - a dotted rule between types, a full one between agreements.
   Need's agreements already generated follow a line of their own (tbody.agf-band). */
.agf-byag thead th:first-child { width: 32%; }
.agf-byag tbody td { border-bottom: 0; vertical-align: top; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.agf-byag tbody + tbody { border-top: 1px solid var(--border); }
.agf-byag tbody tr:hover { background: #f7f2ea; }
.agf-byag tbody.agf-band tr:hover { background: none; }
.agf-byag .agf-name { display: block; font-weight: 600; }
.agf-byag .agf-name .muted { font-weight: 500; }
.agf-byag .agf-ag { display: block; margin-top: 0.2rem; }
.agf-type { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); column-gap: 0.6rem; align-items: baseline; }
.agf-type + .agf-type { margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px dotted var(--border); }
.agf-type > .type-label { font-size: 0.66rem; justify-self: start; }
.agf-type ul { list-style: none; margin: 0; padding: 0; }
.agf-type ul.is-two { columns: 2 15rem; column-gap: 1.6rem; }
.agf-type li { break-inside: avoid; padding: 0.08rem 0; font-size: 0.92rem; }
.agf-type li a { color: var(--ink); text-decoration: none; }
.agf-type li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.agf-via { display: block; font-size: 0.8rem; color: var(--muted); padding-left: 0.9rem; }
.agf-type li .agf-via a { color: var(--muted); }
tbody.agf-band > tr > th { padding: 1.05rem 0.75rem 0.35rem; border-bottom: 1px solid var(--border); background: none;
  text-align: left; text-transform: none; letter-spacing: 0; font: 600 0.92rem/1.3 var(--font-serif); color: var(--ink); }
.agf-books td.num, .agf-books th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* What each column counts, over it (user, 2026-10-17): Agreements over one column, Works over three, each a
   label with a rule under it the width of its columns; the headings under them wrap rather than widen the table. */
.agf-books th.num { white-space: normal; width: 7.5rem; }
.agf-books th.num.agf-long { width: 13rem; }
.agf-books th.num.agf-mid { width: 10rem; }
.agf-books th.num .table-sort-btn { justify-content: flex-end; text-align: right; }
.agf-books tr.agf-grp th { padding: 0.55rem 0.8rem 0; border-bottom: 0; width: auto; }
.agf-books tr.agf-grp th span { display: block; padding-bottom: 0.3rem; border-bottom: 1px solid var(--accent);
  text-align: center; }
.agf-books td:first-child a { font-weight: 600; }
.agf-books td.num a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.agf-books tr.is-done td, .agf-books tr.is-done td:first-child a { color: var(--muted); }
.agf-books tr.is-done td:first-child a { font-weight: 500; }
.agf-books .scx-kind { margin-right: 0.3rem; }
.agb-cta { margin: -0.35rem 0 1.15rem; padding: 0.5rem 0.6rem 0.5rem 0.9rem; border-left: 3px solid #c9a227;
  background: #fdf8ea; border-radius: 2px; }
.agb-cta > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; cursor: pointer;
  list-style: none; }
.agb-cta > summary::-webkit-details-marker { display: none; }
.agb-cta-text { flex: 1 1 26rem; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.agb-cta-text strong { color: #6b4f13; font-weight: 600; }
.agb-cta-btn { flex: 0 0 auto; background: var(--card); }
.agb-cta-btn .agb-closed::after { content: " \25BE"; font-size: 0.8em; }
.agb-cta-btn .agb-open::after { content: " \25B4"; font-size: 0.8em; }
.agb-cta[open] .agb-closed, .agb-cta:not([open]) .agb-open { display: none; }
.agb-cta-list { margin: 0.55rem 0 0.1rem; padding: 0 0.8rem 0.15rem; background: var(--card);
  border: 1px solid #eadcb4; border-radius: var(--radius); }
.agb-cta-list .table-scroll { margin: 0; }
.agb-cta-list .agl-req { margin: 0; }
.agb-cta-list .agl-req tbody tr:last-child > td { border-bottom: 0; }
.agl-req tr:target > td { background: #fbf3dc; }
a.agb-gaplink { text-decoration: none; }
a.agb-gaplink:hover { text-decoration: underline; }
a.agd-gap.agb-gaplink { width: fit-content; text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 2px; }
.agb-up { margin-left: 0.3rem; }
/* The book page's Rights & agreements card: three lines, each with its one action
   (user, 2026-10-16). */
.agh-rights-lines { display: grid; gap: 0; margin: 0.55rem 0 0.2rem; }
.agh-rl { display: grid; grid-template-columns: 8.8rem minmax(0, 1fr) auto; column-gap: 0.9rem; align-items: center;
  padding: 0.45rem 0; border-top: 1px dotted var(--border); font-size: 0.92rem; }
.agh-rl:first-child { border-top: 0; }
.agh-rl-k { font: 600 0.68rem/1.3 var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.agh-rl-act { justify-self: end; }
.agh-rl .agd-genlink { margin-left: 0; }
.lv-rights-card > .agh-rights-lines { display: grid; }
/* LED BY THE AGREEMENTS OUTSTANDING (user, 2026-10-16): at a book or a recording the one
   agreement figure comes first - beside the card's heading, and as the Rights tab head's
   first line, its works figures under it. */
.lv-rights-card > p.agh-out { color: var(--ink); font-size: 0.95rem; }
.lv-rights-card > p.agh-out strong, .agf-card > .card-head > .agf-out strong { font-weight: 600; }
.agf-card > .card-head > .agf-out { flex: 0 1 auto; color: var(--ink); font-size: 0.95rem; }
.agf-card > .card-head.agf-led > .agf-out + .muted { flex-basis: 100%; }
@media (max-width: 700px) {
  .agd-order, .agd-genlink { margin-left: 0; }
  .agd-fsep, .agd-vsep { display: none; }
  .agd-cols { grid-template-columns: 1.1rem minmax(0, 1fr); }
  .agd-cols > .agd-colname, .agd-cols > span:empty { display: none; }
  .agd-cols-all { display: inline; text-transform: none; letter-spacing: 0; font: 400 0.85rem var(--font-sans); }
  .agr-gen-row.agd-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.7rem;
    position: relative; padding-left: 2.3rem; }
  .agd-row > .agr-pick { position: absolute; left: 0.6rem; top: 0.62rem; }
  .agd-row > .agr-gen-who { flex: 1 1 0; min-width: 0; }
  .agd-row > .agr-gen-actions { order: 1; }
  .agd-row > .agd-serial { order: 2; flex-basis: 100%; }
  .agd-row > .agr-gen-works { order: 3; }
  .agd-row > .agr-gen-dates, .agd-row > .agd-generated { order: 4; }
  .agd-row > .agd-state { order: 5; }
  .agd-row > .agr-gen-changed, .agd-row > .agd-match { order: 6; flex-basis: 100%; }
  .agd-bulk { gap: 0.4rem 0.6rem; padding: 0.5rem 0.7rem; }
  .agd-bulk-more { display: inline-flex; }
  .agd-bulk-acts { display: none; order: -1; flex-basis: 100%; }
  .agd-bulk.is-open .agd-bulk-acts { display: flex; }
  .agd-step { grid-template-columns: 5rem minmax(0, 1fr); }
  .agd-step-act { grid-column: 1 / -1; justify-content: flex-start; }
  .agd-change[open] { grid-column: 1 / -1; }
  .agd-book > summary.card-head > .agl-still, .agd-book > .card-head > .agl-still { margin-left: 0; flex-basis: 100%; }
  .agd-book > .card-head > .agd-genlink { margin-left: 0; }
  .agh-rl { grid-template-columns: minmax(0, 1fr); row-gap: 0.25rem; }
  .agh-rl-act { justify-self: start; }
  .agl-gen-table thead { display: none; }
  .agl-gen-table tr { display: block; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
  .agl-gen-table td { display: block; border: 0; padding: 0.1rem 0.2rem; width: auto; }
  .agl-gen-table td:first-child { width: auto; }
  .agl-gen-table td.agl-gen-act { text-align: left; }
  .agl-work { white-space: normal; }
  /* The type columns' heads ran together on a phone (the candidate's mend). */
  .agr-work-grid { margin-left: 0.3rem; }
  .agr-work-grid tbody th { padding-right: 0.8rem; }
  .agr-work-grid td, .agr-work-grid thead th + th { width: auto; padding: 0.2rem 0.45rem; }
  .agl-req thead { display: none; }
  .agl-req tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
  .agl-req td { border: 0; padding: 0.1rem 0.2rem; }
  .agl-req td:nth-child(2), .agl-req td:nth-child(4), .agl-req td:nth-child(5) { grid-column: 1 / -1; }
  .agl-req td:nth-child(3) { grid-column: 2; grid-row: 1; white-space: nowrap; color: var(--muted); }
  .agl-req .agl-ph { display: inline; }
  /* The action line: its words full width, its button below at the right; opened,
     Missing requirements' rows stacked as they always were on a phone. */
  .agb-cta { padding: 0.55rem 0.6rem 0.55rem 0.75rem; }
  .agb-cta > summary { align-items: flex-end; }
  .agb-cta-text { flex-basis: 100%; font-size: 0.9rem; }
  .agb-cta-btn { margin-left: auto; }
  .agb-cta-list { padding: 0 0.55rem 0.1rem; }
  .agb-cta-list .agl-req tbody tr:last-child { border-bottom: 0; }
  .agl-req tr:target { background: #fbf3dc; }
  .agl-req tr:target > td { background: none; }
  .agl-req tr > td { padding-left: 0.5rem; }
  .agl-req td.lookup-actions { justify-self: start; }
  table tr.agf-group-row { display: block; }
  tr.agf-group-row > th { display: block; padding-left: 0.2rem; padding-right: 0.2rem; }
  /* Rights: the figures under the heading; an agreement over its works (agf-byag); a
     work secured without an agreement a block - its title and type, then the
     rightsholder, the date at the right; at All each book or recording is a block - its
     name, then its figures, labelled; no dashes. */
  .agf-card > .card-head > .muted { flex-basis: 100%; }
  .agf-part > .card-head > .muted { flex-basis: auto; }
  details.agf-part > summary.card-head > h2 { flex: 1 1 0; min-width: 0; }
  details.agf-part > summary.card-head > .muted { flex-basis: 100%; }
  .agf-works, .agf-works tbody { display: block; width: 100%; }
  .agf-works thead { display: none; }
  .agf-works tbody { padding: 0.45rem 0; }
  .agf-works tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.7rem; }
  .agf-works tbody td { display: block; padding: 0.1rem 0.2rem; width: auto; }
  .agf-works tbody > tr:first-child > td, .agf-works tbody > tr:last-child > td,
  .agf-works tbody td[rowspan] { padding-top: 0.1rem; padding-bottom: 0.1rem; }
  .agf-works td.agf-wk { padding-bottom: 0.2rem; }
  .agf-works td.agf-who { font-size: 0.88rem; }
  .agf-ag { text-align: right; font-size: 0.8rem; }
  .agf-ag .agd-state { margin-right: 0; }
  .agf-ag .agd-state, .agf-ag a.agf-serial { display: block; }
  a.agf-serial code { font-size: 0.74rem; }
  .agf-byag, .agf-byag tbody, .agf-byag tr, .agf-byag td { display: block; width: 100%; }
  .agf-byag thead { display: none; }
  .agf-byag tbody > tr { padding: 0.6rem 0; }
  .agf-byag tbody td { padding: 0 0.2rem; }
  .agf-byag td.agf-who { padding-bottom: 0.45rem; }
  .agf-byag .agf-ag { text-align: left; }
  .agf-byag .agf-ag .agd-state { display: inline; margin-right: 0.45rem; }
  .agf-byag .agf-ag a.agf-serial { display: inline; }
  .agf-type { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .agf-type ul.is-two { columns: auto; }
  tbody.agf-band > tr > th { display: block; width: auto; padding: 0.9rem 0.2rem 0.35rem; }
  .agf-books, .agf-books tbody { display: block; width: 100%; }
  .agf-books thead { display: none; }
  .agf-books tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.15rem 0.6rem;
    padding: 0.55rem 0.1rem; border-bottom: 1px solid var(--border); }
  .agf-books td { border: 0; padding: 0; }
  .agf-books td:first-child, .agf-books td.agf-nolabel { grid-column: 1 / -1; }
  .agf-books td.num { text-align: left; }
  .agf-books td.is-none { display: none; }
  .agf-books td.num::before { content: attr(data-l); display: block; font: 600 0.66rem/1.3 var(--font-sans);
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .agf-books td.agf-nolabel::before { content: none; }
  /* Four figures, Agreements outstanding first: two a row, a label free to wrap, the
     figures of a row on one line. */
  .agf-books tr { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .agf-books td.num::before { white-space: normal; }
  /* Three tabs fit at 375 with a tighter pad. */
  .agl-tabs .xr-tabs { padding-left: 0; gap: 0.2rem; }
  .agl-tabs .xr-tabs [role="tab"] { padding-left: 0.6rem; padding-right: 0.6rem; }
}
/* The Review first dialog. Wider and taller than the app's other dialogs
   because the thing being reviewed is a full legal document, and scrolls
   inside itself so the dialog never grows past the window. */
.agr-review-dialog { min-width: min(56rem, 94vw); }
.agr-review-body { max-height: min(62vh, 40rem); overflow-y: auto; }
.agr-review-item { border-top: 1px dotted var(--border); padding: 0.4rem 0; }
.agr-review-item > summary { cursor: pointer; font-weight: 600; }
.agr-review-item .agr-preview-text { margin-top: 0.5rem; }
.agr-review-warning { color: var(--danger, #b3261e); font-weight: 600; }

/* The signed-agreement upload dialog, and the receipt it returns. */
.agr-upload-dialog { min-width: min(30rem, 92vw); }
.agr-dialog-field { display: block; margin: 0.7rem 0; font-size: 0.9rem; color: var(--muted); }
/* Split in two so the file picker keeps the LAYOUT and skips the CHROME. It
   has to skip the chrome: this rule sits later in the file at equal
   specificity, so it would otherwise put a border and a background back
   around a control that already contains its own button. It must keep the
   layout, or it sits inline beside its label while the date field under it
   sits on its own line - which is what excluding it from the whole rule did. */
.agr-dialog-field input { display: block; margin-top: 0.25rem; width: 100%; }
.agr-dialog-field input:not([type="file"]) {
  padding: 0.35rem 0.4rem; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg); color: var(--fg); }
.agr-dialog-error { color: var(--danger, #b3261e); font-size: 0.9rem; }
.agr-dialog-warn { color: var(--danger, #b3261e); font-size: 0.9rem; font-weight: 600; }
.agr-receipt-works { margin: 0.3rem 0 0.6rem 1.1rem; font-size: 0.92rem; }
.agr-receipt-verified { color: var(--ok, #1b5e20); }
.agr-receipt-certified { color: var(--muted); }
/* Upload signed copies (user, 2026-10-19): the drop zone, then a row per file - green once ready, amber while
   a scan's agreement is still to be chosen and vouched for or a file that looks unsigned is not ticked Add it
   anyway, muted when left out - and the summary line. The amber is the action line's (.agb-cta,
   .tpl-warnings) and the green the app's --success: no new colors. The serial and "N works" stay on one line
   (.agb-keep), so the count never wraps away from its agreement. */
.agb-dialog { max-width: 54rem; }
.agb-drop { position: relative; display: block; margin: 0.3rem 0 0.2rem; padding: 1.3rem 1rem; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--paper); cursor: pointer;
  font-size: 0.92rem; }
.agb-drop.is-over, .agb-drop:focus-within { border-color: var(--accent); background: var(--card-alt); }
.agb-drop.is-busy { opacity: 0.6; cursor: progress; }
.agb-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.agb-choose { color: var(--accent); text-decoration: underline; }
.agb-busy { margin: 0.4rem 0 0; font-size: 0.88rem; }
.agb-lead { margin: 0 0 0.6rem; font-size: 0.88rem; }
.agb-date { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0 0 0.7rem;
  font-size: 0.9rem; }
.agb-date input[type="date"] { width: auto; margin-left: 0.4rem; padding: 0.15rem 0.35rem; font-size: 0.88rem; }
.agb-table { table-layout: fixed; width: 100%; font-size: 0.88rem; }
.agb-table th:nth-child(1) { width: 28%; }
.agb-table th:nth-child(2) { width: 42%; }
.agb-table td { vertical-align: top; overflow-wrap: anywhere; }
.agb-table .agr-serial { font-size: 0.8rem; }
.agb-row.is-ready .agb-what, .agb-row.is-recorded .agb-what { color: var(--success); }
.agb-row.is-choose > td, .agb-row.is-unsigned > td { background: #fdf8ea; color: #6b4f13; }
.agb-keep { white-space: nowrap; }
.agb-vouch.is-blocked { color: var(--muted); }
.agb-row.is-out > td { color: var(--muted); }
.agb-agr select { width: 100%; font-size: 0.85rem; }
.agb-vouch { display: flex; gap: 0.35rem; align-items: center; margin-top: 0.3rem; font-size: 0.82rem; }
.agb-summary { margin: 0.8rem 0 0; font-weight: 600; }
@media (max-width: 700px) {
  .agb-table thead { display: none; }
  .agb-table, .agb-table tbody, .agb-table tr, .agb-table td { display: block; width: auto; }
  .agb-table tr { padding: 0.45rem 0.3rem; border-top: 1px solid var(--border); }
  .agb-table td { padding: 0.1rem 0; border: 0; }
  .agb-table .agb-file { font-weight: 600; }
  .agb-row.is-choose, .agb-row.is-unsigned { background: #fdf8ea; }
}
/* Rights status on the generate page is a <details> whose <summary> is the
   card head. Flex removes the default triangle, so the marker is drawn back
   in - a collapsible section with no visible affordance reads as broken. */
/* A card that collapses: a <details> whose <summary> is the card head. Defined
   ONCE and used by the generate screen's three cards and by every card below
   the stanzas on a work's page - a second copy is how two pages end up with
   their triangles pointing different ways.

   .card-head is justify-content: space-between and the marker is a third flex
   item, which pushed the heading into the MIDDLE of the row. Pack the marker
   and the title left, and let the summary line take the rest. */
.collapse-card > summary { cursor: pointer; list-style: none;
  justify-content: flex-start; }
.collapse-card > summary > h2 { margin-right: 0.85rem; }
.collapse-card > summary::-webkit-details-marker { display: none; }
.collapse-card > summary::before { content: "\25B8"; display: inline-block;
  margin-right: 0.5rem; color: var(--muted); }
/* NO transition on this marker. With `transition: transform 0.12s ease` here,
   toggling the parent's [open] attribute never resolved the rotation at all -
   the arrow stayed pointing right, permanently. Measured both ways: with the
   transition the computed transform stays matrix(1,0,0,1,0,0) long after the
   0.12s has passed; without it, matrix(0,1,-1,0,0,0) immediately. An arrow
   that turns instantly beats one that animates never. */
.collapse-card[open] > summary::before { transform: rotate(90deg); }
.collapse-card > summary:focus-visible { outline: 2px solid var(--accent, #3f51b5);
  outline-offset: 2px; }
/* The at-a-glance line: what a shut card still says. Two spellings - .muted on
   the agreement screens, .card-summary on a work's page. */
.collapse-card > summary > .muted,
/* THE REVIEW CARD LEADS THE RIGHT-HAND COLUMN while a work is being reviewed
   (user, 2026-09-10), which is half the width its head was built for: the
   heading, the status and the action are one flex row, and "Lyrics review"
   broke across two lines in it. The row wraps here instead, and the heading is
   kept whole. Scoped to this card, so no other card head moves.

   The action drops onto its own line when it cannot sit beside the heading -
   which is what `margin-left: auto` on the status already arranges, once the
   row is allowed to wrap at all. */
/* THE REVIEW PAGE: the hymn on the left, what has been said about it on the
   right - the layout the anonymized review .docx used from 2026-08-21 until
   that document was decommissioned on 2026-09-10. One row per stanza, so a
   remark sits level with the verse it is about.

   The text column is the narrower of the two on purpose: a stanza is short
   lines, a discussion is prose. */
.review-page-head { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
/* THE TITLE ON THE PAGE'S OWN CENTRE LINE (user, 2026-09-25: "the title
   should be centered"). Equal side tracks are what centre it on the
   PAGE: centred inside the block it shares with the buttons it would sit
   left of the middle by half their width, which is the same mistake the
   Melody/Arrangement switch made a row below. The kicker goes with it -
   it is the title's own label, and left behind it reads as a stray.

   A MODIFIER, NOT THE BAND ITSELF: the pairing review page wears the
   same band, and its heading block has no class of its own - under a
   three-track grid it would have auto-placed into the empty left track
   and come out squeezed into half the free width. */
.review-page-head-centred { display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.review-page-head-centred .review-page-title { grid-row: 1;
  grid-column: 2; text-align: center; }
/* AND WHAT IS CENTRED IS EVERY LINE OF IT (user, 2026-09-25: "the
   'pairing review' title needs centering"). `text-align` moves text;
   the kicker under the pairing page's title is a FLEX row of pills, and
   a flex row ignores it and packs to the start. */
.review-page-head-centred .review-page-title .review-meta {
  justify-content: center; }
.review-title-meta { margin-top: 0.4rem; font-size: 0.85rem; }
/* ROOM UNDER THE HEADING (user, 2026-09-10). `.subtitle` is margin:0
   everywhere else because it is usually the last thing in a header band;
   here the type label and the status pill are inline-blocks with padding
   of their own, and with none they sat flush against the card below and
   read as clipped. */
.review-page-head .subtitle { margin-top: 0.5rem; }
.review-page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
/* THE WAY BACK AT THE FAR LEFT (user, 2026-09-25), which is the track
   the title's centring already left empty - so it costs the heading
   nothing and the middle stays on the page's centre line.

   BOTH ON ROW 1, SAID OUT LOUD: the title is written first and claims
   column 2, which moves the placement cursor past column 1 - so a link
   asking for column 1 afterwards is put on a SECOND row, under the
   heading. Naming the row is what keeps them side by side. */
.review-page-head-centred .review-page-actions { grid-row: 1;
  grid-column: 1; justify-self: start; }
/* AND THE OTHER SIDE OF THE HYMN IN THE RIGHT-HAND TRACK, opposite the way
   back (user, 2026-10-01) - the other empty track the centred title leaves,
   so the heading stays on the page's centre line. Stacked where there is
   more than one: a text sung to two tunes. */
.review-page-related { display: flex; flex-direction: column; gap: 0.4rem;
  align-items: flex-end; }
/* ON A MUSIC REVIEW, A LINK UNDER THE SCORE instead (user, 2026-10-08:
   "Instead of a button here, can this be made into a link centered below
   the music card?"), and on a lyrics review under the words. Centred in the
   gap the cards leave between them; several - a tune sung to two texts -
   sit on one line. */
.review-counterpart-links { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.35rem 1.5rem; margin: -0.6rem 0 1.5rem; text-align: center; }
/* THE WORDS WHERE THEIR REVIEW PAGE IS CLOSED (user, 2026-10-08), read in a
   dialog: a stanza heading and its lines, as the review page sets them. */
.counterpart-lyrics-dialog { max-width: 34rem; text-align: left; }
.counterpart-lyrics-why { margin: 0 0 0.9rem; font-size: 0.9rem; }
.counterpart-lyrics-stanza { margin: 0 0 0.9rem; }
.counterpart-lyrics-foot { margin: 0.4rem 0 0; font-size: 0.9rem; }
.review-page-head-centred .review-page-related { grid-row: 1;
  grid-column: 3; justify-self: end; }
@media (max-width: 62rem) {
  /* AND ONE COLUMN WHERE THERE IS NO ROOM FOR THREE. */
  .review-page-head-centred { grid-template-columns: minmax(0, 1fr); }
  .review-page-head-centred .review-page-title,
  .review-page-head-centred .review-page-actions,
  .review-page-head-centred .review-page-related { grid-row: auto;
    grid-column: 1; justify-self: center; }
  .review-page-related { align-items: center; }
  /* THE WAY BACK ON ITS OWN LINE ABOVE THE TITLE, at the left, as every page's back link is (.page-back; the
     button sweep, 2026-10-25) - in one column it fell under the title and its state pill, a lone link mid-page. */
  .review-page-head-centred > .review-page-actions { grid-row: 1; justify-self: start; }
}
/* DESTINATIONS LEFT, DECISIONS RIGHT, on one row (user, 2026-09-11). They wrap
   onto two lines only when there is genuinely no room, rather than because
   they were in two different blocks. */
/* FILES LEFT, THE QUESTION IN THE MIDDLE, THE DECISION RIGHT (user,
   2026-09-25). Three tracks rather than `space-between`, for the reason
   the two rows above this one already record: between two groups a
   middle item lands wherever their widths leave it, and the question is
   the one thing on this page that should be over the middle of it. */
/* ON THE LAST LINE'S BASELINE, not centred: where a narrower window stands
   your own review over the menu (see `.pairing-decide`), the question and
   the file buttons stay level with the MENU - the answer to the question -
   instead of floating between the two. On one line the two rules put
   every item in the same place, measured. */
.pairing-action-row { display: grid; align-items: last baseline;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem; }
.pairing-action-row > .review-page-actions { grid-row: 1; grid-column: 1;
  justify-self: start; }
.pairing-question { grid-row: 1; grid-column: 2; margin: 0;
  text-align: center; }
.pairing-decisions { margin-top: 0; }
/* THE META LINE: everything short about the hymn, in one wrapping row -
   type, status, due date, themes, meter, language. Separated by a middot
   drawn in CSS rather than typed between the spans, so a fact that is absent
   takes its separator with it and no line ever begins with a stray dot. */
.review-meta { display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.45rem 0.55rem; line-height: 1.5; }
/* ON THE WRAPPER, never on the pill: a ::before belongs to the box it is
   declared on, so putting it on the pill itself drew the dot INSIDE the
   pill and shoved its text off centre. */
/* NOTHING INSIDE AN ITEM BREAKS ACROSS LINES. The row wraps between facts,
   never through one - a due date and the button that edits it are one fact,
   and they were landing on separate lines with the button beside the meter
   (user, 2026-09-10). */
.review-meta-item { display: inline-flex; align-items: center; flex: 0 0 auto;
  gap: 0.4rem; }
/* A SMALL PILL, not a link: it sits in a line of pills and figures, and an
   underlined word there reads as part of the sentence rather than as a thing
   to press. */
.pill-btn { font: inherit; font-size: 0.72rem; line-height: 1; cursor: pointer;
  padding: 0.28rem 0.6rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border-strong); background: var(--card);
  color: var(--muted); }
.pill-btn:hover { background: var(--card-alt); color: var(--ink); }
/* Deleting keeps its warning colour, but not its weight: it is one of two
   small controls under a remark, not the point of the row. */
.pill-btn-danger { color: var(--error); border-color: var(--error); }
.pill-btn-danger:hover { background: var(--error); border-color: var(--error);
  color: #fff; }
.review-meta-item + .review-meta-item::before { content: "·";
  margin-right: 0.55rem; color: var(--border-strong); }
/* THE THEME ROW. A list, not a fact - so it gets a row of its own under the
   short ones, and the space between entries comes from the flex gap rather
   than from the comma. The comma stays tight against the theme it follows,
   which is where a comma belongs; the breathing room is the gap. */
/* THE KICKER over the title: what page this is, before what it is about.
   Sized and spaced like the section titles this app already uses for the same
   job, so it reads as a label rather than as a line of the heading. */
.review-kicker { font-size: 1rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin: 0 0 0.3rem; }
.review-meta-themes { margin-top: 0.4rem; gap: 0.2rem 0.85rem; }
.review-meta-label { color: var(--muted); }
.review-theme:not(:last-child)::after { content: ","; }
/* THE ACTIONS, in the header band. A row of buttons needed neither a card nor
   a heading; the rule under it is what separates the band from the
   conversation, and it does the job the card's border was doing. */
/* THE THEMES SHARE THIS ROW (user, 2026-09-15), rather than sitting under
   the meter in the header band. Wrapping, not crushing: four themes on a
   narrow window put the button on its own line instead of squeezing the
   words that say what the hymn is about. */
/* ONE BOTTOM LINE ACROSS THE ROW (user, 2026-09-25: "the bottom edge of
   the status pill and due date should align with the bottom edge of the
   decision buttons"). Centred, each group hung wherever its own height
   left it - the buttons carry a heading above them and the state carries
   an edit button, so nothing agreed. Hung from the bottom, the things
   you ACT on all sit on one line and the labels float above. */
.review-act { margin: 0 0 1.4rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; }
/* THE EDIT BUTTON OVER THE DATE IT CHANGES (user, 2026-09-25: "the
   'edit due date' button should go above the due date, not below").
   `column-reverse` rather than a swap in the template: the sentence is
   still "due <date>" followed by the control that edits it, which is the
   order it should be READ in - only the stacking is turned over. */
.review-due-line { margin: 0; align-self: flex-end; }
.review-due-line .review-meta-item { display: flex;
  flex-direction: column-reverse; align-items: center; gap: 0.3rem; }
.review-due-line .review-due-edit { margin: 0; }
/* AND WHAT THE ROUND IS ABOUT, CENTRED OVER THE SCORE (user, 2026-09-25:
   "a font size that's a bit bigger, remove the colored rule thingy on the
   left edge of the note box - ALL CAPS - and centered above the music").
   Set as a label for the music rather than as a remark beside the
   buttons: it says what the notes below are being read for. */
/* AND EASY TO SEE (user, 2026-10-01: "this header needs to be made more
   apparent - not over the top, but right now it's easy to overlook").
   In muted grey at the body's weight it read as a caption. It now wears
   the colours its kind of work wears everywhere else - the melody's
   green, the arrangement's amber, as on their tags - on a soft band and
   a weight heavier, so the two kinds of review are told apart before a
   word of it is read. */
.review-scope-note { width: fit-content; margin: 0 auto 0.7rem;
  padding: 0.3rem 1rem; border-radius: 6px; text-align: center;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.review-scope-melody { background: var(--type-melody-bg);
  color: var(--type-melody-fg); }
.review-scope-arrangement { background: var(--type-arrangement-bg);
  color: var(--type-arrangement-fg); }
/* THE ACTIONS SIT RIGHT (user, 2026-09-10). They line up under the header's
   own button group - Full record, Review report, Back to my list - so the two
   rows of controls share an edge instead of one starting at each margin.
   Anything else in the band (the "Reviewed by" line) keeps its own line at the
   left, which is where prose belongs. */
.review-act .btn-row { margin-top: 0 !important; justify-content: flex-end; }
/* THE DECISION MENU AND THE BUTTON THAT TAKES IT (user, 2026-09-25).
   The row of forms it replaces is hidden by the SCRIPT, never by this
   file: with scripting off there is no menu, and a stylesheet that had
   already hidden the buttons would leave the page with no way to decide
   anything at all. */
.review-decide-row { display: flex; align-items: center; gap: 0.5rem;
  justify-content: flex-end; margin-top: 0.85rem; }
.review-decide-choice { font-family: inherit; font-size: 0.85rem;
  padding: 0.35rem 0.6rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  color: var(--ink); max-width: 15rem; }
/* A BUTTON THAT CANNOT BE PRESSED YET LOOKS LIKE ONE. Nothing is chosen
   when the row is drawn, which is the point of the menu. */
.review-decide-go[disabled] { opacity: 0.45; cursor: default; }
.review-decide-go[disabled]:hover { box-shadow: none;
  border-color: var(--accent); }
.review-decisions-hidden { display: none; }
/* ON THE PAIRING PAGE IT RIDES WITH THE BUTTONS (user, 2026-09-25:
   "decision needs to be aligned with print and retrieve mxl buttons and
   moved to the far right"). The margin above it is for the review page,
   where it hangs under a label; here it shares a row, and `margin-left:
   auto` holds it at the right even on a line of its own - which is where
   `space-between` leaves a single item otherwise: hard left. */
.pairing-action-row .review-decide-row,
.pairing-action-row > .pairing-decisions { grid-row: 1; grid-column: 3;
  justify-self: end; margin-top: 0; }
/* AND THE ROW ITSELF IS THE WHOLE WIDTH. It is a flex ITEM of the
   actions band, so it had been sizing to its contents - 471px of a
   1052px band - and "the far right" was the far right of the huddle.
   Told to take the line, its two ends are the band's two ends. */
.review-act > .pairing-action-row { flex: 1 1 100%; }
/* AS WIDE AS THE MUSIC (user, 2026-10-01: "what if we expanded that column
   width to match the width of the music?"). The same rule the music card
   breaks out of the page by, on the same container, so the band's two ends
   are the card's two ends: on a wide screen the decision's column grows
   from 368px to about 500, which is the room your own review needed
   beside the menu. */
@media (min-width: 1200px) {
  .review-act-music {
    width: min(1320px, calc(100vw - 3rem));
    margin-left: calc((100% - min(1320px, 100vw - 3rem)) / 2);
    margin-right: calc((100% - min(1320px, 100vw - 3rem)) / 2);
  }
}
/* YOUR OWN REVIEW AND THE COMMITTEE'S DECISION, two groups in the
   right-hand column, each under a heading of its own and ruled apart
   (user, 2026-10-01: "'mark my review complete' should be a separate
   button or action"; "a small header over each decision"). The groups
   and headings are the review page's own `.review-tool-group`, and the
   padding above is the room its headings hang into.

   THE COLUMN IS THE CONTAINER, so the pair asks how wide its own column
   is rather than how wide the window is: under 27rem the two stand one
   over the other, your own review on top, with room between them for
   the second heading - and the rule, which would begin the second
   line, is not drawn. */
.pairing-action-row > .pairing-decide { grid-row: 1; grid-column: 3;
  container-type: inline-size; padding-top: 1.4rem; }
.pairing-decide-inner { display: flex; flex-direction: column;
  align-items: flex-end; gap: 2rem; }
.pairing-decide-inner > .review-tool-group + .review-tool-group {
  padding-left: 0; border-left: 0; }
.pairing-decide-inner > .review-tool-group + .review-tool-group
  > .review-tool-label { left: 50%; }
@container (min-width: 27rem) {
  .pairing-decide-inner { flex-direction: row; align-items: center;
    justify-content: flex-end; gap: 1.1rem; }
  .pairing-decide-inner > .review-tool-group + .review-tool-group {
    padding-left: 1.1rem; border-left: 1px solid var(--border); }
  .pairing-decide-inner > .review-tool-group + .review-tool-group
    > .review-tool-label { left: calc(50% + 0.55rem); }
}
@media (max-width: 62rem) {
  /* AND ONE COLUMN WHERE THERE IS NO ROOM FOR THREE. */
  .pairing-action-row { grid-template-columns: minmax(0, 1fr);
    justify-items: center; }
  .pairing-action-row > .review-page-actions,
  .pairing-action-row .review-decide-row,
  .pairing-action-row > .pairing-decisions,
  .pairing-question { grid-row: auto; grid-column: 1;
    justify-self: center; }
  /* AND YOUR OWN REVIEW CENTRED WITH THEM. */
  .pairing-action-row > .pairing-decide { grid-row: auto; grid-column: 1;
    justify-self: stretch; }
  .pairing-decide-inner { align-items: center; justify-content: center; }
}
/* DOES IT SCAN? The verdict rides beside the meter, in three states, because
   "cannot be counted" is not "matches" - 22 hymns are Irregular, and calling
   those clean would report a check that never ran as a check that passed. */
/* ALL-CAPS TEXT IN A PILL sits high when the line box reserves room for
   descenders it never uses - which is what "the text isn't centred nicely"
   was (user, 2026-09-10). line-height:1 makes the box the height of the caps,
   and the padding then centres them. Scoped to this row: every other pill in
   the app keeps the metrics it has. */
.review-meta .status-pill { line-height: 1; padding-top: 0.32rem;
  padding-bottom: 0.32rem; }
.meter-flag { margin-left: 0; }
.meter-flag-ok { background: var(--status-approved-bg); color: var(--status-approved-fg); }
.meter-flag-off { background: #f3d9d9; color: var(--error); }
.meter-flag-unknown { background: var(--card-alt); color: var(--muted); }
/* A LINE THAT DOES NOT SCAN, in the hymn itself. One line per row so a mark
   lands on the line and not the stanza; the title says what the count was and
   what the meter asked for, which is the part a reviewer acts on. */
.review-line { display: block; }
.review-line-off { color: var(--error); }

/* CHOOSING LINES OF A HYMN, and what has been said about them (user,
   2026-09-15). The score's bars have worked this way since 2026-09-10 and
   these read the same on purpose: a reviewer moving between the two pages
   should not have to learn the idea twice.

   NOTHING HAD TO BE WRAPPED to make this possible - the template already
   renders one span per line so a line that does not scan can be flagged. */
.review-line { display: block; border-radius: 3px;
  padding: 0 0.25rem; margin: 0 -0.25rem; }
/* THE CURSOR ONLY PROMISES WHAT THE PAGE CAN DO. The script adds this
   class as it wires each line, so a reviewer who cannot post a remark is
   not offered a pointer that does nothing. */
.review-line.is-selectable { cursor: pointer; }
/* SOMETHING WAS SAID ABOUT THIS LINE: a rule under the words rather than a
   wash over them, because the text is the thing being read and a highlight
   behind it competes with the reading. */
.review-line.has-remark { box-shadow: inset 0 -2px 0 var(--accent); }
/* AND WHILE AN UNDERLINED REMARK IS READ, its lines are lit - the script
   adds this on hover. A bracketed passage lights its bracket instead (below).
   Before is-chosen, so a chosen line keeps its own, louder wash when it is
   also lit. */
.review-line.is-lit { background: rgba(122, 75, 42, 0.07); }
/* AND THIS ONE IS CHOSEN - louder than has-remark, because it is something
   being done now rather than something that was done. */
.review-line.is-chosen { background: rgba(122, 75, 42, 0.16); }
/* A PASSAGE IS BRACKETED (user, 2026-10-08: "The underlining should only
   apply to a single, or a selection of single lines less than a whole
   stanza(s)"). A whole stanza, several stanzas, or a run over a stanza break
   is one thin bracket in the card's empty left padding - the underline's
   colour and weight, beside the words rather than under them, and unbroken
   across a break. Drawn and measured by lyrics-review.js, which places each
   in a lane 5px further out where passages overlap. A bracket is read, not
   clicked, so it keeps the default cursor; only a thin strip down its upright
   answers the pointer. */
#review-hymn { position: relative; }
.review-passage-layer { position: absolute; inset: 0; pointer-events: none; }
/* MORE APPARENT THAN THE UNDERLINE (user, 2026-10-08: "I would like this
   to be a bit more apparent - right now it's just a bit too subtle"): a 3px
   rule, and a faint band filling the margin it encloses, so the passage is
   seen at a glance down the page rather than found. */
.review-passage-mark { position: absolute; box-sizing: border-box;
  border: 3px solid var(--accent); border-right: 0; pointer-events: none;
  background: rgba(122, 75, 42, 0.08); }
.review-passage-mark::before { content: ""; position: absolute; top: -3px;
  bottom: -3px; left: -5px; width: 9px; pointer-events: auto; }
/* AND WHILE ITS REMARK IS READ the bracket darkens and the margin it encloses
   takes a faint wash - the passage's lines are left unwashed, so a line's own
   underlined remark and the stanza's remark never light up as one (user,
   2026-10-08). */
/* HEAVIER BY A SHADOW, NOT A WIDER BORDER: a border would move the box the
   hover strip is placed in, the strip would slip from under the pointer, and
   the note would flicker. */
.review-passage-mark.is-lit { background: rgba(122, 75, 42, 0.2);
  box-shadow: -1px 0 0 var(--accent); }
/* THE HEADING CHOOSES THE STANZA, for whoever can add a remark - the script
   adds is-selectable where it wires the click. Only the word is the target,
   and it does not move when it becomes one. */
#review-hymn .review-stanza-number.is-selectable { cursor: pointer;
  width: fit-content; padding: 0 0.25rem; margin-left: -0.25rem;
  border-radius: 3px; }
#review-hymn .review-stanza-number.is-selectable:hover { color: var(--ink); }
#review-hymn .review-stanza-number.is-selectable:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; }
#review-hymn .review-stanza-number.is-chosen { color: var(--accent);
  background: rgba(122, 75, 42, 0.16); }

/* THE PARKING SPOT for the pieces the script moves. It holds no layout of
   its own: the form is lifted into a stanza's column and the note is
   positioned against the page, so neither depends on this staying put. */
.review-lines-panel { margin: 0; }
.review-line-group { margin-bottom: 1rem; }
.review-line-where { margin: 0 0 0.3rem; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); }

/* THE HOVER PANEL says WHERE a remark is and roughly what it says; the
   list below is where it is READ, with its author, its date and its
   controls. A comment that exists only on hover is a comment nobody finds
   by reading down the page - the score's marks already follow this rule.
   Positioned by the script against the line it belongs to. */
/* POSITIONED AGAINST THE PAGE, not against an ancestor. Hanging it off
   the body means no element between it and the line it describes has to
   be `position: relative` - which is one more thing that would have to
   stay true while the layout around it changes. */
.review-line-note { position: absolute; z-index: 30; max-width: 32rem;
  background: var(--card, #fff); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.55rem 0.7rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); pointer-events: none; }
.review-line-note-where { margin: 0 0 0.35rem; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); }
/* EACH REMARK IN ITS OWN BLOCK, as the score's note shows them - the note
   lists every remark about the line now, and run together they read as one. */
.review-line-note-text { margin: 0 0 0.3rem; white-space: pre-wrap;
  background: var(--card-alt); border-radius: 5px; padding: 0.35rem 0.5rem; }
.review-line-note-more { margin: 0.3rem 0 0; font-size: 0.8rem;
  color: var(--muted); }
.review-line-note-text:last-child { margin-bottom: 0; }

.review-line-add { margin-top: 0.8rem; }
.review-line-add-where { margin: 0 0 0.35rem; font-size: 0.82rem;
  color: var(--muted); }

/* PLAIN OR SYLLABIZED. Both texts are in the page and one is hidden, so the
   plain view is the words exactly as they are stored rather than the
   syllabized text with its breaks taken back out.

   BOTH DIRECTIONS ARE WRITTEN. Hiding one and trusting the other to appear is
   how a toggle ends up showing both at once - spec s66's lesson, from the
   other side: what is hidden by a class must be shown by one too. */
.line-syl { display: none; }
.syl-on .line-plain { display: none; }
.syl-on .line-syl { display: inline; }
/* THE ENGRAVED SCORE. The library draws an <svg> into the canvas and sizes it
   to the box it is given, so the box is what decides the width - and a score
   wider than the page scrolls INSIDE its own container rather than pushing the
   whole page sideways, which is the one thing a reviewer reading down a column
   must not have happen. */
/* THE PANE THE SCORE SITS IN. It scrolls, and the corner can be dragged to
   make it taller (user, 2026-09-10) - the script sets a maximum equal to the
   score's own height, so the drag stops at the last line of music rather than
   hauling out empty space below it. */
.review-notation-canvas { overflow: auto; resize: vertical;
  border: 1px solid var(--border); border-radius: 6px;
  /* MORE AT THE TOP, where the drawing begins. The same air the
     reading view gets below - both rules set this padding, and only
     one of them had it (user, 2026-09-21, of the melody review, which
     is the framed one). */
  padding: 0.9rem 0.4rem 0.4rem; }
/* The score's own box, sized by the engraver. The clickable bars are laid out
   over THIS rather than over the pane, or they would sit still while the music
   scrolled underneath them. */
.review-notation-inner { position: relative; }
/* AND THE CARD MAY OUTGROW THE PAGE (user, 2026-09-13, of an arrangement on
   a pairing review: "should be four systems", and then, of the three ways to
   get them, "let the card use the full width").

   MEASURED, NOT GUESSED. The engraver packs systems until the width runs out,
   so how many a score comes to is a fact about how wide it is drawn. This
   arrangement's bars take about 248px each: at the 1002px this card had, four
   bars fit and the sheet's own four systems of five did not - asked for four,
   the engraver broke again and stranded a bar alone on a system. At 1240px it
   draws 5,5,5,5, which is the engraving as it was typeset.

   The page container is capped at 1100px, which is right for prose and too
   narrow for a four-part score. Only THIS card breaks out, and only on a
   screen with the room to spare: it takes up to 1320px - the 1240 the music
   needs plus the card's own padding - and stays centred on the container by
   pulling its own margins in by half the difference.

   BOTH REVIEW PAGES, because it is one card: the pairing page and a work's
   own review page draw the same `.review-notation` section, and a score that
   breaks into four systems on one and six on the other is the same fault
   read twice. */
@media (min-width: 1200px) {
  .review-notation {
    width: min(1320px, calc(100vw - 3rem));
    margin-left: calc((100% - min(1320px, 100vw - 3rem)) / 2);
    margin-right: calc((100% - min(1320px, 100vw - 3rem)) / 2);
  }
}
/* A READING VIEW SHOWS THE WHOLE SCORE (user, 2026-09-10): no fixed height, no
   scrollbars, no drag handle, no frame - it stands where a scan stood, and a
   scan is just as tall as it is. */
.is-plain .review-notation-canvas { overflow: visible; resize: none;
  height: auto !important; max-height: none !important;
  border: 0; border-radius: 0; padding: 0;
  /* EXCEPT ABOVE. A melody writes its stanza over the staff, so the
     first thing in the drawing is a row of words with nothing above
     them - measured, fourteen pixels from the stanza tabs to the
     first syllable, twelve of which were the tabs' own margin (user,
     2026-09-21: "more breathing room here"). A score with no words
     does not look tight in the same place, and does not need this
     either: the space costs it a little air it can spare. */
  padding-top: 0.9rem; }
/* AND FILLS THE WIDTH IT IS GIVEN. The engraver sizes the drawing in pixels
   and can land a few wider than the box it was measured in, which is a
   sideways scrollbar on a picture; scaling to the box settles it whatever the
   engraver decides, and survives the re-draw a window resize brings. */
.is-plain .review-notation-inner svg { width: 100%; height: auto; }
/* THINNER MARGINS AROUND AN ENGRAVING (user, 2026-09-10). A card's 1.5rem of
   side padding is right for prose and for a form; around a drawing that is
   already being held to a height it is width given away for nothing. Only the
   card that HOLDS one is narrowed - `:has` is what lets the rule ask that,
   and where it is not supported the card simply keeps its usual padding. */
.card:has(.notation-view) { padding: 1rem 0.75rem; }
.card:has(.notation-view) .music-figure { margin-bottom: 1rem; }
.card:has(.notation-view) .music-figure + .music-figure { padding-top: 1rem; }
/* Replacing the file is a file control, and sits with the heading rather than
   below the music it would replace. */
/* THE HEAD'S CONTROLS, together. The row is space-between: a heading and one
   cluster, not a heading and two things with the gap between them (user,
   2026-09-10). */
/* HEARING A WORK. Shaped like the browser's own audio player, because that is
   the control every reader already knows (user, 2026-09-10, with a screenshot
   of one): a pill holding play, the position against the whole, a bar you can
   drag, and a volume. It is not an <audio> element and cannot be - there is no
   sound file to give one - so the furniture is drawn here.

   The grey is --card-alt rather than the browser's cold #f1f3f4: the same
   object, in this app's paper. */
.midi-player {
  display: inline-flex; align-items: center; gap: 0.45rem;
  box-sizing: border-box;
  width: 23rem; max-width: 100%;
  padding: 0.25rem 0.7rem 0.25rem 0.3rem;
  background: var(--card-alt);
  border-radius: 999px;
}
.midi-icon-btn {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; padding: 0.3rem; margin: 0;
  line-height: 0; color: var(--ink); cursor: pointer;
  border-radius: 50%; flex: 0 0 auto;
}
.midi-icon-btn:hover { background: rgba(43, 38, 32, 0.09); }
.midi-icon-btn:disabled { opacity: 0.45; cursor: default; background: none; }
.midi-glyph { display: block; width: 1.3rem; height: 1.3rem; fill: currentColor; }
/* The attribute and the rule that lets it win, written together - a glyph is
   swapped for its opposite by `hidden`, and `display` from anywhere else would
   leave both of them showing (spec s66). */
.midi-glyph[hidden] { display: none; }
.midi-time { font-variant-numeric: tabular-nums; font-size: 0.78rem;
  color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
/* THE BAR IS THE SEEK, so it takes the room that is left and nothing stops the
   pointer reaching it - `touch-action: none` because a drag here is a scrub
   and not a scroll. */
.midi-track {
  position: relative; flex: 1 1 auto; min-width: 2.5rem;
  height: 1rem; cursor: pointer; touch-action: none;
}
.midi-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 2px;
  background: rgba(43, 38, 32, 0.22);
}
.midi-track-fill {
  position: absolute; left: 0; top: 50%; width: 0;
  height: 3px; margin-top: -1.5px; border-radius: 2px;
  background: var(--ink);
}
.midi-track-thumb {
  position: absolute; top: 50%; left: 0;
  width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem;
  border-radius: 50%; background: var(--ink);
  opacity: 0; transition: opacity 0.12s ease;
}
.midi-track:hover .midi-track-thumb,
.midi-track:focus .midi-track-thumb { opacity: 1; }
.midi-track:focus { outline: none; }
.midi-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px;
  border-radius: 4px; }
/* The volume slider is out of the way until it is wanted, which is how the
   browser's own player carries it: an icon, and the slider on hover or when
   the keyboard reaches it. */
.midi-volume { display: flex; align-items: center; flex: 0 0 auto; }
.midi-volume .midi-glyph { width: 1.15rem; height: 1.15rem; }
.midi-volume-slider {
  width: 0; opacity: 0; margin: 0; padding: 0; min-width: 0;
  accent-color: var(--ink);
  transition: width 0.15s ease, opacity 0.15s ease;
}
.midi-volume:hover .midi-volume-slider,
.midi-volume:focus-within .midi-volume-slider { width: 4rem; opacity: 1; margin-left: 0.25rem; }
/* The piano is 2.3 MB and the first press waits for it. A pulse says so
   without a word of text in a field five characters wide. */
/* `.midi-player` declares its own `display`, so `hidden` needs saying here
   as well - the same pairing `.midi-dialog` and `.passage-dialog` carry,
   and spec s66's rule. The app-wide backstop would cover it; a class that
   sets a display saying so beside itself is how the next one gets it right. */
.midi-player[hidden] { display: none !important; }
.midi-player.is-loading [data-midi-play] { animation: midi-pulse 1s ease-in-out infinite; }
@keyframes midi-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .midi-player.is-loading [data-midi-play] { animation: none; opacity: 0.5; }
  .midi-track-thumb, .midi-volume-slider { transition: none; }
}
.midi-player.is-broken .midi-track,
.midi-player.is-broken .midi-volume { opacity: 0.4; pointer-events: none; }
.midi-player.is-broken .midi-time { white-space: normal; font-size: 0.72rem; }
/* THE INSTRUMENT, BESIDE PLAY (the user, 11/7/2026: "a menu next to Play to choose the instrument for the whole
   hymn, with piano as the default"). A quiet word in the pill's own type and a caret - the instrument it will play
   on - and under it a small menu of the five, the chosen one outlined on the light tint, as a chosen option is
   everywhere in the app. The word keeps one width whichever is chosen, so the bar beside it does not move. */
.midi-inst { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.midi-inst-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: 0.2rem;
  background: none; border: 0; margin: 0; padding: 0.2rem 0.35rem 0.2rem 0.4rem;
  border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.74rem; line-height: 1.2; color: var(--muted); white-space: nowrap;
}
.midi-inst-btn:hover, .midi-inst-btn[aria-expanded="true"] { background: rgba(43, 38, 32, 0.09); color: var(--ink); }
.midi-inst-btn:focus { outline: none; }
.midi-inst-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.midi-inst-word { min-width: 2.9em; text-align: left; }
.midi-inst-caret { flex: none; width: 0.55rem; height: 0.35rem; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* The menu sets a display, so the attribute's rule is written beside it (spec s66). */
.midi-inst-menu {
  position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 8.5rem; padding: 0.45rem 0.3rem 0.3rem;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 6px;
  box-shadow: 0 8px 22px rgba(43, 38, 32, 0.16); text-align: left;
}
.midi-inst-menu[hidden] { display: none; }
.midi-inst-menu.is-up { top: auto; bottom: calc(100% + 0.35rem); }
.midi-inst-menu button {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; margin: 0; padding: 0.3rem 0.6rem;
  border-radius: 4px; cursor: pointer; text-align: left;
  font: inherit; font-size: 0.88rem; line-height: 1.3; color: var(--ink); white-space: nowrap;
}
.midi-inst-menu button:hover { background: var(--card-alt); }
.midi-inst-menu button:focus { outline: none; }
.midi-inst-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-light); }
.midi-inst-menu button[aria-checked="true"] { background: #f7ebe6; box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent); font-weight: 600; }
.midi-inst-menu button[aria-checked="true"]:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
/* The smaller pill of the Page view takes the word at its own clock's size. */
.ppv-sheet-player .midi-inst-btn { font-size: 0.68rem; padding: 0.05rem 0.25rem 0.05rem 0.3rem; }
/* THE FAMILY CARD'S SMALL PLAYERS ARE A RECORDING'S WIDTH (13.5rem, the <audio> beside them), and a word there would
   leave the bar no room: their menu is the caret alone, the instrument named when it is pointed at and in the menu
   it opens. */
.fam-player .midi-inst-word { display: none; }
.fam-player .midi-inst-btn { padding: 0.4rem 0.3rem; }
.midi-player.fam-player .midi-track { min-width: 2rem; }
/* THE WORK PAGE'S PLAYER TAKES A LINE OF ITS OWN ON A PHONE (2026-11-04: the page scrolled sideways). 23rem is
   wider than a phone's column, and `max-width: 100%` cannot hold it there: the row it sits in is sized by what it
   holds, so 100% of that row is the player's own 23rem. The row is given the line, and the player the row. */
@media (max-width: 40rem) {
  .wd-head-tools:has(> .midi-player-inline) { flex: 1 1 100%; min-width: 0; }
  .midi-player.midi-player-inline { width: 100%; }
}
/* The dialog's own player sits above the tempo it is governed by. */
.midi-player-dialog { margin: 0.4rem 0 0.9rem; width: 100%; }
.midi-tempo-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
/* Tempo, on the box's line, in the ink of a field's name (user, 11/8). */
.midi-tempo-row .midi-tempo-label { font-weight: 600; color: var(--ink); }
/* The tempo is typed (user, 11/8): a box as wide as three figures and its arrows. */
.midi-tempo-row .midi-tempo-number { font-variant-numeric: tabular-nums; font-weight: 600;
  width: 4.75rem; flex: 0 0 auto; text-align: right; }
.midi-dialog-form { margin: 0; }
/* HIDDEN BY THE ATTRIBUTE, and a rule that lets the attribute win: the overlay
   class carries `display: flex`, which outranks the browser's own [hidden]
   (spec s66) - the pair is written together or the dialog sits open on every
   page that has one. */
.midi-dialog[hidden] { display: none !important; }
.wd-midi { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* The control stays visible where it cannot be used, with the reason beside
   it: a button that has quietly vanished asks a question nobody can answer. */
.midi-unavailable { display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; }
.midi-unavailable .muted { font-size: 0.8rem; max-width: 18rem; }
/* Whose notation a borrowed score belongs to - a line under the head row, not
   a control, so it reads before the music rather than competing with it. */
.review-notation-source { font-size: 0.82rem; margin: -0.2rem 0 0.6rem; }

/* SHOWING WHICH BARS A REMARK IS ABOUT (user, 2026-09-10). The button sits at
   the far right of the comment's own meta row - it is about the remark rather
   than part of reading it - and opens one dialog holding the whole score with
   those bars lit. */
.comment-passage { margin-left: auto; font-size: 0.8rem; white-space: nowrap; }
.comment-score-changed { margin-left: auto; font-size: 0.78rem; white-space: nowrap; }
.passage-dialog[hidden] { display: none !important; }
.passage-dialog-box { max-width: min(96vw, 60rem); width: 60rem; }
.passage-dialog-said { margin: -0.35rem 0 0.75rem; white-space: pre-wrap; }
.passage-dialog-score { max-height: 60vh; overflow: auto; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem; background: var(--card); }
/* THE BARS THEMSELVES. The cells are the review page's own, laid out by the
   same measurement (data-notation-highlight) - what differs is that here they
   are lit rather than clickable, so they take no pointer and no focus.

   ONE WASH, NOT A GRID (user, 2026-09-10: "the frame and borders and lines in
   the highlight should be deleted"). The cells are one per bar per staff, so a
   border on each drew a lattice over five bars of two staves and the reader
   counted boxes instead of reading music. Only the tint remains, and the cells
   touch, so a passage reads as one block. The rounded corner goes with it -
   nine rounded rectangles in a row leave notches down the joins. */
.passage-dialog .review-bar { pointer-events: none; }
.passage-dialog .review-bar.is-passage {
  background: rgba(122, 59, 46, 0.13);
  box-shadow: none;
  border-radius: 0;
}
/* THE SCORE CARD'S CONTROLS, GROUPED AND NAMED (user, 2026-09-25). The
   row holds two kinds of thing - the file this page draws from, and the
   copy a reviewer takes away - and it read as one undifferentiated line
   of buttons. Each group carries a small label in the same capitals the
   note over the score uses, and a rule stands between them.

   AND ONE BUTTON SHAPE INSIDE THE ROW. `btn-small` is a pill and
   `btn-sm` a rounded rectangle; both are used across the app and the
   MIDI control brought its own, so three buttons in this row were one
   shape and the fourth another. Normalised HERE rather than in either
   class, which are shared with pages that are not this one. */
.review-notation-tools { display: flex; align-items: flex-end;
  gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.review-tools-right { display: flex; align-items: flex-start;
  gap: 1.1rem; justify-content: flex-end; }
@media (max-width: 62rem) {
  /* AND ONE COLUMN WHERE THERE IS NO ROOM FOR THREE. */
  /* `minmax(0, 1fr)` HERE TOO: the narrow rule is still a grid column,
     and a bare `1fr` never shrinks below the engraving inside it. */
  .review-hymn-head-music { grid-template-columns: minmax(0, 1fr);
    justify-items: center; }
  .review-notation-tools, .review-tools-right { justify-content: center;
    flex-wrap: wrap; }
  .review-listen { align-items: center; }
}
/* THE LABEL HANGS ABOVE ITS GROUP RATHER THAN SITTING IN IT (user,
   2026-09-25: "The buttons need to be nudged up so their top edge is
   in-line with the midi player's"). In the flow it took the top of the
   group's box, which pushed every button a line below the player beside
   them; out of the flow the group BEGINS at its buttons, and the row
   lines up on the one thing that has no label - the player. */
.review-tool-group { display: flex; flex-direction: column;
  gap: 0.28rem; position: relative; }
/* AND CENTRED OVER THE GROUP IT NAMES (user, 2026-09-25: "the print
   button should be centered below its label"). Left-aligned, a label
   wider than its group - TO MARK UP over one button - hung out to the
   right of it. */
.review-tool-group > .review-tool-label { position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 0.25rem; white-space: nowrap; }
/* AND NO TOP MARGIN IN THIS ROW. The switch carries one for the header
   band it used to sit in, where it followed a line of text; here it is a
   column of its own and the margin stood it eight pixels below the
   player it lines up with. */
.review-hymn-head .review-view-switch { align-self: start;
  margin-top: 0; }
.review-tool-group + .review-tool-group { padding-left: 1.1rem;
  border-left: 1px solid var(--border); }
/* AND THE LABEL CENTRES ON WHAT IT NAMES, not on the box that carries
   the rule beside it: the divider's padding is part of the group, so a
   label centred on the group sits half that padding left of its
   buttons - nine pixels, which is visible over one button. */
.review-tool-group + .review-tool-group > .review-tool-label {
  left: calc(50% + 0.55rem); }
.review-tool-row { display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; }
.review-tool-label { font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted, #6b6459); }
/* THE MIDI CONTROL KEEPS ITS PILL (user, 2026-09-25). It is not one of
   the score's buttons - it makes the sound the player plays - and it
   sits under the player now, where the shape it has everywhere else in
   the app is the right one. */
.review-listen [data-midi-generate] { align-self: flex-start; }
/* AND A LITTLE MORE PLAYER (user, 2026-09-25: "the midi player needs to
   be stretched just a bit longer"). The scrubber is what the extra
   length buys: a forty-second hymn on a 15rem bar moves a pixel a
   second. */
/* THE PLAYER IS BROUGHT IN TO THE BUTTONS' WIDTH (user, 2026-09-25:
   "the midi column should have been made a bit narrower to the same width
   as the buttons"). The two side tracks of this row are equal already;
   what differs is how much of its track each end fills, and the answer is
   the narrower of the two. 21rem is what the buttons come to - the file
   pair, the rule and Print - measured rather than guessed, and the
   buttons keep their own width so a longer label extends leftwards
   into the track rather than pushing the player about. */
.review-listen { display: flex; flex-direction: column;
  align-items: stretch; gap: 0.45rem;
  min-width: 11rem; max-width: 21rem; }
/* AND THE SWITCH BETWEEN THIS TUNE'S REVIEWS, centred in the row over
   the music it changes. `margin: auto` on both sides is what centres it
   against the groups either side of it however wide they come out. */
/* THE DECISION BAND, named the same way and shaped the same way: the
   label over the buttons it belongs to, so the three groups on this page
   - the decision, the file, the copy - are one pattern seen three
   times. */
.review-decide { margin-left: auto; align-items: flex-end;
  margin-top: 1.2rem; }
.review-decide .btn-row { margin-top: 0 !important; }
.review-notation-replace { margin: 0; gap: 0.5rem; }
.review-notation-replace input[type="file"] { max-width: 15rem; font-size: 0.85rem; }

/* ---- the printed pairing review ----------------------------------------
   The music with its first stanza over the stave, the rest of the words
   underneath, a REVIEW watermark and the standing notice (user, 2026-09-11).
   None of it is on screen. */
#pairing-print, .pairing-print-watermark { display: none; }
/* `.name-check-overlay` carries a display of its own, so the attribute needs
   help to win (spec s66) - the same pairing every dialog in this app ships. */
.pairing-print-dialog[hidden] { display: none !important; }
.pairing-print-q { margin: 0.9rem 0 0; font-weight: 600; }
/* WHERE THE WORDS LAND IS NOT A CHOICE, so it is said once under the question
   rather than repeated on each answer - the per-answer labels were wrong for
   half the cases as soon as placement began following the score. */
.pairing-print-note { margin: 0.15rem 0 0; font-size: 0.86rem; }
.pairing-print-choices { display: flex; flex-direction: column; gap: 0.4rem;
  margin: 0.4rem 0 0.8rem; }
.pairing-print-choice { display: inline-flex; align-items: center; gap: 0.4rem;
  cursor: pointer; }

@media print {
  /* WHOSE THE MUSIC AND THE WORDS ARE, in the page's bottom margin -
     the element is written by the hymnal sheets and by the admin
     tool's single sheet; the rule is here because `@media print`
     is document-wide wherever it is declared. Every one of those
     prints holds back 0.35in at the foot, and this sits inside it. */
  /* TWO CLASSES DELIBERATELY. The plain `.sheet-rights { display:
     none }` that hides this on screen is declared LATER in this file,
     and a rule inside `@media print` carries no extra weight for being
     there - so at equal specificity the hiding rule won and the notice
     printed nowhere. Naming the body class outranks it wherever
     either one sits. */
  body.sheets-run .sheet-rights { display: block; position: fixed;
    bottom: 0.05in; left: 0; right: 0; margin: 0; text-align: center;
    font-size: 7pt; opacity: 0.8; z-index: 3; }
  /* PORTRAIT, because the words go UNDER the music: a landscape sheet gives
     the score width it does not need and leaves the stanzas nowhere to go.
     The review copy's own sheet stays landscape - two columns of music need
     the width - which is why each page names its own. */
  body.print-pairing { }
  body.print-pairing main.container > *:not(#pairing-print) {
    display: none !important; }
  body.print-pairing #pairing-print { display: block; position: relative; }

  /* NO `break-after: avoid` HERE. It asks the browser to keep the head with
     whatever follows, and where that was a score too tall for the page the
     pair could not be placed at all - which is how a PDF came out with two
     blank sheets in front of the music. The score fits now, and the head does
     not need to insist. */
  /* 0.28in, not 0.18: the first thing under the head on a melody's sheet
     is a line of WORDS, and they arrived close enough to the tune name to
     read as part of it (user, 2026-09-22: "a little more space between
     the title row and first line of lyrics", then "still needs more
     gap" of 0.28in). */
  .pairing-print-head { text-align: center; margin: 0 0 0.42in; }
  .pairing-print-title { margin: 0.04in 0 0; font-size: 19pt; line-height: 1.2; }
  .pairing-print-tune { margin: 0.02in 0 0; font-size: 10pt;
    letter-spacing: 0.04em; text-transform: uppercase; }

  /* THE MUSIC, at the width of the sheet. It is the engraving from the screen,
     scaled by its own aspect - see the script for why the ratio has to be
     spelled out rather than left to `height: auto`. */
  /* THE SCORE IS SIZED IN INCHES BY THE SCRIPT, to fit the page box - so
     nothing here may stretch it. Centred, because a score that had to be
     shrunk to fit is narrower than the sheet. */
  /* `overflow: hidden` IS LOAD-BEARING: the score is grown until its INK
     fills the band, and the engraver's empty right margin then hangs
     past the edge. Without this it widens the sheet instead. */
  .pairing-print-score { position: relative; z-index: 1; text-align: center;
    overflow: hidden;
    break-inside: avoid; page-break-inside: avoid; }
  .pairing-print-score svg { display: inline-block; max-width: 100%; }

  /* NO PADDING FOR WORDS ON TOP any more: a melody's words go under its
     staff (user, 2026-10-01), so its drawing opens with a staff, as an
     arrangement's always has, and the head clears it unaided. */

  /* BEHIND THE MUSIC, centred on the sheet and fixed so it repeats. Placed by
     its own centre: rotating a block about the page would swing its text off
     the middle. */
  .pairing-print-watermark { display: block; position: fixed;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
    transform-origin: center center;
    font-size: 84pt; font-weight: 700; letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.09); white-space: nowrap;
    z-index: 0; pointer-events: none; }

  /* THE REST OF THE WORDS, in columns so four stanzas do not run a sheet onto
     a second page. The one written over the stave is marked by the script and
     left out here rather than printed twice. */
  /* INDENTED FROM THE MARGIN (user, 2026-09-11). Flush left, the stanza
     NUMBER landed at 0.500in - eleven thousandths of an inch outside the
     music's own first ink - so the blocks read as hanging off the edge of the
     sheet rather than sitting under the score. The indent is on the block, not
     on the left-hand column alone: columns that start at different insets from
     their own column box look like a mistake rather than a margin. */
  /* AND THE GUTTER CARRIES THE SECOND STANZA'S SHARE OF IT (user,
     2026-09-11: "the second stanza needs a bit more of an indent"). The indent
     above is padding on the BLOCK, and a two-column block divides what is left
     after it - so the left column moved the whole 0.3in and the right only
     0.15in, measured 0.500 -> 0.800 against 4.500 -> 4.650. Widening the
     gutter to 0.8in puts the right column at 4.800, which is the same 0.3in
     the left one got. */
  /* INDENTED FURTHER FROM THE MUSIC'S LEFT EDGE (user, 2026-09-11:
     "this stanza needs to be indented more", of the left column on an
     arrangement's sheet). The padding is on the BLOCK, not on a column,
     so both columns move together and stay level with each other - the
     rule set when the second stanza was first indented. */
  /* THE STANZAS ARE SET THE WAY THE HYMNAL'S OWN SHEETS SET THEIRS (user,
     2026-09-22: "The pairing review print should use the same rules and
     logic as the printed page that is generated from a publication /
     recording page view"). Measured on one tune printed both ways, they
     were two different documents: 14.08px of Times New Roman with a line
     and a half between verses on the hymnal's sheet, and 13.33px of the
     site's own sans with no such rule here.

     A GRID AND NOT `columns: 2`, which is the substance of it. CSS
     multi-column is a NEWSPAPER: it fills one column to the bottom before
     it starts the next, so a reader looking across the first row met
     stanza 2 and then stanza 4. The sheet met that years-worth-of-minutes
     ago and fixed it with a two-track grid, which fills row by row - the
     order the stanzas are numbered in and the order somebody singing them
     wants. See `.sheets-run .sheet-verses`, which this now follows.

     NO `nth-child` NUDGE ON THE SECOND COLUMN, though the sheet has one:
     a stanza printed over the stave is hidden here rather than removed,
     and `nth-child` counts what is hidden - so on any hymn whose first
     verse is sung into the music the indent would land on the left-hand
     column instead of the right. */
  .pairing-print-stanzas { margin: 0.22in 0 0; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.5rem; row-gap: 2.01em;
    padding-left: 0.62in; position: relative; z-index: 1;
    font-family: 'Times New Roman', Times, serif; font-size: 0.88rem;
    line-height: 1.34; }
  .pairing-print-stanza { break-inside: avoid; page-break-inside: avoid;
    margin: 0; display: flex; gap: 0.12in; align-items: baseline; }
  .pairing-print-stanza.is-over-the-stave { display: none; }
  .pairing-print-stanza-number { margin: 0; font-weight: 700;
    min-width: 0.14in; }
  .pairing-print-stanza-text { margin: 0; }
  .pairing-print-stanza-text span { display: block; }

  /* THE NOTICE IN THE FOOTER, centred and on every page - the same words and
     the same placing as the review copy's, for the same reason. */
  /* AGAINST THE BOTTOM MARGIN, not floating above it (user, 2026-09-11). A
     printed page positions a fixed box against the PAGE AREA - inside the
     margins - so this offset is paid on top of the sheet's half inch. The
     review copy's 0.18in reads right because its own margin is 0.3in; here it
     came to nine tenths of an inch of empty paper. */
  .pairing-print-notice { display: block; position: fixed;
    bottom: 0.04in; left: 0; right: 0; margin: 0; text-align: center;
    font-size: 11pt; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; z-index: 3; }
}

/* ---- the hymnal-wide sheets ---------------------------------------------
   One hymn to a page: its music engraved to the page's width, its remaining
   stanzas underneath. The live notation box is what the fit search draws
   into and is never printed - `.sheet-paper` holds the copy that is, which
   is the same arrangement the pairing sheet uses and for the same reason:
   the search goes on needing its box after the sheet has been taken. */
/* OFF THE PAGE, NOT UNDISPLAYED. The fit search measures what the engraver
   drew with getBBox, and getBBox on a `display: none` subtree returns zeros -
   so hiding the working box this way made every sheet unmeasurable, the
   inline size was never written, and the copies below stretched to 32in of
   page each. Off-screen still lays out, so it still measures. */
.sheets-run .sheet-music { position: absolute; left: -10000px; top: 0;
  width: 1700px; }
/* The copy carries its size in INCHES, written on it by the run; a width here
   would fight that and win on any sheet where the measurement failed. */
.sheets-run .sheet-paper svg { display: block; max-width: 100%; }
/* AND THE PAPER KEEPS WHAT HANGS OVER ITS EDGE TO ITSELF (user, 2026-09-23:
   "the footer is too high up the page").

   THE WHOLE PAGE WAS BEING SHRUNK TO FIT. `evenMargins` centres the INK
   between the paper's margins by sliding the drawing sideways, and the
   drawing is a box as wide as the page with its ink inset - so a slide of
   half an inch leaves the BOX half an inch past the paper's right edge.
   Nothing shows: the ink is clamped inside. But the document is then wider
   than the page, and a browser asked to print a page wider than the paper
   scales the whole thing down to fit. Measured on number 42: the sheet lays
   out 7.5in of music and printed 6.90in of it, the page coming out at 0.93
   of itself, top-anchored - which is why the credits sat an inch up the
   paper instead of at its foot, and why the distance was DIFFERENT for the
   same hymn's melody and setting: a different slide is a different scale.

   Clipping the paper box costs nothing, because what it clips is the empty
   margin of a drawing whose ink is inside the frame by construction.

   SIDEWAYS ONLY (user, 2026-09-23: "the top of the top system is
   clipped"). `overflow: hidden` clips BOTH ways, and a drawing paints a
   little above its own box - a high note or a clef reaches past the top
   edge, which nothing minded while nothing clipped. `clip` is the value
   that may be mixed with `visible`, where `hidden` may not: one axis is
   cut and the other left alone, and unlike `hidden` it makes no scroll
   container. */
.sheets-run .sheet-paper { overflow-x: clip; overflow-y: visible; }
/* THE SHEET IS A TABLE so its head and foot repeat where a hymn runs past
   one page - see the template. Nothing about it may LOOK like a table: no
   borders, no cell padding, and the full width so the foot's own grid still
   spans the page. */
/* ON SCREEN, A SHEET LOOKS LIKE THE PAPER IT IS (user, 2026-09-17: "can
   this rendering page have white background behind the individual pages and
   the same margins as the printed page so that the renderings look like what
   will show up on the printed page?").

   THE SAME BOX THE PRINT ASKS FOR: the template's @page states portrait with
   0.5in at the sides and top and 0.35in at the foot, so that is the padding
   here, on a page 8.5in wide - and 11in tall, which is what makes a hymn
   that overruns visibly overrun instead of quietly growing the card.

   IT IS A TABLE, so the paper cannot be the section's own background without
   the head and foot rows sitting outside it. The ground goes on the table
   and the padding on the cells' container, which is why the min-height is
   stated here rather than on a wrapper that does not exist.

   PRINT UNDOES ALL OF IT a few rules below - `background: none`, no shadow,
   no border - because on paper the paper is already there. */
/* HOW TALL A PRINTED SHEET IS, IN ONE PLACE. The stylesheet gives the table
   this height and sheets-run.js spills against it, and they were two
   numbers: 10.384in here and 9.9 there. Half an inch of page that the print
   uses and the spill refused to, which is a stanza row - measured on SHZ
   2008 number 39, whose seventh stanza went to a second page with the room
   for it sitting unused (user, 2026-09-22).

   DECLARED ON SCREEN so the run can read it: a custom property inside
   `@media print` is not there to be asked about when the page is drawn, and
   the drawing is when the spill decides. */
/* 10.15in, WHICH IS THE PAGE'S OWN CONTENT BOX: 11in of paper less the
   0.5in and 0.35in this sheet's @page holds back. It stood at 10.384 -
   fitted by measuring where the credits landed - and that is a QUARTER OF
   AN INCH TALLER THAN THE BOX, so a sheet whose contents actually filled
   it fragmented and printed a second page carrying nothing but the head
   and the foot. Only the tallest did, which is why it read as one hymn
   misbehaving: measured, SHZ 2008 number 1's body is 8.994in against
   number 39's 8.824, and number 1 doubled while 39 did not.

   THE CREDITS SIT A LITTLE HIGHER FOR IT, which is the price: the foot is
   pinned to the bottom of the table and the table is now shorter. A page
   that prints in one piece is worth more than a quarter inch of foot. */
/* AND THE FOOT LOW ENOUGH TO ALMOST TOUCH THE NOTICE UNDER IT (user,
   2026-09-24: "the footer can be nudged down the page so that the
   footer rests almost right on top of the copyright notice"). The
   notice is FIXED to the page's bottom margin and the credits are the
   last thing inside the page, so what separates them is this height
   against the margin the notice hangs in. Measured in the PDF: the
   book's name ends at 10.64in and the notice begins at 10.69in, a
   sixteenth of an inch apart, with a fifth of an inch of paper left
   under the notice. Move one of the two numbers without the other and
   the credits print on top of the notice. */
.sheets-run { --sheet-band: 10.15in; --sheet-foot-at: 10.15in; }
/* TWO NUMBERS, BECAUSE THEY ANSWER TWO QUESTIONS. The BAND is what the page
   has to SPEND - sheets-run.js measures the music against it and spills the
   stanzas against it - and it is 11in less the 0.5in and 0.35in this
   sheet's @page holds back.

   FOOT-AT IS WHERE THE CREDITS LAND (user, 2026-09-23: "it should be 0.5"
   from the bottom of the page"). The foot is pinned to the bottom of the
   table, so the table's height IS the distance from the credits to the
   paper's edge: 11in, less the half inch held back at the top, less ten,
   leaves half an inch under them.

   IT IS A FLOOR AND NOT A CEILING, which is why it can be shorter than the
   band. A sheet whose stanzas fill the band is taller than this and foots a
   little lower - down to 0.35in, where the band itself ends - and that is
   the right trade: setting the BAND to ten instead would have taken the
   room back off the music, and number 42's melody sheet answered that by
   spilling onto a second page.

   THE ARITHMETIC ONLY HOLDS BECAUSE THE PAGE IS NO LONGER SCALED on its way
   to paper - see `.sheet-paper` above. Fitted numbers taken while it was
   scaled could not be read as distances at all: the same hymn footed at
   1.06in as a melody and 0.70in as a setting.

   AND BOTH ARE SHORTER THAN THE PRINTABLE BOX, which is the other thing
   these numbers have to be: at 10.384in a sheet whose contents filled it
   fragmented and printed a second page carrying nothing but the head and
   the foot. */

.sheets-run .sheet-one { margin: 0 0 2rem; width: 100%;
  border-collapse: collapse; }
@media screen {
  .sheets-run .sheet-one {
    max-width: 8.5in;
    min-height: 11in;
    /* AIR ABOVE THE FIRST SHEET AND BETWEEN THE REST (user,
       2026-09-17: "Need more breathing room between the buttons and
       the first page"). The base rule gives a bottom margin only, so
       page one began on the same pixel the toolbar ended on and read
       as though it were cutting through the buttons. */
    margin: 1.75rem auto 2rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.09);
    border-radius: 2px;
    box-sizing: border-box;
  }
  /* The run's own ground behind the sheets, so the white reads as paper
     rather than as more page. */
  body.sheets-run { background: #e9e5df; }
  /* THE HEAD IS A CARD NOW AND KEEPS ITS OWN GROUND - it was named here
     while it was bare markup over the run's ground, and this rule is more
     specific than the one that colours it, so the card came out with a
     border, a shadow and no fill at all. */
  body.sheets-run .sheets-actions { background: none; }
}
.sheets-run .sheet-one > thead > tr > td,
.sheets-run .sheet-one > tbody > tr > td,
.sheets-run .sheet-one > tfoot > tr > td { padding: 0; border: 0;
  vertical-align: top; }
/* A PAGE THAT IS MUSIC AND NOTHING ELSE CENTRES IT (user, 2026-09-21:
   "on a page like this where there are three (or more) systems and no room
   for text blocks, the music should be vertically centered between the
   title and credit blocks so the page looks vertically balanced").

   THE CELL DOES IT, IN BOTH MEDIA. A sheet is a table whose head and foot
   are pinned by the page, so the band between them is exactly this cell -
   and a cell aligns its contents against whatever height it is given.
   Measuring the slack in script instead balanced the screen and left the
   paper crooked: on that hymn, 83px above and 82 below on screen, against
   1.128in above and 2.391in below on paper. The two are not the same
   height, so no single number serves both.

   `sheets-run.js` adds the class, and only to a page whose stanzas have
   all gone elsewhere: where words follow the music they set the line it
   begins on, and centring the pair would lift them off it. */
/* THREE EQUAL GAPS, NOT A CENTRED BLOCK (user, 2026-09-22: "I think these
   three spaces need to be equal sized" - above the music, between the music
   and the stanzas, and under the stanzas).

   `space-evenly` IS THE RULE ITSELF. It puts the same space before the first
   item, between the items and after the last, which is the three gaps named.
   `vertical-align: middle` could only ever balance the pair as one block, so
   the seam between music and words stayed tight while the outer two grew.

   AND IT IS RESOLVED AT LAYOUT TIME, which is the whole reason it is done in
   the stylesheet. Slack measured in the browser and written as margins
   balances the SCREEN and leaves the paper crooked - measured once at
   83px above and 82 below on screen, and 1.128in against 2.391in on paper,
   because the height a body cell gets inside the printed page box is not the
   height it has here. A flex cell asks the same question of whatever height
   it ends up with, in either medium. */
/* THE BODY IS GIVEN THE CELL'S BOX OUTRIGHT. A percentage height resolves
   against a DEFINITE one and a table cell's is not definite - measured, the
   body came out 590px tall inside a 799px cell with `height: 100%` asked
   for, both on the body and chained through the cell, and every gap it
   should have shared fell below it. Filling the cell by position asks no
   percentage of anything.

   THE ROW STILL HAS ITS HEIGHT, which is what makes this safe: it comes
   from the table's own (see the printed height below), not from this cell's
   contents, so taking the contents out of flow does not collapse it. */
.sheets-run .sheet-one > tbody > tr > td.is-middle { vertical-align: top;
  position: relative; }
.sheets-run td.is-middle > .sheet-body { position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; }
.sheets-run td.is-middle > .sheet-body { display: flex;
  flex-direction: column; justify-content: flex-start; height: 100%; }
/* NOT THREE EQUAL GAPS ANY MORE (user, 2026-09-29, superseding 2026-09-22's
   "I think these three spaces need to be equal sized": "I'd like the space
   between the music and the title to be smaller, and the space between the
   stanza blocks and the music to be smaller. and for them to adjust
   proportionally for different hymns, with the space at the bottom absorbing
   slack").

   THREE QUARTERS OF AN INCH AT MOST OVER THE MUSIC AND A LITTLE MORE OVER
   THE STANZAS, AND THE FOOT TAKES THE REST. The three share the spare height
   equally until the first two reach their limits; past that, every bit more
   goes to the foot. So a page with
   a great deal left over - number 595, about five inches - reads as one
   part, one part and three at the foot, which is the look asked for ("For
   595, the 1:1:3 ratio looks nice"); and a fuller page keeps three equal
   gaps rather than two thin ones over a hole. Fixed parts were tried first
   and failed on number 593, whose 2.35in came out 0.47, 0.47 and 1.41 ("but
   for 593, it doesn't"). A floor keeps the title and the stanzas off the
   music on a page that is nearly full. The same at layout time in either
   medium, which is why it is the stylesheet's to do and not a measurement's
   - see above.

   `space-evenly` could only make the three alike, so the gaps are boxes of
   their own now (`.sheet-gap` in the template), and the body stacks its
   contents from the top with the gaps doing the spacing. */
.sheets-run .sheet-gap { display: none; }
.sheets-run td.is-middle .sheet-gap { display: block; flex: 1 1 0;
  min-height: 0.15in; max-height: 0.85in; }
/* AND LESS UNDER THE TITLE THAN OVER THE STANZAS (user, 2026-09-29, of
   number 592 with an inch under its title: "Now this page feels like it
   has too much space at the top"). A title belongs to its music. */
.sheets-run td.is-middle .sheet-gap[data-gap="top"] { max-height: 0.75in; }
.sheets-run td.is-middle .sheet-gap[data-gap="end"] { min-height: 0;
  max-height: none; }
/* A PAGE OF MUSIC ALONE: A THIRD ABOVE, TWO THIRDS BELOW (user, 2026-09-29:
   "For music-only pages, I think I'd like about 1/3 space above the music
   and 2/3 space below"). It was centred (user, 2026-09-21), and with no
   stanzas beneath it there is no gap between to keep small - so it is the
   same rule as a page with stanzas, the foot taking the larger share. */
.sheets-run td.is-middle .sheet-gap[data-gap="mid"]:has(+ .sheet-verses.is-bare) {
  display: none; }
.sheets-run td.is-middle .sheet-body:has(.sheet-verses.is-bare)
  .sheet-gap[data-gap="end"] { flex-grow: 2; }
.sheets-run td.is-middle .sheet-body:has(.sheet-verses.is-bare)
  .sheet-gap[data-gap="top"] { max-height: none; }
/* AND AN EMPTY VERSE BLOCK TAKES NO ROOM WHILE IT IS CENTRED. It measures
   nothing on a page whose stanzas have all gone elsewhere, but it keeps the
   margin that would have separated it from the music - and the cell centres
   the WHOLE of its contents, so that margin sits below the music and pushes
   it up by half of itself. Measured under print CSS: 89px above the music
   and 113 below, the 24 between them being exactly that margin. */
/* AN EMPTY STANZA BLOCK IS NOT A THING TO SPACE AROUND. `space-evenly`
   counts it as an item and gives it a share at each end, so a hymn whose
   stanzas all went in line got one gap above the music and two below it -
   measured on number 1 at 1.04in against 2.28. */
.sheets-run td.is-middle .sheet-verses.is-bare { display: none; }

/* AND THE PRINTED PAGE'S MARGINS GO ON THE CELLS, not on the sheet.

   A TABLE WITH COLLAPSED BORDERS IGNORES ITS OWN PADDING - that is what the
   spec says and what the browser does - so 0.5in set on `.sheet-one` did
   nothing at all and the music ran out to the paper's edge. It looked wrong
   because it WAS wrong: a page with no margins.

   ON SCREEN ONLY. In print the @page already holds 0.5in and 0.35in back,
   and putting them here as well would inset every sheet twice. */
@media screen {
  .sheets-run .sheet-one > thead > tr > td { padding: 0.5in 0.5in 0; }
  .sheets-run .sheet-one > tbody > tr > td { padding: 0 0.5in; }
  /* HALF AN INCH UNDER THE CREDITS, so the preview stands where the paper
     does (user, 2026-09-21: "the rendering page size doesn't match the pdf
     print page size"). The sheet on screen is 8.5 by 11in and the PDF is
     8.50 by 11.00 - the page sizes never differed. What did was this: the
     credits sat 0.35in off the foot on screen and 0.495in on paper, so the
     two read as different pages. Measured either side of the change. */
  /* AND THE FOOT SITS LOW (user, 2026-09-24: "the footer can be nudged
     down the page so that the footer rests almost right on top of the
     copyright notice"). The paper holds half an inch back on every
     other side; the foot is the one thing that belongs at the bottom
     edge, and the notice under it is the last line on the page.
     `--sheet-foot-at` is the same move on paper. */
  .sheets-run .sheet-one > tfoot > tr > td { padding: 0 0.5in 0.15in; }
}
/* THE STANZAS BELOW ARE THE SAME WORDS AS THE ONES UNDER THE NOTES (user,
   2026-09-16: "should be in a serif font that matches the typeface of the
   in-line lyrics"), so they are set in the same face. That face is not a
   choice made here - it is the engraver's `DefaultFontFamily`, Times New
   Roman, which is what OSMD draws a lyric in - so it is named rather than
   guessed at, and the sheet reads as one document instead of two.

   AND SMALLER, because they are the continuation and not the subject: the
   sung stanza is written into the music and these follow it. */
/* ACROSS, NOT DOWN (user, 2026-09-16: "can the verses read horizontally
   instead of vertically? so that the row beneath the lyrics contains v2 and
   v3, and then v4 and v5 are beneath them").

   `columns: 2` is a NEWSPAPER, and a newspaper flows down one column before
   it starts the next - which put 2 and 3 on the left and 4 and 5 on the
   right, so the eye reading across row one met 2 and then 4. A two-column
   grid fills row by row, which is the order the stanzas are numbered in and
   the order somebody singing them wants.

   EACH COLUMN'S MIDDLE THE SAME DISTANCE FROM THE PAGE'S (user,
   2026-09-23: "I'd like the vertical center line of each stanza column to be
   equidistant from the center of the page", "with breathing space between
   stanzas and on the page margins").

   TWO EQUAL TRACKS AND A NUDGE WAS THE OLD RULE, and it cannot do this: the
   tracks are halves of the page whatever is in them, so a column of short
   lines and a column of long ones sit their ink at different distances from
   the middle and the block reads as leaning. Number 410 is the case - its
   second column runs a third wider than its first.

   SO EACH TRACK IS ITS OWN CONTENT'S WIDTH, and the space left over is
   shared around them: `space-around` gives every track an equal share on
   each side, which puts two of them at a quarter and three quarters of the
   width - equidistant from the middle by construction, at any page width
   and whatever the two columns happen to hold. The stanzas of ONE column
   still line up with each other, because a track is one width and its items
   fill it.

   `minmax(0, max-content)` rather than `max-content`, so a stanza with one
   very long line wraps instead of pushing the block off the page. */
.sheets-run .sheet-verses { display: grid;
  /* THE WHITE BESIDE THE COLUMNS AND THE WHITE BETWEEN THEM ARE THE SAME
     (user, 2026-09-24: "The gap between the lyrics block columns should be
     roughly the same as the outer page margins - it should not be twice as
     wide as the page margins"). The run works both out - see
     `oneHymnsColumns` - because they follow from a width only it knows:
     every stanza of one hymn is set to that hymn's longest lyric line, and
     what is left of the paper is then shared three ways.

     WHAT IS WRITTEN HERE IS THE FALLBACK, and it is the arithmetic the run
     does for a column of 3.25in: two of them with an inch between land on
     the paper's quarter lines, which is where the columns sit while a page
     is still being measured. A sheet whose script has not run yet is a
     sheet in the middle of being drawn. */
  grid-template-columns: 3.25in 3.25in;
  justify-items: center;
  /* AND THE PAIR CENTRED IN WHATEVER BOX IT IS GIVEN. The block spans the
     whole page where the music is beside it and the cell's own width where
     the stanzas are alone - measured, 816px on a first page and 720 on a
     continuation - so tracks laid from the left would put the columns half
     an inch apart between the two. Centred, both land in the same place,
     which is what lets the run share the PAPER rather than the box. */
  justify-content: center;
  column-gap: 1in; margin-top: 1.5rem;
  /* A LINE AND A HALF BETWEEN STANZAS IN THE SAME COLUMN (user,
     2026-09-21: "I'd like to see 1.5 spaces between stanzas in the same
     column"). The block's own line is 1.34em, so one and a half of them
     is 2.01em - and in em rather than rem so it tracks the size the
     stanzas are set at instead of the root. It stood at 1.05rem, which
     against this type is nine tenths of a line: less than the single
     blank line a reader expects between verses, let alone half again.
     `row-gap` is the gap DOWN a column; the space between the two
     columns is `column-gap` and is untouched. */
  row-gap: 2.01em;
  padding: 0;
  font-family: 'Times New Roman', Times, serif; font-size: 0.88rem;
  line-height: 1.34; }
.sheets-run .sheet-verse { break-inside: avoid; margin: 0; }
.sheets-run .sheet-verse b { margin-right: 0.5rem; }
.sheets-run .sheet-verse p { margin: 0; }
/* A LINE TOO LONG FOR ITS COLUMN TURNS, AND THE TURN IS INDENTED
   (user, 2026-09-24, of a hymn whose longest line no two columns on a
   letter page can hold). A hymnal sets a runover that way: flush and it
   reads as a line of verse of its own, indented and the reader can see
   it belongs to the line above.

   A HANGING INDENT, so a line that does NOT turn is where it always was:
   the padding moves the block in and the negative indent pulls its first
   line back out to the column's edge, leaving only what wraps indented.
   It is per LINE, which is why each is its own block - see the stanza
   markup in publication_sheets.html.

   THE VERSE NUMBER RIDES IN THE FIRST LINE for the same reason: floated,
   it sits outside the line box and the first line's own indent would be
   pulled over the top of it. */
.sheets-run .sheet-line,
.sheets-run .sheet-verse-lines p { display: block;
  padding-left: 1.25em; text-indent: -1.25em; }
.sheets-run .sheet-head { margin: 0 0 0.6rem; text-align: center; }
/* THE NUMBER, FOUND AT ARM'S LENGTH - larger and bold, because it is what
   identifies the sheet in a book. */
.sheets-run .sheet-number { margin: 0; font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.02em; }
.sheets-run .sheet-title { margin: 0.1rem 0 0; font-size: 1.35rem; }
/* A PRINTING IN ANOTHER KEY'S CAPTION under the title (2026-10-16), as SHZ 2008 prints its own:
   "Arrangement in E♭ Major". */
.sheets-run .sheet-caption { margin: 0.15rem 0 0; font-style: italic; font-size: 0.95rem; }

/* THE FOOT: who made it on the left, which tune on the right, which book
   centred beneath them both.

   THREE TRACKS ACROSS ONE ROW WAS THE FIRST TRY AND IT DOES NOT FIT. Equal
   outer tracks centre the book's name on the PAGE, which is right, but they
   also leave the credits a third of the width - and a hymn that came through
   three languages then wrapped into four lines with no way to see where one
   credit ended and the next began. The credits are the longest thing in this
   band and the book's name is the shortest.

   So the name takes its own line underneath, spanning both tracks, which
   centres it on the page for nothing and gives the credits three quarters of
   the width instead of one third. Bottom-aligned above it, so the tune sits
   on the credits' last line however deep they run. */
.sheets-run .sheet-foot { display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; column-gap: 1rem; margin-top: 1.1rem;
  font-family: 'Times New Roman', Times, serif; font-size: 0.76rem;
  line-height: 1.34; color: #333; }
/* ROWS PINNED, NOT INFERRED. Auto-placement follows DOM order, and the
   book's name is written before the tune in the template - so it claimed the
   second row first and pushed the tune down to a third, printing under the
   centred name instead of beside the credits. Saying where all three go is
   also saying it in one place, rather than depending on the order somebody
   happens to write the markup in. */
.sheets-run .sheet-credits { grid-row: 1; grid-column: 1; }
.sheets-run .sheet-credit-tag { font-weight: 700; }
.sheets-run .sheet-credits p { margin: 0; }
.sheets-run .sheet-tune { grid-row: 1; grid-column: 2; text-align: right; }
.sheets-run .sheet-tune p { margin: 0; }
/* "PAGE 1 OF 3" ON THE BOOK'S LINE, AT THE RIGHT, where a hymn was cut
   over several pages (user, 2026-09-30: "lets move it to the same line as
   the publication name, but right justified so it lands just below the
   melody name and credit"). The tune's column of the book's row, in the
   foot's own type and with the book's own margin above it, so the two
   stand on one line; the book's name still spans the page and is centred
   on it.

   AND IT ADDS NO HEIGHT. It shares a row that is already there, so the
   foot is exactly as deep with it as without it - which matters because
   the foot's depth is taken from the music's room, and the pages are cut
   before this line is written. */
.sheets-run .sheet-page-of { grid-row: 2; grid-column: 2;
  margin: 0.42rem 0 0; text-align: right; white-space: nowrap; }
.sheets-run .sheet-page-of[hidden] { display: none; }
/* NOT TO BE BROADCAST (user, 2026-10-02: "a 'do not broadcast' note ... in
   small text on their ... printed sheets"). The book's line again, at the
   LEFT, so like the page count it shares a row that is already there and the
   foot is no deeper for it. */
.sheets-run .sheet-no-broadcast { grid-row: 2; grid-column: 1;
  margin: 0.42rem 0 0; text-align: left; white-space: nowrap;
  font-size: 0.68rem; color: #555; }
.sheets-run .sheet-book { grid-row: 2; grid-column: 1 / -1;
  margin: 0.42rem 0 0; text-align: center; }
/* WHOSE THE MUSIC AND THE WORDS ARE - IN THE PAGE'S BOTTOM MARGIN.
   Out of the flow entirely, so it takes no height from the sheet: the
   foot's height is subtracted from the music's room, and a line added
   THERE would cost the score the page it was just fitted to. Fixed, so
   the one element repeats on every page of the run - the same way the
   watermarks and the review notices do.

   NOT ON SCREEN. The run is a working page with its own buttons and
   status line; this belongs to the paper. */
.sheet-rights { display: none; }
/* THE SAME NOTICE, IN THE SHEET, FOR THE SCREEN (user, 2026-09-23: "the
   copyright notice should appear on this rendering"). The printed one is
   pinned to the page's bottom margin and there are no pages on screen to pin
   it to, so the reading copy carries its own - and hides it when the sheet
   goes to paper, where the pinned one takes over. */
.sheets-run .sheet-rights-seen { grid-row: 3; grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  text-align: center; font-size: 0.68rem; color: #555; }
@media print { .sheets-run .sheet-rights-seen { display: none; } }

/* THE SAME NOTICE ON A REVIEW COPY, under the line that says it is one.
   A block of its own inside that notice, which is pinned by its bottom
   edge, so this ends up the last line on the paper. Not uppercase and not
   bold, whatever the notice around it is. */
.print-rights { display: block; margin-top: 0.06in;
  font-size: 7.5pt; font-weight: 400; text-transform: none;
  letter-spacing: 0; opacity: 0.8; }
/* NO MARGIN UNDER THE SUBTITLE FOR A TUNE EITHER. It had 0.26in while its
   stanza was written above the staff and the drawing opened with a line of
   words that arrived hard against the head. A melody's words go under the
   staff now (user, 2026-10-01), so its drawing opens with a staff, as a
   setting's always has, and the head already clears a staff - the setting
   was given none for exactly that reason. */
/* NO MARGINS OF THEIR OWN ON A PAGE THAT SPACES ITS OWN GAPS. The stanza
   block carries one so it stands off the last system, and on a page
   whose three gaps are shared out evenly each margin is added to ONE of the
   three. Measured on number 41 before this: 0.729in over the music, 0.947
   between and 0.760 under, the middle wide by exactly the 0.25in margin the
   stanza block was carrying. */
.sheets-run td.is-middle .sheet-paper,
.sheets-run td.is-middle .sheet-verses { margin-top: 0; }
/* AND THE HEAD AND FOOT KEEP NONE EITHER. Their own margins - 0.1in under
   the title, 0.183in over the credits - fall INSIDE the first and third
   gaps and outside the second, so the three cannot come out equal while
   they stand. The flex owns all three now. */
.sheets-run .sheet-one.is-evenly .sheet-head { margin-bottom: 0; }
.sheets-run .sheet-one.is-evenly .sheet-foot { margin-top: 0; }
.sheets-run .sheet-misfit { margin: 0.5rem 0 0; font-size: 0.82rem;
  color: #8a5a00; }
.sheets-progress { font-weight: 600; margin: 0; }
/* WHILE THE ENGRAVER IS WORKING. A sheet takes a second or two and a whole
   book takes minutes, and the page looks finished long before it is.

   IT STAYS ON THE PAGE rather than covering it: a reader wants to watch the
   sheets appear, and a modal over the top would hide the one thing that
   proves the app is alive. It sits with the progress line and goes when the
   run does.

   THE DIAL TURNS ONCE A SECOND in whole steps, like a clock's hand rather
   than a smooth spinner - a smooth one is hard to tell from a frozen one at
   a glance, and a step that lands is not.

   AND IT STOPS FOR ANYONE WHO ASKS: `prefers-reduced-motion` leaves the mark
   still, and the words beside it carry the whole message anyway. */
.sheets-working {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0; padding: 0.35rem 0.75rem;
  border: 1px solid var(--line, #d8d2c8); border-radius: 999px;
  background: var(--card, #fff); font-size: 0.9rem;
  color: var(--muted, #6b6459);
}
.sheets-working-dial {
  width: 0.85em; height: 0.85em; flex: none; border-radius: 50%;
  border: 2px solid var(--line, #d8d2c8);
  border-top-color: var(--accent, #6b2b2b);
  animation: sheets-dial 1s steps(8, end) infinite;
}
@keyframes sheets-dial { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sheets-working-dial { animation: none; }
}
@media print { .sheets-working { display: none !important; } }
/* What the deck could not do, said under the buttons that made it. */
.sheets-slides-note { margin: 0.6rem 0 0; font-size: 0.88rem;
  color: var(--muted, #6b6459); max-width: 60rem; }
/* THE TITLE, THEN ONE PANEL FOR EVERYTHING THAT ACTS ON THE SHEETS (user,
   2026-09-23: "the top area of this page looks a bit disjointed. lay it out
   nicely so things are organized and intuitive and easy to understand").

   FOUR LOOSE BLOCKS WERE THE FAULT: a heading, a line naming what was
   drawn, a line saying how far along it was, a row of switches and a row of
   buttons, each with its own margins and its own alignment, all sitting on
   the page's own ground. Nothing said which of them belonged together. The
   questions and the buttons are one card now, and the heading stands above
   it with the one fact the menus do not carry: which numbers are drawn. */
/* AND THE WHOLE HEAD IS AS WIDE AS THE PAPER UNDER IT (user, 2026-09-23:
   "Make these parts of the page the same width as the rendered page beneath
   them"). The sheets are 8.5in and centred on screen - they are a picture of
   paper - and the controls above them ran the full width of the window, so
   the eye had two left edges to follow down the page. One width, one edge.

   ON SCREEN ONLY: in print this whole block is hidden. */
@media screen {
  /* ONE CARD FOR THE WHOLE OF IT (user, 2026-09-23: "Can the header and the
     menu/button card all be on one card, with a different color background
     than the music sheet?"). The heading stood on the page's own ground and
     the controls sat on a white card below it - and white is what the PAPER
     is, so the card read as a second sheet with the title stranded above it.
     `--card-alt` is the surface this app already uses for something that
     sits with a card rather than being one, which is exactly what a set of
     controls over a sheet of music is.

     AND IT HAS TO LOOK LIKE ONE (user, 2026-09-23: "Where'd the card
     go?"). `--card-alt` is #f0ece4 against a page of #faf7f2 - a surface
     that reads as recessed where it sits INSIDE a white card, and vanishes
     where the ground is the page itself. A card over a sheet of paper has
     to be told from the paper AND from the desk it is lying on, so this one
     is a step warmer again, takes the stronger hairline the app keeps for a
     box that must be told from its neighbour, and lifts off the page the
     way the sheet below it does. */
  /* THE CARD IS AS WIDE AS ITS WIDEST ROW, AND NEVER NARROWER THAN THE PAPER
   (user, 2026-09-24: "This top card needs to be widened so that the
   drop-down menus all appear on one line when there are four"). A menu
   is as wide as the longest thing it offers - a melody named `453a I
   LIFT MY EYES` and a setting named for its arranger are both wider
   than the eleven ems a menu starts at - so four of them cannot be
   fitted by choosing a width in advance. Shrink-wrapping asks the row
   instead, and the page's own width is the only ceiling.

   THE FLOOR IS THE PAPER'S WIDTH, so a hymn with two short menus still
   gives a card that squares with the sheet beneath it, and the row
   still wraps where even the ceiling is not enough. */
.sheets-head { width: fit-content; min-width: min(8.5in, 100%);
    max-width: 100%; margin: 1.5rem auto 0;
    /* THE APP'S OWN CARD (user, 2026-10-26, of the beige: "Now this background color feels out of place"):
       white, the hairline border and the light shadow every .card has, over the page's grey desk. */
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px); padding: 0.85rem 1.2rem 1.2rem;
    box-shadow: 0 1px 3px rgba(43, 38, 32, 0.05); }
}
/* THE HEAD IS ONE LINE (user, 2026-10-24, of the card: "This card feels really tall - does it need the rule
   under the title & subtitle? I wonder if the subtitle is even needed? what do you suggest?" - drawn as r128,
   "yes"): the way back at the left, the book's name centred, a batch's Next at the right - the two outer columns
   equal, so the name is centred on the card. No subhead and no rule under it (the 2026-09-23 headline, subhead
   and rule go); the page's <title> says what the page makes.

   THE NAME AT THE PAGE VIEW'S OWN TITLE SIZE AND FACE (r125, of the name at 32px over an 18px subhead: "these
   feel out of proportion to the rest of the page"): .ppv-nav-title's 1.2rem and 1.3, the h1's own serif and
   weight. It wraps where the card is too narrow for it, and the way back never does. */
.sheets-title { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: 1rem; margin: 0; }
.sheets-title h1 { grid-column: 2; margin: 0; font-size: 1.2rem; line-height: 1.3; text-align: center; }
.sheets-title .sheets-back { grid-column: 1; justify-self: start; white-space: nowrap; font-size: 0.9rem; }
.sheets-title .sheets-next { grid-column: 3; justify-self: end; white-space: nowrap; font-size: 0.9rem; }
/* A batch's range, small under the name - which numbers a run covers is said nowhere else on the page. */
.sheets-what { margin: 0.15rem 0 0; text-align: center; font-size: 0.85rem; }
/* THE SHEETS PAGE'S CONTROLS, AS APPROVED (user, 2026-10-24, of the drawing r93: "Yes"; of the menus it
   replaced: "Next I want to simplify this section of this page as well"): WHAT TO DRAW - one white box of
   radio lines - and one row under it, the stanzas in line at the left and the file at the right.
   IN THE CARD ITSELF (r128, "yes" - the user: "This card feels really tall"): .sheets-panel draws no box of
   its own - no border, ground or padding - so What to draw lines up under the book's name and the way back. */
.sheets-panel { margin: 0; }
.sheets-back, .sheets-next { color: var(--accent); text-decoration: none; font-size: 0.95rem; }
.sheets-back:hover, .sheets-next:hover { text-decoration: underline; }
/* Each question's name, in the card's small-label type. */
.sheets-h { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0.95rem 0 0.4rem; }
/* ONE WHITE BOX, ONE SET OF RADIO DOTS (user, 2026-10-24: "it's not intuitive that only one selection
   among the three panels/tiles can be chosen - they look more like three separate choices"): each
   melody a column, a hairline between them; Words only at the foot, under a hairline across the box. */
.sheets-box { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.4rem 0.35rem; }
.sheets-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.sheets-col { padding: 0 0.15rem; min-width: 0; }
.sheets-col + .sheets-col { border-left: 1px solid var(--border); padding-left: 0.5rem; margin-left: 0.35rem; }
.sheets-col-h { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.1rem 0.5rem 0.35rem;
  border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }
.sheets-letter { font: 700 1rem var(--font-serif); color: var(--accent); }
.sheets-name { font: 700 0.95rem var(--font-serif); letter-spacing: 0.02em; min-width: 0; }
.sheets-key { margin-left: auto; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
/* A LINE: its dot, what it is, who made it (the name alone). The drawn line is tinted with the Page
   view's accent bar and its dot filled; one with no score is greyed, its dot dashed, and no link. */
.sheets-opt { display: grid; grid-template-columns: 1.1rem 6.6rem minmax(0, 1fr); align-items: center;
  gap: 0.15rem 0.45rem; padding: 0.28rem 0.5rem; border-radius: 6px; border-left: 4px solid transparent;
  color: var(--ink); text-decoration: none; }
a.sheets-opt:hover { background: rgba(122, 59, 46, 0.05); text-decoration: none; }
.sheets-opt:focus-visible, .sheets-seg > :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sheets-opt.is-on { background: rgba(122, 59, 46, 0.09); border-left-color: var(--accent); }
.sheets-opt.is-off { cursor: default; color: var(--muted); }
.sheets-dot { width: 0.85rem; height: 0.85rem; border-radius: 999px; box-sizing: border-box;
  border: 1.5px solid rgba(122, 59, 46, 0.55); }
.sheets-opt.is-on .sheets-dot { border: 4px solid var(--accent); }
.sheets-opt.is-off .sheets-dot { border-style: dashed; border-color: var(--border-strong, #b5a68e); }
.sheets-role { font-size: 0.88rem; font-weight: 600; }
.sheets-opt.is-off .sheets-role { font-weight: 500; }
.sheets-who { font-size: 0.84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* THE KEYS A NUMBER PRINTS A MELODY IN, at its column's foot. */
.sheets-keys { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.4rem 0.5rem 0.1rem;
  border-top: 1px dashed var(--border); margin-top: 0.3rem; }
.sheets-klab { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheets-foot { border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.35rem; }
.sheets-foot.is-alone { border-top: 0; margin-top: 0; padding-top: 0; }
/* ONE ISSUE OF A PERIODICAL (user, 2026-10-25, approving r144): a column per hymn - its title, its melody's name
   under it, its lines, and its own Words only at its foot, the feet level across the columns. A hymn of two
   melodies names each over its own lines, lettered A and B. */
.sheets-col.is-hymn { display: flex; flex-direction: column; }
.sheets-col-h.is-hymn { flex-direction: column; align-items: stretch; gap: 0.05rem; }
.sheets-hymn-title { font: 700 0.95rem/1.3 var(--font-serif); min-width: 0; }
.sheets-hymn-tune { display: flex; align-items: baseline; gap: 0.4rem; min-width: 0;
  font: 600 0.72rem var(--font-serif); letter-spacing: 0.05em; color: var(--muted); }
.sheets-hymn-tune .sheets-letter { font-size: 0.85rem; }
.sheets-hymn-tune .sheets-key { font: 400 0.8rem var(--font-sans); letter-spacing: 0; }
.sheets-tune-h { padding: 0.35rem 0.5rem 0.1rem; }
.sheets-col-lines { margin-bottom: 0.4rem; }
.sheets-col-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 0.35rem; }
/* A JOINED SWITCH - the key, the stanzas in line and the file - the one chosen filled. */
.sheets-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(122, 59, 46, 0.45);
  border-radius: 999px; overflow: hidden; background: var(--card, #fff); }
.sheets-seg > a, .sheets-seg > button { padding: 0.18rem 0.75rem; font: inherit; font-size: 0.84rem;
  line-height: 1.5; color: var(--accent); background: none; border: 0;
  border-left: 1px solid rgba(122, 59, 46, 0.3); min-width: 1.1rem; text-align: center;
  text-decoration: none; cursor: pointer; }
.sheets-seg > :first-child { border-left: 0; }
.sheets-seg > a:hover, .sheets-seg > button:hover { background: rgba(122, 59, 46, 0.07); text-decoration: none; }
.sheets-seg > .is-on, .sheets-seg > .is-on:hover { background: var(--accent); color: #fff; }
.sheets-bottom { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.9rem 1.5rem; flex-wrap: wrap; }
.sheets-file { margin-left: auto; }
.sheets-out { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* THE ONE BUTTON THAT MAKES THE FILE: the printer and "Print", else the download arrow and "Download"
   (user, 2026-10-24: "Can the button just say 'download' for musicxml and powerpoint?"); while the
   sheets are drawing, inert, with a small turning dial and how far it has got. */
.sheets-do { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.16rem 0.9rem; border-radius: 999px; font: inherit; font-size: 0.84rem; line-height: 1.5;
  cursor: pointer; background: var(--accent); color: #fff; border: 1px solid var(--accent); }
/* AND IT HOLDS STILL (user, 2026-10-24: "This jumps left and right as I change the selection because the
   'print' button changes width. I don't like it hopping around" - drawn as r127, "yes"): the page's script
   measures the button with each label the switch can give it and holds it at the widest (its min-width), and
   the label sits centred in it - so choosing Print, MusicXML or PowerPoint moves nothing beside it. */
.sheets-do:hover { background: #63301f; }
.sheets-do:disabled, .sheets-do.is-busy, .sheets-do.is-busy:hover { background: var(--card, #fff);
  color: var(--muted); border-color: var(--border); cursor: default; }
.sheets-do:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheets-do > .sheets-spin, .sheets-do > .sheets-ico { display: none; flex: none; }
.sheets-do.is-busy > .sheets-spin { display: inline-block; }
.sheets-do:not(.is-busy)[data-file="print"] > .sheets-ico-print,
.sheets-do:not(.is-busy)[data-file="download"] > .sheets-ico-down { display: block; }
/* HOW FAR THE DRAWING HAS GOT, A SHORT LINE UNDER THE BUTTON (user, 2026-10-25, "do this" to: "keep the
   button's width fixed and show the progress in a short line under it"): the button keeps its label and its
   held width, so nothing beside it moves; the line is muted, under the button's right edge, and takes no room
   when empty. */
/* OUT OF FLOW (2026-10-25, the checks stage): in flow, the line pushed the page down while a deck was drawing, and the
   slide builder measures on-screen positions - every arrangement deck came out shifted. Hung under the button's right
   edge, it moves nothing. */
.sheets-file { position: relative; }
.sheets-busy { position: absolute; right: 0; top: 100%; margin: 0.3rem 0 0; font-size: 0.8rem; line-height: 1.3; color: var(--muted); text-align: right; white-space: nowrap; }
.sheets-busy:empty { display: none; }
.sheets-spin { width: 0.8rem; height: 0.8rem; border-radius: 999px; box-sizing: border-box;
  border: 2px solid rgba(122, 59, 46, 0.2); border-top-color: var(--accent);
  animation: sheets-dial 1s steps(8, end) infinite; }
@media (prefers-reduced-motion: reduce) { .sheets-spin { animation: none; } }
/* What the scripts have to say once the sheets are drawn - a sheet that could not be drawn, what a deck
   came to - and nothing while they draw: the button says that. */
.sheets-say { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--muted); }
.sheets-say:empty, .sheets-panel.is-drawing .sheets-say { display: none; }
/* Where nothing is drawn, the page says so under the card, centred over where the paper would be. */
.sheets-nothing { max-width: 8.5in; margin: 1.5rem auto; text-align: center; }
/* A PHONE: the columns one under the other, a hairline between; the file's switch and button wrap. */
@media (max-width: 40rem) {
  .sheets-title { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.35rem; }
  .sheets-title .sheets-back { grid-row: 1; }
  .sheets-title .sheets-next { grid-row: 1; grid-column: 2; }
  .sheets-title h1 { grid-row: 2; grid-column: 1 / -1; min-width: 0; font-size: 0.95rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheets-col + .sheets-col { border-left: 0; margin-left: 0; padding-left: 0.15rem;
    border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.35rem; }
  .sheets-opt { grid-template-columns: 1.1rem auto minmax(0, 1fr); }
  .sheets-file { margin-left: 0; }
}
/* THE QUESTIONS SIT AT THE FOOT OF THE CARD (user, 2026-09-23: "I wonder
   if the two rows of menu options and buttons need to swap places in the
   top card, so the drop-downs are across the bottom of the card"), which
   puts each menu directly above the sheet it governs and leaves the buttons
   up with the headline, where a toolbar reads as a toolbar. The line
   between them is on the row above now. */
/* AND THE MENUS SIT IN THE MIDDLE OF WHATEVER ROOM THEY ARE GIVEN
   (user, 2026-09-24: "when there are only three drop-down menus, they
   should be arranged center justified instead of left justified"). With
   four the row fills the card and this does nothing; with fewer the card
   is held at the paper's width and the slack falls on both sides, under
   a centred headline rather than out to one edge. */
.sheets-switches { display: flex; flex-wrap: wrap; gap: 0.9rem;
  justify-content: center; align-items: flex-end; margin: 0; }
@media print {
  /* The paper is stated in the template - @page is document-global. */
  /* THE SITE IS NOT PART OF THE SHEET. Everything but the page's own main
     goes, which is what the review copy does and for the same reason - a
     printed sheet leaves the building and the navigation does not help it. */
  /* BLANK PAPER (user, 2026-09-16: "the background should not be shaded at
     all - just blank"). The site's own off-white ground was being painted
     onto every sheet, so a page printed with backgrounds on came out tinted
     end to end. The review copy clears its ground the same way; this page
     needed its own rule once it stopped borrowing that page's body class. */
  body.sheets-run, body.sheets-run main, body.sheets-run .sheet-one,
  body.sheets-run .sheet-paper, body.sheets-run .sheet-verses {
    background: none !important; box-shadow: none !important;
    border: 0 !important; }
  body.sheets-run > *:not(main) { display: none !important; }
  body.sheets-run main.container { max-width: none !important;
    margin: 0 !important; padding: 0 !important; }
  body.sheets-run .no-print { display: none !important; }
  /* A PAGE EACH, AND THE LAST ONE DOES NOT ADD A BLANK. `break-after` on
     every sheet would leave an empty sheet at the end of the run. */
  /* THE FOOT SITS ON THE FOOT OF THE PAGE (user, 2026-09-16), not under
     whatever the hymn happened to need. A sheet is a page, so it is given a
     page's height and the credits are pushed to the bottom of it with an auto
     margin - which means a four-system hymn and a two-system one foot at the
     same place, and a reader turning pages finds the provenance where they
     left it.

     10.384in PUTS THE FOOT HALF AN INCH OFF THE PAPER (user, 2026-09-21:
     "the credit block and footer are too high on the page ... 'Songs and
     Hymns of Zion 2008' should be 0.5\" up from the bottom").

     MEASURED IN THE PDF, not reasoned from the band. The arithmetic says the
     page prints into 11in less the 0.5in and 0.35in of its own @page - so a
     10in table should end half an inch off the paper - and it does not: at
     10in the last line came out 0.884in up, and at 9.9in before it, 1in.
     Whatever the printer does with the box, the RELATION is exactly one to
     one, which two points settle:

         height 10.0in    last line 0.884in off the foot
         height 10.5in    last line 0.384in

     so 10.384 lands it, and the PDF says 0.495in. An emulated print medium
     cannot be asked this: it reports the box the arithmetic predicts, 0.5in,
     while the paper says otherwise. Only `Page.printToPDF` and the text's
     own device coordinates answer it.

     A hymn with more stanzas than fit simply runs on, as it did before -
     this is a floor, not a cage. */
  /* A PAGE EACH, and the foot on the foot of it. The table is given the
     page's height, which is what drops its tfoot to the bottom instead of
     leaving it wherever the stanzas happened to end; a hymn with more
     stanzas than fit simply spans a second page, and takes its thead and
     tfoot with it, which is the whole reason it is a table. */
  body.sheets-run .sheet-one { break-after: page; page-break-after: always;
    height: var(--sheet-foot-at); }
  /* A continuation carries no music, so nothing of the first page's layout
     must leak into it - it is a sheet in its own right and paginates like
     one. The overflow is moved here by the run; see sheets-run.js. */
  body.sheets-run .sheet-one + .sheet-one { break-before: auto; }
  body.sheets-run .sheet-one > tfoot > tr > td { vertical-align: bottom; }
  body.sheets-run .sheet-one:last-of-type { break-after: auto;
    page-break-after: auto; }
  /* The head stays with its music; the stanzas may spill, which is what
     carries a many-versed hymn onto a second page rather than shrinking
     its score to avoid one. */
  body.sheets-run .review-print-head { break-after: avoid;
    page-break-after: avoid; }
  body.sheets-run .sheet-music { display: none !important; }
}

/* ---- the printed review copy -------------------------------------------
   Nothing here is on screen. A reviewer reading the page knows what they are
   looking at; a sheet that has left the building has to say for itself. */
.review-print-head, .review-print-watermark, .review-print-sheet { display: none; }
@media print {
  /* LANDSCAPE, NARROW MARGINS (user, 2026-09-10) - two columns of music need
     the width, and this is a working document rather than a printed one.
     Half an inch at the sides, which is what was asked for, and a little less
     top and bottom where the title and the notice sit. */
  /* THE PAPER IS STATED IN THE TEMPLATE, because `@page` is DOCUMENT-
     GLOBAL and cannot be scoped to a body class. It sat here, and the
     pairing review - which names its own portrait Letter in its own
     markup - printed 11 x 8.5in landscape instead: two `@page` rules in
     one document, and the reader gets whichever the cascade hands them.
     The hymnal's sheets have named their paper in their own template all
     along; the two review copies now do the same. */
  /* AND NOTHING ELSE ADDING TO THEM. A margin set on the page is only the
     page's own; anything the document puts outside the content is added to
     it, and the reader sees the sum. */
  body.print-sheet, body.print-sheet > * { background: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; }
  /* EVERYTHING BUT THE SCORE GOES. The nav, the remarks and the buttons are
     the screen's business.

     ONLY ON A PAGE THAT HAS A PRINT SHEET. These named no page until
     2026-09-11, and `#review-notation` exists on one - so everywhere else the
     second rule matched every child of main and printed a blank sheet. */
  body.print-sheet > *:not(main) { display: none !important; }
  body.print-review main.container > *:not(#review-notation) {
    display: none !important; }
  /* THE PAGE IS THE PAGE. On screen the container is capped at 1100px and
     centred; on paper that cap wastes an inch of a landscape sheet on either
     side, and every inch lost is note size lost. */
  body.print-sheet main.container { max-width: none !important;
    width: auto !important; margin: 0 !important; padding: 0 !important; }
  #review-notation { border: 0; box-shadow: none; margin: 0; padding: 0;
    background: none; }
  #review-notation > h2, .review-hymn-head, .review-notation-replace,
  .review-notation-tools, .review-notation-pick, .review-bar-layer,
  .review-tool-label,
  .review-scope-note,
  .review-bar-note, [data-notation-status], .review-notation-source,
  /* THE LIVE PANE IS NOT PRINTED: what prints is the pair of clones below it,
     and printing both would put the score on the page three times. */
  .review-notation-canvas { display: none !important; }

  .review-print-head { display: block; margin: 0 0 0.22in; text-align: center; }
  .review-print-kicker { margin: 0; font-size: 8pt; letter-spacing: 0.08em;
    text-transform: uppercase; }
  .review-print-title { margin: 0.04in 0 0; font-size: 19pt; line-height: 1.2; }

  /* THE NOTICE IN THE FOOTER, centred (user, 2026-09-10). Fixed, so it is on
     every page of a score that runs to three rather than only above the first
     system - and out of the way of the music, which is what the sheet is for. */
  /* OFF THE EDGE AND ABOVE THE MUSIC (user, 2026-09-11: "the footer
     admonition is missing from this pdf generated from arrangement review").
     Reproduced the print headlessly from that very work with its score drawn
     and the notice was there, so the fault was not reproducible here - but
     both ways it could vanish are cheap to close, and neither costs anything
     when it is already working. `bottom: 0` puts it flush against the sheet
     edge, where a printer's own unprintable margin can take it; and
     .review-print-sheet carries z-index 1, so a score painting over a footer
     at z-index auto is a thing this stylesheet permits. */
  .review-print-notice { display: block; position: fixed;
    bottom: 0.18in; left: 0; right: 0; margin: 0; text-align: center;
    font-size: 12pt; font-weight: 700; border: 0; padding: 0;
    text-transform: uppercase; letter-spacing: 0.06em; z-index: 3; }

  /* BEHIND THE LEFT-HAND SCORE, centred on it (user, 2026-09-10). Centred on
     the PAGE it sat below the music, because the music does not reach the foot
     of the sheet. The script moves it into the left column; this places it by
     its own centre there - rotating a block would otherwise swing its text off
     the middle, the block turning about its own centre and the text with it. */
  /* AND ONLY THE ONE IN THE COLUMN (user, 2026-09-25: "there's a
     'draft' watermark centered on the page. The watermark should be
     centered behind the music in the left column only"). The build
     takes a COPY of the mark now rather than moving it - a move left
     the next build with nothing to place - so the one in the markup is
     a source and not a thing to print. It says where the mark goes; the
     rule below says what it looks like once it is there. */
  .review-print-watermark { display: none; }
  .review-print-col .review-print-watermark { display: block;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
    transform-origin: center center;
    font-size: 72pt; font-weight: 700; letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.10); white-space: nowrap;
    z-index: 0; pointer-events: none; }

  /* THE SCORE, THEN THE SCORE AGAIN IN GREY. Left to read, right to write on. */
  /* THE HEADING AND THE MUSIC STAY TOGETHER. A grid item taller than the room
     left under the title breaks to the next page and leaves the first one
     holding nothing but the title (user, 2026-09-10). */
  /* A REAL GUTTER (user, 2026-09-10). Two scores 0.35in apart read as one
     wide score with a crease down it; 0.6in is enough for the eye to know
     which column it is in. */
  /* HALF AN INCH (user, 2026-10-01: "Page margins and median margin can
     be shrunk to 0.5\" if needed"). 0.6in was the gap between two
     drawings that each kept their engraver's margin, so the paper showed a
     full inch; each copy is cropped to its music now, and the gap is the
     gutter. */
  /* minmax(0, 1fr) RATHER THAN 1fr, which means minmax(auto, 1fr) - and
     `auto` as a minimum is "never narrower than my contents". The contents
     here are engraved SVGs with an intrinsic width, so a bare 1fr lets one
     score push the sheet wider than the page (test_navigation_all). */
  /* THE SHEET IS A STACK OF PAGES NOW, one per band of systems - see
     `systemBoxes` in notation.js. A score short enough for one page
     makes a stack of one and looks exactly as it did. */
  /* `display` IS NOT OPTIONAL HERE. `.review-print-sheet` is
     `display: none` on screen - the rule at the top of this block is
     what hides the whole review copy from the page - so the print rule
     is the only thing that turns it back on. Rewriting this selector
     without a `display` left it hidden, and EVERY review copy printed
     its title and its notice with no music between them. Nothing said
     so: the drawing was still in the document and still the right
     size, and only a count of the ink on the finished page showed it
     (spec section 66, from the other direction). */
  .review-print-sheet { display: block; position: relative; z-index: 1; }
  /* EACH PAGE IS THE TWO COLUMNS, and the next one starts a new sheet
     of paper (user, 2026-09-22: "If a hymn is really long (more than
     four systems) then more than one page may be necessary").

     `break-inside: avoid` STAYS ON THE PAGE AND COMES OFF THE STACK.
     It is what keeps a page's two columns together; on the stack it
     asked the browser to keep EVERY page on one sheet, which it
     cannot do - and what came back was the music pushed whole onto a
     page of its own with the title and the notice stranded on pages
     either side of it. Four sheets, three of them nearly empty. */
  .review-print-page { display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5in; align-items: start;
    break-inside: avoid; page-break-inside: avoid; }
  .review-print-page + .review-print-page {
    break-before: page; page-break-before: always; }
  .review-print-head { break-after: avoid; page-break-after: avoid; }
  /* The column is the watermark's frame, and the score fills the column it
     was engraved for. */
  .review-print-col { position: relative; }
  /* THE BAND OF SYSTEMS THIS PAGE SHOWS. The drawing inside is whole
     and full size; the window is as deep as the band and hides the
     rest - see the crop in notation.js for why it cannot be done by
     re-boxing the engraving. */
  .review-print-window { overflow: hidden; display: block;
    position: relative; z-index: 1; }
  .review-print-col svg { width: 100%; height: auto; display: block;
    position: relative; z-index: 1; }
  /* ONLY THE NOTES GO GREY (user, 2026-09-10). Staves, clefs, key and time
     signatures stay black: they are what tells a reviewer where on the stave
     their pencil is, and a grey stave is a stave you cannot aim at.

     !important throughout, because the engraver writes fill and stroke as
     ATTRIBUTES on every path it draws, and an attribute yields only to a
     declaration that insists. */
  /* TWO ENGRAVERS NAME THE SAME THINGS DIFFERENTLY, and a rule that knows
     only one of them greys nothing at all. VexFlow calls a note head and
     its stem `.vf-stavenote` and `.vf-stem`; Verovio calls them `note` and
     `stem` and hangs the rest off the same plain words. Measured on an
     arrangement review drawn by Verovio: 0 elements matched the list
     below, so the second column would have printed solid black - a page to
     write over with nothing to distinguish it from the one beside it. */
  .review-print-col.is-ghost svg g.note,
  .review-print-col.is-ghost svg g.note *,
  .review-print-col.is-ghost svg g.rest,
  .review-print-col.is-ghost svg g.rest *,
  .review-print-col.is-ghost svg g.stem,
  .review-print-col.is-ghost svg g.stem *,
  .review-print-col.is-ghost svg g.beam,
  .review-print-col.is-ghost svg g.beam *,
  .review-print-col.is-ghost svg g.flag,
  .review-print-col.is-ghost svg g.flag *,
  .review-print-col.is-ghost svg g.accid,
  .review-print-col.is-ghost svg g.accid *,
  .review-print-col.is-ghost svg g.dots,
  .review-print-col.is-ghost svg g.dots *,
  .review-print-col.is-ghost svg g.slur,
  .review-print-col.is-ghost svg g.slur *,
  .review-print-col.is-ghost svg g.tie,
  .review-print-col.is-ghost svg g.tie *,
  .review-print-col.is-ghost svg g.ledgerLines,
  .review-print-col.is-ghost svg g.ledgerLines *,
  .review-print-col.is-ghost svg .vf-stavenote,
  .review-print-col.is-ghost svg .vf-stavenote *,
  .review-print-col.is-ghost svg .vf-stem,
  .review-print-col.is-ghost svg .vf-stem *,
  .review-print-col.is-ghost svg .vf-flag,
  .review-print-col.is-ghost svg .vf-flag *,
  .review-print-col.is-ghost svg .vf-curve,
  .review-print-col.is-ghost svg .vf-curve * {
    fill: #c4c4c4 !important; stroke: #c4c4c4 !important; }
}
/* POINTING AT A PASSAGE. A transparent panel over each bar, laid out from the
   engraver's own measurements - the drawn SVG has no element that means
   "bar 7", and hit-testing its paths would break the day the library changes
   how it draws a stave. */
.review-bar-layer { position: absolute; inset: 0; }
.review-bar { position: absolute; margin: 0; padding: 0; border: 0;
  background: transparent; cursor: pointer; border-radius: 3px; }
.review-bar:hover { background: rgba(122, 92, 60, 0.10); }
.review-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* A BAR SOMEBODY HAS ALREADY SPOKEN ABOUT (user, 2026-09-10: "I don't love the
   thick brown line").
   
   It was a 3px accent stripe along the top of every marked cell, which across a
   run of bars drew a heavy brown rule over the stave and read as part of the
   engraving rather than as an annotation of it.
   
   NOW: the bar is washed, not underlined. A tint says "this stretch" without
   putting a line anywhere near the notes, it scales to a run of any length
   without becoming a rule, and hovering simply deepens the same wash - so the
   quiet state and the active one are one idea at two strengths rather than two
   different marks. 7% was invisible at the size a work page draws a score at;
   12% is findable while scanning and still lets the staff lines read black
   through it. */
.review-bar.has-remark { background: rgba(122, 59, 46, 0.12); }
.review-bar.has-remark:hover { background: rgba(122, 59, 46, 0.16); }
/* AND THIS ONE IS CHOSEN - after the wash above and louder than it,
   because it is something being done now rather than something that was
   done. The two carry equal weight, so the one written later wins: a bar
   somebody has already spoken about can be chosen again (user,
   2026-09-21), and while it is chosen it has to read as chosen. The same
   order the lines of the words settled on. */
.review-bar.is-picked { background: rgba(122, 92, 60, 0.28); }
/* THE REMARK ON HOVER - a glance, not the place it is read. The list under the
   score is where a remark can be replied to or edited, and a panel that
   covered the stave would hide the music it is about. */
.review-bar-note { position: absolute; z-index: 3; max-width: 22rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.5rem 0.7rem; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 0.9rem; }
.review-bar-note p { margin: 0 0 0.35rem; }
.review-bar-note p:last-child { margin-bottom: 0; }
/* EACH REMARK ON ITS OWN GROUND, as in the lists under the score - so three
   people disagreeing about one passage read as three remarks and not as one
   long one. The panel is --card, so the blocks are --card-alt: the same pair
   the comment lists use. */
.review-bar-note-said { background: var(--card-alt); border-radius: 5px;
  padding: 0.35rem 0.5rem; }
/* The passage on the left, who said it on the right (user, 2026-09-10). */
.review-bar-note-where { font-weight: 600; display: flex; gap: 1rem;
  align-items: baseline; justify-content: space-between; }

/* HIDDEN BY THE ATTRIBUTE, and a rule that lets the attribute win. Any class
   carrying a `display` outranks the browser's own [hidden] rule, which is how
   an empty dialog once sat on every page (spec s66) - so the pair is written
   together, here, rather than one of them being left to the default. */
.review-bar-note[hidden], .review-notation-pick[hidden] { display: none !important; }
.review-notation-pick { margin-top: 0.9rem; }
/* THE BOX COMES TO THE BAR (user, 2026-09-15). It sat under the score,
   which on an arrangement means under a panel several systems tall - a
   reviewer clicked bar 2 and typed about it with bar 2 off screen. The
   script moves it to the body and places it under the chosen bars, so
   these rules only apply once it has been moved: an unscripted page keeps
   the box where it was rather than losing it to a position nothing sets. */
.review-notation-pick.is-floating {  /* it stands out over the white score (the user, 11/9/2026: "needs a stronger border") */
  position: absolute; z-index: 30; margin-top: 0; width: min(28rem, 92vw);
  background: var(--card, #fff); border: 2px solid var(--accent);
  border-radius: 6px; padding: 0.6rem 0.75rem;
  box-shadow: 0 0 0 4px rgba(122, 59, 46, 0.12), 0 10px 28px rgba(0, 0, 0, 0.26); }
.review-notation-pick.is-floating textarea { width: 100%; }
.review-notation-picked { margin: 0 0 0.35rem; font-weight: 600; }
/* THE REMARKS THEMSELVES, passage by passage. */
.review-music-group + .review-music-group { margin-top: 1rem; }
.review-music-where { margin: 0 0 0.35rem; font-weight: 600; }
.review-music-group.is-called-out { background: var(--card-alt); border-radius: 6px;
  box-shadow: 0 0 0 0.5rem var(--card-alt); }

.review-notation-canvas svg { max-width: none; }
/* A FAILURE IS SAID IN THE COLOUR OF A FAILURE. The same token the meter
   check's off-lines use, so "something is wrong here" reads the same way
   twice on one page. */
.review-notation-failed { color: var(--error); }

/* The head carries the heading and the switch on one line, with the switch
   pushed to the right and its own bottom margin dropped - it is sitting in a
   row, not above a picker. */
/* ROOM TO BREATHE (user, 2026-09-10). Three unrelated things share this row -
   a title, a player and a set of controls - and they were 16px apart with the
   music starting the pixel the row ended. The gap tells them apart; the margin
   stops the controls sitting on top of the stave. */
/* THE CARD'S TOP ROW IN THREE COLUMNS: what you listen to, which review
   is open, and what you do with the file (user, 2026-09-25: the switch
   "should be moved to be centered above the music rendering"). Equal
   side tracks are what centre the middle one on the CARD - it sat 101px
   left of the music's middle while it was centred inside the group of
   buttons instead, which is a different box. */
/* `minmax(0, 1fr)` AND NOT A BARE `1fr`, which means `minmax(auto, 1fr)`
   - and `auto` as a minimum is "never narrower than my contents". The
   contents here include an engraved SVG with an intrinsic width, which a
   bare 1fr lets push the card wider than the page. test_navigation_all
   holds this rule for every grid in the app and caught this one.

   AND THE ROW HANGS FROM ITS TOP (user, 2026-09-25: "The buttons need to
   be nudged up so their top edge is in-line with the midi player's").
   Hung from the bottom, the labels over each group pushed their buttons
   below the player beside them. */
/* THE STATUS AND THE DUE DATE AS ONE THING, at the left of the decision
   row (user, 2026-09-25: "The status pill should be moved to the left of
   the due date"). The pill is bigger than the ones in a list: it is the
   state of the work being reviewed, not one fact among four. */
.review-state { display: flex; align-items: flex-end;
  gap: 0.9rem; }
.status-pill-lg { font-size: 0.95rem; padding: 0.3rem 0.9rem;
  letter-spacing: 0.06em; }
/* AND THE METER IN THE SCORE'S OWN CORNER - a fact about the music,
   written where the music is. Out of the flow, so it costs the
   engraving no room and cannot move a system. */
.review-notation-canvas { position: relative; }
.review-meter-badge { position: absolute; top: 0.55rem; right: 0.8rem;
  z-index: 2; font-size: 0.85rem; letter-spacing: 0.02em;
  color: var(--muted, #6b6459); pointer-events: none; }
@media print { .review-meter-badge { display: none; } }
/* A CARD'S TOP ROW: one thing at each end. Four cards wear this - the
   score, the words, the pairing page's music and a syllable stanza -
   and only the score card has a middle item to centre, so the three
   tracks it needs are a MODIFIER. As the class itself they put the
   pairing page's player and the syllable count in the middle of their
   rows instead of at the right, measured 441px short of the edge. */
.review-hymn-head { display: flex; align-items: center;
  justify-content: space-between; gap: 0.7rem 1.5rem; flex-wrap: wrap;
  margin-bottom: 0.9rem; }
.review-hymn-head-music { display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  /* ROOM FOR THE LABELS THAT HANG ABOVE THE ROW (user, 2026-09-25:
     "these small labels are touching the top edge"). They are out of
     the flow, so the row has to carry their height itself or they sit
     on the card's own edge. */
  padding-top: 1.5rem; }
/* AND THE WORDS CARD: how to read them at the left, what they are about
   at the right (user, 2026-09-25). A size down from the body text,
   because a theme is a label on the hymn and not a line of it. */
.review-hymn-head-words { align-items: flex-start; }
/* THE SWITCH, AND UNDER IT WHAT THE SWITCHED-TO VIEW COUNTS (user,
   2026-09-25). A size down from the body text for the same reason the
   themes opposite them are: these are notes about the hymn, not part
   of it. */
.review-words-left { display: flex; flex-direction: column;
  align-items: flex-start; gap: 0.5rem; }
.review-words-meta { font-size: 0.85rem; }
/* AND THE PILL STEPS DOWN WITH IT. `.status-pill` is sized in rem, so
   it ignores the line it is in - the link shrank and the pill beside it
   did not. In `em` it is a fraction of whatever this line is. */
.review-words-meta .status-pill { font-size: 0.75em; }
.review-hymn-head-words .review-meta-themes { margin: 0;
  font-size: 0.85rem; justify-content: flex-end; text-align: right; }
.review-hymn-head h2 { margin-bottom: 0; }
/* THE HEADING AND WHAT IT IS SHOWING, on one line (user, 2026-09-11). Baseline
   alignment, so the tune's name sits on the heading's own line rather than
   floating against its cap height; `min-width: 0` so a long name wraps inside
   the pair instead of pushing the player off the row. */
.review-hymn-title { display: flex; align-items: baseline; gap: 0.6rem;
  flex-wrap: wrap; min-width: 0; }
.pairing-tune { margin: 0; }
/* THE METER BESIDE THE TUNE, in the size the rest of the app gives a work's
   type - a fact about the music, not a heading. */
.pairing-meter { font-size: 0.82rem; margin-left: 0.35rem; }
/* WHAT KIND OF PAGE THIS IS (user, 2026-09-11: "the 'pairing review' title
   needs to be more apparent"). It was a 0.72rem muted label leading a list of
   facts; the list has gone and this is what is left, at the size the work page
   gives a work's type, in the app's own accent so it reads as a name for the
   page rather than as more subtitle. */
.pairing-kind { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); }
/* THE PLAYER GIVES WAY BEFORE THE ROW BREAKS (user, 2026-09-10: the heading,
   the player and the controls landed on two lines). A wrapping flex row wraps
   rather than shrinks, and the player arrived at a fixed 23rem - enough, with
   a heading and three controls beside it, to push the controls onto a line of
   their own. Here it takes what is left instead: the bar inside it absorbs
   the difference, which is exactly what a seek bar is for. */
/* THE PLAYER FILLS THE COLUMN IT IS GIVEN, on the score card - where the
   row is a grid and the column is the width. */
.review-hymn-head-music .midi-player { width: 100%; max-width: none; }
/* ON THE PAIRING CARD IT SHRINKS AND KEEPS TO THE RIGHT (user,
   2026-09-25: "the midi player needs to shrink and go on the line above
   on the far right"). At its full 23rem it claimed the whole row and
   dropped onto a line of its own under the tune's name; asking for a
   share instead leaves it beside the name, at the end `space-between`
   already puts it at. */
/* AND ONLY THERE: `>`, the player that IS one of the row's own items
   (user, 2026-10-01, of the review page's player drawn as a circle:
   "What is this?"). On the review page the player stands in a column
   with its MIDI button under it, and a flex basis in a column is a
   HEIGHT - 19rem of it, rounded at 999px, drew a 336 by 304 circle round
   four small controls. The pairing card's player is the row's child and
   keeps every word of this. */
.review-hymn-head > .midi-player { flex: 0 1 19rem; width: auto;
  min-width: 12rem; }
/* AND THE PAIRING CARD'S ROW IS THREE TRACKS: the tune's name, the
   switch between its scores, and the player (user, 2026-09-25). Equal
   side tracks are what centre the middle one on the CARD - the same
   reason the two rows on the work review page needed them. */
#pairing-music > .review-hymn-head { display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
#pairing-music > .review-hymn-head > .review-hymn-title { grid-row: 1;
  grid-column: 1; }
#pairing-music > .review-hymn-head > .view-switch { grid-row: 1;
  grid-column: 2; margin: 0; }
/* LONGER AND SHALLOWER (user, 2026-09-25: "the midi player should be
   vertically thinned a bit, and stretched horizontally a bit"). In an
   `auto` cell it had shrunk to its contents - 193px, of which the seek
   bar was 40 - so the one part you drag was the smallest thing in it.
   A width makes the bar the width; the rest is padding and two round
   controls, trimmed together so they stay circles. */
#pairing-music > .review-hymn-head > .midi-player { grid-row: 1;
  grid-column: 3; justify-self: end; width: 20rem;
  padding-top: 0.1rem; padding-bottom: 0.1rem; }
#pairing-music > .review-hymn-head > .midi-player .midi-icon-btn {
  width: 1.6rem; height: 1.6rem; }
#pairing-music > .review-hymn-head > .midi-player .midi-volume {
  width: 1.5rem; height: 1.5rem; }
@media (max-width: 62rem) {
  /* AND ONE COLUMN WHERE THERE IS NO ROOM FOR THREE. */
  #pairing-music > .review-hymn-head { grid-template-columns: minmax(0, 1fr);
    justify-items: center; }
  #pairing-music > .review-hymn-head > .review-hymn-title,
  #pairing-music > .review-hymn-head > .view-switch,
  #pairing-music > .review-hymn-head > .midi-player { grid-row: auto;
    grid-column: 1; justify-self: center; }
}
/* THE LYRICS CARD FOLDS (user, 2026-09-11). Same shape as `.xref-table` and
   `.rights-gap-details`: `display: flex` on a summary drops the browser's own
   disclosure triangle, so one is drawn - a marker that vanished would leave a
   card that looks like a heading and happens to open when clicked. */
.pairing-lyrics > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.pairing-lyrics > summary::-webkit-details-marker { display: none; }
.pairing-lyrics > summary::before {
  content: "\25B8";
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--muted);
  font-size: 0.8rem; line-height: 1; transition: transform 0.12s ease;
}
.pairing-lyrics[open] > summary::before { transform: rotate(90deg); }
.pairing-lyrics > summary:hover::before { color: var(--ink); border-color: var(--ink); }
.pairing-lyrics > summary h2 { margin: 0; }
/* The gap belongs to the OPEN card: closed, it is a heading and nothing else,
   and a card padded for content it is not showing reads as a card that failed
   to load. */
.pairing-lyrics[open] > summary { margin-bottom: 0.9rem; }
.review-syl-switch { margin-bottom: 0; }
.review-syl-switch .is-on { background: var(--card-alt); color: var(--ink); font-weight: 600; }
/* TWO COLUMNS STILL, and the right one still belongs to the stanza beside
   it - but it holds what was said about that stanza's LINES now, and the
   box for saying something new only while a line there is chosen (user,
   2026-09-15). It briefly became one column when the per-stanza boxes were
   removed; the column was the right idea, the scope was not. */
.review-stanza-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 1.5rem; align-items: start;
  padding: 0.9rem 0; border-bottom: 1px dashed var(--border);
}
.review-stanza-row:last-child { border-bottom: none; }
/* ONE COLUMN ON A NARROW SCREEN, where two of these would leave neither
   readable - the same width the stanza panels give up at. */
@media (max-width: 900px) {
  .review-stanza-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
}
.review-stanza-number { font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.3rem; }
.review-stanza-quiet { font-size: 0.85rem; margin: 0 0 0.5rem; }
.review-add-form textarea { width: 100%; }
.review-orphaned .comment-list > li { opacity: 0.85; }

.wd-review-card > summary.card-head { flex-wrap: wrap; row-gap: 0.4rem; }
/* The way into the review, at the end of the card's own header. `margin-left`
   rather than a gap, so it sits against the right edge whatever else the
   header is carrying. */
.card-head-link { margin-left: auto; }
.wd-review-card > summary.card-head > h2 { white-space: nowrap; }

/* THE ONE REVIEWS CARD (user, 2026-10-24: "I'd like there to be a single
   'reviews' card that contains information for all reviews"; drawn rounds
   71-80, approved). Two bands headed as a recording's credits head their
   categories - accent small capitals on a rule - and every review ONE LINE on
   one grid (label | value | its links), whatever it holds printed under it in
   the value's column (user: "I don't want to have to click on anything to
   open any review comments"). ONE DATE STYLE in the whole card (user: "the
   date font is not the same everywhere"): one size, muted, tabular figures. */
.rvc-band { display: flex; align-items: center; gap: 0.7rem; margin: 1.1rem 0 0.4rem;
  font: 700 0.74rem/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.rvc > .rvc-band:first-child { margin-top: 0.3rem; }
.rvc-band::after { content: ''; flex: 1; border-top: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); order: 1; }
/* "Go to review" at the band's right, after its rule. A LINK WITH AN ARROW
   (user: "should this be a 'go to review' link with an arrow instead?"): it
   takes you there and starts nothing. */
.rvc-band .go-link { order: 2; text-transform: none; letter-spacing: 0; font-weight: 400; }
.go-link { font-size: 0.85rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.go-link:hover, .go-link:focus-visible { text-decoration: underline; }
.rvc-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.15rem 1rem;
  align-items: baseline; padding: 0.4rem 0 0.4rem 0.2rem; font-size: 0.92rem; }
.rvc-pr + .rvc-pr { border-top: 1px dashed var(--border); }
.rvc-lab { color: var(--muted); font-size: 0.85rem; }
.rvc-pr .rvc-lab { color: inherit; font-size: 0.92rem; font-weight: 600; }
.rvc-val { min-width: 0; }
.rvc-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.9rem; align-self: center; }
.rvc-acts form { margin: 0; }
.rvc-more { grid-column: 2 / -1; min-width: 0; }
.rvc-more .comment-list { margin: 0.35rem 0 0.1rem; }
.rvc-d, .rvc .comment-meta .muted { font: 400 0.85rem/1.4 var(--font-sans); color: var(--muted);
  font-variant-numeric: tabular-nums; }
.rvc-late { color: var(--error); }
.rvc-sep { color: var(--muted); padding: 0 0.3rem; font-size: 0.85rem; }
.rvc-pill { display: inline-block; margin-right: 0.5rem; padding: 0.05rem 0.55rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; vertical-align: 0.05rem; }
.rvc-ok { background: #e3f1e5; color: #2f6b3a; }
.rvc-no { background: #f6e1df; color: #9c2f2a; }
.rvc-warn { background: #fbefd9; color: #8a5a12; }
.rvc-wait { background: var(--card-alt); color: var(--muted); }
.rvc-earlier { margin: 0.25rem 0 0; font-size: 0.88rem; }
.rvc-earlier .rvc-why { margin: 0.1rem 0 0; }
/* THE DECLINED, FOLDED UNDER ONE LINE (user: "Approved pairings should be
   listed first, declined should be collapsed"), the card's one fold. */
.rvc-decl { border-top: 1px dashed var(--border); }
.rvc-decl > summary { list-style: none; cursor: pointer; padding: 0.45rem 0 0.45rem 0.2rem;
  font-size: 0.88rem; color: var(--muted); }
.rvc-decl > summary::-webkit-details-marker { display: none; }
.rvc-decl > summary:hover { color: var(--ink); }
.rvc-tri { display: inline-block; width: 0; height: 0; margin: 0 0.5rem 0.1rem 0.1rem;
  border-left: 0.36rem solid currentColor; border-top: 0.26rem solid transparent;
  border-bottom: 0.26rem solid transparent; transition: transform 0.12s; }
.rvc-decl[open] > summary .rvc-tri { transform: rotate(90deg); }
/* A PRODUCER'S ONE ROW, in the card's place (user, 2026-10-24: "yes - I
   believe this gives producers the info they need - 'Is this review complete
   yet? When will it be done?'"; drawn as round 91): the band's name on the
   accent bar, the status with its date, and who has reviewed it - one line
   that wraps on a phone, and nothing to open. */
.rvc-one { display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap; padding: 0.7rem 1.1rem; }
.rvc-one-t { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border-left: 4px solid var(--accent); padding-left: 0.55rem; }
.rvc-one-v { display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.rvc-one-sep { color: var(--muted); }
.rvc-one-lab { color: var(--muted); font-size: 0.88rem; }
/* A phone: the label over its line, the links still at the right. */
@media (max-width: 640px) {
  .rvc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rvc-row > .rvc-lab { grid-column: 1 / -1; }
  .rvc-more { grid-column: 1 / -1; }
}

.collapse-card > summary > .card-summary { margin-left: auto; text-align: right;
  color: var(--muted); font-size: 0.88rem; font-weight: 400; }

/* Search and column sorting, shared by /agreements and /admin/agreements via
   templates/_agreement_controls.html. */
.agr-search { display: flex; gap: 0.4rem; align-items: center; margin: 0 0 0.8rem; flex-wrap: wrap; }
.agr-search input[type=search] { min-width: 22rem; max-width: 100%; padding: 0.35rem 0.5rem;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--fg); }
.agr-sort-bar { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap;
  margin: 0 0 1rem; font-size: 0.88rem; }
.agr-sort { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--border); }
.agr-sort:hover { color: var(--fg); }
.agr-sort-active { color: var(--fg); font-weight: 600; border-bottom-color: transparent; }
.agr-sort-arrow { margin-left: 0.15rem; }
/* A table header that sorts still reads as a header, not as a link. */
.data-table th .agr-sort { border-bottom: none; }
/* Announced by a screen reader, invisible on screen - used for the "(sorted
   ascending)" that the arrow conveys visually. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Work page: usage permission derived from signed agreements. Read-only -
   it changes only via an uploaded signed agreement or an admin rescind. */
.wd-permission { margin: 0.2rem 0 0.9rem; }
.wd-permission p { margin: 0 0 0.4rem; }
.wd-permission-agreements { margin: 0.3rem 0 0; padding-left: 1.2rem; font-size: 0.85rem; }
/* The publish dialog's hard rights gate - distinct from the review-status
   warnings above it, which don't block. */
.publish-rights-block {
  margin: 0.9rem 0; padding: 0.7rem 0.9rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg);
}
.publish-rights-block p { margin: 0 0 0.5rem; font-size: 0.9rem; }
/* Rights pills say whether usage permission is secured - deliberately NOT
   .status-pill, which means a work's REVIEW status and is suppressed
   entirely on Original Language pages. Same look, different meaning. */
.rights-pill {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.rights-pill.rights-secured { background: #dff0e0; color: #2b6b33; }
.rights-pill.rights-outstanding { background: #f6e7c8; color: #7a5a17; }
.rights-pill.rights-date-unknown { background: #ece9e4; color: #5c564f; }
/* Rights secured elsewhere and recorded by hand. Deliberately NOT the green
   of rights-secured: the work is cleared either way, but at a glance it
   should be obvious which permissions rest on a document held here and which
   rest on somebody's word that one exists somewhere else. */
.rights-pill.rights-manual { background: #dfe8f3; color: #2c4b73; }
.rights-pill.rights-held { background: #dfe8f3; color: #2c4b73; }  /* Usage rights secured, as the work's card shows it */
.wd-permission-manual .rights-pill { margin-right: 0.15rem; }
/* Who holds the rights where that is not the creator. Unbulleted: it annotates
   the sentence above it rather than listing separate facts, and the pill
   already marks where each row starts. */
.wd-permission-heldby { list-style: none; padding-left: 0; }
.wd-permission-heldby .rights-pill { margin-right: 0.15rem; }
/* Rightsholders attached to the work itself rather than reached through its
   credits. Set off by a rule above it: same gate, different question, and
   unlike everything else in this panel it is editable here. */
.wd-direct-rightsholders {
  border-top: 1px solid var(--border); padding-top: 0.7rem; margin-top: 0.9rem;
}
.wd-direct-rightsholders .rights-pill { margin-right: 0.15rem; }
.wd-direct-rightsholders .tight-form { margin-top: 0.5rem; }
.wd-direct-rightsholders .tight-form input[type="text"] { min-width: 260px; }
/* Record-rights-secured dialog. */
.rights-dialog-label { margin: 0.2rem 0 0.3rem; font-size: 0.88rem; }
/* Registry entries whose creator has died with nobody on file to sign for
   the works. Amber rather than red: it is a gap to fill, not an error. */
.rights-gap-card { border-left: 3px solid #c9a227; }
.rights-gap-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.rights-gap-list li {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.5rem 0; border-top: 1px dotted var(--border); font-size: 0.9rem;
}
.rights-gap-list li:first-child { border-top: none; }
.rights-gap-list .muted { flex: 1; min-width: 18rem; font-size: 0.85rem; }
/* SET COLUMNS (the user, 10/31: "these columns should be a set width"): the name, what is missing, then the
   button at the right - the same widths on every line whatever the name or the button says. A phone keeps the
   wrapping row above. */
@media (min-width: 641px) {
  .rights-gap-list li { display: grid; grid-template-columns: 14rem minmax(0, 1fr) 11rem; }
  .rights-gap-list li > .muted { min-width: 0; }
  .rights-gap-list li > form, .rights-gap-list li > .btn { justify-self: end; }
}
/* THE GAPS AS ONE CARD (the user, 10/31/2026): the registry's gap cards sit in one card (.rights-gap-stack), each a
   slim line under a thin rule; the card keeps the gap cards' accent border, and each line still opens its list in
   place. The inner sections keep their own markup, restyled here as lines. */
.rights-gap-stack { border-left: 3px solid #c9a227; padding: 0.15rem 0; }
.rights-gap-stack > .card { border: 0; border-radius: 0; box-shadow: none; background: none; margin: 0;
  padding: 0.45rem 1.25rem; }
.rights-gap-stack > .card + .card { border-top: 1px solid var(--border); }
.rights-gap-stack .rights-gap-summary-text { font-size: 0.95rem; }
.rights-gap-stack .rights-gap-details[open] { padding-bottom: 0.35rem; }
.rights-gap-inline { color: #7a5a17; font-size: 0.78rem; font-weight: 600; margin-top: 0.15rem; }
.registry-make-contact { margin: 0.5rem 0 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.registry-make-contact .muted { font-size: 0.8rem; }
/* Agreement admin panel: the after-the-fact levers and the audit trail. */
.admin-action { padding: 0.7rem 0; border-top: 1px dotted var(--border); }
.admin-action:first-of-type { border-top: none; }
.admin-action p.muted { margin: 0.3rem 0 0; font-size: 0.82rem; }
.agr-audit { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.agr-audit li { padding: 0.4rem 0; border-bottom: 1px dotted var(--border); }
.agr-audit li:last-child { border-bottom: none; }
.agr-audit-action { font-weight: 600; text-transform: capitalize; }
.agr-audit-detail { font-size: 0.82rem; margin-top: 0.15rem; }
/* Agreement template editor: parts contain sections, a choice section
   contains options. Indentation carries the nesting. */
.tpl-note { margin: -0.4rem 0 1rem; font-size: 0.88rem; }
.tpl-lh-hint { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); }
/* The Save button spans both columns rather than sitting in one of them. */
.tpl-lh-actions { grid-column: 1 / -1; }
.tpl-fields .def-list { font-size: 0.85rem; }
.tpl-part-title { min-width: 320px; font-weight: 600; }
.tpl-section { border-top: 1px solid var(--border); padding: 0.8rem 0 0.9rem 0.9rem; }
.tpl-section-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.tpl-section-num { font-weight: 700; min-width: 1.8rem; color: var(--muted); }
.tpl-kind {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--bg); color: var(--muted);
}
.tpl-kind-choice { background: #f6e7c8; color: #7a5a17; }
.tpl-kind-work.list, .tpl-kind-work_list { background: #dfe8f3; color: #2c4b73; }
.tpl-kind-signature { background: #e8e2f3; color: #4a3a70; }
.tpl-section-head .btn-row { margin-left: auto; }
.tpl-section-form textarea { width: 100%; font-family: inherit; }
.tpl-section-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 0.4rem; }
.tpl-hint { font-size: 0.82rem; margin: 0.25rem 0 0.5rem; }
.tpl-work-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.5rem; margin-bottom: 0.5rem; }
.tpl-work-lines input { width: 100%; }
.tpl-options { margin: 0.6rem 0 0 1.2rem; padding-left: 0.8rem; border-left: 2px solid var(--border); }
.tpl-options h4 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.tpl-option textarea { width: 100%; font-family: inherit; }
.tpl-option-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.3rem 0; }
.tpl-option-actions { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.7rem; font-size: 0.85rem; }
.tpl-add-section { margin-top: 0.8rem; }

/* ---- agreement template editor: two columns, document on the right ------
   Left column is everything that SHAPES a row - drag handle, type, edit,
   delete. Right column is what that row renders to, run through the same
   renderer that issues agreements. The reader can follow the document down
   the right-hand side and only look left when they want to change it. */
.tpl-doc-columns-head {
  display: grid; grid-template-columns: var(--tpl-controls-w, 20rem) minmax(0, 1fr); gap: 1.5rem;
  padding: 0 1.1rem 0.35rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); font-weight: 600;
}
.tpl-doc-columns-head .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tpl-part { padding-top: 0.4rem; }
.tpl-row {
  display: grid; grid-template-columns: var(--tpl-controls-w, 20rem) minmax(0, 1fr); gap: 1.5rem;
  align-items: start; padding: 0.75rem 0; border-top: 1px solid var(--border);
}
.tpl-row:first-child { border-top: none; }
.tpl-row-controls { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tpl-row-controls .inline-form { display: inline-flex; }
/* The document column. Serif and generously leaded so it reads as prose
   rather than as another field - the whole point of the split. */
.tpl-row-text { font-family: Georgia, 'Times New Roman', serif; line-height: 1.55; min-width: 0; }
.tpl-row-text > :first-child { margin-top: 0; }
.tpl-row-text > :last-child { margin-bottom: 0; }
.tpl-doc-part-title {
  margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center;
}
.tpl-doc-heading { margin: 0 0 0.35rem; font-weight: 700; }
.tpl-doc-body { margin: 0 0 0.6rem; white-space: pre-wrap; }
.tpl-doc-bullet { margin: 0 0 0.2rem 1.2rem; text-indent: -1.2rem; }
.tpl-doc-bullet::before { content: "\2014\00a0"; color: var(--muted); }
.tpl-doc-signature { margin: 0 0 0.6rem; white-space: pre-wrap; border-top: 1px solid var(--ink); padding-top: 0.3rem; max-width: 22rem; }
.tpl-doc-empty { margin: 0; font-style: italic; color: var(--muted); font-size: 0.88rem; }
.tpl-control-note { flex-basis: 100%; margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--muted); }
.tpl-kind-part { background: var(--paper); color: var(--muted); }
.tpl-kind-text { background: #e6e9e4; color: #40503c; }
.tpl-row-add { border-top: 1px dashed var(--border); padding-top: 0.6rem; }
.tpl-add-part { margin-top: 1rem; display: block; }
.tpl-fields-sub { margin: 1rem 0 0.3rem; font-size: 0.9rem; }
.tpl-option-block { margin-bottom: 0.8rem; }

/* Drag to reorder, replacing the up/down buttons. The drop line is drawn on
   the row being hovered rather than on a placeholder element, so nothing is
   inserted into the list until the drop actually lands. */
.tpl-drag-handle { cursor: grab; color: var(--muted); user-select: none; }
.tpl-drag-handle:active { cursor: grabbing; }
.tpl-dragging { opacity: 0.45; }
.tpl-drop-before { box-shadow: inset 0 2px 0 var(--accent, #7a2f2f); }
.tpl-drop-after { box-shadow: inset 0 -2px 0 var(--accent, #7a2f2f); }
.tpl-saving { opacity: 0.6; pointer-events: none; }

/* What the right column substitutes into the template. */
.tpl-viewbar {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin: 0 0 0.9rem; padding: 0.5rem 0.8rem; font-size: 0.88rem;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
}
.tpl-viewbar-label { font-weight: 600; color: var(--muted); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em; }
.tpl-viewbar select { max-width: 22rem; }

/* Things that render as SILENCE in the finished document - a choice with no
   default, a merge field nobody recognises. Amber, matching the rights gaps:
   something to fix, not a failure. */
.tpl-warnings {
  flex-basis: 100%; list-style: none; margin: 0.35rem 0 0; padding: 0.4rem 0.55rem;
  border-left: 3px solid #c9a227; background: #fdf8ea; border-radius: 2px;
  font-size: 0.78rem; color: #6b4f13;
}
.tpl-warnings li + li { margin-top: 0.25rem; }

/* Read view: the document alone, centred at a comfortable measure. The
   controls are hidden rather than removed, so nothing reflows on the way
   back and no row loses its place. */
body.tpl-read-view .tpl-row-controls,
body.tpl-read-view .tpl-doc-columns-head,
body.tpl-read-view .tpl-row-add,
body.tpl-read-view .tpl-add-part,
body.tpl-read-view #tpl-reference { display: none; }
body.tpl-read-view .tpl-row { grid-template-columns: minmax(0, 1fr); border-top: none; padding: 0; }
body.tpl-read-view .tpl-part { max-width: 46rem; margin-left: auto; margin-right: auto; }
body.tpl-read-view .tpl-row-text { font-size: 1rem; }

@media (max-width: 900px) {
  /* One column below the breakpoint: 20rem of controls beside a paragraph
     leaves neither enough room to read. */
  .tpl-doc-columns-head { display: none; }
  .tpl-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}

/* ---- rescind picker, and the pre-generation review ---------------------- */
/* Rescinding is per work, so the picker is a list of the live permissions.
   Nothing is ticked by default - withdrawing a signed permission should not
   arrive pre-selected. */
.rescind-picker {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; margin: 0 0 0.6rem;
}
.rescind-picker legend { font-size: 0.85rem; font-weight: 600; padding: 0 0.3rem; }
.rescind-picker .checkbox-label { display: flex; gap: 0.4rem; align-items: baseline; margin: 0.15rem 0; }
.rescind-actions { display: flex; gap: 0.8rem; margin: 0 0 0.4rem; font-size: 0.85rem; }

/* The document a batch would produce, shown before anything is issued. Set
   monospaced and scrollable: it is the plain-text rendering, and a long work
   list must not push the Generate button off the screen. */
.agr-preview { margin-top: 0.5rem; }
.agr-preview > summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.agr-preview-text {
  margin: 0.5rem 0 0; padding: 0.8rem 1rem; max-height: 26rem; overflow: auto;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.78rem;
  line-height: 1.5; white-space: pre-wrap;
}
.agr-work-list .checkbox-label { font-size: inherit; }
/* The rightsholder's own checkbox. Its label carries the name, so it must not
   inherit the small type the work rows use, and the box sits beside a <strong>
   rather than plain text. */
.agr-batch-toggle { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.agr-batch-toggle strong { font-weight: 700; }
/* A rightsholder nothing will be generated for is NOT dimmed. The dimming made
   sense when every batch started ticked and an unticked one was the exception;
   now that nothing is selected until somebody selects it, it faded the entire
   card on load and made a list people have to read - names and titles - harder
   to read at exactly the moment they are choosing from it. The checkbox is
   what says whether a batch is included, and it says it unambiguously.
   .agr-batch-off is still set on the row, so anything that wants to mark the
   state without touching legibility has somewhere to hang. */
.agr-batch-off .agr-batch-toggle input { opacity: 1; }


/* "Numbering locked" notice on a hymnal or recording. Warning-toned rather
   than error-toned: nothing is wrong, the order is simply finished. Shown to
   every role, because a Producer whose controls have vanished needs to know
   why and a Manager needs to know who to ask. */
.pub-numbering-locked {
  margin: 0 0 1rem; padding: 0.6rem 0.9rem; border-radius: 5px;
  background: var(--status-draft-bg); border-left: 3px solid #8a6410;
  font-size: 0.88rem; color: var(--ink);
}
.pub-numbering-locked strong { color: #7a5a10; }
/* "Not ready to publish" line above a container's contents table - what is
   still in review and what is still waiting on usage permission, each a link
   that filters the table down to it. Quieter than .pub-numbering-locked
   beneath it: that one explains why controls have disappeared, this one is a
   to-do count, and two loud bars stacked would read as two problems. */
.pub-loose-ends {
  margin: 0 0 0.9rem; padding: 0.5rem 0.8rem; border-radius: 5px;
  /* --paper, not --bg. There is no --bg in this file: .publish-rights-block
     asks for one and has therefore been transparent since it was written,
     which is easy to copy and impossible to see. */
  background: var(--paper); border: 1px solid var(--border);
  font-size: 0.88rem; color: var(--ink);
}
.pub-loose-ends a { font-weight: 600; }
/* The contents table's LOOSE-END MARKERS - "In Review" and its siblings, and
   "Permission outstanding" - given one look of their own rather than the
   shared .status-pill palette and .rights-outstanding amber (user,
   2026-08-20). Three reasons, all from the table rather than from taste:

   - At the shared size, "Permission outstanding" wrapped onto a second line
     inside a narrow cell and collided with the creator line beneath it.
   - In THIS table the two markers mean one thing - "this is what is holding
     the book back" - so they should read as one thing. The per-status colours
     say which stage a work is at, which is what the work's own page and the
     Not-yet-numbered Status column are for; here the label already says it.
   - Pink on red, because the row is a to-do rather than a state.

   `data-status` keeps the exact status on the element for anything that needs
   to tell them apart. The shared pills are untouched, so the work page, the
   page view, the lists and the agreement screens look exactly as they did. */
.status-pill.pub-flag-pill,
.rights-pill.pub-flag-pill {
  font-size: 0.6rem; padding: 0.05rem 0.4rem; letter-spacing: 0.02em;
  white-space: nowrap; background: #f3d9d9; color: var(--error);
}
/* ---- non-production banner ---------------------------------------------
   Shown only where HYMNAL_ENV_LABEL is set (tests/run_scratch_server.py sets
   it; production sets nothing). A full-width bar, unmissable on arrival and
   pinned to the top of the window wherever the reader scrolls to. It is the
   only marker: a chip under the wordmark said the same thing again, and went
   (user, 2026-10-02: "it's redundant to the 'test environment' banner"). */
.env-banner {
  position: sticky; top: 0; z-index: 70;
  background: repeating-linear-gradient(135deg, #7a2f2f, #7a2f2f 12px, #6b2828 12px, #6b2828 24px);
  color: #fff; text-align: center; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; padding: 0.3rem 0.8rem;
}
@media print { .env-banner { display: none; } }

/* ---- publication/recording metadata ------------------------------------
   Two surfaces, one feature: the "About this publication/recording" card at
   the top of a container's contents view, and the Notes/Performers blocks at
   the foot of the page/track view's top card. */

/* The About card's own disclosure - the last one of its kind on this page,
   now that the landing page's section headings are gone with the landing
   page itself. Its summary carries a count line as well as the title, so it
   is legible while shut: a control that opens onto something unlabelled is
   worth less than the space it takes. It always starts closed (user,
   2026-08-20) so it never sits between the reader and the contents. */
.pub-about-disclosure > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 0.5rem 0.9rem; flex-wrap: wrap;
}
.pub-about-disclosure > summary::-webkit-details-marker { display: none; }
.pub-about-disclosure > summary::before { content: '▸'; color: var(--muted); font-size: 0.8rem; }
.pub-about-disclosure[open] > summary::before { content: '▾'; }
.card .pub-about-disclosure h2 { margin: 0; padding: 0; border-bottom: none; display: inline; }
.pub-about-summary-counts { font-size: 0.85rem; }
.pub-about-body { margin-top: 1rem; }
.pub-about-heading {
  font-size: 0.85rem; margin: 1.4rem 0 0.35rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}
/* What the credits list is, as a few short bullets rather than a paragraph
   (user, 2026-10-13: "trim them down and prefer bullet points instead of long
   text"; spec 355). */

/* One credit per row, as a grid rather than a table: every row is its own
   <form> (so one Save posts one person), and a form cannot span table cells
   without scattering `form=` attributes across every input. The four content
   columns share one track list with the header row above them, so the two
   line up despite being different elements. */
.pub-credit-list { display: flex; flex-direction: column; gap: 0.35rem; }
/* Grip | the row itself. A GRID, not a flex row, so the heading and every
   credit put those two in the same two places - with flex, a row whose
   controls happened to be narrower stole the difference and its columns
   drifted. The second track is 1fr and carries the field grid below. */
/* The grip column is a FIXED 1rem, not `auto`. The grip carries a negative
   margin to widen its hit area, so `auto` measured its margin box - 9.6px on a
   credit row against 16px on the heading and add rows, which put their columns
   6px out of step. A fixed track cannot be talked out of its width. */
.pub-credit-row {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0.5rem;
}
/* The grip column exists only where somebody may drag. A viewer gets no grip,
   and a column reserved for one nothing uses would put every value one column
   to the left of the heading naming it. */
.pub-credit-list-grips .pub-credit-row { grid-template-columns: 1rem minmax(0, 1fr); }
/* A recording's list has its Tracks column only for somebody who may edit,
   so it always has the grip column too. */
.pub-credit-list-tracks .pub-credit-row { grid-template-columns: 1rem minmax(0, 1fr); }
/* Banding, so a five-column row reads across cleanly. The whole row is banded,
   including the grip, so a row is one visual object rather than a reading with
   a loose control beside it.

   An OPEN row wins over its band - it is the stronger state, and a banded row
   that opened would otherwise be told apart from an unbanded open one only by
   a shade. Same for hover. */
.pub-credit-row-band { background: var(--paper); border-radius: var(--radius); }
.pub-credit-row { padding: 0.15rem 0.2rem; }
.pub-credit-row > .pub-credit-summary { min-width: 0; }
/* Only the grip column exists when nobody may edit, so a viewer's list is not
   indented by a control they do not get. */
.pub-credit-grip {
  width: 1rem; flex: 0 0 auto; align-self: center;
}
/* A CATEGORY OF ONE ROW DRAWS NO GRIP (user, 2026-10-24: "Should drag handles exist when only one row appears
   within a category?"): a credit is dragged only within its category. Hidden, its space kept, so the row's
   columns line up with the rest. */
.pub-credit-grip.is-alone { visibility: hidden; cursor: default; }
/* Padded well beyond the glyph: the two dotted columns are only 16x14px, which
   is a small thing to catch with a mouse and smaller with a thumb. */
.pub-credit-grip {
  cursor: grab; color: var(--muted); font-size: 0.95rem; line-height: 1;
  user-select: none; padding: 0.45rem 0.1rem; margin: -0.45rem -0.1rem;
  text-align: center;
  /* Two 5px glyphs side by side: with 0.2rem padding the 1rem box held 9.6px and the second wrapped under
     the first, a tall line of six dots (user, 2026-10-24: "why doubled?"). */
  white-space: nowrap;
}
.pub-credit-grip:hover { color: var(--ink); }
.pub-credit-grip:active { cursor: grabbing; }
.pub-credit-row.pub-credit-dragging { opacity: 0.45; }
.pub-credit-list.pub-credit-saving { opacity: 0.6; }
/* ONE track list, shared by the reading of each credit and the read-only
   rendering - so all of them line up despite being different elements. Written
   once here rather than repeated per selector, which is how columns drift into
   different widths. No column-heading row (user, 2026-10-24: "Now these headers
   feel out of place. Are they even needed?"). */
.pub-credit-row-readonly, .pub-credit-summary {
  display: grid;
  /* Role | Name | Note | Edit. NO INSTRUMENT OR PART COLUMN (user, 2026-10-24: "Given that instrument/part names
     now are most often going to fall under a group credit, I wonder if this column can be removed"): the
     instrument reads under the role (.pub-credit-part), and the name keeps the widest column. The last track is
     a FIXED width, not `auto`: with `auto` it sized to each row's own control, and since the content tracks are
     fr units a wider one squeezed them, so the rows put their columns in different places. A pen and a bin fit
     2.6rem, the pair ending at the row's band (.pub-credit-actions). */
  grid-template-columns: minmax(7.5rem, 1fr) minmax(11rem, 1.6fr) minmax(9rem, 1.5fr) 2.6rem;
  gap: 0.4rem; align-items: center; flex: 1; min-width: 0;
}
/* A recording's credits carry one more column, before Edit - how many tracks
   each is on. Declared once for every grid in the list, so each reading and
   the read-only rendering cannot end up with different column counts. */
.pub-credit-list-tracks .pub-credit-row-readonly,
.pub-credit-list-tracks .pub-credit-summary {
  grid-template-columns: minmax(7.5rem, 1fr) minmax(11rem, 1.6fr) minmax(9rem, 1.5fr) 7.5rem 2.6rem;
}
/* The at-a-glance answer to "who is on every track". Only the every-track
   state is a filled pill; a badge on every line would be a column of badges,
   which is the same as no badge at all. */
/* "All 15" is a STATEMENT, not a control (user, 2026-08-20). It carried
   .tag until then, which is the chip style the cross-reference pills use -
   so it looked like something to press and did nothing when pressed. Now it
   just reads, weighted enough to be the at-a-glance answer it is for. */
.pub-credit-alltracks-all { font-weight: 600; white-space: nowrap; }
/* The Tracks column ONLY READS (user, 2026-10-24: "I wonder if this add/remove all function should only exist in
   the edit dialog and this table be information only?"): All 18 tracks, 7 of 18 tracks, No tracks - the figure
   with its word, as the column has no heading - and blank for an album-level role. */
.pub-credit-tracks { font-size: 0.85rem; }
/* A CATEGORY'S HEADING where its credits begin on a recording's list (user, 2026-10-24, approved "yes" with the
   second drawing's style: "the category headers feel like they get lost in the list"): the category's name in
   accent small capitals, on a rule that fills the rest of the line. */
.pub-credit-cat { display: flex; align-items: center; gap: 0.7rem; margin: 1.35rem 0 0.3rem 0.2rem;
  font: 700 0.74rem/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pub-credit-cat::after { content: ''; flex: 1; border-top: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.pub-credit-cat.first { margin-top: 0.5rem; }

/* A recorded credit READS, and Edit is a button that opens the shared dialog
   (user, 2026-08-20). The <details>/<summary> this styled is gone, with the
   editor that used to drop beneath it; .pub-credit-summary is a plain div
   now and keeps only the grid it shares with the heading row above.

   The in-row editor and its arrow marker went too - editing happens in the
   shared dialog, where Remove sits at the far left of the action row, away
   from Save. */
.pub-credit-summary { padding: 0.2rem 0.3rem; }
.pub-credit-summary-name { font-weight: 600; }
/* Each field is one grid cell, whether it holds an input or a printed value. */
.pub-credit-field { display: block; min-width: 0; }
/* A wide list has no captions and no heading row (user, 2026-10-24): the role
   reads muted and first, the name bold, the Tracks figure with its word. Where
   the row stacks, each value takes its caption - a stacked column of unlabelled
   values says nothing about which is the role and which the name. */
.pub-credit-field-label { display: none; }
/* The same 0.3rem side padding each reading carries, so every grid on this
   card is the same width and starts at the same x. It sits inside a
   .pub-credit-row like every editable row, which supplies the rest. */
.pub-credit-row-readonly { padding: 0.15rem 0.3rem; min-width: 0; }
/* THE PEN AND BIN AT THE ROW'S FAR RIGHT, pen then bin (user, 2026-10-24: "the pen and bin can be moved to the
   far right of the row"), under no heading ("this header is not needed"): the bin's box ends at the band's
   edge, past the 0.5rem the row and its reading pad it with. */
.pub-credit-actions { display: flex; gap: 0.1rem; align-items: center; justify-content: flex-end; margin-right: -0.5rem; }
.pub-credit-actions > .inline-form { display: flex; margin: 0; }
.pub-credit-row:hover .ico-btn { opacity: 1; }
/* THREE FRAMED PANELS (user, 2026-10-24, of the venue and the note: "at a glance, these still look like a
   continuation of the album credits"; then "I wonder if people and credits should have the same subtle frame
   around it"): People & credits, then the venue and the note side by side - a book's note alone - each in the
   same subtle frame. A credit stays a banded row inside its frame. */
.pub-about-body { display: flex; flex-direction: column; gap: 1rem; }
.pub-about-panel { border: 1px solid var(--border); border-radius: 10px; background: var(--card); min-width: 0; }
.pub-about-credits { margin-top: 0.4rem; padding: 0.8rem 0.8rem 0.6rem; }
.pub-about-panel:not(.pub-about-credits) { padding: 0.8rem 1.1rem 0.95rem; }
.pub-about-panel .pub-about-heading { margin-top: 0; }
/* People & credits' heading row: the heading, and its "+ Add album credit" at the panel's top right, level with
   it and clear of the column headings below - in the panel it adds to, not in the card's title line, where a
   click would also open or shut the card. On a phone too narrow for both, the button wraps under the heading,
   still above the list. */
.pub-about-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.2rem 1rem; margin: 0 0 0.2rem; padding-left: 0.3rem; }
.pub-about-panel-head > .pub-about-heading { margin: 0; line-height: 2.2rem; }
/* A SMALL FILLED PILL (user, 2026-10-24: "the button is big and crowds the column headers - can it be shrunk, or
   made into a pill style button instead?"). The List View's "+ Add hymn" / "+ Add track" is the same pill (user,
   2026-10-24, approving the drawing of its header: "the look somewhat similar, while also being different"). */
.pub-credit-add-top, .lv-add-top { padding: 0.2rem 0.8rem; font-size: 0.8rem; line-height: 1.35; }
/* The credit dialog's actions, at its right. No Remove here: a credit's bin is on its row (2026-10-24). */
.credit-dialog-actions { display: flex; align-items: center; gap: 0.5rem; }
.credit-dialog-spacer { flex: 1 1 auto; }
/* The always-open add ROW these styled is gone (user, 2026-08-20) - see
   .pub-credit-add-top above for the button that replaced it. */
/* The always-open notes textarea these styled is gone (user, 2026-08-20):
   notes are read as prose and edited in a dialog now - see .note-text /
   .note-actions below, and _note_editor.html. */
@media (max-width: 800px) {
  /* Stacked rather than squeezed: at four columns plus controls the inputs
     stop being wide enough to read what is typed in them, which matters more
     than keeping the columns aligned. */
  .pub-credit-row-readonly, .pub-credit-summary,
  .pub-credit-list-tracks .pub-credit-row-readonly,
  .pub-credit-list-tracks .pub-credit-summary { grid-template-columns: minmax(0, 1fr); }
  /* Grip above, then the row - one column, in the order they are read. The
     grip keeps its own line rather than sitting beside a four-line reading it
     no longer aligns with. */
  .pub-credit-row,
  .pub-credit-list-tracks .pub-credit-row { grid-template-columns: minmax(0, 1fr); }
  /* Stacked, a lone row's hidden grip would only be an empty line: nothing lines up with it here. */
  .pub-credit-grip.is-alone { display: none; }
  /* AN EMPTY VALUE IS BLANK (user, 2026-10-24: no dashes for empty cells): stacked, it goes with its caption - a
     caption over nothing would be the clutter the dash was. Wide, its cell stays, so the columns line up. */
  .pub-credit-field.is-empty { display: none; }
  /* Stacked, the pen and bin keep to the row's top right, on the line its grip has to itself. */
  .pub-credit-row { position: relative; }
  .pub-credit-actions { position: absolute; top: 0.1rem; right: 0; margin: 0; }
  .pub-credit-field-label {
    display: block; font-size: 0.72rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.1rem;
  }
  /* A stacked credit is four labelled lines tall, so consecutive ones need a
     boundary or they run together into one column of values. The open row's
     own highlight is not enough - it only tells you where the OPEN one is. */
  .pub-credit-list > .pub-credit-row + .pub-credit-row {
    border-top: 1px solid var(--border); padding-top: 0.6rem; margin-top: 0.2rem;
  }
}

/* Same as .pub-about-notes-form above: the page/track view's own always-open
   notes box went in the same change. */

/* THE PERFORMERS DIALOG AS A TABLE (user, 2026-10-24: a different instrument on different tracks, "more clearly
   handled"): Performer | Role | Instrument or part on this track | Note on this track, the heading kept in view;
   a row's boxes only once it is ticked (an unticked row's are hidden, never cleared); the instrument box's hint
   says what an empty one means and what a typed one stands in for. On a narrow screen a row stacks. */
.ppv-performers-dialog { max-width: 54rem; width: 94vw; }
.ppv-performers-note { font-size: 0.85rem; margin: 0 0 0.6rem; }
.ppv-perf-table { max-height: 30rem; overflow: auto; }
.ppv-perf-head, .ppv-perf-row { display: grid; gap: 0.6rem; align-items: start;
  grid-template-columns: 1.4rem minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 1.2fr); }
.ppv-perf-head { position: sticky; top: 0; z-index: 1; background: var(--card); padding: 0 0 0.3rem;
  border-bottom: 1px solid var(--border); font: 600 0.66rem/1.3 var(--font-sans); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.ppv-perf-row { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.ppv-perf-row:last-child { border-bottom: none; }
.ppv-perf-row > input[type="checkbox"] { margin: 0.25rem 0 0; }
.ppv-perf-name { margin: 0; font-weight: 600; color: var(--ink); cursor: pointer; }
.ppv-perf-role { color: var(--muted); }
.ppv-perf-row.is-off .ppv-perf-name { font-weight: 400; color: var(--muted); }
.ppv-perf-row.is-off .ppv-perf-inst, .ppv-perf-row.is-off .ppv-perf-note { display: none; }
.ppv-perf-inst input, .ppv-perf-note input { width: 100%; min-width: 0; margin: 0; }
.ppv-perf-hint { display: block; margin-top: 0.2rem; font-size: 0.74rem; line-height: 1.3; color: var(--muted); }
.ppv-perf-hint b { font-weight: 600; color: var(--ink); }
@media (max-width: 700px) {
  .ppv-perf-head { display: none; }
  .ppv-perf-row { grid-template-columns: 1.4rem minmax(0, 1fr); }
  .ppv-perf-role, .ppv-perf-inst, .ppv-perf-note { grid-column: 2; }
}
/* WHAT SOMEONE PLAYED OR SANG, the role's second line on the About card (credit_part_line; user, 2026-10-24, of
   "Organ" under "Accompanist": "This feels like it gets lost"): the same size as the role and in ink, every
   instrument as an equal - "Organ, Piano" - and under the Tracks figure, where there are two or more, a small line
   counting each, "Organ 15 · Piano 3", each one's tracks its hover. */
.pub-credit-part { display: block; font-size: 0.95rem; color: var(--ink); margin-top: 0.1rem; line-height: 1.3; }
.pub-credit-part-counts { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }


/* The recording venue block in the About card - where it was made and who to
   ring about the room. A definition list rather than a table: it is at most
   five short labelled values and only the ones that are filled in render, so a
   table's empty cells would be most of it. */
.pub-venue { margin: 0 0 1.2rem; }
.pub-venue-name { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.4rem; }
.pub-venue-name strong { font-size: 1.02rem; }
.pub-venue-fields {
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 0.9rem; margin: 0; font-size: 0.9rem; max-width: 60ch;
}
.pub-venue-fields dt { color: var(--muted); }
.pub-venue-fields dd { margin: 0; }
/* A recording's venue and its notes SIDE BY SIDE, venue left (user,
   2026-10-13: "move the notes to the right of the recording venue"; spec 355):
   two columns while each can have 20rem, one under the other below that - a
   phone, or a narrow window. A grid that decides for itself rather than a
   container query: containment would make a column the containing block of
   the note dialog's fixed overlay, and the dialog would open inside it. */
/* Each column a framed panel of its own, the two the same height. */
.pub-about-pair {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem; align-items: stretch;
}
.pub-about-col { min-width: 0; }

/* A note, read as prose and edited in a dialog (_note_editor.html, used by the
   About card and by the page/track view). The always-open textarea these
   replaced sat there on every page, on the assumption that whoever opened it
   had come to write - which is not what a contents page is for. */
.note-text { margin: 0 0 0.6rem; max-width: 80ch; }
.note-actions { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.4rem; }
.note-actions .inline-form { display: inline; }
/* A PANEL'S PEN (AND BIN) AT ITS TOP RIGHT, on its heading's line (user, 2026-10-24, of the note's pen and bin
   under its text: "this placement feels odd"; then "move it to the top right for the recording venue as
   well"): the venue's pen and the note's pen and bin, where + Add album credit sits on People & credits. Full
   on the panel pointed at. Add note and Add venue, where there is nothing yet, stay words. */
.pub-about-panel { position: relative; }
.pub-about-panel > .pub-panel-corner, .pub-about-panel > .note-actions-icons { position: absolute; top: 0.68rem; right: 0.7rem; margin: 0; }
/* NOTHING YET: "+ Add note" / "+ Add venue", the small outlined pill, in the pen's place on the heading's line, and
   no sentence saying there is none (user, 2026-10-24: "the hint text itself looks like a note instead of a hint"
   - drawn, then "yes"): the panel is its heading alone. */
.pub-about-panel > .note-actions-add { position: absolute; margin: 0; }
.pub-about-panel > .note-actions-add, .pub-about-panel > .btn-pill-outline.pub-panel-corner { top: 0.62rem; right: 0.75rem; }
.pub-about-panel:not(.pub-about-credits):not(:has(> .note-text, > .pub-venue)) > .pub-about-heading { margin-bottom: 0; }
.pub-about-panel:not(.pub-about-credits):hover .ico-btn { opacity: 1; }
.note-actions.note-actions-icons { gap: 0.1rem; }
.note-actions-icons .inline-form { display: flex; margin: 0; }
/* A track's (or a page's) note: the same pen and bin, at the top right of its Note row. */
.fx-note-row:has(> .note-actions-icons) { position: relative; padding-right: 3.6rem; }
.fx-note-row > .note-actions-icons { position: absolute; top: -0.2rem; right: 0; }
.fx-note-row:hover .ico-btn { opacity: 1; }
.note-empty { margin: 0; }

/* ---- a track's own recorded audio --------------------------------------
   A thin card above the hymn card on a recording's track view, one line (user, 2026-10-24, of the strip's label
   and sentence: "Can this text be shortened or removed?" - drawn, approved): the player, then "Replace file"
   and the bin - or, with no recording yet, "Upload recording file" - and Track details at the right.
   Deliberately shallow - it sits above the card somebody came to read. */
.ppv-track-audio { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.ppv-track-audio-row {
  display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap;
}
/* The player takes the slack, but stops short of the whole row so Replace file and the bin stay beside it. */
.ppv-track-audio-player { flex: 1 1 18rem; min-width: 12rem; max-width: 34rem; height: 2.2rem; }
.ppv-track-audio-replace { font-size: 0.85rem; white-space: nowrap; }
.ppv-track-audio-remove-form { display: inline-flex; margin: 0 0 0 -0.45rem; }
.ppv-track-audio-row:hover .ico-btn { opacity: 1; }
.ppv-track-audio-row .ppv-track-details-open { margin-left: auto; }
@media (max-width: 700px) {
  .ppv-track-audio-player { flex-basis: 100%; max-width: 100%; }
}
/* The action row that used to sit in a collapsible card's head. It moved into
   the body when that head became a <summary>: a button inside a summary
   toggles the card as well as firing, which is not what any of them mean. */
.card-actions { display: flex; justify-content: flex-end; gap: 0.6rem;
  flex-wrap: wrap; margin: 0 0 0.9rem; }
.card-actions:empty { display: none; }
/* The Full text box: scrolls, and drags taller by the native grabber in its
   bottom-right corner. stanza-resize.js sets the initial height to match the
   Details card beside it, and stops touching it once it has been dragged.
   min-height keeps the grabber reachable on a very short text. */
/* THE FULL TEXT BOX IS GONE (user, 2026-09-16), and its rules with it: it
   scrolled, it could be dragged taller, and it was sized on load to end
   level with the Details card. What it was for - keeping the metadata in
   view down a long hymn - is `.wd-details-sticky` above, which does it
   without shortening the hymn. The longest of the 648 texts is 15 stanzas;
   the note on the old box described "twenty", which this library has never
   held. */

/* The work's audio player, at the foot of the Details card. It sits OUTSIDE
   the definition list: a <dd> can only be as wide as the list's value
   column, which left the controls squeezed into about 60% of the card. */
.wd-audio { margin-top: 0.6rem; }
/* NO BIGGER THAN THE PLAYER IN THE MUSIC CARD (user, 2026-09-26: "This
   audio player is way too big"). The browser's own <audio> control is
   54px tall and this one ran the full 901px of the card, against the
   MIDI player's 38 x 368 a few inches above it - two players for the
   same work at wildly different weights.

   23rem AND 38px ARE .midi-player's OWN numbers, not numbers that
   happen to match: it is `width: 23rem` with 0.25rem padding either
   side of a 30px row. Nothing here restyles the control's insides -
   a native audio element does not allow it - so this is the box only,
   and the browser compresses its buttons to fit. */
.wd-audio audio { display: block; width: 100%; max-width: 23rem;
  height: 38px; }
.wd-audio-label { margin: 0.9rem 0 0; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em; }
/* The intake form's headline: where the work being created will actually go.
   Stated before anything is filled in, because it decides what happens next
   and the two answers - Backlog or In Review - behave completely differently. */
.intake-destination { margin: 0 0 0.9rem; padding: 0.6rem 0.75rem; font-size: 0.95rem;
  border-left: 3px solid var(--accent, #3f51b5); background: var(--bg-alt, rgba(0,0,0,0.03));
  border-radius: 0 4px 4px 0; }
/* The intake form's 'More musical detail' disclosure: fields set on a
   minority of works, kept out of the first screenful without hiding them. */
.intake-more { margin: 0.4rem 0 0.2rem; }
.intake-more > summary { cursor: pointer; font-size: 0.88rem; color: var(--muted);
  padding: 0.2rem 0; }
.intake-more > summary:hover { color: var(--fg); }
.intake-more[open] > summary { margin-bottom: 0.45rem; }
/* Browse-list pager. Sits under the table; the count line is the part that
   answers 'how much is there', which matters more than the arrows. */
.list-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem;
  justify-content: space-between; margin: 1.1rem 0 0.4rem; }
.list-pager-count { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.9rem; }
.list-pager .list-pager-count { margin: 0; }
/* THE STEPPER, one line: four round arrows, the page box and "of 61" fit a phone's width. */
.list-pager-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.5rem; margin: 0; }
.list-pager-where { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
/* A failed search, with its ways out. The offers are the point, so they get
   normal text weight and spacing rather than being tucked under the notice. */
.search-recovery { text-align: left; display: flex; flex-direction: column; gap: 0.55rem; }
/* ...flush with the page and close under the count line, as results sit; its closest works spaced by the
   block's own gap (the user, 10/31: "There's a lot of space here"). */
.empty-state.search-recovery { padding: 0 0 1.5rem; }
.search-recovery > .card { margin-bottom: 0; }
.recovery-line { margin: 0; }
.recovery-words { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.1rem 0 0; }
/* A word that matches nothing is shown, not hidden - it is the answer to
   'why did this find nothing' - but it is not a link, because there is
   nowhere for it to go. */
.recovery-nil { opacity: 0.55; cursor: default; }
/* Page-size chooser, beside the pager. The current size is not a link to where you already are. */
.list-pager-size { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
/* THE PAGER AS THE PAGE VIEW'S STEPPER (user, 2026-10-25, of the works list's row: "this part feels odd - should
   it get the same treatment as a publication/recording header nav buttons, etc?" - drawn as r136, "yes" on
   every list). THE SIZE one pill, the band's List view | Page view switch's shape (.pub-view-switch), the size in
   force filled. THE ARROWS the Page view's (.ppv-step): round, outlined, faded and inert at an end, drawn rather
   than typed so they sit at the circle's centre - First and Last two chevrons, Previous and Next one; the glyph
   stays in the markup for a reader without styles. THE PAGE in a box between them, Enter goes there. Nothing
   filled but the size in force: a filled Next read as a chosen option. Every control the band's one height. The
   box sets only what the base input rule (0,7,1) leaves alone - its size and its centred number. */
.segmented.pager-sizes { box-sizing: border-box; height: var(--pub-ctl-h); margin: 0;
  border-color: var(--border-strong); background: var(--card); }
.segmented.pager-sizes > * { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem;
  padding: 0 0.7rem; font-size: 0.88rem; }
.pager-stepper { font-size: 0.9rem; color: var(--muted); }
.pager-stepper label { margin: 0; font: inherit; color: inherit; }
.pager-stepper input[data-pager-page] { width: 3.3rem; height: var(--pub-ctl-h); margin: 0; text-align: center; }
.pager-step { box-sizing: border-box; flex: 0 0 auto; width: var(--pub-ctl-h); height: var(--pub-ctl-h);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid rgba(122, 59, 46, 0.45); background: var(--card); color: var(--accent); font-size: 0; line-height: 1;
  text-decoration: none; }
a.pager-step:hover, a.pager-step:focus-visible { background: rgba(122, 59, 46, 0.08); border-color: var(--accent); text-decoration: none; }
.pager-step.is-end { opacity: 0.35; cursor: default; }
.pager-step::before, .pager-first::after, .pager-last::after { content: ""; width: 0.42rem; height: 0.42rem;
  border-left: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; }
.pager-prev::before { transform: translateX(0.1rem) rotate(45deg); }
.pager-next::before { transform: translateX(-0.1rem) rotate(-135deg); }
.pager-first::before, .pager-first::after { transform: translateX(0.2rem) rotate(45deg); }
.pager-last::before, .pager-last::after { transform: translateX(-0.2rem) rotate(-135deg); }
.pager-first::after, .pager-last::after { margin-left: -0.12rem; }
/* The List View's and Cross-reference's Go to box and Order menu, the same height in the same row. */
.lv-pager .lv-goto input, .lv-pager .lv-order select { height: var(--pub-ctl-h); }
/* ...and there the size and the stepper are one group at the right: past the width, they take the next line
   together rather than the stepper alone. */
.lv-paging { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-left: auto; }
/* A NARROW PHONE (2026-10-26, "yes" to the fix): the stepper's four round steps, its box and "of 13" were
   340-348px against a 320px phone's 272px column, and the list scrolled sideways. Below 26rem the steps and the
   box shrink a little and "Page" leaves the eye - not the screen reader: the box's aria-label says the page. */
@media (max-width: 26rem) {
  .pager-stepper { gap: 0.3rem; }
  .pager-stepper .pager-step { width: 1.9rem; height: 1.9rem; }
  .pager-stepper input[data-pager-page] { width: 2.7rem; height: 1.9rem; }
  .pager-stepper > label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
/* Global search, BESIDE the wordmark. It was stacked under it for a while:
   on the nav's own row, next to a one-line "Music Library", it pushed the tabs
   onto a second line at 1280px - measured, 1 row without it and 2 with. The
   wordmark is two short lines now, which is where the width came back from,
   so this is measured again rather than assumed each time it moves. */
/* flex-shrink and min-width:0 are what keep it on the phone: beside the
   wordmark at a fixed width it ran off the right edge of a 375px viewport,
   button and all. It gives up width down to 9rem and the block wraps below
   that, which is the old stacked layout arriving when there is genuinely no
   room for anything else. */
/* SHORT ENOUGH TO SHARE THE ROW (user, 2026-10-02: "Search bar needs to
   be shortened so it goes on same row as icons"). 16rem at most, and never
   under 9rem - below that a field is a slot, not a search box. */
.topsearch { display: flex; align-items: center; gap: 0.4rem;
  flex: 1 1 9rem; min-width: 9rem; max-width: 16rem; }
.topsearch input[type=search] { flex: 1 1 auto; min-width: 0; padding: 0.32rem 0.5rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg); color: var(--fg); font-size: 0.9rem; }
/* THE MAGNIFIER INSIDE THE FIELD (user, 2026-10-02), in place of the
   Search button that stood beside it: the field keeps room for it at its
   right end, and it sits in that room, quiet until it is pointed at. */
.topsearch { position: relative; }
/* WIDTH ZERO, AND IT GROWS TO FILL: a text box's built-in width counts as
   its minimum, and that minimum is what decided the row would wrap rather
   than shorten the field. */
.topsearch input[type=search] { padding-right: 2rem !important; width: 0; } /* !important: the page-wide input rule's seven :not()s outweigh this selector, and its 0.55rem put the clear X under the magnifier (user, 2026-10-23) */
.topsearch-go { position: absolute; right: 0.35rem; top: 50%;
  transform: translateY(-50%); display: inline-flex; padding: 0.1rem;
  background: none; border: 0; color: var(--muted); cursor: pointer; }
.topsearch-go:hover { color: var(--ink); }

/* SCRIPTURE REFERENCES on the work page (2026-09-02). One line per tier -
   Based on / Alludes to / Related - so the strongest claim reads first and a
   reader can stop after it.

   The apocryphal pill is tinted rather than labelled: those books are kept
   separate from scripture throughout this project, and a reader who does not
   care about the distinction should not have to read a badge on every row.
   Its title attribute carries the edition-numbering warning where the book
   has one - 14 of the 15 do. */
/* THE LABEL SITS ABOVE ITS PILLS, not beside them, so a pill that wraps can
   never land under the label - there is nothing to its left to land under
   (user, 2026-09-02).

   Written first as a two-column flex row. That layout put the overflow at the
   container's left edge, beneath "ALLUDES TO", which was the complaint. It is
   also worth recording that the `.scripture-line { display: flex }` rule never
   reached the parsed stylesheet in the preview browser - the bytes were clean
   ASCII, the comment closed properly, the three rules after it all parsed, and
   injecting the identical text applied instantly. Spec section 56 records the
   same unexplained behaviour once before. The stacked design needs no such
   rule, so nothing here depends on resolving it.

   The apocryphal pills are styled IDENTICALLY to the scriptural ones. They
   carried a dashed border briefly; on a page where every other pill is plain,
   the only outlined thing reads as the one being singled out, so a mark meant
   to set them apart emphasised them instead. They are separated by having
   their own labelled row, which distinguishes without ranking. */
.scripture-line { margin-bottom: 0.4rem; }
.scripture-line:last-child { margin-bottom: 0; }
/* THE YEARS ON A HYMN'S LECTIONARY ROW (user, 2026-09-05). Kept whole, and
   set off from the theme beside it - the day dialog separates its facts the
   same way. Scoped rather than defining the app-wide `.nowrap` this row
   could have used: that class is written 11 times across 5 templates and
   defined nowhere, so giving it a rule now would change five other pages'
   wrapping in the same breath. */
/* THE LECTIONARY DAY'S THEME, in the content face (user, 2026-09-11: "this
   should render in a special font to denote the theme is a stored value").
   This page's body is sans and its CONTENT - titles, the hymn text - is serif,
   so the serif face is the distinction the app already draws; the italic says
   the phrase is being quoted from the record rather than written here. */
.lect-work-theme {
  font-family: var(--font-serif); font-style: italic; display: block;
  /* A SIZE DOWN (user, 2026-09-11: "can we shrink this font size a bit - it
     looks too prominent now"). It was the only thing left in the card at body
     size: the pills around it are 0.72rem, the years 0.7rem and the themes and
     absences 0.85rem, so a serif italic at 1rem read as the loudest thing on a
     card of quiet facts. 0.85rem is the size the card's other small text
     already uses; the serif and the italic still say it is quoted. */
  font-size: 0.85rem;
}
/* THE DAY AND ITS YEARS ON ONE LINE, the theme under them (user, 2026-09-11).
   A flex row rather than inline text: the years then sit beside the pill they
   qualify at any column width, and where even that is too narrow they wrap
   UNDER their own pill and above their own theme - still inside the day's own
   block, which is what the gap between blocks is for. */
/* WHICH THEME THE HYMN IS FILED UNDER, beside the pill it belongs to (user,
   2026-09-11). Uppercase and muted, the same device the lectionary row below
   uses for its years, so two adjacent rows say "this qualifies the pill before
   it" the same way. The right margin clears the next pill; the bottom one
   matches .tag's, so a wrapped row of pills keeps its rhythm. */
/* THE DETAILS CARD'S THREE GROUP HEADINGS (user, 2026-09-11). Deliberately
   NOT the uppercase muted device the scripture tiers use one level down
   (BASED ON / ALLUSIONS / RELATED sit INSIDE one of these groups, and two
   labels that look alike at two different levels is worse than none). A small
   serif heading with a hairline over it reads as a level up from them and a
   level down from the card's own <h2>. */
.wd-group {
  margin: 1.15rem 0 0.5rem; padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 600; color: var(--muted);
}
.wd-group-first { margin-top: 0; padding-top: 0; border-top: none; }
/* The note is the only row outside the three groups, so it carries the rule
   that would otherwise have come from a heading it does not have. */
.wd-note-row { margin-top: 1.15rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }

/* WHAT IS NOT THERE, said in words rather than as a dash (user, 2026-09-11).
   Muted and a size down, so an absence is visibly not a value - but present,
   because a row that simply vanished would leave the same doubt it was written
   to remove. */
.wd-absent { font-size: 0.85rem; }

.work-theme { font-size: 0.85rem; }
.work-theme + .work-theme { margin-top: 0.12rem; }
/* THE PRIMARY FIRST AND BOLD, NO TAG (user, 2026-10-24, of the hymn's page: "the primary theme can be bolded and
   appear first, and drop the 'primary' tag") - the way a book's page shows it. Its title says what it is. */
.work-theme.is-primary { font-weight: 700; }

/* THE GAP BETWEEN DAYS HAS TO BEAT EVERY GAP INSIDE ONE, or the grouping the
   block was drawn for stops reading. Measured at 375px, where the Details list
   keeps its two columns and leaves the value column 125px: the pill alone is
   120px, so the years wrap under it - and with 0.5rem between blocks and the
   flex gap inside them, the space WITHIN a day came out at 11px and the space
   BETWEEN two days at 8px, which is the original fault wearing a different
   hat. Row-gap is pulled in tight so a wrapped year hugs its own pill, and the
   block separation is raised well clear of it. */
.lect-work-day + .lect-work-day { margin-top: 0.9rem; }
.lect-work-day-head {
  display: flex; align-items: baseline; column-gap: 0.4rem; row-gap: 0.1rem;
  flex-wrap: wrap;
}
.lect-work-years {
  white-space: nowrap; font-size: 0.7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.scripture-tier { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.scripture-refs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag.scripture-ref { white-space: nowrap; }
/* Scoped to the ROW, not stamped on every pill: the distinction belongs
   to the Apocrypha row, so the pill markup stays identical to a
   scriptural one and nothing has to remember to add a class. */
/* BACKGROUND ONLY. The text stays the same accent brown a scriptural
   citation uses (user, 2026-09-02): the grey ground is enough to tell the
   two apart, and changing the ink as well made these read as disabled
   rather than as a different corpus. 6.64:1 on the grey, against 6.82:1
   on the warm - so they are equally legible and differ only in ground. */
.scripture-apocrypha-row .tag.scripture-ref { background: var(--scripture-apocrypha-bg); }

/* THE PASSAGE BOX. Opened by CLICKING a citation, not by hovering (user,
   2026-09-02): a `title` tooltip can hold a sentence, but not a passage, and
   never appears at all on a touch screen.

   Positioned by script against the pill, so only the look lives here. `width`
   is capped rather than set, so a one-verse quotation does not draw a box the
   width of the card. */
.scripture-passage { position: absolute; z-index: 60; max-width: min(44rem, calc(100vw - 1rem));
  min-width: 15rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 6px 20px rgba(43, 38, 32, 0.16);
  padding: 0.7rem 0.85rem; font-size: 0.86rem; }
.scripture-passage .sp-head { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.35rem; }
.scripture-passage .sp-title { flex: 1 1 auto; line-height: 1.35; }
/* The relation word between the two bold halves stays quiet, so the eye
   lands on the hymn's verse and the passage rather than on 'alludes to'. */
.scripture-passage .sp-title strong { color: var(--ink); }
/* Its x: EVERY DIALOG'S CLOSE X, pinned in the box's top-right corner. */
.scripture-passage .sp-note { color: var(--muted); font-style: italic; margin: 0 0 0.5rem; }
/* The reference sentence sits under the hymn's name as a subtitle. */
.scripture-passage .sp-relation { margin: -0.15rem 0 0.5rem; font-size: 0.78rem; color: var(--muted); }
/* Capped and scrollable, because a whole-book citation runs to 105 verses and
   a box that long is a page, not a note. */
.scripture-passage .sp-text { max-height: 15rem; overflow-y: auto; }
/* TWO COLUMNS: the passage and the hymn's own words, so the reference can
   be judged by reading them against each other (user, 2026-09-02).
   They WRAP rather than shrink - two 13rem columns do not fit a phone,
   and a side-by-side that overflows is worse than one that stacks. */
.scripture-passage .sp-cols { display: flex; flex-wrap: wrap; gap: 0; }
.scripture-passage .sp-col { flex: 1 1 13rem; min-width: 0; }
/* A RULE BETWEEN THEM, not just a gap (user, 2026-09-02). At 0.9rem the
   two header underlines sat close enough to read as one line running the
   width of the box, which made the pair look like a single table rather
   than two texts. */
.scripture-passage .sp-col + .sp-col { border-left: 1px solid var(--border);
  margin-left: 1.1rem; padding-left: 1.1rem; }
/* Stacked on a narrow box the divider has to turn with them: a vertical
   rule down the left of a full-width column separates nothing. */
@media (max-width: 44rem) {
  .scripture-passage .sp-col + .sp-col { border-left: 0; margin-left: 0; padding-left: 0;
    border-top: 1px solid var(--border); margin-top: 0.8rem; padding-top: 0.7rem; }
}
.scripture-passage .sp-colhead { display: flex; align-items: baseline; gap: 0.4rem;
  margin: 0 0 0.45rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--ink);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); }
.scripture-passage .sp-colcount { margin-left: auto; text-transform: none; letter-spacing: 0;
  color: var(--muted); font-size: 0.7rem; }
.scripture-passage .sp-verse { margin: 0 0 0.4rem; font-family: var(--font-serif); line-height: 1.45; }
.scripture-passage .sp-num { font-family: var(--font-sans); font-size: 0.68rem; color: var(--muted); vertical-align: 0.25em; margin-right: 0.15rem; }
.scripture-passage .sp-empty { color: var(--muted); margin: 0; }
.scripture-passage .sp-more { margin-top: 0.4rem; background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.74rem; color: var(--accent); cursor: pointer; }
.scripture-passage .sp-all { margin: 0.4rem 0 0; font-size: 0.74rem; color: var(--muted); }
.scripture-passage .sp-source { margin: 0.5rem 0 0; font-size: 0.7rem; color: var(--muted); }
.scripture-passage .sp-warn { color: var(--accent); }
/* The citation is a <button> now, so it has to be un-styled back into a pill:
   browsers give buttons their own font, border and background. */
button.tag.scripture-ref { border: 0; cursor: pointer; font: inherit; font-size: 0.72rem; line-height: 1.35; }

/* THE PASSAGE PICKER. Four controls on one line that wraps on a narrow
   window; each is a labelled control rather than a bare select, so a screen
   reader announces what it chooses (spec section 43's finding). */
.scripture-picker .sp-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.scripture-picker .sp-controls label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
/* Pushed to the end of the row, so the four controls read left to right
   and the action sits where the eye finishes. */
.scripture-picker .sp-go { margin-left: auto; }
.scripture-picker .sp-hint { margin: 0.5rem 0 0; font-size: 0.8rem; }
.scripture-picker .sp-error { margin: 0.6rem 0 0; }
/* ONE BLOCK PER TIER, ruled off from the one above (user, 2026-09-02).
   A small muted heading with a table butted against it read as one
   uninterrupted list - the eye could not find where "Based on" ended and
   "Allusions" began. The rule and the space do the separating; the heading
   itself only had to stop being a whisper. */
.sb-section + .sb-section { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
/* The result heading carries its own totals, above its rule. */
.sb-heading { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.sb-total { font-size: 0.78rem; font-weight: 400; color: var(--muted); font-family: var(--font-sans); }
.sb-tier { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.86rem; font-weight: 600;
  color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.sb-count { font-size: 0.74rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
/* Fixed widths so every section's table lines up with its neighbours. Left to
   themselves each table sizes to its own content and the columns wander. */
/* A STEP SMALLER THAN BODY TEXT (user, 2026-09-06): the rows ran at body
   size under tier headings set at .86rem, so the table shouted over the
   headings that organise it. */
.sb-table { table-layout: fixed; width: 100%; font-size: 0.9rem; }
/* Passage, Hymn verses, Title, Hymn #, Hymnal (user, 2026-09-02). The
   passage leads because it is what was asked for, its hymn verses sit
   beside it, and the number sits beside the hymnal it belongs to - each
   pair together rather than straddling a column that belongs to neither. */
.sb-table th:nth-child(1), .sb-table td:nth-child(1) { width: 15%; }
.sb-table th:nth-child(2), .sb-table td:nth-child(2) { width: 12%; }
.sb-table th:nth-child(3), .sb-table td:nth-child(3) { width: 36%; }
.sb-table th:nth-child(4), .sb-table td:nth-child(4) { width: 9%; }
.sb-table th:nth-child(5), .sb-table td:nth-child(5) { width: 28%; }
/* A cell holding several passages or several hymnals stacks them, so
   line 1 of Passage reads against line 1 of Hymn verses. */
.sb-line { display: block; }
.sb-line + .sb-line { margin-top: 0.15rem; }
.sb-table th { text-align: left; }

/* The hymnal filter. Checkboxes rather than a multi-select: there are five of
   them, and a multi-select hides which are chosen until you open it. */
.sp-hymnals { border: 0; padding: 0.7rem 0 0; margin: 0.5rem 0 0; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 1rem; }
.sp-hymnals legend { padding: 0; font-size: 0.8rem; color: var(--muted); }
.sp-hymnal { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.84rem; }
.sp-hymnal-actions { display: inline-flex; gap: 0.6rem; margin-left: auto; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 0.8rem; text-decoration: underline; }

/* The hymn-verses button in the browser's results, and the stanzas it opens.
   Styled as a quiet link rather than a pill: the Passage column already
   carries the emphasis in that row. */
.sb-verses { background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  cursor: pointer; text-decoration: underline; }
.sp-stanza { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.sp-stanza-text { font-family: var(--font-serif); line-height: 1.45; white-space: pre-line; }
/* The parenthetical WRAPS rather than forcing the row wider (user,
   2026-09-02). Held on one line it made the Verses control as wide as its
   own note and pushed the button onto a second row; the note running to
   two lines above the box is the better trade. `min-width: 0` is what
   actually lets a flex item shrink below its content - without it the
   label refuses to narrow whatever the wrapping says. */
.sp-label-line { white-space: normal; }
.scripture-picker .sp-controls label { min-width: 0; }
.scripture-picker .sp-controls label:has(input[name="verses"]) { flex: 1 1 11rem; max-width: 22rem; }
/* The button never wraps: it is the row's action and belongs on its line. */
.scripture-picker .sp-go { flex: 0 0 auto; }
.sp-verse-hint { font-size: 0.72rem; color: var(--muted); }

/* One document, two formats: the choice is a pair of submit buttons inside the
   entry rather than two separate rows, so the dialog still reads as a list of
   documents rather than a list of files. */
.doc-choice { margin: 0; }
.doc-formats { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.btn-small { padding: 0.2rem 0.7rem; font-size: 0.78rem; }

/* THE TEMPO READS AS A CAPTION ON THE BUTTON, not as a sentence beside it
   (user, 2026-09-14). It is set to the pill's own size so the two sit as one
   control - "Regenerate MIDI  105 beats a minute" - rather than a small
   button next to body text, which is what made the row look unbalanced.
   Sized from .btn-small deliberately: change one and the other should
   follow, so they are written together. */
.wd-midi-tempo { font-size: 0.78rem; }

/* THE SCRIPTURE REFERENCE DOCUMENT, asked for from the page title's right-hand
   side and chosen inside a dialog. The dialog itself is .modal-overlay /
   .modal-dialog, the same pair the Print dialog uses, so there is one dialog
   look in the app rather than one per page. Only what is particular to this
   one is set here. */
/* AT THE RIGHT, ON WHATEVER LINE IT LANDS (user, 2026-09-06). The subtitle
   beside it is long enough to fill .page-header, which wraps the button
   onto a line of its own - and a wrapped flex item starts at the LEFT.
   margin-left: auto keeps it against the right edge either way. */
.sb-doc-open { white-space: nowrap; margin-left: auto; }
.sb-doc-hymnals { border: 1px solid var(--border); border-radius: 6px;
  padding: 0.6rem 0.8rem; margin: 0 0 0.7rem; display: flex;
  flex-direction: column; gap: 0.35rem; }
.sb-doc-hymnals legend { font-size: 0.8rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0.3rem; }
.sb-doc-hymnal { display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; }
.sb-doc-note { font-size: 0.78rem; margin: 0 0 0.8rem; }
/* Right-aligned, so the two formats sit where a dialog's actions sit. */
.sb-doc-formats { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* BY PASSAGE / BY PERSON. Two submit buttons rather than a dropdown, because
   the choice IS the navigation - one click, and the picker beneath swaps. They
   read as a segmented control, which is what they behave like. */
/* THE SEGMENTED CONTROL, used by the Scripture page's "By passage / By person"
   and by the lectionary's year and view switches (user, 2026-09-05, pointing
   at this very control as the one to match).

   TWO VOCABULARIES, ONE RULE SET. The lectionary's segments are links and a
   span rather than submit buttons, so it uses `.segmented`/`.is-on` - but
   adding a second set of rules that merely LOOKED the same is how two controls
   drift apart. They are the same control and are defined once. */
/* ROUND, AS EVERY BUTTON IS (the button sweep, 2026-10-25), the band's List view | Page view switch's shape; the
   chosen segment keeps its fill - a single-choice switch reads as a switch. */
.sp-modes,
.segmented { display: inline-flex; margin: 0 0 0.8rem; border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden; }
.sp-mode,
.segmented > * { appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.85rem; padding: 0.35rem 0.9rem; color: var(--muted);
  text-decoration: none; white-space: nowrap; }
.sp-mode + .sp-mode,
.segmented > * + * { border-left: 1px solid var(--border); }
.sp-mode:hover,
.segmented > *:hover { background: var(--hover-bg, rgba(0,0,0,0.04)); text-decoration: none; }
.sp-mode-on,
.segmented .is-on { background: var(--accent, #7b2d26); color: #fff; cursor: default; }
.sp-mode-on:hover,
.segmented .is-on:hover { background: var(--accent, #7b2d26); }
/* A STANZA THAT CANNOT BE LINED UP IS OFFERED AND REFUSED, not hidden (user,
   2026-09-11). Its button carries the two counts in a title, so hovering says
   WHY - which is the finding, not an apology for one. Disabled rather than
   absent: a switcher showing stanzas 1 and 3 would leave a reader wondering
   what happened to 2. */
.underlay-switch button[disabled] { color: var(--placeholder); cursor: not-allowed; }
.underlay-switch button[disabled]:hover { background: none; }
.underlay-note { margin: 0.45rem 0 0; font-size: 0.85rem; }
/* CENTRED AND IN RED (user, 2026-09-11). It sits under a row of controls and
   above the engraving, where a left-aligned muted line reads as one more
   caption - and this one is the reason a control is greyed out. `--error` is
   the app's own red rather than a colour of its own. */
.underlay-refused { margin: 0 0 0.6rem; font-size: 0.85rem;
  text-align: center; color: var(--error); }
/* THE SYLLABLE EDITOR. One line to a row, its count beside it, and the meter's
   own target beside that - the three things somebody needs to find the word
   that is wrong. The line is a monospace box because what is being edited is
   the position of a hyphen, and a proportional font hides how close two of
   them are. */
.syllable-row { display: grid;
  grid-template-columns: minmax(0, 1fr) 5.4rem;
  gap: 0.5rem; align-items: center; margin: 0 0 0.35rem;
  /* EVERY ROW CARRIES THE BAND'S GEOMETRY, and only a mismatched one colours
     it in - so marking a row moves nothing, and the boxes stay in a column. */
  padding: 0.2rem 0.45rem; border-left: 3px solid transparent;
  border-radius: var(--radius); }
/* EVERY ITEM NAMES ITS OWN COLUMN. A `display: none` element is not a grid
   item AT ALL, so anything hidden inside the row would shift what follows it
   into the wrong track - which is how the counts came to sit at two different
   x positions when the restore control was a column of its own (measured
   2026-09-11). The control now lives INSIDE the line's own box, so the row has
   two items and both say where they go. */
.syllable-row > .syllable-box { grid-column: 1; min-width: 0; }
.syllable-row > .syllable-tally { grid-column: 2; }
/* THE LINE AND ITS WAY OUT, one on top of the other. */
.syllable-box { position: relative; display: block; }
.syllable-restore {
  position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
  font-size: 0.8rem; white-space: nowrap;
}
/* ROOM FOR IT, so the typing never runs underneath. `!important` because the
   app's base field rule is `input:not(...)` seven times over - (0,7,1) - and
   beats any selector a class can honestly write; the same wall a red border
   hit on this page earlier the same day. Only the row in error pays it. */
.syllable-row-bad input { padding-right: 5.9rem !important; }
.syllable-tally { display: inline-flex; align-items: baseline; gap: 0.3rem;
  justify-self: end; padding: 0.1rem 0.55rem;
  border: 1px solid transparent; border-radius: 999px; }
.syllable-row input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92rem; width: 100%; }
.syllable-count { text-align: right; font-variant-numeric: tabular-nums; }
.syllable-want { font-size: 0.85rem; }
/* A MISMATCHED LINE IS A BAND, not a coloured number (user, 2026-09-11:
   "where there is a mismatch it should be much more apparent"). The count
   alone was two characters at the right-hand edge, in the accent brown this
   page uses for ordinary emphasis - so it read as emphasis rather than as a
   fault, and it was in the least visible place on the row.

   ON THE ROW, NOT ON THE INPUT: the app's own input rule carries seven
   `:not()`s and beats anything reasonable a class can say, so a border set
   there never applied. The row is nobody else's.

   `--error`, the same red the pairing page prints the mismatch in: one fact
   should not be two colours. */
/* AN OUTLINE, NOT A FILL (user, 2026-09-11: "doesn't need pink fill"). The
   pill is the whole of the marking on the row - a tinted band behind it as
   well was the same thing said twice, in a second shade of the same colour. */
.syllable-row-off .syllable-tally { border-color: var(--error); }
/* A LINE WHOSE WORDS CHANGED IS NOT THE SAME FAULT as one that does not come
   to its count: the first cannot be saved at all, the second is a finding.
   Marked on the BOX, because it is the text that is wrong, not the tally. */
.syllable-row-bad input { outline: 2px solid var(--error); outline-offset: 1px; }
.syllable-row-off .syllable-count { color: var(--error); font-weight: 700; }
.syllable-row-off .syllable-want { color: var(--error); }
.syllable-total { font-variant-numeric: tabular-nums; }
/* A STANZA THAT DOES NOT COME TO ITS COUNT - the tune's notes where one is
   named, the meter's own total otherwise - is marked the same way a
   line that does not scan is - look here, not "you are wrong". A hymn may
   depart from its meter; it cannot be written over a stave it does not fit. */
/* A PILL, so a stanza that is out reads down a page of four of them without
   the reader comparing numbers. */
.syllable-total-off {
  color: var(--error); font-weight: 700;
  border: 1px solid var(--error); border-radius: 999px; padding: 0.1rem 0.6rem;
}
/* A COUNT THAT HAS BEEN RULED ON IS NOT AN ERROR (user, 2026-09-13: on the
   accepted table, "this pill should render in gray instead of red"). The
   number is the same and still worth showing - it is what was accepted - but
   red is the colour of something to go and fix, and these rows are the ones
   where somebody decided there is nothing to fix. */
.syllable-total-off.is-settled {
  color: var(--muted); border-color: var(--border);
}
/* AND THE PAGE'S OWN LINE, above the stanzas. Not styled as an alert box: it
   is a measurement, and the stanzas below say the same thing in detail. */
.syllable-alert { margin: 0.6rem 0 0; color: var(--error); font-weight: 600; }
.syllable-actions { margin: 0 0 1rem; }
/* A LINE THAT ONLY SCANS BECAUSE A WORD WAS READ ITS OTHER WAY. Quiet, not
   alarming - nothing is wrong with it - but present, because a reader
   comparing it with the line above has a right to know which is which. */
.syllable-fitted {
  font-size: 0.8rem; color: var(--muted); font-style: italic;
  white-space: nowrap; margin-left: 0.4rem;
}
/* ---- the Syllabication report ---------------------------------------- */
/* THE LINES ARE THE POINT OF THE ROW, so they get the width and everything
   else is narrow enough to read down. The pill is the same one the
   syllabication tool puts on a stanza that is out - one mark for one fact. */
.report-tally { margin: 0.2rem 0 1rem; }
/* THE SECTIONS FOLD (user, 2026-09-12): "These sections should collapse so
   I don't have to scroll a long list to find something." The heading is a
   <summary> now, in the same disclosure language as the reviews dashboard's
   sections - one look for one mechanism - and this is the spacing
   .report-second-head used to give it. */
.report-section { margin-top: 2.4rem; }
.syllable-report-no { white-space: nowrap; text-align: right; }
/* A NUMBER AND ITS BOOK ARE ONE FACT IN TWO CELLS, and a hymn can be in
   several books - so each side has to stay one line per placement or the
   third number ends up beside the second book. The table scrolls sideways
   if that costs width; reading 274 against the wrong hymnal does not. */
.syllable-report-no div, .syllable-report-pub div { white-space: nowrap; }
.syllable-report-no, .syllable-report-pub { vertical-align: top; }
.syllable-report-meter { white-space: nowrap; font-size: 0.85em; }
/* FLOWING TEXT, NOT A FLEX ROW. A flex item goes wholly onto the next line
   or not at all, so in a 349px column the phrase always landed under its
   own count and every entry took two lines. Inline, the phrase carries on
   after the count and wraps into the space that is left. */
.syllable-report-line { margin: 0 0 0.3rem; line-height: 1.75; }
.syllable-report-line > * { margin-right: 0.45rem; }
.syllable-report-line:last-child { margin-bottom: 0; }
.syllable-report-where { white-space: nowrap; font-size: 0.85em; }
/* THE PHRASE IS WHAT THE PAGE IS FOR, and a line broken across three
   rows in the middle of its hyphens cannot be read for the word that
   is wrong - which is the only reason to look at it. */
.syllable-report-line code { font-size: 0.95em; }
.syllable-report-line code span { white-space: nowrap; }
.syllable-report-own { font-size: 0.85em; font-style: italic; }
/* THE SECOND TABLE: not an alarm. A fitted line is correct - it is listed
   so a reader can see the choice, not so they can fix it - so its mark is
   quiet where the mismatch pill is loud. */
.syllable-report-stretch {
  font-size: 0.85em; font-style: italic; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.05rem 0.5rem;
}
/* ...AND THE UNDECIDED ONES ARE LOUDER THAN THAT, because they are work
   rather than a record. Not the mismatch pill either: nothing here is
   wrong, it is unanswered, so it borrows the pill's shape and states its
   own colour rather than the alarm's. It wraps where the stretch mark does
   not - it names two or three words and a count, which is more than fits
   on one line of a narrow column. */
.syllable-report-undecided {
  font-size: 0.85em; font-style: italic;
  color: var(--ink); background: var(--tint, #f3efe7);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 0.05rem 0.5rem;
}

/* THE REASON SITS ABOVE THE BUTTONS, not beside them: it is part of the
   decision being saved, and a field on the same row as Save reads as a
   second action rather than as something the action carries. Full width
   because a sentence is what is wanted, not a word. */
.syllable-why { margin: 0 0 0.6rem; }
.syllable-why label {
  display: block; font-size: 0.85em; color: var(--muted);
  margin-bottom: 0.2rem;
}
.syllable-why input { width: 100%; max-width: 38rem; }
.syllable-reset { margin: 0 0 2rem; }
/* TWO SWITCHERS ON ONE ROW: which score, then which stanza over it. They read
   left to right in the order a reviewer decides them, and wrap onto separate
   lines rather than squeezing when the card is narrow - a segmented control
   that has to shrink stops looking like one. `.segmented` carries its own
   bottom margin, so the gap here is horizontal only. */
/* THE STANZA SELECTOR OVER THE MIDDLE OF THE SCORE (user, 2026-09-25:
   "the stanza selector should also be centered"), with Adjust
   Syllabication still against the card's edge. Three tracks rather than
   a flex row and a `margin-left: auto`: that pushed the buttons hard
   left, because taking the leftover width is what puts something at the
   right - and an empty first track is what balances it. */
.notation-switches { display: grid; align-items: start; gap: 0 1.1rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  /* AND ROOM BEFORE THE MUSIC STARTS (user, 2026-09-25: "a little more
     breathing room between the stanza selector and the first line of
     lyrics/music"). The canvas began at the row's own bottom edge and
     the only air was the 14px the engraving carries above its first
     stave, so the buttons read as part of the score. */
  margin-bottom: 1rem; }
.notation-switches > .underlay-switch { grid-row: 1; grid-column: 2;
  justify-self: center; }
/* STEPPING THROUGH THE STANZAS (user, 2026-09-25). It takes the place
   the rail held, and the rail is hidden by stanza-step.js rather than
   here: with scripting off there would otherwise be no way to choose a
   stanza at all. The two groups read as two questions - whether to write
   words, and which - so they are two pills, at the row's own left and
   its own middle (user: "center the stanza flipper tool, and move the
   'no words' button to the far left"). Placed by the ROW, not inside a
   wrapper of their own: centred on the pair, the flipper sat half the
   width of "No words" right of where it belongs. */
.notation-switches > .stanza-step-none { grid-row: 1; grid-column: 1;
  justify-self: start; }
.notation-switches > .stanza-step-go { grid-row: 1; grid-column: 2;
  justify-self: center; align-items: center;
  /* THE ONE CONTROL ON THIS ROW THAT GETS USED REPEATEDLY (user,
     2026-09-25: "make the stanza flipper tool look more important -
     right now it kind of blends in"). Wearing plain `.segmented` it was
     the same weight as the two switches it sits among, which are set
     once and left; this one is pressed for every verse of every hymn.
     A card of its own against the page, rather than a tint on a tint. */
  background: var(--card); border-color: var(--accent-light, var(--border));
  box-shadow: 0 1px 5px rgba(43, 38, 32, 0.13); }
.underlay-switch-hidden { display: none; }
/* THE RECORD OF DECISIONS ON A PAIRING (user, 2026-09-25). A list of
   verdicts, newest first, each with the reason under it - so the thing
   a reader came for (WHY) sits under the thing that identifies it
   (what, who, when) rather than beside it in a muted line. */
.pairing-decision-list { list-style: none; margin: 0; padding: 0; }
.pairing-decision + .pairing-decision { margin-top: 0.9rem;
  padding-top: 0.9rem; border-top: 1px solid var(--border); }
.pairing-decision-head { display: flex; align-items: center;
  gap: 0.6rem; margin: 0 0 0.3rem; flex-wrap: wrap; }
.pairing-decision-why { margin: 0; }
/* AND ON THE WORK'S OWN CARD, the count alone - a link, because what it
   is telling you is that there is something to read elsewhere. */
.pairing-decision-count { font-size: 0.85rem; }
/* THE DASHBOARD'S OWN TALLY AND ITS PLAIN LIST. Three pills say how
   the library stands before a single row is read. */
.pairing-tally { display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 1.2rem; }
.pairing-plain-list { margin: 0; padding-left: 1.2rem; }
.pairing-plain-list li + li { margin-top: 0.3rem; }
/* WHERE IT APPEARS, IN TWO COLUMNS (user, 2026-09-25): the books on one
   side, the recordings on the other. A plain list rather than a
   definition list, because each side now has a heading of its own and a
   dt/dd pair would be labelling the label. */
.wd-appears { margin-top: 0.2rem; }
.wd-appears .wd-group { margin-top: 0; }
.wd-appears-list { list-style: none; margin: 0; padding: 0; }
.wd-appears-list li + li { margin-top: 0.3rem; }
/* A RECORDING UNDER WHERE IT APPEARS (user, 2026-10-24): its style's icon, then
   the link to its track - "Comfort & Joy, track 6". */
.wd-rec { display: flex; align-items: baseline; gap: 0.45rem; }
.wd-rec .style-icon { align-self: center; color: var(--ink); }
/* THE RELATE FORMS ARE A FALLBACK, not a card (user, 2026-09-25). With
   scripting on, relate-dialog.js borrows the field for its dialog and
   these are two stray buttons - so they are out of the way until then.
   `:has()` rather than `display: none` outright: with no script the
   field is never un-hidden, and a form that cannot be reached at all
   would leave a page with no way to relate anything. */
.wd-relate-form { margin: 0.4rem 0 0; }
.wd-relate-form:has(input[hidden]) { display: none; }
.relate-dialog-body input[type="text"] { width: 100%; margin-top: 0.4rem; }
/* THE COUNT READS AS PART OF THE GROUP, not as a button in it: no
   pointer, and the same line as the arrows either side of it. */
.stanza-step-label { min-width: 8.5rem; text-align: center;
  cursor: default; color: var(--ink); font-weight: 600;
  font-size: 0.95rem; }
/* AND ARROWS YOU CAN AIM AT (user, 2026-09-25: "the arrows need to be
   a bit bigger"). `line-height: 1` because the glyphs are tall for
   their point size - left to the inherited line height they pushed the
   group taller than the switches beside it. */
.stanza-step-go button { min-width: 2.5rem; font-size: 1.3rem;
  line-height: 1; padding: 0.32rem 0.6rem; color: var(--accent); }
.stanza-step-go button[disabled] { color: var(--placeholder);
  cursor: default; }
.stanza-step-go button[disabled]:hover { background: none; }
.notation-switches > .syllable-adjust { grid-row: 1; grid-column: 3;
  justify-self: end; }
@media (max-width: 62rem) {
  /* AND ONE COLUMN WHERE THERE IS NO ROOM FOR THREE. */
  .notation-switches { grid-template-columns: minmax(0, 1fr);
    justify-items: center; }
  .notation-switches > .underlay-switch,
  .notation-switches > .stanza-step-none,
  .notation-switches > .stanza-step-go,
  .notation-switches > .syllable-adjust { grid-row: auto;
    grid-column: 1; justify-self: center; }
}
/* FAR RIGHT, and level with the switchers (user, 2026-09-11). `margin-left:
   auto` takes the whole of the leftover width in a flex row, so the button
   sits against the card's edge and the two switchers stay grouped at the other
   - which says they are the same kind of thing and this is not. The bottom
   margin is `.segmented`'s own, so the row lines up rather than reading as two
   rows that failed to. */
.syllable-adjust { margin: 0 0 0.8rem auto; }
/* ...and in that grid the margin is the grid's job. */
.notation-switches > .syllable-adjust { margin: 0 0 0.8rem; }
/* WIDE ENOUGH FOR TWO LINES (user, 2026-09-04). At 34ch this ran to four
   narrow lines beside two controls and read as a column of scraps. The
   sentence is about 118 characters, so it needs roughly 60 to break once;
   it still shrinks on a narrow window, where the row wraps anyway. */
.sp-person-note { font-size: 0.78rem; align-self: center; max-width: 62ch;
  flex: 1 1 auto; min-width: 0; }
/* The person column repeats only on the first row of each block, so the name
   needs to sit at the top of the run rather than centred in it. */
.sb-people-table td { vertical-align: top; }
.sb-people-table td:first-child { font-weight: 600; }
/* ITS OWN WIDTHS. .sb-table's are fixed and were measured for the passage
   table's columns; inherited here they squeezed Title into three wrapped lines
   while leaving a hand's width of nothing beside Hymn verses. Four columns
   now, since the person moved out of a column and into a heading. */
.sb-people-table th:nth-child(1), .sb-people-table td:nth-child(1) { width: 42%; }
.sb-people-table th:nth-child(2), .sb-people-table td:nth-child(2) { width: 12%; }
.sb-people-table th:nth-child(3), .sb-people-table td:nth-child(3) { width: 12%; }
.sb-people-table th:nth-child(4), .sb-people-table td:nth-child(4) { width: 34%; }
/* THE NAME AS A BREAK ACROSS THE TABLE, ruled and spaced, so a reader can see
   where one person stops. Without it the hymns ran together in one column and
   the name was a word on the first line of a block. Styled like .sb-tier, the
   heading the sections above already use, rather than a look invented here.
   The width rules above are keyed on nth-child, so this row's single cell
   must NOT inherit the first column's width - colspan settles that. */
.sb-people-table .sb-person-row th { width: auto; text-align: left;
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-top: 1px solid var(--border); padding-top: 1rem; padding-bottom: 0.3rem; }
.sb-people-table .sb-person-first th { border-top: 0; padding-top: 0.2rem; }
.sb-people-table .sb-person-row + tr td { padding-top: 0.1rem; }

/* ONE COLUMN when the box holds only the hymn - opened from the people view,
   where there is no passage to set beside it. The two-column rule sizes each
   column for a pair; alone it left the text in a narrow gutter. */
.sp-cols-one .sp-col { flex: 1 1 100%; }

/* The panel opened upward because it would not fit below. Only a marker for
   styling - the position itself is set inline by the script, which is the only
   thing that can know how tall the panel turned out to be. */
.scripture-passage.sp-above { box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.13); }

/* SEARCHING BY PASSAGE. Its own card above the text results, because it is a
   different kind of answer: these hymns were found by what they REFERENCE, not
   by words matching. Looking like the result cards below would blur that. */
.search-citation { margin-bottom: 1rem; }
.search-citation-head { display: flex; align-items: baseline; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 0.6rem; }
.search-citation-head h2 { margin: 0; font-size: 1.05rem; }
.search-citation-list { list-style: none; margin: 0; padding: 0; }
.search-citation-list li { display: flex; align-items: baseline; gap: 0.45rem;
  flex-wrap: wrap; padding: 0.3rem 0; border-top: 1px solid var(--border); }
.search-citation-list li:first-child { border-top: 0; }
.search-citation-list li > a { font-weight: 600; }
/* The relationship sits at the END of the row, pushed right, so the titles
   line up down the left where the eye reads them. */
.search-citation-tier { margin-left: auto; font-size: 0.78rem; white-space: nowrap; }
.search-citation-more { margin: 0.7rem 0 0; font-size: 0.82rem; }

/* Filtering the passage results by relationship. A row of ticks with counts,
   sitting under the heading and above the list it narrows. */
.search-citation-tiers { display: flex; align-items: center; gap: 0.7rem;
  flex-wrap: wrap; margin: 0 0 0.7rem; font-size: 0.85rem; }
.sct-option { display: flex; align-items: center; gap: 0.3rem; }
.sct-count { color: var(--muted); font-size: 0.78rem; }
/* An option that would return nothing stays VISIBLE but disabled: hiding it
   would be indistinguishable from the filter not having that setting. */
.sct-none { opacity: 0.45; }

/* A NUMBER TYPED INTO THE SEARCH BOX (the user, 11/8/2026): the books holding it and the tracks of its words, each
   line ending in its link (templates/search.html, app.search_number_places). Cards of their own above the work
   cards, like the passage card and not of it. A line wraps on a phone - the name onto a second line, the link
   under it - and never pushes the page sideways. */
.search-number { margin-bottom: 1rem; }
.search-number-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.search-number-head h2 { margin: 0; padding: 0; border: none; font-size: 1.05rem; }
.search-number-hymn { margin: 0.9rem 0 0.15rem; font-size: 0.92rem; }
.search-number-from { font-weight: 400; }
.search-number-head + .search-number-hymn { margin-top: 0.2rem; }
.search-number-list { list-style: none; margin: 0; padding: 0; }
.search-number-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.6rem;
  padding: 0.35rem 0; border-top: 1px solid var(--border); }
.search-number-list li:first-child { border-top: 0; }
.search-number-where { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.search-number-list .go-link { margin-left: auto; }

/* 'transpose' under a page view's Musical Key/Mode column (2026-09-03): centred,
   small, and only where the page's placements are editable - see the music row. */
.ppv-transpose { text-align: center; margin-top: 0.3rem; }
.ppv-transpose-open { font-size: 0.72rem; padding: 0.05rem 0.45rem; line-height: 1.4; }
/* PRINTED AGAIN AT THIS NUMBER (user, 2026-10-16): the transpose dialog's list of added keys - a
   row each, the key, what it prints again and Remove - and, on the tune row, the line under what
   is printed again ("in E♭ Major" / "the same arrangement, printed again"). */
.ppv-printed-again { border-top: 1px dashed var(--border); margin-top: 0.9rem; padding-top: 0.7rem; }
.ppv-printed-again-head { font-weight: 600; margin: 0 0 0.4rem; }
.ppv-again-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.45rem; }
.ppv-again-row select { max-width: 100%; }
.ppv-printed-again-notes { font-size: 0.85rem; margin: 0.6rem 0 0; padding-left: 1.1rem; }
/* THE KEY STEPPER (user, 2026-10-16): a half step down, how far and the key it lands on, a
   half step up - templates/_key_stepper.html, static/js/key-stepper.js. The readout keeps one
   width so the arrows do not move under the finger as the words change; at phone width it
   takes the line. */
.key-stepper-field { margin: 0 0 0.2rem; }
.key-stepper-label { display: block; margin: 0 0 0.3rem; }
.key-stepper-wrap { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; }
.key-stepper { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.key-step { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; padding: 0 0.5rem; border: none; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }
.key-step-down { border-right: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
.key-step-up { border-left: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
.key-step:hover:not(:disabled) { background: var(--card-alt); }
.key-step:disabled { color: var(--border-strong); cursor: default; }
.key-step:focus-visible, .key-step-out:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.key-step-out { flex: 1 1 auto; min-width: 14.5rem; padding: 0.4rem 0.75rem; text-align: center; font-size: 0.95rem; line-height: 1.4; white-space: nowrap; }
.key-step-out[aria-disabled] { color: var(--muted); white-space: normal; }
.key-step-key { font-weight: 600; }
.ppv-again-msg { flex-basis: 100%; margin: 0; color: var(--error); font-size: 0.85rem; }
.key-step-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 520px) {
  .key-stepper-wrap { display: flex; width: 100%; }
  .key-stepper { display: flex; flex: 1 1 auto; min-width: 0; }
  .key-step { min-width: 2.75rem; }
  .key-step-out { min-width: 0; white-space: normal; }
}
.fx-roles .fx-again { color: var(--muted); }
/* EACH KEY THE NUMBER PRINTS THE TUNE IN, A SMALL BUTTON THAT DRAWS IT (user, 2026-10-16:
   "When a hymn is transposed, I should be able to render it here both as melody and arrangement
   in either key"): stacked in the Key/Mode cell and marked as a role is (user, 2026-10-16: "the key
   looks way more important") - the key drawn in the accent with the role's bar at its left, the others
   a dotted link - so the key and the role read alike; nothing takes room, so choosing moves nothing. */
.fx-key-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; margin: 0.1rem auto 0; width: max-content; }
.fx-key-pick { position: relative; display: inline-block; padding: 0 0.1rem 0 0.95rem; border: 0; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3;
  white-space: nowrap; color: var(--muted); text-decoration: none; } .fx-key-pick::before { content: ""; position: absolute; left: 0.1rem; top: 50%; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; }
a.fx-key-pick:hover, a.fx-key-pick:focus-visible { color: var(--accent); text-decoration: none; } a.fx-key-pick:hover::before, a.fx-key-pick:focus-visible::before { background: var(--accent-light); }
.fx-key-pick.is-on { color: var(--accent); -webkit-text-stroke: 0.35px currentColor; } .fx-key-pick.is-on::before { background: currentColor; }
/* A KEY CHANGE UNDER ITS KEY (user, 2026-10-16): "→ E Major" under the key button it belongs to, in
   that button's face, size and color, lined up with its words - and no dot, since it is not a choice. */
.fx-key-pick.fx-key-change::before { content: none; }
/* THE ROLES AS THE SAME SMALL BUTTONS (user, 2026-10-16: "should the melody/arrangement be made into bordered
   buttons to make it more clear that they're clickable and to 'elevate' them without increasing their size
   much"): a role that draws, or is drawn, is outlined like a key; the drawn one in the accent, lightly filled. */
.fx-roles a.ppv-k.fx-set-draw, .fx-roles .ppv-k.fx-on { display: inline-block; justify-self: start; padding: 0 0.45rem; border: 1px solid var(--border-strong); border-radius: 0.35rem; line-height: 1.45; text-decoration: none; color: var(--muted); }
.fx-roles a.ppv-k.fx-set-draw:hover, .fx-roles a.ppv-k.fx-set-draw:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--card-alt); text-decoration: none; }
.fx-roles .ppv-k.fx-on { color: var(--accent); border-color: var(--accent); background: var(--card-alt); }
.fx-roles .ppv-k.fx-on::before { content: none; }
/* + Add note, quiet, in the card's lower-left corner where a number has no note (user, 2026-10-16). */
.fx-note-quiet { grid-column: 1 / -1; justify-self: start; text-transform: none; letter-spacing: normal; } .fx-note-quiet .note-empty { display: none; }
.fx-note-quiet .note-actions { margin: 0; }
.fx-note-quiet .note-actions .btn { border: 0; background: none; box-shadow: none; padding: 0.1rem 0; font-size: 0.78rem; color: var(--muted); }
.fx-note-quiet .note-actions .btn:hover, .fx-note-quiet .note-actions .btn:focus-visible { color: var(--accent); background: none; text-decoration: underline; }

/* TYING A ROW TOGETHER ACROSS THE GAP (user, 2026-09-03). The Hymnal column
   repeats the same book on nearly every row, so it is a wide low-information
   space between the Title on the left and the Hymn # on the right, and the eye
   loses the line crossing it.

   Three things, because no one of them is enough: a hairline under every row
   gives the eye a track, alternate shading separates neighbours, and the hover
   highlight follows the line the reader is actually on. */
.sb-table .sb-row > td { border-bottom: 1px solid var(--border); }
.sb-table .sb-row-alt > td { background: rgba(0, 0, 0, 0.022); }
/* A TINT OF THE ACCENT, not more grey (user, 2026-09-03). A grey hover on top
   of grey zebra rows is invisible: the two run into each other and the reader
   cannot tell which line they are on. #7a3b2e at 9% reads as "this row" against
   both the plain and the shaded stripe, and it is the app's own colour rather
   than one invented here. */
.sb-table .sb-row:hover > td { background: rgba(122, 59, 46, 0.09); }
/* The number is what the eye is travelling TO, so it is set solid rather than
   left to look like more of the same grey. */
/* The number is what the eye travels TO, so it is set solid and in
   tabular figures; it is the THIRD column since the swap. */
.sb-people-table .sb-row > td:nth-child(3) { font-variant-numeric: tabular-nums; color: var(--ink); }

/* THE THREE SIGNALS ABOVE ARE SCOPED TO .sb-table, not to .sb-people-table
   (user, 2026-09-04). They were written for a wide row whose eye-track breaks
   crossing a low-information column, and the passage table is that same shape
   - more so now that a hymn's title repeats down it. .sb-people-table also
   carries .sb-table, so it keeps them unchanged. */

/* CENTRED FROM THE SECOND COLUMN ON (user, 2026-09-03). The Title is prose and
   stays left, where the eye starts each line; the three that follow are short
   values of similar width, and centring them gives the row three clear
   waypoints instead of three ragged left edges drifting across the gap.

   The name heading rows are excluded: they span the table and are read as
   headings, so they keep their left edge. */
.sb-people-table th:nth-child(n+2),
.sb-people-table .sb-row > td:nth-child(n+2) { text-align: center; }
.sb-people-table .sb-person-row th { text-align: left; }

/* COLLAPSIBLE SECTIONS AND SUBJECT GROUPS (user, 2026-09-04).
   Closed is the default state of the markup and the stylesheet is what says
   so: a table row's display is `table-row`, never `block`, so hiding one by
   attribute and hoping is the trap spec section 66 records. */
.sb-group:not(.sb-open) .sb-row { display: none; }
.sb-fold:not(.sb-open) > table,
.sb-fold:not(.sb-open) > .sb-empty { display: none; }
.sb-group-toggle, .sb-fold-toggle { display: flex; align-items: center;
  gap: 0.5rem; width: 100%; background: none; border: 0; padding: 0.1rem 0;
  cursor: pointer; font: inherit; color: inherit; text-align: left; }
.sb-group-toggle::before, .sb-fold-toggle::before { content: ""; flex: 0 0 auto;
  width: 0; height: 0; border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .12s; }
.sb-open > .sb-tier > .sb-fold-toggle::before,
.sb-open .sb-group-toggle::before { transform: rotate(90deg); }
.sb-group-toggle:hover .sb-group-name,
.sb-fold-toggle:hover > span:first-of-type { color: var(--accent, #7a3b2e); }

/* THE PLACES OF THE BIBLE, ON A MAP.
   The frame is position:relative and the image fills it, so pins positioned in
   PERCENTAGES sit correctly at any width - which is why the server sends
   fractions rather than pixels. */
.map-card { padding: 0.9rem; }
.map-frame { position: relative; display: block; line-height: 0; }
.map-image { width: 100%; height: auto; border-radius: 4px; }
/* THE TIP MARKS THE SPOT, so the button is anchored by its bottom edge rather
   than its centre - a dot centred on the coordinate would have been half a pin
   further north at every size.

   NO BLANKET LIFT. There was one for a while - every pin on every map nudged
   up ten pixels - because two pins on the Jerusalem plan sat on top of that
   map's own numbered discs. That is now solved where it belongs, by anchoring
   those two pins to the discs themselves (see `anchors` in app.py), so every
   other pin can go back to pointing exactly at its coordinate. */
.map-pin { position: absolute; transform: translate(-50%, -100%);
  appearance: none;
  background: none; border: 0; padding: 0; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; gap: 0.12rem; line-height: 1;
  z-index: 2; }
/* A HOVERED OR OPEN PIN COMES TO THE FRONT, over the per-pin z-index the
   template stacks them with. */
.map-pin:hover, .map-pin-on { z-index: 60 !important; }
/* THE TOOLTIP'S TAIL. Above the tooltip (70) so its base covers the border it
   grows out of - which is what makes the two read as one shape rather than a
   box with a triangle beside it. Its apex reaches the pin's own point. */
/* BEHIND THE TOOLTIP (user, 2026-09-04). Drawn above it, the tail's own drop
   shadow fell ACROSS the tooltip's face - a shadow cast by the thing in front
   onto the thing behind, which is backwards. Behind it, the shadow lands on
   the map where it belongs and the tooltip covers the join. */
.map-beak { position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 65; pointer-events: none; overflow: visible;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.24)); }
.map-beak-fill { fill: var(--card, #fff); }
.map-beak-edge { fill: none; stroke: var(--border); stroke-width: 1.2; }
/* The leader lines sit under every pin and take no clicks. */
.map-leaders { position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: visible; }
/* SOLID, THICK, AND CASED IN WHITE. A dashed hairline at 85% opacity was
   invisible over terrain (user, 2026-09-04): these sheets are brown, green
   and criss-crossed with roads in the same weight. */
.map-leaders line { stroke: #b3261e; stroke-width: 2.4; opacity: 1; }
.map-leaders line.map-leader-casing { stroke: #fff; stroke-width: 5.5;
  opacity: 0.95; }
/* The dot IS the place; the pin above it is only where its handle would fit. */
/* AN OFF-MAP PIN LOOKS LIKE EVERY OTHER PIN (user, 2026-09-04). It was drawn
   hollow to say "not a location", but that read as a different KIND of thing
   rather than as a caveat - and the caveat is already in the tooltip, in
   words. The arrow is what says the place is elsewhere, so it matches too. */
.map-leaders line.map-offline { stroke-dasharray: none; stroke-width: 2.4;
  stroke: #e5231b; opacity: 1; }
.map-offarrow { position: absolute; z-index: 1; width: 0; height: 0;
  border-left: 13px solid #e5231b; border-top: 8px solid transparent;
  border-bottom: 8px solid transparent; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.map-truedot { position: absolute; z-index: 1; width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #b3261e;
  border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.45);
  pointer-events: none; }
/* ONE SIZE, and a large one - 42px, raised twice at the user's asking
   (2026-09-04). Sizing a pin by its hymn
   count read well on the busiest place and left the single-hymn ones too small
   to find; the count is on the label and in the tooltip regardless. */
.map-pin-shape { display: block; width: 42px; height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  transition: transform .12s; }
/* THE COLOUR AND THE OUTLINE ARE THE POINT. These maps are brown, green and
   blue in the same range as the app's own muted accent, so a pin drawn in it
   disappeared into the terrain. A saturated red belongs to nothing on the
   paper, and a white edge separates the pin from whatever is behind it. */
.map-pin-body { fill: #e5231b; stroke: #fff; stroke-width: 2.2; }
.map-pin-eye { fill: #fff; }
.map-pin:hover .map-pin-shape { transform: scale(1.12); }
.map-pin:hover .map-pin-body { fill: #ff4b2e; }
.map-pin-on .map-pin-body { fill: #ff4b2e; stroke-width: 2.8; }
.map-pin-on .map-pin-shape { transform: scale(1.16);
  filter: drop-shadow(0 0 8px rgba(255, 75, 46, 0.95))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55)); }
/* THE PIN'S NAME, raised twice at the user's asking (2026-09-04): it started
   at 0.72rem, which is smaller than any body text on the page, over a busy
   map, and only on screen while hovering. It is now larger than body text,
   because it has to be read at a glance and then goes away again. */
/* THE LABEL IS OUT OF THE BUTTON'S BOX, and takes no clicks (user,
   2026-09-04). In flow it sat ABOVE the pin inside the button, so every pin
   carried an invisible click target the height of its own label - and the pin
   below Galilee covered it. The symptom named the cause exactly: Galilee could
   be clicked "only when coming down from above", because from every other
   direction the neighbour's invisible label got there first. */
.map-pin-label { position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); margin-bottom: 0.15rem; pointer-events: none;
  font-size: 1.12rem; font-weight: 600; color: #1d1d1d;
  background: rgba(255,255,255,0.98); padding: 0.18rem 0.55rem;
  border-radius: 5px; white-space: nowrap; opacity: 0; transition: opacity .12s;
  border: 1px solid rgba(0,0,0,0.22);
  box-shadow: 0 2px 6px rgba(0,0,0,0.32); }
/* THE LABEL GOES WHEN THE TOOLTIP OPENS (user, 2026-09-04). It exists to name
   a pin BEFORE you click it; once the tooltip is open the place is named there
   in larger type, and the label only reached across and sat on the tooltip's
   edge. Hover still shows it - including on the open pin's neighbours - so
   nothing is lost. */
.map-pin:hover .map-pin-label { opacity: 1; }
.map-pin-on .map-pin-label { opacity: 0; }
/* THE COUNT IS THE MAP'S HEADLINE, so it is not the 0.74rem muted note that
   .sb-count is elsewhere (user, 2026-09-04). On a page whose whole point is
   how much is where, "8 places, 196 hymns" is the answer, not an aside. */
.map-head { align-items: flex-start; gap: 1rem; }
.map-head .sb-count { font-size: 1.05rem; font-weight: 600;
  color: var(--ink, #2b2b2b); }
/* NO nowrap HERE. It kept "8 places, 196 hymns" on one line by making the CARD
   wider than the window, and the whole page then scrolled sideways - which the
   responsive rule forbids outright. The head is flex and wraps; the count
   drops under the title on a narrow window, which is what should happen. */
.map-head { flex-wrap: wrap; }
.map-blurb { font-size: 0.82rem; margin: 0.15rem 0 0; max-width: 46rem; }
.map-card + .map-card { margin-top: 1rem; }

/* THE HYMNS, IN A TOOLTIP ON THE PIN (user, 2026-09-04).
   Anchored to the pin's own percentage and lifted clear of it, then nudged
   horizontally by the script when it would otherwise hang off the frame. The
   translate is what centres it; the script only ever adds a margin, so the two
   never fight over the same property. */
/* IT OPENS TO ONE SIDE (user, 2026-09-04). Above the pin, the pin itself and
   its hover label sat on the tooltip's bottom edge - the two things you are
   looking at, overlapping. Beside it, they never meet: the tooltip is centred
   on the pin's height and offset clear of its width. */
.map-pop { position: absolute; z-index: 70; width: min(21rem, 78vw);
  transform: translate(0, -50%); margin-left: 1.7rem;
  background: var(--card, #fff); color: var(--text, #222);
  border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28); padding: 0.7rem 0.8rem 0.6rem; }
/* To the LEFT instead, when there is no room on the right. */
.map-pop-left { transform: translate(-100%, -50%); margin-left: -1.7rem; }
/* WHERE THE TAIL JOINS, THE TOOLTIP HAS NO EDGE. The tail's two slanted sides
   continue the tooltip's top and bottom borders down to the pin, so a border
   here would draw a seam straight across the join and undo the whole effect.
   The corners on that side square off for the same reason. */
.map-pop-tailed:not(.map-pop-left) { border-left-color: transparent;
  border-top-left-radius: 0; border-bottom-left-radius: 0; }
.map-pop-tailed.map-pop-left { border-right-color: transparent;
  border-top-right-radius: 0; border-bottom-right-radius: 0; }
.map-pop-body { max-height: 17rem; overflow-y: auto; line-height: 1.35; }
/* THE CLOSE BUTTON SITS OUTSIDE THE CORNER (user, 2026-09-04). Inside it, it
   shared the top right with the scrolling list's own scrollbar and the two
   overlapped - and a scrollbar cannot be moved out of the way. Out at the
   corner it is clear of the scroll area entirely, and reads as a chip on the
   tooltip rather than a character crowded into its padding. */
/* HIGH ENOUGH TO CLEAR THE SCROLLBAR ENTIRELY. At -0.6rem its lower edge still
   crossed the top of the scrolling list by four pixels - measured, not judged
   by eye, because four pixels is exactly the sort of overlap a screenshot
   argues about. */
.map-pop-close { position: absolute; top: -1rem; right: -0.7rem; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem; border-radius: 50%; padding: 0;
  background: var(--card, #fff); border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); font-size: 1.05rem;
  line-height: 1; cursor: pointer; color: var(--muted, #666); }
.map-pop-close:hover { color: var(--text, #222); border-color: var(--muted, #888); }
/* A gap between the longest title and the scrollbar, so they never touch. */
.map-pop-body { padding-right: 0.35rem; }
.map-place-head h3 { margin: 0; font-size: 0.98rem; }
.map-place-head .muted { font-size: 0.78rem; }
.map-place + .map-place { margin-top: 0.9rem; padding-top: 0.8rem;
  border-top: 1px solid var(--border); }
.map-pop .search-citation-list { margin: 0.3rem 0 0; }
/* A DIVIDED LIST. The summary is the control, so it looks like one: a pointer
   cursor, and enough padding to be an easy target inside a small tooltip. */
.map-group { margin-top: 0.4rem; border-top: 1px solid var(--border);
  padding-top: 0.35rem; }
.map-group:first-of-type { border-top: 0; }
/* IT MUST LOOK LIKE A CONTROL. Without a marker these read as two headings
   and nobody clicks a heading; the default triangle sat outside the tooltip's
   padding and was invisible. An explicit chevron that turns when the section
   opens says "this opens" and says which way it is now. */
.map-group > summary { cursor: pointer; font-weight: 600; font-size: 0.88rem;
  padding: 0.15rem 0; list-style: none; display: flex; align-items: center;
  gap: 0.35rem; }
.map-group > summary::-webkit-details-marker { display: none; }
.map-group > summary::before { content: ""; flex: 0 0 auto; width: 0;
  height: 0; border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .12s; }
.map-group[open] > summary::before { transform: rotate(90deg); }
.map-group > summary:hover { color: var(--accent, #7a3b2e); }
.map-group > summary .muted { font-weight: 400; font-size: 0.8rem; }
.map-group[open] > summary { margin-bottom: 0.1rem; }
.map-pop .search-citation-list li { font-size: 0.85rem; }
/* THE CAVEAT READS AS A CAVEAT: smaller, muted, and italic, so it is clearly
   the map talking about itself rather than another line of content. */
.map-place-note { font-size: 0.76rem; font-style: italic; margin: 0.2rem 0 0;
  color: var(--muted, #666); }
.map-related { font-size: 0.78rem; margin: 0.55rem 0 0; }
.map-pop .map-related .tag { font-size: 0.72rem; padding: 0 0.35rem; }
.map-elsewhere { list-style: none; margin: 0; padding: 0; }
.map-elsewhere li { padding: 0.4rem 0; border-top: 1px solid var(--border); }
.map-elsewhere li:first-child { border-top: 0; }
.map-elsewhere-hymns { font-size: 0.85rem; margin: 0.25rem 0 0; }
/* THEME PILLS. The theme field is no longer a stack of text boxes: the dialog
   is the only way in, and what it leaves behind is one pill per theme in the
   order chosen. Each carries a hidden input, which is what actually submits -
   the pill is the picture of it.

   ORDER IS THE FILING (spec section 94): the first pill is the primary, so the
   pills are draggable and the first is marked. Same drop-target treatment as a
   publication's rows, turned on its side - these flow across, so the marker is
   an inset edge on the left. */
/* The note that says what the ORDER means. Not muted grey: it is the one
   thing on this field a reader cannot work out by looking, and a hint nobody
   reads is the same as no hint. */
.theme-hint { margin: 0 0 0.5rem; font-size: 0.86rem; line-height: 1.4;
  color: var(--ink); border-left: 3px solid var(--accent-light);
  padding: 0.1rem 0 0.1rem 0.55rem; }
.theme-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.theme-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.42rem 0.42rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
  font-size: 0.95rem; cursor: grab; user-select: none;
}
.theme-pill:active { cursor: grabbing; }
.theme-pill:hover { border-color: var(--accent-light); box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
.theme-pill.drag-over { box-shadow: inset 3px 0 0 var(--accent); }
.theme-pill.dragging { opacity: 0.45; }
.theme-pill-name { line-height: 1.2; }
/* The remove is the last thing in the pill: its own small circle, sized in em
   so it tracks the pill's own text. A button, so it is reachable from the
   keyboard, but drawn as a glyph. */
.theme-pill-remove {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.45em; height: 1.45em; border-radius: 50%; padding: 0;
  border: 1px solid var(--border); background: rgba(43,38,32,0.10);
  color: var(--muted);
  font-size: 0.86em; line-height: 1; cursor: pointer;
}
.theme-pill-remove:hover { background: var(--error); border-color: var(--error); color: #fff; }
/* PRIMARY is a property of position, not of the theme, so it is drawn on the
   pill that happens to be first and moves with a drag. */
.theme-pills .theme-pill:first-child { border-color: var(--accent); }
.theme-pill-primary {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: var(--accent); border-radius: 999px;
  padding: 0.1rem 0.4rem; white-space: nowrap;
}
.theme-pills-empty { margin: 0 0 0.5rem; font-size: 0.88rem; }
/* The same line, saying the rule instead, when a save is refused for want
   of a theme (app.theme_required_error). */
.theme-pills-empty.theme-pills-required { color: var(--error); font-weight: 600; }
/* READ ONLY, below an Admin (app.may_change_themes): the hymn's page's own list (.work-theme), one theme to a
   line, the primary first and bold (user, 2026-10-24) - text, not pills, since nothing in it can be pressed. */
.theme-readonly-list .work-theme { font-size: 0.9rem; }
.theme-readonly-note { margin: 0 0 0.5rem; font-size: 0.86rem; }
/* Vivid on purpose: with the text boxes gone this is the only door into the
   field, and a hymn cannot be saved without walking through it. */
.theme-add-btn { background: var(--accent); border-color: var(--accent); color: #fff;
  font-weight: 600; padding: 0.5rem 1.15rem; }
.theme-add-btn:hover { background: #63301f; border-color: #63301f;
  box-shadow: 0 2px 8px rgba(122,59,46,0.32); }
/* THE PROCEDURE DOCUMENTS (/admin/skills). An index beside a reader, because
   these documents cite each other constantly and a reader who has to go back
   to a separate index stops following the citations. */
.skills-layout { display: grid; gap: 1.5rem; align-items: start;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); }
/* minmax(0, 1fr) and never a bare 1fr: a bare one is minmax(auto, 1fr),
   which cannot shrink below its content, so a wide table or code block in
   a document would push the whole page sideways instead of scrolling
   inside itself. test_navigation_all checks every grid in this file. */
@media (max-width: 60rem) { .skills-layout { grid-template-columns: minmax(0, 1fr); } }
.skills-index { position: sticky; top: 1rem; max-height: calc(100vh - 2rem);
  overflow-y: auto; padding-right: 0.4rem; }
.skills-group { margin-bottom: 1.4rem; }
.skills-group h2 { font-size: 0.95rem; margin: 0 0 0.15rem; }
.skills-group-note { font-size: 0.8rem; margin: 0 0 0.5rem; line-height: 1.35; }
.skills-group ul { list-style: none; margin: 0; padding: 0; }
.skills-group li { padding: 0.25rem 0 0.25rem 0.5rem; border-left: 2px solid transparent; }
.skills-group li a { font-size: 0.9rem; }
.skills-current { border-left-color: var(--accent) !important; }
.skills-current a { font-weight: 600; }
.skills-where { display: block; font-size: 0.72rem; }
.skills-path { margin: 0 0 0.8rem; font-size: 0.8rem; }
/* The rendered document. Measured for reading rather than stretched to the
   window: these run to a thousand lines and a full-width line is unreadable. */
.skills-body { max-width: 52rem; line-height: 1.55; }
.skills-body h2 { margin: 1.8rem 0 0.6rem; font-size: 1.35rem; }
.skills-body h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.skills-body h4, .skills-body h5, .skills-body h6 {
  margin: 1.2rem 0 0.4rem; font-size: 0.95rem; }
.skills-body p { margin: 0 0 0.8rem; }
.skills-body ul, .skills-body ol { margin: 0 0 0.9rem; padding-left: 1.4rem; }
.skills-body li { margin-bottom: 0.3rem; }
.skills-body hr { border: 0; border-top: 1px solid var(--border); margin: 1.6rem 0; }
.skills-body blockquote { margin: 0 0 0.9rem; padding: 0.5rem 0.9rem;
  border-left: 3px solid var(--accent-light); background: rgba(43,38,32,0.03); }
.skills-body code { font-size: 0.86em; background: rgba(43,38,32,0.06);
  padding: 0.08em 0.3em; border-radius: 3px; }
/* Wide content scrolls inside itself; the page body never scrolls sideways. */
.md-code { margin: 0 0 1rem; padding: 0.7rem 0.9rem; overflow-x: auto;
  background: var(--ink); color: #f2ede5; border-radius: var(--radius);
  font-size: 0.82rem; line-height: 1.45; }
.md-code code { background: none; padding: 0; color: inherit; font-size: 1em; }
.md-table { border-collapse: collapse; margin: 0 0 1rem; display: block;
  overflow-x: auto; max-width: 100%; }
.md-table th, .md-table td { border: 1px solid var(--border);
  padding: 0.35rem 0.6rem; text-align: left; vertical-align: top;
  font-size: 0.88rem; }
.md-table th { background: rgba(43,38,32,0.04); font-weight: 600; }

/* ---------------------------------------------------------- the lectionary
   (the year page's calendar and List: THE YEAR PAGE, below) */
.lectionary-yearnav { display: flex; gap: .35rem; flex-wrap: wrap; }

/* The three-year cycle, side by side, so a day can be read across. */
.lectionary-cycles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}
.lectionary-cycle { border-left: 3px solid #e6ded3; padding-left: .75rem; }
/* The cycles an imported calendar actually uses are marked, so "which year
   does 2026 read?" is answered on the page rather than by counting. */
.lectionary-cycle-known { border-left-color: #8a6d3b; }
.lectionary-cycle h3 { margin: 0 0 .4rem; font-size: .95rem; }
/* THE LABEL OVER A LIST INSIDE A DAY'S CARDS - "HYMNS". One class rather
   than a rule keyed on where it sits, because the Every year card wanted
   the same label and a descendant selector could not reach it (user,
   2026-09-07); two rules for one label is how the two cards came to look
   different in the first place. */
.lect-sublabel {
  margin: .75rem 0 .25rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b625a;
}
.lectionary-otheryears table { max-width: 32rem; }
/* The day summary shown from a calendar cell. The panels themselves are only
   a carrier for the dialog's contents - never drawn in place, which is what
   `hidden` plus the global [hidden] rule guarantees. */
.lect-pop { display: none; }
.name-check-dialog.lect-day-panel { max-width: 34rem; width: 92vw; }
.lect-day-panel h3 { margin: 0 0 .2rem; }
.lect-day-panel h4 {
  margin: .9rem 0 .25rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b625a;
}
/* Theme first, then the circumstances of this observance.

   SCOPED, for the same reason .lect-pop-more below is: `.name-check-dialog p`
   is a class plus an element - (0,1,1) - and outranked both of these from the
   day they were written. The theme rendered at .92rem rather than 1rem, the
   date at .92rem rather than .82rem, and both carried a 1rem bottom margin
   that belonged to neither. The rules were right and simply never applied,
   which is why the two lines looked alike. */
.name-check-dialog .lect-pop-theme,
.lect-pop-theme,
.lect-theme {
  /* THE THEME IS WHAT THE DAY IS ABOUT (user, 2026-09-05), and it read as one
     more grey line between the name and the date. Semibold, and a step larger
     than the date, makes it second in a three-step ramp - name, theme, then
     the circumstances of this particular observance. Not a colour: the only
     other coloured text in this panel is a link, and this is not one. */
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}
/* ON THE DAY PAGE THE THEME IS THE SUBTITLE (user, 2026-09-06). The rule
   above is sized for the year page's dialog, where the theme is one line
   of a small panel. On the day's own page it sat under a 2rem heading at
   barely body size and read as a caption - 'this theme should be made
   more prominent'. Here it takes the heading's serif face at a size
   between the name and the body, and closes the gap to the name so the
   two read as title and subtitle. `.lect-pop-theme` is untouched: the
   dialog has no 2rem heading for the theme to answer to. */
.lect-theme {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.3;
}
/* THE PERIOD SITS ON THE THEME'S LINE (user, 2026-09-06), with breathing
   space between the two, both on their shared baseline. The row carries
   the spacing that used to be on the theme, so a day without a theme
   still puts its period where the subtitle would be. Wraps only when
   the viewport cannot hold both. */
.lect-day-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.6rem;
  /* Clear of the title block above it (user, 2026-09-07). This used to pull
     itself UP half a rem, to close the gap left by the alias line standing
     between the title and the theme; the alias now sits with the title, so
     the same negative margin crowded the theme against it instead. */
  margin: .9rem 0 2.25rem;  /* room before the first card (user, 2026-09-06, raised twice) */
}
/* THE PERIOD SITS AT THE RIGHT END OF THAT ROW (user, 2026-09-07). It is
   the day's filing, not part of its subtitle, and against the theme's left
   edge it read as a second half of the sentence. Pushed to the far end it
   reads as a label on the row, which is what it is. `margin-left: auto`
   rather than `justify-content: space-between`, so a day with NO theme
   still finds its period at the right rather than jumping to the left. */
.lect-period { margin: 0; margin-left: auto; }
/* THE DAY'S NAME IN THE APP'S BROWN (user, 2026-09-06). Scoped by class to
   this page: every other h1 keeps the ink. */
.lect-day-title { color: var(--accent); }
/* THE HYMN NUMBER COLUMN of the related-hymns table: first, and centered
   (user, 2026-09-06). Narrow, so the title column keeps its width. */
.data-table th.lect-hymnno, .data-table td.lect-hymnno { text-align: center; width: 3.5em; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* THE LECTIONARY DOCUMENTS (user, 2026-09-06). The landing page's toolbar is
   the year selector with the Generate button at the right, on a row of its
   own inside .page-header; the day page's heading row carries Print at the
   right of the name. Both use margin-left:auto, so a wrapped row still
   puts the button at the right edge. */
.lect-toolbar { flex: 1 1 100%; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lect-toolbar .segmented { margin-bottom: 0; }
.lect-doc-open, .lect-print-day { margin-left: auto; white-space: nowrap; }
/* The title with whatever else the day is called under it, then the print
   button ending the row. flex-start, so a title that wraps to two lines does
   not drag the button down the page with it. */
.lect-day-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.lect-day-name { margin-right: auto; }
.lect-day-head h1 { margin: 0; }
.lect-day-alias { margin: 0.2rem 0 0; font-size: 0.88rem; }
.lect-doc-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.8rem 0.2rem; margin: 0 0 0.8rem; }
.lect-doc-form legend { font-size: 0.8rem; color: var(--muted); padding: 0 0.3rem; }
.lect-doc-form .checkbox-label { flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem; margin-bottom: 0.55rem; color: var(--ink); }
/* The option's name stays on the radio's line; its description takes a line
   of its own beneath, indented past the radio (the create dialog's rule). */
.lect-doc-form .checkbox-label .muted { flex: 1 1 100%; font-size: 0.82rem; line-height: 1.35; padding-left: 1.45rem; }
/* WHERE THE HEADER ENDS (user, 2026-09-05). Who the day is, what it is
   about and when it falls are one block; the texts and the hymns are the
   day's contents. The same rule that sets the way out apart at the foot of
   the panel now closes the header at the top of it, so the dialog reads as
   three parts rather than one column of headings. */
.name-check-dialog .lect-pop-when,
.lect-pop-when {
  margin: 0 0 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: #6b625a;
}
/* The first heading sits right under that rule and needs no space of its
   own above it; the second still does. */
.lect-day-panel .lect-pop-when + h4 { margin-top: 0; }
/* The gap either side of a separator on that line, so the date, the period
   and the cycle read as three facts rather than one string. */
.lect-sep { margin: 0 .42em; color: #a89e92; }
/* ROOM BEFORE THE WAY OUT (user, 2026-09-05). `.dialog-actions` carries no
   margin of its own, so Close sat flush against the link above it and the two
   read as one control. Scoped to this panel rather than fixed on the shared
   class: every dialog in the app uses .dialog-actions, and this is a fact
   about the lectionary summary, not about dialogs. */
.lect-day-panel ul.plain { margin: 0; }
.lect-day-panel ul.plain li { margin: .15rem 0; }
/* THE HYMN NUMBER IS A COLUMN (user, 2026-09-05). It began as a spacing
   problem - "328" sat hard against "My soul shall praise You" - and the
   real complaint was alignment: "6", "21" and "430" are different widths,
   so every title started somewhere else. Fixed width, right aligned, and
   tabular figures so the digits themselves line up.

   min-width, not width: the box must hold its place for a hymn with no
   number of its own, and must still grow rather than overflow if a number
   ever runs past three digits.

   LEFT justified (user, 2026-09-05). The titles line up either way - that
   is the fixed box, not the alignment inside it - and ranging the numbers
   left keeps the column's own left edge straight, which is the edge the
   eye follows down a bulleted list. */
.lect-num {
  display: inline-block;
  min-width: 2.1em;
  margin-right: .45rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
/* A LONG TITLE WRAPS BESIDE ITS NUMBER, NOT UNDER IT (user, 2026-09-06).
   A <button> is an atomic box whatever its display - the browser will
   not flow it as inline text - so a title that did not fit on the line
   dropped to the next one as a whole and sat under its number: '330' on
   one line, 'Praise the Lord, each tribe and nation' on the next, reading
   as two rows. Measured before fixing: even `display: inline` on the
   button left it whole, and the one collapsed space after a zero-width
   number was enough to push a column-wide title down.

   So the item carries a hanging indent the width of the number column,
   the number FLOATS back into that indent, and the title is a block:
   every line of the title starts at the indent, and the number sits on
   its first line. The list item stays a list item, so the bullet stays.

   The indent is the number box plus its gap, in the same units, so the
   two cannot drift apart. :has() scopes it to items that actually carry
   a number (day page and year dialog alike) and leaves every other
   plain list untouched. */
li:has(> .lect-num) { padding-left: calc(2.1em + .45rem); }
li:has(> .lect-num) > .lect-num { float: left; margin-left: calc(-2.1em - .45rem); }
/* A TITLE NEVER SPILLS ONTO A SECOND LINE (user, 2026-09-07); it is cut
   short with an ellipsis. In a Year column of the three-year cycle the
   column is about a third of the card, and a wrapped title put its tail on
   a line of its own under the number gutter - which reads as a second
   hymn until you look twice. The same rule the printed document already
   follows, now on the page as well.

   `overflow: hidden` also makes the title a block formatting context, so
   it sits beside the floated number rather than running under it. The
   full title stays in a `title` attribute: a clipped string a pointer
   user cannot read is a real loss, and the hymn's own page is a click
   away for everyone else. */
li:has(> .lect-num) > .lect-hymn {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* THE FOOTER IS ONE ROW (user, 2026-09-05): the way on at the left, the way
   out at the right. The link through to the day page used to sit above the
   Close button in a block of its own, which read as a stray line under the
   hymns rather than as one of the two things you can do here. The rule that
   set it apart now belongs to the whole row.

   flex-end plus `margin-right: auto` on the link, NOT space-between: the day
   page uses this same panel for reading a passage, and there the row holds
   Close alone - which space-between would push to the LEFT. */
.lect-day-panel .dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.lect-day-panel .dialog-actions .lect-pop-more { margin-right: auto; }
/* A passage or a hymn, read inside the day dialog. */
.lect-read {
  margin: .35rem 0 .6rem;
  padding: .5rem .7rem;
  background: #faf7f2;
  border-left: 3px solid #d8cdbd;
  border-radius: .25rem;
  max-height: 16rem;
  overflow-y: auto;
}
.lect-read-head { margin: 0 0 .35rem; font-weight: 600; font-size: .86rem; }
.lect-read-verses { margin: 0; padding-left: 1.6rem; font-size: .86rem; }
.lect-read-verses li { margin: .15rem 0; }
.lect-read-stanza { margin: 0 0 .5rem; font-size: .86rem; line-height: 1.35; }
/* THEY READ AS LINKS, NOT PILLS (user, 2026-09-05). These are buttons because
   a click has to open a passage or a hymn text - a link cannot do that without
   leaving the page - but nothing about them should look like a control. So
   they take the appearance of the text they replaced: a link. */
.lect-ref, .lect-hymn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}
.lect-ref:hover, .lect-hymn:hover,
.lect-ref:focus-visible, .lect-hymn:focus-visible { text-decoration: underline; }

/* Calendar or List, chosen at the top rather than hidden in a <details> at the
   foot of the page. Two links, so no client state and no script.

   A SEGMENTED CONTROL, not two loose buttons: the two are one choice, and the
   selected side has to be obvious at a glance. Joined into a single pill with
   the active half filled. */
/* THE TWO SLIDERS SHARE A ROW (user, 2026-09-05) - year, then view, with room
   to breathe between them. The twelve month-jump buttons that used to sit
   opposite are gone: they anchored within a page you can already see all of,
   and cluttered its top. */
.lectionary-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}
/* The control carries its own bottom margin for the pages that use it alone;
   in this row the row provides the spacing. */
.lectionary-controls .segmented { margin-bottom: 0; }
/* In a dialog the passage IS the content, so it drops the inset panel look and
   takes the room the dialog gives it. */
.lect-read-in-dialog {
  margin: 0;
  padding: 0;
  background: none;
  border-left: 0;
  max-height: 60vh;
}

/* THE LECTIONARY OVERVIEW, version 2 ("Quiet landing, detail on request", user 2026-10-16): one reading card for
   one date (templates/_lectionary_card.html) beside the coming weeks by name only, and a box that finds a day */
/* the church years' spans in the selector, quieter than the label they follow (RULED 2026-10-12) */
.lect-yspan { font-weight: 400; opacity: 0.72; }
.lq { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
/* The two cards share one height (user, 2026-10-16: "can these two cards be the same height?"): the card keeps its
   footer at its foot, the coming weeks keep the find box at theirs. */
.lq > .lq-read, .lq > .lq-index { display: flex; flex-direction: column; }
.lq > .lq-read > .lq-day:last-of-type, .lq > .lq-index > .lq-list { flex: 1 0 auto; }
.lq > .card { margin-bottom: 0; }
/* the card: the label line, each day's name and theme, its texts beside its hymns */
.lq-read { padding: 1.45rem 1.75rem 1.2rem; }
.lq-read:focus { outline: none; }
.lq-read[aria-busy="true"] { opacity: 0.55; transition: opacity 0.12s; }
.lq-when { margin: 0 0 0.45rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lq-when .f { white-space: nowrap; }
.card h2.lq-name { margin: 0; padding: 0; border: 0; font-size: 1.9rem; line-height: 1.15; font-weight: 700; }
.lq-name a { color: var(--accent); text-decoration: none; }
.lq-name a:hover { text-decoration: underline; }
.lq-theme { margin: 0.25rem 0 0; font-family: var(--font-serif); font-size: 1.22rem; color: var(--ink); }
.lq-body { display: grid; grid-template-columns: minmax(11rem, 0.8fr) minmax(0, 1.55fr); gap: 1.6rem; margin-top: 1.05rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.lq-sub { margin: 0 0 0.35rem; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b625a; }
.lq-texts, .lq-hymns { margin: 0; padding: 0; list-style: none; }
.lq-texts li, .lq-hymns li { margin: 0.14rem 0; font-size: 0.95rem; line-height: 1.4; }
/* the numbers are one column, as wide as the widest ("Supp. 1 701"), so every first line starts together */
.lq-hymns { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.8rem; }
.lq-hymns li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.lq-hymns li.lq-nil { display: block; }
.lq-no { color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A number GOES somewhere - the book's Page view at that number - where a title or a passage opens a box here: it
   is a soft pill, which the titles are not (user, 2026-10-16: "can the hymn numbers be subtle pill style buttons?"; "I'd like the number to somehow be
   differentiated so that the different behavior isn't a surprise"). */
a.lq-no { justify-self: start; display: inline-block; padding: 0.02rem 0.6rem; border-radius: 999px;
  background: #f2e9e2; color: var(--accent); text-decoration: none; font-size: 0.86em; line-height: 1.55; }
a.lq-no:hover, a.lq-no:focus-visible { background: #e8d6ca; }
.lq-hymns li { row-gap: 0.15rem; }
.lq-hymns li + li { margin-top: 0.2rem; }
a.lq-no:hover { color: var(--accent); text-decoration: underline; }
.lq-bk { color: var(--muted); font-size: 0.8em; }
.lq-nil { color: var(--muted); font-size: 0.9rem; }
/* two days on one Sunday: an "or" rule (RULED 2026-10-12); separate services: a plain one */
.lq-or { display: flex; align-items: center; gap: 0.9rem; margin: 1.3rem 0 1.15rem; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.lq-or::before, .lq-or::after { content: ""; flex: 1 1 0; border-top: 1px solid var(--border); }
.lq-svc { margin: 1.3rem 0 1.15rem; border: 0; border-top: 1px solid var(--border-strong); }
/* this day in each Year: the label on its own line, the three Years under it (the shown one marked), the day
   page at the line's end */
.lq-years { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1rem; margin: 1.1rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.86rem; }
.lq-lbl { flex: 1 1 100%; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b625a; }
/* Each Year a small tile, the Year above its date (user, 2026-10-16: "This reads as a single row of data"). */
.lq-yrs { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
/* Always three, so they share the row evenly (user, 2026-10-16: "Can we make it look more balanced?"). */
.lq-yrs .lq-yr { min-width: 0; align-items: center; text-align: center; }
@media (max-width: 560px) { .lq-yrs { gap: 0.4rem; } .lq-yrs .lq-yr { padding: 0.3rem 0.3rem; white-space: normal; } .lq-yr-d { font-size: 0.84rem; } }
.lq-yr { display: inline-flex; flex-direction: column; min-width: 8.6rem; padding: 0.32rem 0.7rem 0.36rem;
  border: 1px solid var(--border); border-radius: 6px; background: var(--card); line-height: 1.3;
  white-space: nowrap; text-decoration: none; }
.lq-yr-k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lq-yr-d { font-size: 0.92rem; color: var(--accent); }
a.lq-yr:hover, a.lq-yr:focus-visible { border-color: var(--accent-light); background: #fbf3ee; }
a.lq-yr.is-undated .lq-yr-d { color: var(--muted); }
.lq-yr.is-on { border-color: var(--accent-light); background: #f5ebe4; }
.lq-yr.is-on .lq-yr-d { color: var(--ink); font-weight: 600; }
/* The day's name opens its own page: a quiet chevron says so. */
.lq-name-go { width: 0.62em; height: 0.62em; margin-left: 0.3em; vertical-align: 0.05em; opacity: 0.5; }
.lq-name a:hover .lq-name-go, .lq-name a:focus-visible .lq-name-go { opacity: 1; }
/* the foot: the dates either side, then an Admin's three edit pages */
.lq-foot { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.86rem; }
.lq-step { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 0.4rem 1.2rem; }
.lq-prev, .lq-next { display: inline-flex; align-items: center; gap: 0.6rem; }
.lq-next { margin-left: auto; text-align: right; }
.lq-step-t { color: var(--muted); }
/* The arrows ARE the controls: round buttons at the outside edges. */
.lq-arrow { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--border-strong); border-radius: 50%; background: var(--card); color: var(--accent);
  line-height: 0; text-decoration: none; padding: 0; }
.lq-arrow:hover, .lq-arrow:focus-visible { border-color: var(--accent); background: #fbf3ee; text-decoration: none; }
.lq-edit { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }
.lq-step + .lq-edit { padding-top: 0.55rem; border-top: 1px dashed var(--border); }
.lq-none { margin: 0.9rem 0 0.2rem; }
/* the coming weeks, by name only: weekday, date, the day or days; the shown date softly tinted */
.lq-index { padding: 1.15rem 1.15rem 1.05rem; }
.lq-index h2 { margin-bottom: 0.55rem; }
.lq-list { list-style: none; margin: 0; padding: 0; }
.lq-list a { display: grid; grid-template-columns: 2.1em 3.6em minmax(0, 1fr); column-gap: 0.3rem; align-items: baseline; padding: 0.26rem 0.55rem; border-radius: 4px; color: var(--ink); font-size: 0.88rem; line-height: 1.35; text-decoration: none; }
.lq-list a:hover { background: var(--card-alt); }
.lq-list a:hover .nm { color: var(--accent); }
.lq-list .wd { color: var(--muted); font-size: 0.76rem; }
.lq-list .dt { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lq-list .nms { min-width: 0; }
.lq-list .nm2 { display: block; color: var(--muted); }
.lq-list .nm2 i { font-family: var(--font-serif); }
.lq-list a[aria-current] { background: #f5ebe4; box-shadow: inset 3px 0 0 var(--accent); }
.lq-list a[aria-current] .nm { color: var(--accent); font-weight: 600; }
.lq-list a[aria-current] .dt, .lq-list a[aria-current] .wd { color: var(--ink); }
.lq-turn { margin: 0.45rem 0 0.2rem; padding: 0.18rem 0.55rem; border-radius: 3px; background: var(--card-alt); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* find a day by name: the box, and the days it suggests under it */
.lq-find { margin: 0.95rem 0 0; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.lq-find label { display: block; margin: 0 0 0.35rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b625a; }
.lq-find-box { position: relative; }
.lq-find-box input { width: 100%; font-size: 0.9rem; }
.lq-find-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 3px); margin: 0; padding: 0.25rem 0; list-style: none; background: var(--card); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: 0 8px 22px rgba(43,38,32,0.14); max-height: 19rem; overflow-y: auto; }
.lq-find-list [role="option"] { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.38rem 0.7rem; cursor: pointer; font-size: 0.88rem; line-height: 1.3; }
.lq-find-list [role="option"][aria-selected="true"] { background: var(--card-alt); }
.lq-find-list [role="option"]:hover { background: var(--card-alt); }
.lq-fn { flex: 1 1 auto; min-width: 0; }
.lq-fn b { font-weight: 600; color: var(--accent); }
.lq-fa { display: block; color: var(--muted); font-size: 0.8rem; }
.lq-fw { flex: 0 0 auto; color: var(--muted); font-size: 0.78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lq-find-none { padding: 0.38rem 0.7rem; color: var(--muted); font-size: 0.85rem; }
.lq-find-miss { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; }
/* narrower: the list under the card; a phone: one column in the card, room for a finger in the list */
@media (max-width: 800px) {
  .lq { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}
@media (max-width: 560px) {
  .lq-read { padding: 1.15rem 1.1rem 1rem; }
  .card h2.lq-name { font-size: 1.5rem; }
  .lq-theme { font-size: 1.1rem; }
  .lq-body { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .lq-list a { padding-top: 0.42rem; padding-bottom: 0.42rem; }
}
@media (max-width: 46rem) {
  /* the selector wraps rather than cut its last segments off */
  .lect-toolbar .segmented, .lectionary-controls .segmented { flex-wrap: wrap; }
}
/* THE OTHER LECTIONARY PAGES IN THE OVERVIEW'S LANGUAGE (the redesign, round 3): the year pages' day box and List
   view, and the day page, draw a date's answer as the card does - a number a soft pill to the hymnal, a first line
   or a citation a box, a day's name its own page (templates/_lectionary_parts.html). */
/* a passage or a hymn's words unfolding inside the day box spans the row it opened from */
.lq-hymns li > .lect-read, .lq-texts li > .lect-read { grid-column: 1 / -1; }
/* the day box: one date - its date and Year, then each day as in the card; it scrolls inside itself, Close stays */
.name-check-dialog.lect-day-panel.lect-box { max-width: 42rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.lect-box #lect-day-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.lect-box .lq-when { margin: 0 0 0.45rem; font-size: 0.72rem; }
.lect-box h3.lq-bname { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.lect-box .lq-bname a { color: var(--accent); text-decoration: none; }
.lect-box .lq-bname a:hover { text-decoration: underline; }
.lq-bname a:hover .lq-name-go, .lq-bname a:focus-visible .lq-name-go { opacity: 1; }
.lect-box .lq-theme { margin: 0.15rem 0 0; font-size: 1.05rem; }
.lect-box .lq-body { margin-top: 0.8rem; padding-top: 0.75rem; gap: 1.2rem; grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.5fr); }
.lect-box h4.lq-sub { margin: 0 0 0.3rem; }
.lect-box .lq-or, .lect-box .lq-svc { margin: 1rem 0 0.9rem; }
.lect-box .lq-edit { margin: 0.9rem 0 0; font-size: 0.8rem; }
.lect-box .lq-edit + .lq-edit { margin-top: 0.3rem; }
@media (max-width: 560px) { .lect-box .lq-body { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; } }
/* the day page: an Admin's edit line under the name, a shared Sunday under the theme, the Year whose date comes next */
.lect-day-edit { margin: 0.35rem 0 0; }
.lect-shares { flex: 1 1 100%; margin: 0; font-size: 0.9rem; color: var(--muted); }
.lect-next { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: #f5ebe4;
  color: var(--accent); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  vertical-align: 0.12em; white-space: nowrap; }
/* the day page's hymn lists: the card's pills and first lines; a first line cut short, never wrapped (user, 2026-09-07) */
.lq-hymns-clip li { font-size: 0.92rem; }
.lq-hymns-clip li > .lect-hymn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table td.lect-hymnno a.lq-no { font-size: 0.82em; }
/* THE YEAR PAGE (user, 2026-10-16: the calendar "looks kind of old fashioned and I have to scroll a lot"; then "Can
   we do #3 for the landing page, but when I click on a month, it takes me to the month view, or if I click on a
   specific day it takes me to that day's page?"): the year at a glance, one month, and the List a month at a time
   (templates/lectionary_year.html, static/js/lectionary-year.js). */
/* the heading: the span in one line, and how many dates it holds */
.page-header.lect-head { margin-bottom: 1rem; }
.page-header.lect-head h1 { margin-bottom: 0; }
.lect-head h1 .nw { white-space: nowrap; }
.lect-span-line { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--muted); font-variant-numeric: lining-nums; }
.lect-span-line .lect-sep { margin: 0 0.45em; color: #b9ad9f; }
.lect-year-controls { margin-bottom: 1.1rem; }

/* ---- the year at a glance: small months, no ruled boxes; a date with a day a tile in its season's color ---- */
.yp { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.5rem;
  padding: 0.95rem 1.25rem 1rem; box-shadow: 0 1px 3px rgba(43,38,32,0.05); }
.yp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem 1.7rem; }
.yp-m { min-width: 0; }
.yp-m h2 { margin: 0 0 0.25rem; padding: 0; border: 0; font-size: 0.98rem; line-height: 1.3; }
.yp-m h2 a { color: var(--ink); text-decoration: none; }
.yp-m h2 a:hover, .yp-m h2 a:focus-visible { color: var(--accent); text-decoration: underline; }
.yp-m:target h2 a { color: var(--accent); }
.yp-yr { font-weight: 400; font-size: 0.8em; color: var(--muted); }
.yp-m.is-empty { opacity: 0.5; }
.yp-turn { display: block; margin: -0.1rem 0 0.15rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); }
table.yp-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.yp-cal th { padding: 0 0 0.2rem; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em; color: #6f665c; text-align: center; }
.yp-cal td { padding: 1px; text-align: center; }
.yp-n { display: flex; align-items: center; justify-content: center; height: 21px; border-radius: 6px; font-size: 0.72rem;
  line-height: 1; color: #6f665c; font-variant-numeric: tabular-nums; text-decoration: none; }
.yp-n.is-out { color: #ddd6cc; }
a.yp-n.is-d { position: relative; background: var(--t, #e9e2d6); color: var(--f, #574c40); font-weight: 650; }
a.yp-n.is-d:hover, a.yp-n.is-d:focus-visible, a.yp-n.is-d[aria-expanded="true"] { text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--f, #574c40); outline: none; }
/* MORE THAN ONE DAY ON A DATE: a dot in the corner, never the colour alone */
a.yp-n.is-two::after, .yp-sw-two::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); }
/* the seasons' tints: the common church-year colors, softened to the app's palette - a fill, and its figure */
.ys-advent { --t: #e3e0f1; --f: #463f7c; }
.ys-christmastime { --t: #f5e3a8; --f: #674c08; }
.ys-epiphany-period { --t: #d5ebe5; --f: #22574d; }
.ys-the-sundays-before-lent { --t: #e5e8cf; --f: #4d5626; }
.ys-lent { --t: #ebdae8; --f: #663660; }
.ys-passion-week { --t: #d8bcd2; --f: #4f1f47; }
.ys-eastertime { --t: #fbe7a0; --f: #6a4d00; }
.ys-the-week-after-easter { --t: #f5edcf; --f: #66561f; }
.ys-the-time-of-pentecost { --t: #f4cdbf; --f: #87301d; }
.ys-the-time-after-pentecost { --t: #dce8d0; --f: #33562a; }
.ys-feast { --t: #e9e2d6; --f: #574c40; }
/* the key, in the grid's last place */
.yp-key { min-width: 0; padding-top: 0.15rem; }
.yp-key h2 { margin: 0 0 0.35rem; padding: 0; border: 0; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: #6b625a; }
.yp-key ul { margin: 0; padding: 0; list-style: none; }
.yp-key li { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.2rem; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: #5f564c; line-height: 1.25; }
.yp-sw { position: relative; flex: 0 0 auto; width: 16px; height: 13px; border-radius: 3px; background: var(--t, #e9e2d6); }
.yp-key li.yp-key-two { margin-top: 0.4rem; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.74rem; color: var(--muted); }
.yp-sw-two { background: #f3efe8; }
/* what a tile names when pointed at, and a date's menu of its days - placed by the script under the tile */
.yp-tip, .yp-menu { position: absolute; z-index: 60; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 6px; box-shadow: 0 8px 22px rgba(43,38,32,0.16); text-align: left; }
.yp-tip { max-width: 16rem; padding: 0.45rem 0.65rem 0.5rem; pointer-events: none; }
.yp-tip-when, .yp-menu-when { display: block; margin: 0 0 0.1rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); }
.yp-tip-when .lect-sep { margin: 0 0.35em; }
.yp-tip-nm { display: block; font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.3; color: var(--accent); }
.yp-tip-nm i, .yp-menu .yp-or { color: var(--muted); }
.yp-menu { min-width: 13rem; max-width: 20rem; padding: 0.5rem 0.35rem 0.4rem; }
.yp-menu-when { margin: 0 0.5rem 0.25rem; }
.yp-menu ul { margin: 0; padding: 0; list-style: none; }
.yp-menu li.is-svc { margin-top: 0.15rem; padding-top: 0.15rem; border-top: 1px solid var(--border); }
.yp-menu a { display: block; padding: 0.32rem 0.5rem; border-radius: 4px; font-family: var(--font-serif); font-size: 1rem;
  line-height: 1.3; color: var(--accent); text-decoration: none; }
.yp-menu a:hover, .yp-menu a:focus { background: #fbf3ee; outline: none; }
.yp-menu a:hover { text-decoration: underline; }
.yp-menu a:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-light); }
.yp-menu a:hover .lq-name-go, .yp-menu a:focus .lq-name-go { opacity: 1; }

/* ---- the month strip: the span's months, the one shown filled; lighter than the span selector above it ---- */
.mc-strip { display: grid; grid-template-columns: repeat(var(--n, 13), minmax(0, 1fr)); gap: 0.2rem; margin: 0 0 0.9rem; }
.mc-strip > a, .mc-strip > span { display: block; padding: 0.34rem 0.15rem 0.36rem; border: 1px solid transparent; border-radius: 6px;
  text-align: center; font-size: 0.88rem; line-height: 1.2; color: var(--ink); white-space: nowrap; text-decoration: none; }
.mc-strip > a:hover { background: var(--card-alt); text-decoration: none; }
.mc-strip > .is-on { background: #f5ebe4; border-color: var(--accent-light); color: var(--accent); font-weight: 600; }
.mc-strip > .mc-all { color: var(--accent); }
.mc-strip .mc-y { margin-left: 0.22em; font-size: 0.74em; font-weight: 400; color: var(--muted); }

/* ---- the month card, one head for both views: the arrows say no names (the strip just above does) ---- */
.card.mc-card { padding: 1.05rem 1.25rem 1.1rem; }
.mc-head { display: flex; align-items: flex-start; gap: 1rem; margin: 0 0 0.85rem; }
.card h2.mc-title { margin: 0; padding: 0; border: 0; font-size: 1.62rem; line-height: 1.15; }
.mc-title .lect-month-year { font-size: 0.72em; color: var(--muted); }
.mc-title .lect-span-tag { font-size: 0.74rem; margin-left: 0.85rem; vertical-align: 0.28em; }
.mc-seasons { margin: 0.3rem 0 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mc-seasons .lect-sep { margin: 0 0.4em; color: #b9ad9f; }
.mc-seasons .nw, .ml-name .nw { white-space: nowrap; }
.mc-step { margin-left: auto; display: flex; align-items: center; gap: 0.45rem; padding-top: 0.1rem; }
.lq-arrow.is-off { opacity: 0.35; }

/* ---- the month: a table with weekday headings, Sunday the wide column; an empty day a quiet number, a date with a day a soft chip ---- */
table.mc-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border-bottom: 1px solid var(--border); }
.mc-wd { padding: 0 0.45rem 0.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b625a;
  text-align: left; vertical-align: bottom; }
.mc-wd:first-child { width: 20.53%; } /* Sunday: 1.55 shares of 7.55 */
.mc-c { height: 2.9rem; padding: 0.3rem 0.35rem 0.45rem; border-top: 1px solid var(--border); border-left: 1px solid #f1ebe3;
  vertical-align: top; text-align: left; }
.mc-grid .mc-c:first-child { border-left: 0; }
.mc-c.out { background: #faf8f4; }
.mc-c.off .mc-n { color: #cfc6bb; }
.mc-top { display: flex; align-items: baseline; gap: 0.4rem; min-height: 1.2rem; padding: 0 0.15rem; }
.mc-n { font-size: 0.78rem; color: #8a8078; font-variant-numeric: tabular-nums; }
.mc-c.has .mc-n { color: var(--ink); font-weight: 600; }
a.mc-day { display: block; margin-top: 0.2rem; padding: 0.36rem 0.5rem 0.42rem; border-radius: 6px; border-left: 3px solid var(--accent-light);
  background: #fbf3ee; color: var(--ink); text-decoration: none; }
a.mc-day:hover, a.mc-day:focus-visible { background: #f5e6dc; text-decoration: none; }
a.mc-day:hover .mc-nm, a.mc-day:focus-visible .mc-nm { text-decoration: underline; }
.mc-nm { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.25; color: var(--accent); overflow-wrap: break-word; }
.mc-nm i { margin-right: 0.22em; font-family: var(--font-serif); font-weight: 400; color: var(--muted); }
.mc-th { display: block; margin-top: 0.08rem; font-family: var(--font-serif); font-size: 0.82rem; line-height: 1.28; color: var(--muted); }
.mc-blk { display: block; }
.mc-blk + .mc-blk { margin-top: 0.34rem; }
.mc-blk.svc + .mc-blk.svc { padding-top: 0.32rem; border-top: 1px solid #d9c3b3; }
.mc-mark { display: block; margin: 0 0 0.1rem; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
/* a phone's month: a small grid of dates over the month's days by name (below 640px only) */
.mc-mini, .mc-agenda { display: none; }

/* ---- the List: the same month, each date led by its day's name; the heading and the column labels stick ---- */
.ml-stick { position: sticky; top: var(--lect-stick-top, 0); z-index: 4; margin: -1.05rem -1.25rem 0; padding: 1.05rem 1.25rem 0;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--card); }
.ml-cols, .ml-date { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1.1rem; }
.ml-cols > div, .ml-day { display: grid; grid-template-columns: minmax(0, 17.5rem) 10rem minmax(0, 1fr); column-gap: 1.4rem; align-items: start; }
.ml-cols { padding: 0 0 0.35rem; border-bottom: 1px solid var(--border); }
.ml-cols span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b625a; }
.ml-date { padding: 0.85rem 0 0.9rem; }
.ml-date + .ml-date { border-top: 1px solid var(--border); }
.ml-leaf { margin: 0; padding-top: 0.05rem; text-align: center; line-height: 1.05; }
.ml-wd { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ml-dn { display: block; margin-top: 0.12rem; font-family: var(--font-serif); font-size: 1.8rem; color: var(--ink);
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.ml-name h3.lq-bname { margin: 0; font-size: 1.14rem; line-height: 1.25; }
.ml-name h3.lq-bname a { color: var(--accent); text-decoration: none; }
.ml-name h3.lq-bname a:hover { text-decoration: underline; }
.ml-name .lq-theme { margin: 0.12rem 0 0; font-size: 1rem; line-height: 1.3; }
.ml-name .lq-edit { margin: 0.3rem 0 0; }
.ml-texts { margin: 0.12rem 0 0; padding: 0; list-style: none; }
.ml-texts li { padding-left: 0.9em; text-indent: -0.9em; font-size: 0.88rem; line-height: 1.55; }
.ml-texts .lect-ref { text-indent: 0; }
.ml-hymns { margin: 0.12rem 0 0; padding: 0; list-style: none; }
.ml-hymns li { display: flex; align-items: baseline; gap: 0.55rem; min-width: 0; margin: 0 0 0.18rem; font-size: 0.9rem; line-height: 1.4; }
.ml-hymns li > .lq-no { flex: 0 0 2.9em; padding: 0.02rem 0; text-align: center; font-size: 0.82em; }
.ml-hymns .lect-hymn { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ml-texts .lq-nil, .ml-hymns .lq-nil { display: block; padding: 0; text-indent: 0; font-size: 0.88rem; }
.ml-days > .lq-or { margin: 0.6rem 0 0.55rem; font-size: 0.98rem; }
.ml-days > .lq-or::before { flex: 0 0 1.2rem; }
.ml-days > .lq-svc { margin: 0.7rem 0 0.65rem; border-top: 1px dashed var(--border-strong); }
.ml-month > .lq-turn { margin: 0.55rem 0 0.1rem; }
.mc-card .lq-foot { margin-top: 0.4rem; }
/* the List's foot: there a month's name and its arrow are one link (the overview's dates beside its arrows are not) */
a.lq-prev:hover .lq-arrow, a.lq-next:hover .lq-arrow { border-color: var(--accent); background: #fbf3ee; }
a.lq-prev:hover .lq-step-t, a.lq-next:hover .lq-step-t { color: var(--accent); }

/* ---- narrower: the year at a glance four, then three months a row ---- */
@media (max-width: 1000px) { .yp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem 1.3rem; } }
@media (max-width: 800px) { .yp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- a phone ---- */
@media (max-width: 640px) {
  .lect-year-controls { gap: 0.7rem 0.6rem; }
  /* the span selector: one row that scrolls sideways, opened at the span shown (the year pages only) */
  .lectionary-controls.lect-year-controls > .segmented:first-child { flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lect-year-controls > .segmented:first-child::-webkit-scrollbar { display: none; }
  .lect-year-controls > .segmented:first-child > * { flex: 0 0 auto; }
  .lect-year-controls > .segmented.fade-l { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.6rem); mask-image: linear-gradient(to right, transparent 0, #000 1.6rem); }
  .lect-year-controls > .segmented.fade-r { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 1.6rem); mask-image: linear-gradient(to left, transparent 0, #000 1.6rem); }
  .lect-year-controls > .segmented.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.6rem, #000 calc(100% - 1.6rem), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 1.6rem, #000 calc(100% - 1.6rem), transparent 100%); }
  .page-header.lect-head { margin-bottom: 0.8rem; }
  .lect-span-line { font-size: 0.88rem; }

  .yp { padding: 0.8rem 0.7rem 0.9rem; }
  .yp-grid { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; } /* one month a row, so a date's tile is wide enough to tap */
  .yp-n { height: 26px; font-size: 0.74rem; }
  .yp-key { grid-column: 1 / -1; }
  .yp-key ul { columns: 2; column-gap: 0.9rem; }
  .yp-key li { break-inside: avoid; }

  .mc-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.15rem; }
  .mc-strip > a, .mc-strip > span { padding: 0.28rem 0 0.3rem; font-size: 0.84rem; white-space: normal; }
  .mc-strip .mc-y { display: block; margin: 0; font-size: 0.66rem; }
  .mc-strip > .mc-all { display: flex; align-items: center; justify-content: center; line-height: 1.1; }
  .card.mc-card { padding: 0.85rem 0.85rem 0.9rem; }
  .mc-head { gap: 0.5rem; margin-bottom: 0.7rem; }
  .card h2.mc-title { font-size: 1.28rem; white-space: nowrap; }
  .mc-title .lect-span-tag { margin-left: 0.45rem; }
  .mc-step { gap: 0.35rem; padding-top: 0; }
  .mc-step .lq-arrow { width: 1.9rem; height: 1.9rem; }
  .mc-grid { display: none; }
  .mc-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 0.15rem; margin: 0 0 0.7rem; text-align: center; }
  .mc-mini .h { padding-bottom: 0.2rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; color: #6b625a; }
  .mc-mini > span:not(.h), .mc-mini > a { display: flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; margin: 0 auto;
    border-radius: 50%; font-size: 0.86rem; color: #9a9187; font-variant-numeric: tabular-nums; }
  .mc-mini > a { background: #f2e9e2; color: var(--accent); font-weight: 600; text-decoration: none; }
  .mc-agenda { display: block; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
  .mc-agenda li + li { border-top: 1px solid #f1ebe3; }
  .mc-agenda a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.7rem; padding: 0.55rem 0.2rem; color: var(--ink); text-decoration: none; }
  .mc-agenda .lf { text-align: center; line-height: 1.05; }
  .mc-agenda .lf b { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .mc-agenda .lf span { display: block; margin-top: 0.1rem; font-family: var(--font-serif); font-size: 1.3rem; font-feature-settings: "lnum" 1; }
  .mc-agenda .ag-mark { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
  .mc-agenda .ag-nm { display: block; font-size: 0.94rem; font-weight: 600; line-height: 1.3; color: var(--accent); }
  .mc-agenda .ag-nm i { margin-right: 0.22em; font-family: var(--font-serif); font-weight: 400; color: var(--muted); }
  .mc-agenda .ag-th { display: block; font-family: var(--font-serif); font-size: 0.86rem; line-height: 1.3; color: var(--muted); }
  .mc-agenda .ag-blk + .ag-blk { margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid #d9c3b3; }

  .ml-stick { margin: -0.85rem -0.85rem 0; padding: 0.85rem 0.85rem 0.1rem; border-bottom: 1px solid var(--border); }
  .ml-stick .mc-head { margin-bottom: 0.55rem; }
  .ml-cols { display: none; }
  .ml-date { grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.75rem; }
  .ml-month > .ml-date:first-child { border-top: 0; }
  .ml-day { grid-template-columns: minmax(0, 1fr); row-gap: 0.45rem; }
  .ml-dn { font-size: 1.45rem; }
  .ml-name h3.lq-bname { font-size: 1.06rem; }
  .ml-name .lq-theme { font-size: 0.95rem; }
  .ml-texts { display: flex; flex-wrap: wrap; gap: 0 0.95rem; }
  .ml-texts li { flex: 0 0 auto; max-width: 100%; padding-left: 0; text-indent: 0; white-space: nowrap; }
  .ml-hymns .lect-hymn { white-space: normal; overflow: visible; text-align: left; }
}

/* The exception clause on Admin > Lectionary Dates: a second line under the
   rule's own controls, quieter than them, because it qualifies the rule
   rather than standing beside it (user, 2026-09-06). */
.lect-dates-unless {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--muted, #6b6257);
    white-space: normal;
    max-width: 20rem;
}
.lect-dates-unless select {
    font-size: 0.82rem;
    max-width: 11rem;
}

/* The citing-hymns card shows its first ten rows and offers the rest (user,
   2026-09-07). The count rides in the heading, so the size of the list is
   legible before any of it is read. The button is hidden in the markup and
   revealed by lectionary-more.js, which is what keeps it from appearing with
   nothing behind it. */
.lect-related > table { margin-top: 0.9rem; }
.lect-more { margin-top: 0.9rem; }

/* THE TWO SHORT CARDS AT THE TOP OF A DAY SHARE A ROW (user, 2026-09-07),
   with Every year on the right - which is simply where the second one falls,
   so the markup order and the reading order stay the same thing.

   auto-fit rather than two fixed columns: a day with no every-year texts or
   hymns renders one card, and it should then have the width to itself rather
   than sitting in a half-empty grid. Below the minimum the columns become
   rows on their own. */
.lect-day-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  /* THE SAME 1.5rem A CARD PUTS BELOW ITSELF, in both directions (user,
     2026-09-07). The cards inside give up their own bottom margin - two
     columns of different heights would otherwise sit unevenly above the
     card below - so the ROW carries it instead, and the space above the
     three-year cycle matches the space above every other card. */
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.lect-day-top > .card { margin-bottom: 0; }

/* "Building the document" - shown in the form's place while the server draws
   a long PDF (user, 2026-09-07). The General runs to 95 pages and takes about
   a minute, and a download does not navigate, so the page otherwise shows
   nothing at all and the button reads as broken. */
.lect-doc-busy { padding: 0.4rem 0 0.2rem; }
.lect-doc-busy-line { font-weight: 600; margin: 0 0 0.4rem; }
.lect-doc-dots span {
  animation: lect-doc-dot 1.2s infinite;
  opacity: 0.2;
}
.lect-doc-dots span:nth-child(2) { animation-delay: 0.2s; }
.lect-doc-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lect-doc-dot { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
/* A reader who has asked for less movement gets the sentence and no dots
   moving; the sentence is what carries the meaning. */
@media (prefers-reduced-motion: reduce) {
  .lect-doc-dots span { animation: none; opacity: 1; }
}

/* The year of the cycle, on the year segments (user, 2026-09-07). Quieter
   and smaller than the calendar year beside it: the calendar year is what
   the segment IS, the cycle year is what it reads. */
.segmented .lect-seg-cycle {
  font-size: 0.78em;
  opacity: 0.72;
  font-weight: normal;
  margin-left: 0.15rem;
}

/* The month's own year, on a church-year view where two Januaries appear. */
.lect-month-year { font-size: 0.75em; font-weight: normal; }

/* WHICH YEARS THE PAGE IS SHOWING, beside its heading (user, 2026-09-07).
   Quiet: the heading is the title, this is a caption on it. */
/* BIGGER, AND FURTHER FROM THE TITLE (user, 2026-09-07): at 0.72rem it was
   hard to read, and sat almost against the heading. */
.lect-span-tag {
  margin-left: 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
/* FOUR-FIGURE YEARS NEED MORE THAN CAPITALS DO (user, 2026-09-07). The
   heading serif sets figures old-style - 2, 0 and 7 sit at x-height or
   below - so "2027 - 2028" read visibly smaller beside "YEAR 3 - YEAR 1"
   at the same size. Lining figures put them back on the cap line, and a
   little more size evens out what is left. Only the church-year view shows
   figures here, which is what the class marks. */
.lect-span-tag.is-years {
  font-size: 1.02rem;
}

/* THE FOUR YEARS SIDE BY SIDE on Admin > Lectionary Texts (user,
   2026-09-07). Four boxes of citations; they wrap to two and then to one
   rather than shrinking to a column too narrow to read a citation in. */
.lect-texts-grid {
  display: grid;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}
/* EVERY YEAR ON ITS OWN ROW, then the three cycle years across (user,
   2026-09-07). Four boxes across is too narrow for a citation like
   "Acts 6:8,11-15,7:51-60" at this card width. The Every year box does not
   stretch the width of the card either - a box four times as wide as the
   one under it reads as a different kind of field. */
.lect-texts-every { grid-template-columns: minmax(0, 1fr); max-width: 22rem; }
.lect-texts-cycles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 52rem) {
  .lect-texts-cycles { grid-template-columns: minmax(0, 1fr); }
  .lect-texts-every { max-width: none; }
}
/* ROOM BETWEEN THE PICKER AND THE CARD (user, 2026-09-07): the two sat
   almost touching, so the day being edited read as part of the control. */
.lect-texts-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.lect-texts-pick select { max-width: 26rem; }
.lect-texts-step { display: inline-flex; gap: 0.9rem; margin-left: 0.4rem; }
.lect-texts-col { display: flex; flex-direction: column; gap: 0.2rem; }
.lect-texts-col textarea {
  width: 100%;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}

/* THE DAY, ITS THEME, AND THE WAY OUT - one row (user, 2026-09-07). The
   theme sits beside the name because it names the same thing, and the link
   to the day's own page is a button at the far right. Wraps rather than
   crushing the button when the name is long. */
.lect-texts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
  /* The card's rule belongs to the ROW now. On the h2 it spanned the card;
     once the heading became a flex item it stopped at the end of the name
     and read as an underline on the words. */
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule, #d9d2c5);
}
.lect-texts-head-name h2 { border-bottom: 0; padding-bottom: 0; }
.lect-texts-head-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}
.lect-texts-head-name h2 { margin: 0; }

/* The interview itself: one question at a time, a trail of what is done. */
.guided-head h1 { margin-bottom: 0.2rem; }
/* THE TRAIL IS A PROGRESS BAR (user, 2026-09-07): one track, filled as far
   as you have got, ending in a chevron that points at what comes next.

   TALLER, WITH THE LABELS OVER TWO ROWS (user, 2026-09-07). Nine full step
   names do not fit one line, and the two ways out of that were both worse:
   scrolling put a grey slider under the bar, and ellipsizing turned every
   label into "What it was transl...". Equal-width segments, wrapped text,
   and the bar grows a little instead.

   NO overflow on a segment: the chevron is drawn past its right edge, and
   hiding overflow there clips the point off. */
.guided-trail {
  display: flex;
  list-style: none;
  margin: 0.9rem 0 1.3rem;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.25;
  background: var(--card-alt);
  border-radius: 8px;
  /* Room above and below for the handle, which is taller than the track. */
  padding: 4px;
}
/* The filled run keeps the track's own corners at the start. */
.guided-trail li:first-child { border-radius: 5px 0 0 5px; }
.guided-trail li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3rem;
  padding: 0.4rem 0.55rem;
  color: var(--muted);
}
.guided-trail li.is-done,
.guided-trail li.is-here { background: var(--accent); color: #fff; }
.guided-trail li.is-here { font-weight: 600; }
/* Ahead, already reached: a step to come that can be jumped to. */
.guided-trail li.is-ahead .link-btn {
  color: var(--muted);
  text-decoration: underline;
  white-space: normal;
  text-align: center;
  line-height: inherit;
  font-size: inherit;
}
.guided-trail li.is-done .link-btn {
  color: #fff;
  text-decoration: underline;
  white-space: normal;
  text-align: center;
  line-height: inherit;
  font-size: inherit;
}
/* WHERE YOU ARE IS A HANDLE, not an arrowhead (user, 2026-09-07): a
   rounded frame around the current step, standing a little taller than the
   track, so the bar reads as a slider with the handle sitting on it. */
.guided-trail li.is-here {
  margin: -4px 0;
  border-radius: 7px;
  /* A RING, NOT A HIGHLIGHT (user, 2026-09-07). An inset white line at one
     pixel vanished against the filled run on its left. --accent-light reads
     against both the dark handle and the pale track, so the frame is visible
     all the way round wherever the handle has got to. */
  box-shadow: 0 0 0 2px var(--accent-light);
  z-index: 1;
}
/* Too narrow for nine labels at any size: keep the one you are on, and the
   fill goes on saying how far along you are. */
@media (max-width: 46rem) {
  .guided-trail li:not(.is-here) > * { display: none; }
  .guided-trail li:not(.is-here) { font-size: 0; flex: 1 1 0; min-height: 2.4rem; }
  .guided-trail li.is-here { flex: 3 1 auto; }
}
.guided-card { max-width: 40rem; }
/* ...except the theme step, which is 59 themes and their descriptions and
   reads as columns rather than as one long scroll (user, 2026-09-07). */
.guided-card-wide { max-width: none; }
/* THE PEOPLE STEP IS WIDER (user, 2026-09-12), so a creator's name, the year
   of the credit and their nationality sit on ONE line instead of three - and
   the same for a reviser. 40rem holds two fields comfortably and four not at
   all. Not `max-width: none` like the theme and check steps: those are lists
   that use whatever they are given, while this is a form, and a form whose
   boxes stretch the width of a wide monitor is harder to read, not easier. */
/* FULL WIDTH for the people step (user, 2026-09-12), so the five fields that
   describe a person - name, born, died, and the two nationalities - sit on
   one line. `none` is not unbounded: the page container caps every page in
   this app, so this is as wide as the step can be and no wider. */
.guided-card-people { max-width: none; }
/* WHERE IT GOES IS THREE NAMED BLOCKS (user, 2026-09-12: "this layout is
   confusing"). Which one, which issue, and the review - each set apart the
   way the review already was, so the step reads as three things to answer
   rather than as a column of loose fields. */
/* NO LONGER A `.guided-way` (user, 2026-09-13), so it carries its own room
   rather than borrowing that class's frame with it. */
.guided-place-block { margin: 0.9rem 0; }
/* THE NEW-MELODY FORM, FOLDED (user, 2026-09-13). A <summary> dressed as
   the button beside it: same shape, same weight, so the two ways in read
   as two ways in rather than as a control and a heading. The marker goes -
   a triangle says `disclosure`, and what this says is `add a new melody`. */
.guided-newway { margin-top: 0.9rem; }
/* AND THE SAME WIDTH (user, 2026-09-13). Two ways into one question, one
   under the other, and a button 36px narrower than the one above it reads
   as an accident rather than as a pair.

   A MINIMUM, not a fixed width: whichever label is longer sets the real
   width and the other grows to meet it, so a reworded button widens both
   instead of overflowing one. 14rem clears the longer of the two today
   (`Find an existing melody`, 13rem) with room to spare. */
.guided-newway > summary,
.guided-pick-row > .guided-pick-btn {
  min-width: 14rem; text-align: center; }
/* THE SAME BUTTON AS THE ONE ABOVE IT (user, 2026-09-13: "these buttons
   should be the same style and size"). They are the two ways into the same
   question, so they take `.guided-pick-btn`'s own metrics - 0.6rem/1.2rem at
   1rem - and `.btn-ghost`'s transparent fill, rather than the base button's
   smaller shape and white. Written out rather than borrowed by adding the
   classes: a <summary> is not a <button>, and `.btn` on one brings along
   rules that assume it is. */
.guided-newway > summary {
  display: inline-block; list-style: none; cursor: pointer;
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 1rem;
  /* A BUTTON'S line-height is the UA's `normal`; a <summary> inherits the
     page's 1.5, which made this one 3px taller than the button beside it -
     close enough to look like a mistake and not close enough to be one. */
  line-height: normal;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.guided-newway > summary::-webkit-details-marker { display: none; }
.guided-newway > summary::marker { content: ''; }
.guided-newway > summary:hover {
  border-color: var(--accent-light);
  box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
.guided-newway > summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
/* Open, it is a heading for what it opened, so it stops looking pressable. */
.guided-newway[open] > summary {
  background: transparent; border-color: transparent; padding-left: 0;
  font-weight: 600; }
.guided-newway[open] > summary:hover { box-shadow: none; }
.guided-newway > *:not(summary):first-of-type { margin-top: 0.7rem; }
/* ONE ROW PER PUBLICATION (user, 2026-09-12), each carrying its own issue
   or number - the same shaded row a listed arrangement gets, for the same
   reason: it is one of several things hanging off the question above. */
.guided-place-row {
  background: var(--card-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.55rem 0.75rem 0.65rem;
  margin: 0.45rem 0; }
.guided-place-row .guided-itemcard-head { margin-bottom: 0; }
.guided-place-row .guided-row { margin: 0.4rem 0 0; }
.guided-place-row .guided-place-issue { margin: 0.45rem 0 0; }
/* A number, a month and a year are each the width of what they hold. */
.guided-row label.guided-number-box { flex: 0 0 10rem; }
.guided-row label.guided-month-box { flex: 0 0 11rem; }
/* WIDE ENOUGH FOR ITS CAPTION (user, 2026-09-13). "First published
   (optional)" measures 11.2rem on one line, so 8rem wrapped it and left the
   caption ragged against the two beside it. 12rem holds it with a little to
   spare; the title, which is the flexible one, gives up what these two take
   and is still the widest box on the line. */
.guided-row label.guided-year-box { flex: 0 0 12rem; }
/* A book locked since it was chosen says so where it sits, rather than
   disappearing - the answer is still on the form and still has to go. */
.guided-place-row.is-shut { border-color: var(--error); }
.guided-place-shut {
  margin-left: 0.5rem; font-size: 0.75rem; font-weight: 400;
  text-transform: none; letter-spacing: normal; color: var(--error); }
/* The add control sits under the rows it adds to. */
.guided-place-block .guided-container-pick { margin: 0.6rem 0 0; }
/* AND IT IS AN ORDINARY BUTTON (user, 2026-09-12: "less vivid"), like the
   arrangements step's own Find button. It is btn-primary where the pick is
   the whole question - on the one-page intake forms - but here it sits
   under a list it adds to, with Continue in the bar below, and the accent
   on a control that only opens a dialog outweighs both. */
.guided-place-block .guided-container-pick .guided-pick-btn {
  background: var(--card); border-color: var(--border); color: var(--ink); }
.guided-place-block .guided-container-pick .guided-pick-btn:hover {
  background: var(--card); border-color: var(--accent-light);
  box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
.guided-place-block [data-container-plain] .guided-add-more { margin-top: 0.5rem; }
/* "(optional)" rides the heading, so it is not read as part of the
   question - the title is small capitals and this is not. */
.guided-period-optional {
  margin-left: 0.4rem; font-size: 0.75rem; font-weight: 400;
  text-transform: none; letter-spacing: normal; }

/* A FIELD FOLDED AWAY UNTIL IT IS WANTED - the second nationality, which is
   rare enough that a box for it on every creator and every alteration level
   is mostly empty boxes. A <details>, so it opens with no scripting; the
   summary wears the same small-caps hand as a field title, because that is
   what it becomes when opened. */
/* A BUTTON WHERE THE FIELD WOULD BE, then the field itself (user,
   2026-09-12: the buttons "don't align with things beside them and then
   'jump' above the field that appears").

   Both faults were one fault: the button stayed put and the input appeared
   UNDER it, so the column grew downwards, the button rose 21px, and the new
   box landed 10px below its neighbours. Shut, it now matches an input's
   height and bottom margin so it lines up with the row; open, it stops being
   a button at all and becomes the field's caption, which is exactly the shape
   every other field on the row already has - caption, then box. Nothing is
   left over to jump. */
.guided-extra { flex: 0 1 auto; min-width: 0; align-self: flex-end;
  margin: 0.75rem 0; }
/* 36px is an input's height; 12px its bottom margin. Matching both is what
   puts the button on the same line as the boxes beside it. */
.guided-extra:not([open]) > summary { min-height: 36px; }
.guided-extra[open] { align-self: auto; }
.guided-extra[open] > summary {
  border: 0; background: none; box-shadow: none; padding: 0;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); line-height: 2; min-height: 0; }
.guided-extra[open] > summary:hover { color: var(--ink); box-shadow: none; }
/* Also a button (.btn .btn-sm in the markup); this places its sign and stops
   the native disclosure triangle from doubling up with it. */
.guided-extra > summary {
  cursor: pointer; list-style: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem; }
.guided-extra > summary::-webkit-details-marker { display: none; }
/* No transition on this marker - see the .collapse-card note: with one, the
   [open] state never resolved and the sign never changed. */
.guided-extra > summary::before {
  content: '+'; color: var(--accent); font-weight: 600; }
.guided-extra[open] > summary::before { content: '− '; }
.guided-extra > input { display: block; width: 100%; }
/* Shut, it is a link-sized control and must not claim a field's width;
   open, it is a field like its neighbours. */
.guided-extra[open] { flex: 1 1 10rem; }
.guided-card label { display: block; margin: 0.75rem 0; }
.guided-card input[type=text], .guided-card select, .guided-card textarea { width: 100%; }
.guided-ask { font-size: 1.05rem; margin: 0.4rem 0 0.2rem; }
.guided-hint { margin: 0 0 0.6rem; }
.guided-choices { display: flex; flex-direction: column; gap: 0.5rem; }
.guided-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule, #d9d2c5);
  border-radius: 6px;
  margin: 0;
}
.guided-choice:hover { border-color: var(--accent); }
/* THE ROW IS THE WHOLE CONTROL where the script runs (user, 2026-09-13:
   the radios and Continue "aren't needed because clicking on a row takes me
   straight in"). `is-live` is put on by guided-intake.js, so it is set
   exactly when the click-to-enter wiring exists - with scripting off the
   radios and Continue are visible and are the way forward.

   `display:none` rather than a visually-hidden radio: a radio that can still
   be reached by Tab but cannot be seen is worse than one that is gone, since
   arrowing between radios fires a click and would submit the step from under
   somebody mid-choice. The script gives the ROW the keyboard instead. */
.guided-choices.is-live .guided-choice > input[type=radio] { display: none; }
.guided-choices.is-live .guided-choice { cursor: pointer; }
.guided-choices.is-live .guided-choice:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent);
}
/* AND CONTINUE GOES WITH THEM. `.btn` sets a display of its own, which
   outranks the browser's [hidden]{display:none} - so hiding it by attribute
   needs the rule that makes the attribute win, or the button sits there with
   the attribute set and nothing to show for it (spec 66). */
.guided-actions .btn[hidden] { display: none; }
/* THE NAME OF THE CHOICE, SET AS A HEADING (user, 2026-09-13: it "needs to
   look more official, and the helper text after it should be on the line
   below"). Both were inline, so the sentence began on the same line as the
   name and wrapped under it - five rows of running text where the eye wanted
   five names.

   THE ROW IS NOT ACTUALLY A GRID. `.guided-choice` asks for one, but
   `.guided-card label` two rules above sets display:block and outranks it -
   one class against a class and an element - so the `grid-column: 2` that
   used to sit here never applied and the children have always laid out
   inline. It is dropped with this change. Rather than raise
   the specificity to revive a two-column layout nobody has seen, each part
   is given its own line, which is what the row was reaching for anyway.

   UNDER `.guided-choices` ONLY, which is the start step's list. The theme
   step draws the same `.guided-choice` rows, 59 of them in `.guided-themes`,
   and each carries a sentence of description: giving those a line of their
   own would double the height of a list that already had to be put in its
   own scrolling panel to keep the question on screen. */
.guided-choices .guided-choice-label {
  display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink);
  line-height: 1.35;
}
.guided-choices .guided-choice > .muted {
  display: block; font-size: 0.88rem; margin-top: 0.1rem;
}
.guided-choice-label { font-weight: 600; }
/* CONTINUE STAYS IN VIEW (user, 2026-09-07). The theme step is 59 themes
   tall, so somebody who picks one near the top had no way forward without
   scrolling to the foot of the page to find the button. Sticky rather than a
   second copy of the buttons at the top: one set of controls, always where
   it was, and it costs nothing on the short steps - a sticky element that
   is already in view simply stays put. */
.guided-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 1rem;
  padding: 0.7rem 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.guided-actions a.btn-ghost { margin-left: auto; }
/* TWO "leave" links share this row since Cancel joined it (user,
   2026-09-08). The rule above was written when there was one, and with
   two the first absorbs the free space and the second trails it - right
   by accident rather than by intent. Said once, on the pair, so a third
   control later does not quietly move them. */
.guided-actions .guided-leave { margin-left: auto; }
.guided-actions .guided-leave + a.btn-ghost { margin-left: 0; }

/* Two short boxes on one line - Born and Died (user, 2026-09-07). */
/* THE CHECK PAGE (user, 2026-09-08): a frame per work, its facts as a
   label/value list, the words as stanzas, and what Create will do. */
/* SIDE BY SIDE (user, 2026-09-08): the frames fill the window's width in
   as many columns as fit; the words and the closing frame span them all,
   and long words read in two columns. */
.guided-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 0.8rem; align-items: start; margin-top: 0.6rem; }
.guided-frame {
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  padding: 0.85rem 1rem 0.9rem; margin: 0;
}
.guided-frame-lyrics, .guided-frame-next { grid-column: 1 / -1; }
/* A GROUP PER KIND (user, 2026-09-08): its heading is the kind's tag, larger,
   with a count when there is more than one. */
/* Each group is a shaded band with an edge in its kind's color, so one kind
   ends and the next begins plainly (user, 2026-09-08). */
.guided-group {
  margin-top: 1.1rem; padding: 0.7rem 0.9rem 0.9rem;
  background: var(--card-alt); border-radius: 8px; border-left: 6px solid var(--border);
}
.guided-group-lyrics { border-left-color: var(--type-lyrics-fg); }
.guided-group-original_language { border-left-color: var(--type-original-language-fg); }
.guided-group-melody { border-left-color: var(--type-melody-fg); }
.guided-group-arrangement { border-left-color: var(--type-arrangement-fg); }
/* MUSIC: A MELODY AND WHAT IS ARRANGED OF IT, SIDE BY SIDE (user,
   2026-09-12). The melody holds the left column and its arrangements the
   right, one under another, so the pair reads as a pair - which is what two
   separate headings could not show however the tiles happened to fall.

   The band keeps the melody's colour: it is the melody that is being
   listed, and an arrangement is shown as something hanging off one. */
.guided-group-music { border-left-color: var(--type-melody-fg); }
.guided-music-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem; align-items: start; }
/* ONE MELODY FROM THE NEXT (user, 2026-09-12: "more visual separation
   between melody rows"). With only the grid's own gap between them, a
   melody's arrangements and the next melody's tile were the same distance
   apart as the pair that belong together - so a column of tiles read as a
   column of tiles rather than as melody, melody, melody.

   Room and a hairline, not a third shade: the tiles are already white on
   the section's band, and shading the row would put a tint between them
   that means nothing. */
.guided-music-row + .guided-music-row {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border); }
.guided-music-row:first-of-type { margin-top: 0.6rem; }
/* Several arrangements of one melody stack in the right column. */
.guided-music-arrs { display: grid; gap: 0.8rem; align-items: start; }
/* Narrow, they stack: two columns of one tile each is not a comparison
   worth a horizontal scrollbar. */
@media (max-width: 46rem) {
  .guided-music-row { grid-template-columns: minmax(0, 1fr); } }
.guided-group-title { margin: 0 0 0.55rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.guided-group-title .guided-type { font-size: 0.8rem; padding: 0.25rem 0.7rem; }
.guided-group-count { font-weight: 400; font-size: 0.9rem; }
.guided-group .guided-frames { margin-top: 0; }
.guided-frame-lyrics .guided-stanzas { columns: 2 20rem; column-gap: 2rem; }
.guided-frame-lyrics .guided-stanza { break-inside: avoid; }
.guided-frame-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.guided-frame-actions { margin-left: auto; display: inline-flex; gap: 0.4rem; white-space: nowrap; }
.guided-frame-title { margin: 0; font-size: 1.05rem; }
.guided-frame-note { font-size: 0.85rem; }
.guided-frame-rel { margin: 0.25rem 0 0.5rem; font-size: 0.92rem; }
.guided-frame-body { display: flex; gap: 1rem; align-items: flex-start; }
.guided-frame-main { flex: 1 1 auto; min-width: 0; }
.guided-frame-thumb { flex: 0 0 auto; }
.guided-frame-thumb img { height: 6rem; max-width: 12rem; }
.guided-type {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.guided-type-lyrics { background: var(--type-lyrics-bg); color: var(--type-lyrics-fg); }
.guided-type-melody { background: var(--type-melody-bg); color: var(--type-melody-fg); }
.guided-type-arrangement { background: var(--type-arrangement-bg); color: var(--type-arrangement-fg); }
.guided-type-original_language { background: var(--type-original-language-bg); color: var(--type-original-language-fg); }
.guided-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 1rem; margin: 0.3rem 0 0.5rem; }
.guided-facts dt { color: var(--muted); font-size: 0.9rem; }
.guided-facts dd { margin: 0; }
.guided-frame-printed { margin: 0.2rem 0 0.5rem; font-size: 0.9rem; }
.guided-frame-audio { display: block; width: 100%; max-width: 26rem; height: 2rem; margin: 0.3rem 0 0.5rem; }
/* THE STANZAS ARE A FRAMED, WHITE BLOCK (user, 2026-09-12). Shaded, they
   read as one more band in a card already built of bands; the text is the
   thing being checked on this page, so it gets the page's own paper and a
   rule round it rather than a tint. */
.guided-stanzas { margin: 0.5rem 0 0.2rem; padding: 0.6rem 0.9rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font-serif); }
.guided-stanzas { position: relative; }
.guided-stanzas-edit { position: absolute; top: 0.45rem; right: 0.6rem; font-family: var(--font-sans); }
.guided-frame-lyrics .guided-stanzas { padding-right: 6.5rem; }
.guided-stanza { margin: 0 0 0.7rem; line-height: 1.45; padding-left: 1.6rem; position: relative; }
.guided-stanza:last-child { margin-bottom: 0; }
.guided-stanza-no { position: absolute; left: 0; color: var(--muted); font-size: 0.85rem; font-family: var(--font-sans); }
.guided-frame-file { display: block; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
/* The one line that replaced three (user, 2026-09-12). Inline style moved
   here with it - a rule in the sheet is a rule anything can override. */
.guided-frame-file-note { font-size: 0.8rem; margin: 0.3rem 0 0; }
.guided-frame-next { background: var(--card-alt); margin-top: 1.1rem; border-left: 6px solid var(--accent); }
.guided-next { margin: 0.4rem 0 0; padding-left: 1.2rem; }
/* ONE BUTTON PER PUBLICATION (user, 2026-09-12), so with three of them the
   dialog is three choices and not a row that runs off its own edge. Stacked
   rather than wrapped: they are a list of places to go, and a list reads
   down. The words' page keeps the top, being the one that is not a
   publication. */
.guided-landing-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
/* ROOM ABOVE IT (user, 2026-09-12). It is the way OUT of the question, not
   one more answer to it, and at 0.7rem it sat as close to the last choice
   as the choices sat to each other.

   Written to outrank `.guided-confirm-overlay .modal-dialog p`, which zeroes
   the top margin of every paragraph in the dialog: as a bare class this
   rule lost to it and the gap stayed at nothing. */
.guided-confirm-overlay .modal-dialog p.guided-landing-cancel {
  margin: 1.4rem 0 0; text-align: center; }
.guided-next li { margin: 0.25rem 0; }
.guided-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.guided-period .guided-period-note { flex-basis: 100%; margin-top: -0.2rem; }
/* AS LONG AS ITS CAPTION, AND NO LONGER (user, 2026-09-12). The caption now
   carries "(required)" as well as the words "Review due date", which at
   16rem wrapped onto a second line; widening the label fixed that and left
   a date box sitting under a caption half again its width, because a native
   date input sizes to its own content and ignores the room it is given.

   `fit-content` makes the label as wide as the widest thing in it - the
   caption - and the box then fills it, so the two ends line up. */
.guided-due { max-width: 22rem; width: fit-content; }
.guided-due input { width: 100%; }
/* THE BOX AND THE PILL ON ONE LINE, the pill level with the box rather
   than with its caption - the same placement the meter's button takes. */
.guided-due-row { display: flex; align-items: flex-end; gap: 0.6rem; flex-wrap: wrap; }
.guided-due-row .guided-due { margin-bottom: 0; }
/* STILL WAITING, NOT WRONG (user, 2026-09-12: "it's easy to overlook
   this"). The review block and its box wear the accent while the date is
   blank, and drop it the moment one is in. Deliberately not --error: an
   unanswered question is not a mistake, and a form that opens in red has
   nothing left to say when something really does go wrong. */
.guided-review.is-wanting {
  border-color: var(--accent-light);
  box-shadow: inset 3px 0 0 var(--accent-light); }
.guided-review.is-wanting .guided-due input {
  border-color: var(--accent-light); background: var(--card); }
/* And on the title row, where Skip this step sits when there is nothing
   chosen - the two are never both wanted. */
.guided-due-flag {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); border: 1px solid var(--accent-light);
  border-radius: 999px; padding: 0.2rem 0.7rem; white-space: nowrap; }
/* CENTRED ACROSS THE TITLE ROW (user, 2026-09-12). Beside the title it read
   as part of the title; in the middle of the row it reads as a notice about
   the step, which is what it is - and the middle of a row otherwise empty is
   where the eye goes.

   Taken out of the flow to do it: centring it BETWEEN the title and the
   right edge is not the same as centring it on the card, and only one of
   those is what was asked for. `:has()` keeps the positioning context to the
   heading that carries one - the other steps' headings hold a floated Skip
   this step, which must keep its own containing block. */
/* ROOM AROUND IT (user, 2026-09-12: "needs breathing room"). The pill is a
   shade taller than the line it sits on, so in a heading with no padding
   above it touched the top of the band and all but touched the rule below.

   Padding EVENLY, top and bottom: the heading's own 0.5rem was under the
   line only, which is why the pill had to be nudged up by half of it to
   look level. Even padding makes the middle of the padding box the middle
   of the line, so a plain 50% is both centred and clear. */
.guided-card h2:has(.guided-due-flag) {
  position: relative; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.guided-due-flag {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); }
.guided-review { margin-top: 0.9rem; }
.guided-review .guided-hint { margin: 0 0 0.5rem; }
.guided-container-pick { margin-bottom: 0.9rem; }
.guided-container-pick .guided-way-title { margin-bottom: 0.2rem; }
.guided-container-results { max-height: 50vh; }
/* A tile with its cover at the right (user, 2026-09-08). */
.guided-container-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; }
.guided-container-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.guided-container-cover { flex: 0 0 auto; height: 3.4rem; width: auto; max-width: 5rem; object-fit: contain; border: 1px solid var(--border); border-radius: 3px; background: var(--card); }
/* THE HYMNALS AND PERIODICALS TABS AS SQUARES (user, 2026-09-08): two
   across, each tile taller, with the cover large above the name. */
.guided-container-results.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; max-height: 60vh; }
/* The name sits along the bottom of every square, cover or no cover, so
   the tiles line up; the cover takes the room above it. */
.guided-container-results.is-grid .guided-container-row { flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0.7rem 0.6rem 0.6rem; min-height: 12rem; }
.guided-container-results.is-grid .guided-container-cover { order: -1; }
.guided-container-results.is-grid .guided-container-text { align-items: center; }
.guided-container-results.is-grid .guided-container-cover { height: 8.5rem; max-width: 100%; margin-bottom: 0.45rem; }
#guided-container-sort { flex: 0 0 auto; }
.guided-container-filters { margin-top: -0.35rem; }
.guided-container-filters select { flex: 0 1 12rem; }
/* A ROW OF FIELDS LINES UP (user, 2026-09-08): each label is a column with
   its box at the bottom, so a label that wraps to two lines does not push
   its box below its neighbours'. */
/* A CAPTION AND ITS NOTE ARE ONE LINE (user, 2026-09-12: "this text needs to
   go on the line above"). This was `flex-direction: column`, which makes
   EVERY child its own flex item on its own line - so the label text and its
   <span class="muted">(optional)</span> stacked, and "Born" sat above
   "(optional)" above the box. Twelve labels across the interview read that
   way, the melody step's "Key (required)" among them.

   PLAIN BLOCK LAYOUT inside the label instead: the caption and its note are
   ordinary INLINE content on one line, and the control is a block beneath
   them. A wrapping flex row was tried first and is subtly wrong - the caption
   and the note stay separate flex ITEMS, so the moment the column is a little
   tight the note drops onto its own line, which is the very fault being fixed
   coming back whenever the type changes width. Making the captions UPPER CASE
   did exactly that, an hour later. Block layout cannot split them. */
.guided-row label { flex: 1 1 8rem; min-width: 0; display: block; }
.guided-row label > input, .guided-row label > select {
  display: block; width: 100%; margin-top: 0; }
/* THE MARKERS, NOT THE NOTES. This keeps "(optional)" from breaking away
   from the caption it qualifies - which is what it was written for. A
   `.guided-note` in the same place is a whole sentence, and nowrap makes it
   run straight out of its column: pairing the meter box with the melody's
   name put "The words are 7.6.7.6.8.6, and the melody must match" in an
   18rem label, where it overflowed by 54px. white-space inherits, so the
   text inside the note was carrying it too. */
.guided-row label > .muted:not(.guided-note) { white-space: nowrap; }
/* FIELD TITLES IN THE APP'S OWN OFFICIAL HAND (user, 2026-09-12), on every
   step - so the interview reads as one form rather than seven. Not a new
   look: it is `.form-section-title`'s, which the one-page forms have carried
   all along, so the two ways into the library say the same thing the same
   way.

   WHICH LABELS. Every one that titles a box - 24 text inputs, 10 selects and
   a textarea. NOT the checkbox label, which is a whole question in a
   sentence; not the radio choices; and not `Attach a file`, whose label is a
   paragraph of explanation. Small caps would make all three unreadable.

   AND THE CONTROL IS PUT BACK TO NORMAL. `text-transform` and
   `letter-spacing` inherit, so without the second rule here everything
   somebody TYPED came out upper case and spaced out. */
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
  /* ROOM UNDER THE CAPTION, bought with the line box rather than a margin
     on the control. At 0.75rem the caption's line box is 18px and it sat 1px
     off the top of the box, reading as an overlap (user, 2026-09-12). A
     margin-top on the input would have done it too, but this rule's
     :not() chain outranks `.guided-row label > input { margin-top: auto }`,
     which is what bottom-aligns a pair of fields whose captions differ in
     height - so it would have bought the gap and lost the alignment. */
  line-height: 2; }
/* AND INDENTED TO THE BOX'S OWN TEXT (user, 2026-09-12: they "start at about
   where the rounded corner flattens out at the top"). A caption sitting on
   the input's outer edge is a few pixels left of the value inside it, which
   reads as a misalignment all the way down the form. `text-indent` moves the
   caption's line and nothing else - padding on the label would carry the box
   along with it - and the control resets it, since text-indent inherits and
   would otherwise push what somebody typed across too.

   0.55rem + 1px is the input's own left padding and border, so the caption
   starts exactly where its value does. */
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) {
  text-indent: calc(0.55rem + 1px); }
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > input,
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > select,
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > textarea {
  text-indent: 0; }
/* AND ON A LINE OF ITS OWN, whatever it is wide. Every other box on the
   form is caption-above-box only because it fills the line; the one field
   given a width of its own - the year a work was first published, 7em -
   was narrow enough to fit BESIDE its caption, so it alone read as
   caption-then-box and its box started 289px right of every box above it.
   A SELECT DOES IT WITHOUT BEING ASKED, shrinking to its longest option:
   "An arrangement of" on the settings step is the same fault arrived at
   from the other direction. Being a block does not depend on being wide,
   so the next narrow field inherits the fix rather than the fault.

   NOT THE TICK BOXES OR THE HIDDEN FIELDS. A checkbox made block is drawn
   on a line with its words left behind (the trap recorded under
   .alt-subentry below), and an author `display` outranks the UA rule that
   hides `type=hidden` - which is how a hidden input becomes a visible
   empty box on a page nobody thought had one. */
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file)
  > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > select,
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > textarea {
  display: block; }
/* EXCEPT WHERE THE BOX COMES FIRST. Only the ORDER moves: the input is
   ordered ahead of the caption, which is the one thing flexbox can do
   here - the caption is a bare text node, and the anonymous flex item a
   browser makes from one cannot be given an `order` of its own. The
   text-indent goes with it, since indenting a caption to the box it no
   longer sits under would push it away from the box it now sits beside. */
.guided-card label.guided-inline-field:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) {
  display: flex; align-items: center; gap: 0.4rem; text-indent: 0;
  /* AND IT KEEPS THE SPACE ITS CAPTION ROW HELD (user, 2026-09-12:
     "spacing between these fields should be equal"). Between two ordinary
     fields the eye sees 36px - the 12px margin plus the 24px line box the
     next caption sits in. This field has no caption row above it, so the
     margin alone left 12px and it read as clipped to the field above.
     1.5rem IS that line box: 0.75rem of caption at a line-height of 2. */
  margin-top: calc(0.75rem + 1.5rem); }
.guided-card label.guided-inline-field:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > input { order: -1; }
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > input,
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > select,
.guided-card label:not(.checkbox-label):not(.guided-choice):not(.guided-frame-file) > textarea {
  font-size: 0.95rem; text-transform: none; letter-spacing: normal;
  color: var(--ink); }
/* AN EXPLANATION INSIDE A LABEL IS NOT A TITLE. `.guided-note` sits inside
   the label it belongs to - "Most hymns are known by their first line, so
   this is usually left empty..." - and inherited the upper case above, which
   turned a quiet aside into a sentence that shouts. Eight of them read that
   way. Put back to a normal sentence. */
.guided-card label .guided-note {
  text-transform: none; letter-spacing: normal; }
/* The titled alteration boxes lay out like any other pair of guided fields. */
/* TWO TO A ROW, like the creator's own Born/Died and Nationality pairs just
   above. Four across an indented subentry gives each about 133px, which is
   not enough for "SECOND NATIONALITY" once the captions are upper case - it
   wrapped, which is the fault this whole stretch keeps chasing. Two-up also
   makes the alteration read like the creator block it belongs to. */
/* NOT THE TICK BOX. `.alt-subentry label` also matches the next level's
   "...and that version was altered again", whose label holds a CHECKBOX -
   and `label > input { display: block; width: 100% }` turned that checkbox
   into a full-width block, which the browser then drew on a line of its own,
   marooned from the words it belongs to. Both rules mean the TEXT boxes. */
/* THREE TO A ROW plus the folded second nationality, matching the creator's
   own line now that the card is wide enough for it (user, 2026-09-12). 40%
   was right when the card was 40rem and the boxes had to go two-up; at 58rem
   it forced Nationality onto a row of its own.

   AT EVERY DEPTH, not just the first. Each nesting level indents 34px inside
   the one around it - 832px of room at the top level, 662px at the sixth -
   so a 10rem base size fitted the four boxes and the 151px fold on one line
   at the top and pushed the fold down onto the Year-or-note row from the
   second level in. Only somebody who opened two levels ever saw it.
   7rem leaves 31px spare at the deepest level, and the base size only
   decides where the line BREAKS - the boxes still grow to fill it, so the
   top level is drawn exactly as it was. */
.guided-creator-rows .alt-subentry label:not(.checkbox-label) {
  flex: 1 1 7rem; min-width: 0; display: block; }
/* AND THE NOTE TAKES A LINE OF ITS OWN. It had one only because nothing
   else fitted beside it; at a smaller base size it would have joined the
   name row, which is the fault above arriving from the other side. Said
   once, here, rather than depending on an arithmetic coincidence. */
.guided-creator-rows .alt-subentry > label:has(> input[name$="_note"]) {
  flex: 1 0 100%; }
.guided-creator-rows .alt-subentry label:not(.checkbox-label) > input {
  display: block; width: 100%; }
/* The next level's tick box gets a line of its own, under the boxes it
   follows, rather than trailing the last one on a shared row. */
/* ITS OWN LINE, ITS OWN WIDTH - two jobs, two elements. The wrapper takes
   the whole line, so the next level's button starts one; the button inside
   is just a button and is as wide as its words. Asking the button for both
   gave a full-width button, and clamping THAT with max-content stopped it
   breaking the line at all, since flexbox clamps before it breaks. */
.guided-creator-rows .alt-subentry > .alt-next {
  flex: 1 0 100%; margin-top: 0.5rem;
  /* The button and the note that says when to press it, side by side -
     the same pair .guided-alt lays out one level up. The wrapper already
     owns the whole line, so it is the thing that can arrange them. */
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; }
/* THE SPACE BETWEEN TWO ROWS IS ONE RULE'S JOB (user, 2026-09-12: "less
   space here"). Every field carried 12px above and below AND the flex
   container added an 8px row gap, so wrapping to a second row cost 32px -
   a band of nothing deep enough to read as a field that failed to draw.
   The margins go and the gap stays, which also keeps the folded second
   nationality's bottom edge level with the boxes beside it: it aligns to
   the line's end, so a margin the others did not have offset it by 12px. */
.guided-creator-rows .alt-subentry { row-gap: 0.75rem; }
.guided-creator-rows .alt-subentry > label:not(.checkbox-label),
.guided-creator-rows .alt-subentry > .guided-extra {
  margin-top: 0; margin-bottom: 0; }
.guided-note { font-size: 0.85rem; margin: 0.2rem 0 0; }

/* The theme step: five sections, 59 themes, each with what it means on the
   row (user, 2026-09-07). Two columns where there is room, so the whole
   list is a short scroll rather than a long one. */
/* THE THEMES SCROLL INSIDE THE CARD (user, 2026-09-07), so the question
   stays on screen while you read the answers to it. Sized in vh: the list
   should use most of the window whatever the window is, and a fixed height
   would be a guess about somebody else's screen. */
.guided-theme-scroll {
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 0.4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* EACH SECTION ON ITS OWN GROUND (user, 2026-09-07). Four columns of
   white cards run together into one field of boxes; a quiet band behind
   each section is what tells Church Year from Daily Life at a glance. */
.guided-theme-group {
  background: var(--card-alt);
  border-radius: 6px;
  padding: 0.15rem 0.75rem 0.8rem;
  margin-bottom: 0.9rem;
}
.guided-theme-group .guided-choice { background: var(--card); }
.guided-section {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.guided-themes {
  display: grid;
  /* Three or four across on a normal screen, one on a phone. auto-fit
     rather than a fixed count, so the number follows the width instead of
     being asserted here and going wrong at some other size. */
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.4rem;
  align-items: stretch;
}
.guided-themes .guided-choice { padding: 0.45rem 0.6rem; }
.guided-themes .muted { font-size: 0.85rem; }

/* A FAINTER HINT IN THE INTERVIEW (user, 2026-09-07). These placeholders
   are examples of what to type, sitting in boxes that are meant to look
   empty; at the app-wide --placeholder they read as content already
   entered. Scoped here rather than lightened globally, because the token's
   own comment records the contrast reasoning behind its value and this is
   a weaker case than the one it was chosen for. Every box here has a
   visible label above it, so nothing depends on reading the hint. */
.guided-card input::placeholder,
.guided-card textarea::placeholder { color: #bcb3a7; opacity: 1; }

/* What a loop step has collected so far, above the boxes for the next one. */
/* AN ADDED ITEM IS A CARD OF ITS OWN BOXES (user, 2026-09-12), not a line
   of text with an Edit button, so the list that used to hold those lines
   is gone. A PICKED one gets the same card with its answers shown rather
   than asked - hence the values below, which stand where its boxes would.

   The old row survives for nothing now, but the rule is kept: `.guided-
   picked` is still worn by the arrangement pickers' own listings. */
/* Which library it came from, beside the number: a card that cannot be
   typed into should say why before somebody tries. */
.guided-picked-flag {
  margin-left: 0.5rem; font-size: 0.75rem; font-weight: 400;
  text-transform: none; letter-spacing: normal; color: var(--muted); }
/* A shown answer stands where its box would, so the rows still line up.

   AND READS AS ITS OWN WORDS. The caption rule makes a label's text upper
   case and letter-spaced, and an input resets both - a span does not, so
   the composer recorded as "Plainsong melody" was shown as PLAINSONG
   MELODY, which is not what the library holds. */
.guided-picked-card .field-fixed-value {
  padding: 0.4rem 0.55rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card-alt);
  text-transform: none; letter-spacing: normal; color: var(--ink); }
.guided-picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0;
  padding: 0.35rem 0.4rem 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}
.guided-picked > span:first-child { font-weight: 600; }
/* Which one this is at one end, Remove at the other - the same header the
   creator step gives a person, and the same reason: a control acting on
   the whole card belongs on the card's own line, not among its fields. */
.guided-itemcard-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.3rem; }
.guided-itemcard-head .guided-way-title { margin: 0; }
.guided-itemcard { margin-bottom: 0.9rem; }
/* ONE MELODY, ONE SHADED BAND (user, 2026-09-12: "I would like a shaded
   background behind each melody so it's clear which button applies to which
   melody"). Unshaded, the arrangements step was one column of alternating
   names and notes with a column of identical buttons beside it, and nothing
   said where one melody ended and the next began - the melody's own name sat
   closer to the note above it than to the button that acts on it.

   The band is the grouping: everything inside it belongs to the melody it is
   headed by, including the boxes that open when its button is pressed. */
.guided-melody-group {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem 0.8rem;
  margin-bottom: 0.7rem; }
.guided-melody-group-head { align-items: center; margin-bottom: 0.45rem; }
/* A LISTED ARRANGEMENT IS DARKER THAN ITS BAND (user, 2026-09-12: white
   "is really confusing with all the other white on the page"). The row
   wears `.guided-picked`, which is --card - fine where it sits on the white
   panel, and wrong inside a shaded band, where it became the third white
   rectangle in a column that also holds the panel and the open boxes.

   A step DARKER than the band, not lighter: the band is the melody and the
   rows are what hangs off it, so they read as sitting in it. */
.guided-melody-group .guided-arrangement-row {
  margin: 0.3rem 0;
  background: var(--border);
  border-color: var(--border-strong); }
/* AND ITS BUTTONS KEEP AN EDGE ON IT (user, 2026-09-12: "edit and remove
   pill borders are invisible"). .btn-ghost is a transparent fill with a
   --border edge, which is exactly the colour this row is now filled with -
   so the pills dissolved into it and read as two words of plain text.

   DARKER EDGE, NOT A WHITE FILL (user, 2026-09-12: filled white, "they
   visually run together with the 'add an arrangement' pill"). That button
   is white on the band a few pixels above, and three white pills in a
   column read as one set of three choices. These two act on the row they
   sit in, so they stay the row's own colour and are drawn by their edge. */
.guided-melody-group .guided-arrangement-row .btn-ghost {
  border-color: var(--border-strong); }
.guided-melody-group .guided-arrangement-row .btn-ghost:hover {
  background: var(--card-alt); }
.guided-melody-group .guided-arrangement-none { margin: 0.2rem 0 0; }
/* THE BOXES ARE ALREADY SHADED, and a shaded card on a shaded band
   disappears. On the band they take the panel's own white, with a rule to
   keep their edge. */
.guided-melody-group .guided-addbox {
  background: var(--card); border: 1px solid var(--border); }
.guided-melody-group .guided-addbox input,
.guided-melody-group .guided-addbox select,
.guided-melody-group .guided-addbox textarea { background: var(--card); }
/* THE BOXES STILL LINE UP WHEN A CAPTION WRAPS. A band inside the panel
   takes its own padding out of the row, and at that width "Who wrote it
   (required)" no longer fits on one line - so its box started a line lower
   than the three beside it. Bottom-aligned instead of top-aligned: a
   caption of two lines and a caption of one cannot both align at the top,
   and it is the boxes somebody is reading across.

   ON THE ROW, not on the label. Making the label a flex column bottom-aligns
   the box too, but its caption is a bare text node beside a <span> - two
   anonymous flex items - so "(required)" then took a line of its own at every
   width, including the ones where the caption had always fitted on one. */
/* AND THE SAME ON EVERY CARD'S ROW (user, 2026-09-13). The translation
   step's line carries a title, a language and a year, and "First published
   (optional)" is the one caption that wraps - so its box started a line
   lower than the two beside it, which is the melody card's fault over
   again. Bottom-aligned rather than top: two captions of different heights
   cannot both align at the top, and it is the boxes somebody reads across.

   On `.guided-addbox`, not on `.guided-row` at large: the one-page forms
   and the step-level rows are laid out to their own rules, and a change to
   how every row in the app aligns is not what this is. */
.guided-addbox .guided-row { align-items: end; }
/* A VALUE THE ARRANGEMENT INHERITS stands where its box would (user,
   2026-09-12: the mode and the time signature are the melody's, so they
   are shown and not asked). Quieter than the key beside it, which is the
   one thing on the row somebody may change. */
.guided-melody-group .guided-addbox .field-fixed-value {
  padding: 0.4rem 0.55rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card-alt);
  color: var(--muted);
  /* The caption above it is small capitals, and a value inside the label
     inherits that - a real field does not, because an input resets both.
     "MINOR" is not the name the library holds. */
  text-transform: none; letter-spacing: normal; }
/* A KEY IS TWO CHARACTERS AND A MODE IS ONE WORD (user, 2026-09-12: "the
   data fields are way too wide"). Left to the row they took half of it
   each. The key's box holds its longest option - the melody's own key,
   named - and the mode's holds a word.

   `.guided-row label` is `flex: 1 1 8rem`, so these have to be written as
   `label.<class>` to outrank it - the same shape `.guided-year-box` and
   `.guided-meter-box` already take. */
.guided-row label.guided-key-box { flex: 0 0 14rem; }
.guided-row label.guided-mode-box { flex: 0 0 8rem; }
/* NO RULE ABOVE "Or add a new arrangement" (user, 2026-09-12). It separated
   two framed panels of roughly equal weight on the melody step, where it
   still does; here the half above it is a single button, and a full-width
   dashed line over one button is heavier than what it divides.

   Written against `.guided-way-title.guided-or`, not `.guided-or` alone:
   that is the rule that actually draws the line, and a selector of equal
   weight further up the file loses to it. */
.guided-melody-group .guided-addbox .guided-way-title.guided-or {
  padding-top: 0; border-top: 0; }
/* AND THE SEARCH IS AN ORDINARY BUTTON HERE (user, 2026-09-12: "this button
   should be less vivid"). It is btn-primary on the melody step, where it is
   one of two framed panels of equal standing and the accent says so. On this
   step it is one control on a card whose question is who made the
   arrangement - the only filled button on the screen, for the less likely of
   the two answers. */
.guided-melody-group .guided-addbox .guided-pick-btn {
  background: var(--card); border-color: var(--border); color: var(--ink); }
.guided-melody-group .guided-addbox .guided-pick-btn:hover {
  background: var(--card); border-color: var(--accent-light);
  box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
/* Edit and Remove are buttons, and they sit right after the name they act
   on (user, 2026-09-07) - pushed to the far edge they read as a column of
   their own, a long way from the entry. */
.guided-added-actions { display: inline-flex; gap: 0.4rem; white-space: nowrap; align-items: center; }
.guided-added-actions .guided-setting-thumb { margin-right: 0.3rem; }
.guided-added-actions .guided-setting-thumb img { height: 2.6rem; max-width: 7rem; }

/* Yes and No, beside the question they answer (user, 2026-09-07). */
/* Yes and No, beside the question they answer, and weighted alike (user,
   2026-09-07): neither is the recommended reply, so neither is filled in.
   Wide enough to read as the answers rather than as minor controls. */
.guided-gate { display: flex; gap: 0.6rem; margin: 0.9rem 0 0.2rem; }
.guided-gate .btn { min-width: 6rem; }

/* Cancel, at the top right of the card it belongs to (user, 2026-09-07).
   Floated so it sits level with the first line of the question rather than
   pushing it down a row. */
.guided-cancel { float: right; margin: 0 0 0.4rem 0.8rem; }

/* Said yes, then typed nothing (user, 2026-09-07): a real dialog, using the
   app's own overlay. NO SCRIPT - the server decides when it is shown, so it
   is simply rendered without `hidden`, which means it reaches a reader with
   scripting off exactly as it reaches everybody else. */
.guided-confirm-overlay .modal-dialog p { margin: 0 0 0.5rem; }

/* THE THEME ALREADY CHOSEN, in the heading (user, 2026-09-07). The list is
   a long scroll and the tick is somewhere inside it; coming back to the step
   should not mean hunting for your own answer. */
.guided-chosen-wrap {
  float: right;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-left: 1rem;
}
.guided-chosen-label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}
.guided-chosen {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

/* THE NEW ENTRY, boxed (user, 2026-09-07). A quiet ground behind the form
   for the next original, tune or setting, with its Cancel inside, so the
   Cancel reads as belonging to what is being typed and not to the list of
   what was already added above it. */
.guided-addbox {
  background: var(--card-alt);
  border-radius: 6px;
  padding: 0.7rem 0.9rem 0.9rem;
  margin-top: 0.6rem;
}
.guided-addbox .guided-ask { margin-top: 0.1rem; }
.guided-addbox input, .guided-addbox select { background: var(--card); }
/* THE PICK WIDGET (user, 2026-09-07): what was chosen, and the button that
   opens the search dialog. The plain text box under it is for scripting
   off; the script hides it by attribute. */
/* ROOM AROUND IT (user, 2026-09-08). The widget is a button and a line of
   text, not a box, so it carries none of a field's own vertical rhythm -
   on the one-page intake forms it sat flush against the label of the
   field below, with the two reading as one run-on line. */
.guided-pick { margin: 0.35rem 0 1.6rem; }
/* The question the picker answers, on the one-page intake forms. */
.pick-label { margin: 0 0 0.15rem; }
.guided-pick-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.55rem; }
/* The chosen work, where the choice stays on the step. It was plain text
   rather than a box, because a box read as somewhere to type (user,
   2026-09-07), and it did not stretch, because growing to fill the row was
   what pushed the Search button out to the right margin on the one-page
   intake forms (user, 2026-09-08).

   BOTH OF THOSE ARE NOW THE PANEL'S JOB (user, 2026-09-13). The record sits
   on its own line below the button, so nothing it does can push the button
   anywhere, and it stretches inside the panel so Clear sits at the far end
   rather than trailing the title. It is still not an input. */
.guided-pick-chosen { flex: 1 1 auto; min-width: 0; }
/* WHAT WAS FOUND READS AS A RECORD (user, 2026-09-13: it "needs to look more
   official"). It was one undifferentiated line - "Title (Composer)" - in the
   body colour, which is how a note is set, not how a work is named. The title
   now carries the weight and the credit sits under it, as the name alone. */
.guided-pick-found {
  display: flex; align-items: center; gap: 1rem; flex-basis: 100%;
}
/* THE FRAME COMES WITH THE RECORD, not with the row (user, 2026-09-13: "for
   this to look like it's really something, it needs more than this"). Keyed
   on the title span, which is drawn only where a work has been chosen - so
   "None chosen yet" stays a plain grey line and does not get a panel of its
   own announcing that there is nothing in it. `:has()` is how the rest of
   this sheet keys on content. */
.guided-pick-found:has(.guided-pick-chosen-title) {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--card-alt);
  padding: 0.7rem 0.9rem; margin-top: 0.15rem;
}
.guided-pick-chosen-title {
  display: block; font-size: 1.08rem; font-weight: 600; color: var(--ink);
  line-height: 1.3;
}
.guided-pick-chosen-by { display: block; color: var(--muted); font-size: 0.88rem; }
/* Clear is the small thing in the corner, not a second answer. */
.guided-pick-found [data-pick-clear] { margin-left: auto; flex: 0 0 auto; }
.guided-pick-btn { padding: 0.6rem 1.2rem; font-size: 1rem; }
/* SKIP THIS STEP sits at the right of the title row, the way the chosen
   theme does on the theme step - small, so the title stays the title. */
.guided-card h2 .guided-skip { float: right; font-family: inherit; font-weight: 500; margin: -0.2rem 0 0 1rem; }
/* The melody's meter, brought back to the words step by the mismatch
   dialog as a suggestion. */
.guided-meter-hint { background: var(--card-alt); border-radius: 6px; padding: 0.6rem 0.9rem 0.7rem; margin-top: 0.5rem; }
.guided-meter-hint .guided-ask { margin: 0 0 0.3rem; }
.guided-meter-hint-row { margin: 0.2rem 0; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
/* A HYMNAL-AND-NUMBER RESULT carries the words printed at that number,
   set apart under the melody's own line so the tile reads as one hymn. */
.guided-pick-words {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem;
  width: 100%; margin-top: 0.3rem; padding-top: 0.3rem;
  border-top: 1px dashed var(--border); font-size: 0.85rem;
}
.guided-pick-words-no { color: var(--muted); font-variant-numeric: tabular-nums; }
/* THE NUMBER IS THE POINT OF THE ROW (user, 2026-09-13: "the hymn number
   should be prominent"). It is what somebody typed to get here and what they
   are checking against the book in front of them, and it was bold 0.85rem in
   the middle of a sentence. Now it leads the row, set large and in figures of
   one width so a column of them lines up. */
.guided-pick-words-num {
  font-weight: 700; color: var(--ink); font-size: 1.2rem; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto; min-width: 2.8ch; text-align: right;
}
.guided-pick-words-title { font-weight: 600; }
.guided-pick-words-lines { flex-basis: 100%; font-size: 0.8rem; font-style: italic; }
.guided-pick-suggest { margin-bottom: 0.75rem; }
.guided-pick-suggest .guided-hint { margin: 0 0 0.4rem; }
.guided-pick-suggest select { max-width: 100%; }
/* The second way in on the melody step, set off from the first. */
.guided-addbox .guided-or { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dashed var(--border); }
/* A RESULT TILE is one box (user, 2026-09-07): name, composer and meter
   at the left, the recording's player at their right when there is one,
   and where it is printed underneath. The box itself is what chooses; the
   inner button is there for the keyboard. */
.guided-pick-tile {
  display: flex; flex-direction: column; gap: 0.1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; cursor: pointer; background: none;
}
.guided-pick-tile:hover { border-color: var(--accent-light); background: #f8f4ee; }
.guided-pick-head { display: flex; align-items: center; gap: 0.75rem; }
.guided-pick-choose {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.1rem; text-align: left; background: none; border: 0; padding: 0;
  font: inherit; color: var(--ink); cursor: pointer;
}
.guided-pick-audio { flex: 0 0 auto; width: 14rem; max-width: 50%; height: 2rem; }
.guided-pick-lines { display: flex; flex-direction: column; }
/* HOW A RESULT STANDS TO THE WORDS' METER (user, 2026-09-07): marked, not
   hidden. A melody that differs is grayed and says by how much; the toggle
   above the list hides those, and says how many it is hiding. */
.guided-pick-meter { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: -0.25rem 0 0.6rem; }
.guided-pick-meter .checkbox-label { margin: 0; font-size: 0.88rem; }
.guided-pick-hidden-note { font-size: 0.85rem; }
.guided-pick-fit { font-size: 0.78rem; padding: 0.05rem 0.45rem; border-radius: 999px; margin-left: 0.3rem; white-space: nowrap; }
.guided-added-current { margin: 0.2rem 0 0.5rem; }
/* TWO WAYS IN, EACH ITS OWN BOX (user, 2026-09-07). The database way is a
   white box inside the shaded form; the new way is headed under it. */
.guided-way {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.7rem 0.9rem 0.8rem; margin: 0.3rem 0 0.9rem;
}
.guided-way-title { font-weight: 600; font-size: 1rem; margin: 0 0 0.45rem; }
.guided-addbox .guided-way-title.guided-or { margin: 0 0 0.35rem; padding-top: 0.8rem; border-top: 1px dashed var(--border); }
.guided-way .guided-note { display: block; margin-top: 0.4rem; }
/* A found melody's recorded settings: each melody a sub-heading, its
   settings indented under it. */
.guided-existing-group { background: var(--card-alt); border-radius: 6px; padding: 0.5rem 0.75rem 0.55rem; margin: 0.45rem 0; }
.guided-existing-of { font-weight: 400; font-size: 0.88rem; color: var(--muted); margin: 0 0 0.25rem; }
.guided-existing-of strong { color: var(--ink); }
.guided-existing-settings .checkbox-label { display: block; margin: 0; }
/* A setting's row: its checkbox and name at the left, the thumbnail of its
   sheet music at the right (user, 2026-09-07). */
.guided-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.2rem 0 0.2rem 0.6rem; }
.guided-setting-thumb { flex: 0 0 auto; display: block; border: 1px solid var(--border); border-radius: 4px; background: var(--card); padding: 2px; line-height: 0; }
.guided-setting-thumb img { height: 3.4rem; width: auto; max-width: 9rem; object-fit: cover; object-position: top left; display: block; }
.guided-setting-thumb:hover { border-color: var(--accent-light); }
/* ON A PICKER TILE it sits at the right of the head, where the recording's
   player sits on a melody tile - taller than the one on a listed setting,
   because here it is what the choice is being made on. */
.guided-pick-thumb { margin-left: auto; }
.guided-pick-thumb img { height: 5.5rem; max-width: 11rem; }
/* A TILE THAT DRAWS ITS SCORE RATHER THAN SHOWING A PHOTOGRAPH OF ONE.

   SIZED TO THE DRAWING, not the drawing to a frame. The engraver lays a
   reading view out into a fixed 600 units whatever is in it, so a melody
   arrives about nine times as wide as it is tall and an arrangement about
   four - neither of them the shape of the picture this replaces. Forcing
   either into a fixed box gives a band of nothing under a melody or cuts
   an arrangement in half, so the width is fixed, the height follows, and
   the cap is only there to stop anything unexpected running away.

   Wider than the picture was, because the drawing's size on screen is
   decided by that width and nothing else. */
.guided-score-thumb { overflow: hidden; padding: 2px 3px; line-height: 0; }
.guided-pick-thumb.guided-score-thumb { width: 14rem; height: auto; max-height: 6rem; }
.guided-frame-thumb.guided-score-thumb { width: 11rem; height: auto; max-height: 4.5rem; }
.guided-score-thumb [data-notation-canvas] { width: 100%; }
.guided-score-thumb svg { width: 100%; height: auto; display: block; }
/* The engraver's status line has nothing to say to somebody scanning a
   list, and no room to say it in. A tile that cannot draw shows an empty
   frame, which is what a work with no picture always showed. */
.guided-score-thumb [data-notation-status] { display: none; }
.guided-score-thumb.is-undrawn { display: none; }
/* The popup: the image as large as the window allows. */
.guided-lightbox-dialog {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); padding: 1rem 1.25rem 1.25rem;
  max-width: min(96vw, 1100px); max-height: 92vh; display: flex; flex-direction: column;
}
.guided-lightbox-dialog img { max-width: 100%; max-height: calc(92vh - 5rem); object-fit: contain; display: block; margin: 0 auto; }
.guided-existing-settings .btn { margin-top: 0.6rem; }
/* A SMALL PILL BESIDE THE METER BOX (user, 2026-09-12). `.btn-small` is
   already the app's pill - 999px, the shape Remove, Edit and Skip this step
   all wear - so this only places it.

   ON THE BOXES' LINE, which is what keeps it off Remove. Tried on the
   caption's line it overlapped Remove by 58px, 18px below it: that column's
   right edge IS the card's right edge, and caption plus pill fill the
   column, so sliding it along that line only shortens the overlap. A row
   lower there is nothing above it but the melody's name.

   CENTRED ON THE BOX, NOT LEVEL WITH ITS FOOT (user, 2026-09-12: "the
   button should be vertically centered in the row"). flex-end alone put the
   pill's bottom where the box's bottom is, which sits it 7px low - the pill
   is 22px against the box's 36. The extra bottom margin is that difference
   halved, on top of the 12px the labels already carry, so the two centres
   meet. Measured rather than guessed: 0.75rem + 7px.

   And pulled in towards the box it belongs to (same message), from the
   row's own 16px gap to 8px - close enough to read as part of the meter
   field rather than the next thing along the row. */
.guided-melody-row > .guided-meter-use {
  flex: 0 0 auto; align-self: flex-end;
  margin-bottom: calc(0.75rem + 7px); margin-left: -0.5rem;
  text-transform: none; letter-spacing: normal; line-height: 1.1; }
.guided-pick-fit.is-fit { background: var(--status-published-bg); color: var(--status-published-fg); }
.guided-pick-fit.is-differs { background: #f6e3e3; color: var(--error); }
.guided-pick-fit.is-unknown { background: var(--status-backlog-bg); color: var(--status-backlog-fg); }
.guided-added-meter { font-size: 0.85rem; margin-left: 0.5rem; }
.guided-pick-tile.is-mismatch { opacity: 0.72; }
.guided-pick-tile.is-mismatch:hover { opacity: 1; }

/* ADMIN > SCRIPTURE REFERENCES (user, 2026-09-09): the stanza on the left,
   its passages on the right. What is about the whole hymn leads, across the
   full width, because it belongs beside no single stanza.

   The two columns are a grid rather than floats so the stanza and its rows
   share a baseline whatever either runs to; under 900px they stack, which is
   the only sensible reading on a narrow screen. */
.scripture-block { border-top: 1px solid var(--border); padding: 1.6rem 0 1.4rem; }
.scripture-block:first-of-type { border-top: none; }
/* A FRAME, NOT A FILL (user, 2026-09-09). Shading made this box the
   heaviest thing on the form, and it sits at the head of a column of
   framed stanza panels - so an outline puts it in the same family as
   what follows it instead of competing with it. The theme block above
   keeps its shading: it stands alone among plain fields, where a fill is
   what separates it, and it is an area to work in rather than a list to
   read. */
/* TWO CLASSES, to outrank `.scripture-block:first-of-type { border-top:
   none }` a few lines up - this block IS the first of its type, so a
   single-class rule loses its top border to it and the frame comes out
   open along the top. */
.scripture-block.scripture-block-whole { background: transparent;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  padding: 1.25rem 1.25rem 1.4rem; margin-bottom: 1.5rem; }
.scripture-block-stanza {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 1.5rem; align-items: start;
}
/* The head runs across both columns, so the pill lands in the block's own
   top-right corner rather than in the stanza's column - which, being a
   grid track, stretched it to the full width of the stanza. */
.scripture-block-head {
  grid-column: 1 / -1; display: flex; align-items: center;
  justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem;
}
/* THE SPACE BELOW THE HEAD BELONGS TO THE HEAD (user, 2026-09-09: needs
   more breathing room). It was on the title, and the pill is taller than
   the title - so the flex line took its height from the pill and the
   title's margin disappeared inside it, leaving the pill sitting flush on
   the first passage. Measured: zero pixels, in every block. */
.scripture-block-head .form-section-title { margin-bottom: 0; }
@media (max-width: 900px) {
  /* Stacked, all three parts are one column, so the row gap spaces them
     evenly and the head hands its own margin back rather than doubling
     up with it. */
  .scripture-block-stanza { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .scripture-block-stanza .scripture-block-head { margin-bottom: 0; }
}
/* The stanza reads as text, not as a field: it is the one thing on this page
   that cannot be edited here. */
.scripture-block-text .form-section-title { margin-bottom: 0.35rem; }
.scripture-stanza-body { white-space: pre-line; margin: 0 0 0.6rem;
  font-size: 0.92rem; line-height: 1.45; }

/* A ROW IS A WRAPPING LINE OF LABELLED FIELDS, not a table cell: the four
   boxes have very different natural widths and a table gave the note a
   sliver while Stanzas got a column it never needed. The labels are per
   field and visible, because a header row cannot follow rows that wrap. */
.scripture-block-rows { display: flex; flex-direction: column; gap: 0.65rem; }
/* THE WHOLE-HYMN PASSAGES GO IN COLUMNS (user, 2026-09-09). A hymn can
   carry a dozen of them, and stacked one to a line they pushed the stanzas
   - the part of the page somebody came to read - below the fold. Two
   across on a normal screen, one on a narrow one, from the tile width
   rather than a fixed count, so nothing has to be told how wide the page
   is. The stanza blocks keep one to a line: theirs is a column already
   half the width, and a passage beside stanza 3 is read WITH stanza 3. */
.scripture-block-whole .scripture-block-rows {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(23rem, 1fr));
  gap: 0.65rem 0.9rem; align-items: start;
}
.scripture-ref-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.4rem 0.6rem;
  padding: 0.5rem 0.6rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card);
}
.scripture-ref-field { display: flex; flex-direction: column; gap: 0.15rem;
  margin: 0; flex: 1 1 8rem; min-width: 0; font-size: 0.88rem; color: var(--muted); }
.scripture-ref-label { font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; }
.scripture-ref-field input, .scripture-ref-field select { width: 100%; margin: 0; }
/* Stanzas is three characters at most. */
.scripture-ref-stanzas { flex: 0 1 6rem; }
/* THE NOTE GETS ITS OWN LINE (user, 2026-09-09). It is the sentence that
   says WHY the passage is here - the one the hymn page prints in the
   passage tooltip - and it runs to a full line of prose. Sharing a row
   with three short fields showed about a quarter of it, so it read as a
   stub rather than as the note somebody had written, and looked like
   something this page could not edit. Forced onto its own line by a
   100% basis, which is what makes the flex row wrap there. */
.scripture-ref-note { flex: 1 1 100%; }
/* PILLS (user, 2026-09-09). Add and Delete are both pills so they read as
   the two things you can DO to a block, and neither shouts: on a page of a
   dozen passages a row of solid buttons would carry more weight than the
   passages themselves. Delete takes its danger colour only on hover, when
   the pointer is already on it. */
/* A BLOCK INSIDE A SECTION (user, 2026-09-09: the theme wanted to be "more
   visually distinct"). The Theme is the one field on the work form that FILES
   the hymn - it decides where the hymnal puts it - and it was running flush
   into the hymn's text below it. Shaded and inset like the whole-hymn
   scripture box further down, so the two blocks on this form that are not
   plain fields read as the same kind of thing. */
.form-subsection {
  background: var(--card-alt); border-radius: var(--radius);
  padding: 1rem 1.25rem 1.15rem; margin: 1.25rem 0 1.75rem;
}
.form-subsection > .form-section-title { margin-bottom: 0.5rem; }
/* The scope a reference covers, where it covers more than one stanza: it is
   drawn beside EACH of them, and without this a passage about stanzas 1 and 2
   looked, at stanza 1, exactly like one about stanza 1 alone. */
.scripture-read-scope { color: var(--muted); font-size: 0.78rem; margin-left: 0.35rem; }
/* SCRIPTURE ON THE WORK EDIT FORM (user, 2026-09-09). It sits between the
   themes and the hymn's own words, and needs to read as its own thing rather
   than as more of either - hence the room above and below, and a heading of
   its own. */
.scripture-section { margin: 2.25rem 0 1.75rem; }
.scripture-controls { display: flex; gap: 0.6rem; margin-bottom: 1.1rem; }
/* SHAPED LIKE Add theme, QUIETER THAN IT. Adding a passage is a smaller act
   than filing a hymn under a theme, and two solid buttons in a row would
   out-shout the hymn they are about. Same size and weight, outline instead of
   fill. */
.scripture-control-btn {
  background: var(--card); border-color: var(--accent-light);
  color: var(--accent); font-weight: 600; padding: 0.5rem 1.15rem;
}
.scripture-control-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* A PASSAGE BESIDE ITS STANZA IS READ, NOT EDITED. Four form fields beside a
   stanza said "change me" about something almost nobody changes, and made the
   hymn's own words compete with a grid of boxes. An empty note is not drawn at
   all, rather than drawn as an empty box. */
.scripture-read { list-style: none; margin: 0; padding: 0; }
.scripture-read-row {
  padding: 0.4rem 0 0.45rem; border-bottom: 1px dashed var(--border);
  font-size: 0.9rem; line-height: 1.45;
}
.scripture-read-row:last-child { border-bottom: none; }
.scripture-read-cite { font-weight: 600; }
.scripture-read-tier { color: var(--muted); font-size: 0.8rem; margin-left: 0.4rem; }
.scripture-read-note { display: block; color: var(--muted); }
.scripture-beside { min-width: 0; }
.scripture-block-whole .scripture-read {
  columns: 2; column-gap: 1.5rem;
}
@media (max-width: 900px) {
  .scripture-block-whole .scripture-read { columns: 1; }
}
.scripture-block-whole .scripture-read-row { break-inside: avoid; }

/* WHICH STANZAS, TICKED. A stanza is one of a known, short list, so the boxes
   run along one line and wrap; the numbers are the labels. */
/* WHICH OF THE THREE FITS, beside the chips that ask. Set apart from the
   field below it with the same left rule the dialog's stanza quote uses, so
   the two things here that are there to be READ rather than filled in look
   like each other - and one line each, because a <dl> is indented by the
   browser and reads as an unstyled list dropped into a dialog. */
.scripture-tier-notes {
  margin: 0.4rem 0 1.5rem; padding: 0.15rem 0 0.15rem 0.75rem;
  border-left: 3px solid var(--accent-light);
  font-size: 0.82rem; line-height: 1.45; color: var(--muted);
}
.scripture-tier-notes p { margin: 0 0 0.25rem; }
.scripture-tier-notes p:last-child { margin-bottom: 0; }
.scripture-tier-notes strong { color: var(--text); font-weight: 600; }
.scripture-scope-boxes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* THE WHOLE CHIP LIGHTS UP (user, 2026-09-09). A tick box inside a bordered
   pill was two indicators for one state, and at this size it read as cramped.

   THE INPUT IS CLIPPED, NOT REMOVED. It is what posts, what a browser with no
   scripting reads, and what a keyboard tabs onto; `display: none` would take
   it out of the tab order and leave the chip unusable without a mouse. So the
   chip is a sibling the checked state can be styled from - `:checked + span`,
   which needs no `:has()` and works wherever this app already works. */
.scripture-scope-box { display: inline-flex; margin: 0; cursor: pointer; }
.scripture-scope-box input[type="checkbox"],
.scripture-scope-box input[type="radio"] {
  position: absolute; width: 1px; height: 1px; margin: 0;
  padding: 0; border: 0; overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}
.scripture-scope-face {
  display: inline-block; font-size: 0.85rem; line-height: 1.5;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted); user-select: none;
}
.scripture-scope-box:hover .scripture-scope-face { border-color: var(--accent-light); }
.scripture-scope-box input:checked + .scripture-scope-face {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
/* The keyboard needs to see where it is, and the input it would ring is the
   one that is clipped - so the ring goes on the face instead. */
.scripture-scope-box input:focus-visible + .scripture-scope-face {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
/* A stanza the hymn does not have, kept so it can be corrected rather than
   quietly lost the first time somebody saves. */
.scripture-scope-gone .scripture-scope-face {
  border-color: var(--error); color: var(--error);
}
.scripture-scope-gone input:checked + .scripture-scope-face {
  background: var(--error); border-color: var(--error); color: #fff;
}
/* The whole-hymn chip leads its row and is a phrase rather than a number, so
   it is set off from the numbers that follow it. */
.scripture-scope-all { margin-right: 0.35rem; }
/* The strengths sit beside the passage, so they get their own column
   rather than a line of their own the way the stanza scope does. */
.scripture-ref-tier { flex: 1 1 18rem; }
.scripture-tier-chips { margin-top: 0.15rem; }
.scripture-ref-hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
/* ITS OWN LINE, like the note below it. Squeezed into a third column beside
   Passage and How the hymn uses it, six chips wrapped after the fifth and
   the field read as an afterthought. A 100% basis is what makes the flex
   row break there. */
.scripture-ref-stanzas { flex: 1 1 100%; }

/* THE EDIT DIALOG holds every reference the hymn has, so it is wider than the
   others and scrolls inside itself rather than off the screen. */
.wp-dialog-wide { max-width: 60rem; }
.scripture-edit-rows { max-height: 55vh; overflow-y: auto; padding-right: 0.25rem; }
/* EACH REFERENCE IS ITS OWN TILE (user, 2026-09-09). In the dialog the
   rows sat on white with a hairline between them and ran together - a
   dozen of them read as one long form rather than as a dozen things.
   Shaded, so the fields inside stay white and each tile is legible as a
   unit, with room between them to make the boundary obvious.
   Only in the dialog: on the admin page these sit on the page's own
   ground inside blocks that already separate them. */
.scripture-edit-rows { gap: 1rem; }
.scripture-edit-rows .scripture-ref-row {
  background: var(--card-alt); border-color: var(--border);
  padding: 0.85rem 0.95rem 0.75rem;
}
.scripture-pill, .scripture-ref-delete {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: inherit; font-size: 0.78rem; line-height: 1.4;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted); cursor: pointer;
}
/* Never stretched by whatever lays it out: a pill is the width of its
   own words. */
.scripture-pill { flex: 0 0 auto; align-self: center; width: auto;
  white-space: nowrap; color: var(--accent); border-color: var(--accent-light); }
.scripture-pill:hover { background: var(--accent); border-color: var(--accent);
  color: #fff; }
.scripture-ref-delete { flex: 0 0 auto; margin-left: auto; }
.scripture-ref-delete:hover { border-color: var(--error); color: var(--error); }

/* The stanza inside the Add dialog: the words the passage will be about,
   so the note can be written while reading them. */
.scripture-add-stanza {
  white-space: pre-line; margin: 0 0 0.9rem; padding: 0.6rem 0.9rem;
  background: var(--card-alt); border-radius: var(--radius);
  border-left: 3px solid var(--accent-light);
  font-size: 0.9rem; line-height: 1.45;
}
.lect-sugg-add { display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 0.6rem; margin: 0 0 0.9rem; }
.lect-sugg-add select { max-width: 22rem; }
.syllable-accept { white-space: nowrap; }
.syllable-accept form { display: flex; gap: 0.35rem; margin: 0.4rem 0 0; }
.syllable-accept input[type=text] { width: 9rem; font-size: 0.85em; }
.syllable-accept-note { margin-top: 0.35rem; font-style: italic; }

/* THE RULE BETWEEN TWO WAYS IN (user, 2026-09-20: a Tools form should
   "more clearly indicate that it's either/or"). It is what a page shows
   when its switch has not been wired - both halves, with this between
   them - so it is hidden by tool-sides.js rather than removed from the
   markup: markup and wiring under one condition (spec 57/59).

   THE RULES ARE ITS OWN PSEUDO-ELEMENTS, so the word sits in a gap in the
   line rather than on top of it and needs no background to punch
   through. */
.tool-or { display: flex; flex-direction: row; align-items: center;
  gap: 0.75rem; margin: 1.1rem 0; color: var(--muted, #6b6156);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tool-or::before, .tool-or::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: var(--rule, #d9d2c5); }
/* THE SWITCH AS A CONTROL, NOT A LINK (user, 2026-09-20: reshape the
   Tools forms around "is this from the library, or new?"). `.seg-opt` was
   written for the anchors that re-request a sheet from the server; here
   the same switch shows one half of a choice on the page, which is a
   button and has to be stripped of a button's own chrome to match it.

   AND `.seg-switch` SETS A DISPLAY OF ITS OWN, which outranks the
   browser's [hidden]{display:none} - so hiding it by attribute needs the
   rule that makes the attribute win (spec 66). It starts hidden because
   with no script there is no switching: both halves are simply shown. */
button.seg-opt { background: none; border: 0; font: inherit;
  border-left: 1px solid var(--rule, #d9d2c5); cursor: pointer; }
.seg-switch[hidden] { display: none; }

/* THE TWO SIDES AS TWO PANELS (user, 2026-09-20: "I would like the two
   columns to be more visually distinct, while still being clear that they
   go together"). They ran as one sheet of fields with a gutter down it, so
   the eye had nothing to tell it where one question ended.

   DISTINCT FROM THE PAGE, IDENTICAL TO EACH OTHER: that is what says two
   halves of one thing rather than two unrelated forms. It is `.card`'s own
   ground and rule - the app's panel, used here rather than a second one -
   with the head sitting ON the rule so a column is titled rather than
   merely containing a heading.

   EQUAL HEIGHT COMES FREE from the grid: `.grid-2` stretches its items, so
   the shorter side's panel runs to the taller one's foot and the pair
   reads as a pair however much is in each. */
.tool-side { background: var(--card, #fff);
  border: 1px solid var(--border, #e4dcd1); border-radius: var(--radius, 8px);
  padding: 0 1.25rem 1.25rem; box-shadow: 0 1px 3px rgba(43,38,32,0.05); }
.tool-side > h2:first-child { margin: 0 -1.25rem 1.1rem;
  padding: 0.7rem 1.25rem; font-size: 1.15rem;
  border-bottom: 1px solid var(--border, #e4dcd1); }
/* The first control under the head does not need a second gap above it. */
.tool-side > .seg-switch { margin-top: 0; }

/* ===================== THE FRONT PAGE =====================

   B's page with C's colours (user, 2026-10-30, of three drawn proposals - see
   home.html): what needs you as ONE strip of counts, the one prominent thing on
   the page; then the links, each group a coloured heading over rows of icon-and-
   label links in the app's brown. The links are kept quiet on purpose - of
   proposal A: "I don't like how everything looks of equal importance and
   calling for attention." Only the stylesheet's own variables.

   FEWER BOXES (the user, 11/8/2026: "The many tiles aren't exactly bad, but for some reason I'm not super thrilled with
   them either"; shown the suggestion, "yes"): What needs you and In progress are one card, the groups of links are one
   card, and the hymn has the right-hand two fifths to itself. THE LINKS CARD GIVEN ROOM (the user, 11/8/2026, of three
   drawings of it: "I think I like this one best.. but the numbers can be removed"): each group's rows stand in under its
   heading, about twice a row's spacing between groups, no rule under a heading, the row icons grey, each group's arrows
   just past its longest name, and no number on any link - the strip's counts are the page's only numbers. */

/* The page's name. */
.page-header.home-head { align-items: baseline; margin-bottom: 1.1rem; }
.page-header.home-head h1 { margin: 0; }

/* WHAT NEEDS YOU: one cell per count, EVERY CELL DRAWN ALIKE (the user, 11/8/2026) - the loose ends' too; a cell at zero
   grey, its label as ever. One or two counts with nothing in progress and no hymn beside them are a small card as wide
   as they need (home-needs-few); otherwise the card fills its column. */
.home-needs { padding: 0.9rem 1.25rem 1.05rem; margin: 0 0 1rem; }
.home-needs-few { width: fit-content; max-width: 100%; }
/* ...each cell as wide as its own words, on one line. The fill-the-row basis (11rem) is wider than a
   short cell needs, and the card is only as wide as the words, so two cells wrapped one above the other
   (version 4: a reviewer with some of it overdue). One cell still grows to the card's width. */
.home-needs-few .home-needs-cells { flex-wrap: nowrap; }
.home-needs-few .home-need { flex: 1 1 auto; }
.home-needs .card-head { margin-bottom: 0.75rem; gap: 2rem; }
.home-needs .card-head h2 { font-size: 1.1rem; }
.home-needs .card-head h2 a { color: var(--accent); text-decoration: none; white-space: nowrap; } .home-needs .card-head h2 a:hover { text-decoration: underline; }
.home-needs-cells { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.home-need {
  flex: 1 1 11rem; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
  padding: 0.6rem 0.8rem 0.7rem; background: var(--card-alt); border: 1px solid transparent;
  border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.home-need:hover { background: var(--card); border-color: var(--accent-light); text-decoration: none; }
.home-need-top { display: flex; align-items: center; gap: 0.5rem; color: var(--accent); }
.home-need-top svg { flex: none; }
.home-need-n { font-size: 1.45rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home-need-label { font-size: 0.85rem; line-height: 1.3; text-wrap: balance; }
.home-need-none { border-color: var(--border); border-left-color: var(--muted); }
.home-need-none .home-need-top { color: var(--muted); } .home-need-late { display: block; margin-top: 0.15rem; font-size: 0.8rem; font-weight: 600; color: var(--error); }

/* IN PROGRESS, UNDER THE COUNTS IN THE SAME CARD (the user, 11/8/2026): its own heading over a rule, as What needs you's;
   its lines Home's own link lines, the stage at the right, and under a name what holds that book or recording up,
   in the colour Where everything stands gives a book held up. With no count above it, it is the card's only part. */
.home-needs-cells + .home-wip { margin-top: 1.15rem; }
.home-wip { margin-bottom: -0.25rem; }
.home-wip .card-head { margin-bottom: 0.4rem; gap: 2rem; }
.home-wip .card-head h2 { font-size: 1.1rem; }
.home-wip .card-head h2 a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.home-wip .card-head h2 a:hover { text-decoration: underline; }
.home-wip-no { color: var(--muted); }
.home-wip-held { display: block; margin-top: 0.05rem; font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  color: var(--status-revision_needed-fg); }
/* The name and the stage share a narrow line: each gives way by its own width, and the stage breaks only before
   "+ sample review" - the stage line hangs it under In production the same way. */
.home-wip-link .home-link-t { flex: 1 1 auto; }
.home-link .home-wip-stage { flex: 0 1 auto; min-width: 0; color: var(--accent); font-weight: 600; text-align: right; }
.home-wip-stage > span { white-space: nowrap; }

/* WHERE TO GO: ONE CARD, its one border (the user, 11/8/2026). app.py deals the groups into columns - two beside the hymn,
   three with none - balanced by rows, so the columns end close to level; nothing is stretched to make them meet. Each
   column stacks its groups, WITH ROOM BETWEEN THEM (the user, 11/8/2026, of the card: "this tile feels like it doesn't
   breathe"): 2rem of clear space between one group and the next, about twice a row's 31px - down a column, and where the
   groups stand one under another (a tablet's rows, a phone's one column). */
.home-menu {
  display: grid; gap: 2rem 1.25rem; align-items: start; padding: 0.85rem 0.75rem 0.5rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(43,38,32,0.05);
}
.home-menu-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-menu-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-menu-1 { grid-template-columns: minmax(0, 1fr); }
.home-col { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.home-pos-0 { order: 0; } .home-pos-1 { order: 1; } .home-pos-2 { order: 2; }
.home-pos-3 { order: 3; } .home-pos-4 { order: 4; } .home-pos-5 { order: 5; }

/* Each group its own colour pair (proposal C), from the status and theme pairs. */
.home-g-review   { --g: var(--status-in_review-fg);       --g-bg: var(--status-in_review-bg); }
.home-g-browse   { --g: var(--accent);                    --g-bg: var(--status-revision_needed-bg); }
.home-g-research { --g: var(--status-revision_review-fg); --g-bg: var(--status-revision_review-bg); }
.home-g-build    { --g: var(--status-published-fg);       --g-bg: var(--status-published-bg); }
.home-g-rights   { --g: var(--status-approved-fg);        --g-bg: var(--status-approved-bg); }
.home-g-app      { --g: var(--muted);                     --g-bg: var(--card-alt); }

/* A group: no box of its own - the card is the box - and NO RULE UNDER ITS HEADING (the user, 11/8/2026), the heading
   close over its own rows. */
.home-group { min-width: 0; }
.home-group-h {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0.5rem 0.35rem; padding: 0;
  color: var(--g); font-size: 1rem; line-height: 1.2;
}
.home-chip {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 7px; background: var(--g-bg); color: var(--g);
}
.home-links { list-style: none; margin: 0; padding: 0; }
/* THE LINKS CARD'S ROWS STAND IN UNDER THEIR HEADING (the user, 11/8/2026: "if the options were indented a bit that
   might help"), each row's icon in line with the heading's words - past its 28px chip and the 0.6rem gap. AND EACH
   GROUP'S ARROWS JUST PAST ITS LONGEST NAME (the user, 11/8/2026, of arrows at the column's far edge: "they just float
   out there in space"): the list as wide as its widest row, every row as wide as the list, never wider than the column
   (a name too long for it still wraps), so the room between the columns is plainly empty. In progress's lines, in the
   card above, keep their width; a phone's rows are the card's width again (below). */
.home-menu .home-links { width: fit-content; max-width: 100%; padding-left: calc(28px + 0.6rem); }
.home-link {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.34rem 0.5rem; border-radius: 6px;
  color: var(--accent); font-size: 0.93rem; line-height: 1.35; text-decoration: none;
}
/* THE ROW IS THE LINK, AND SAYS SO UNDER THE POINTER AND WITH THE KEYBOARD'S FOCUS ALIKE (the user, 11/8/2026: "will the
   row change color or something when I hover over it so it's clear what's being selected?"): a light background from its
   icon to its chevron, the chevron brown, and in the links card the icon brown too - grey there otherwise, the chip by
   each heading keeping its colour. Focus also draws the app's own ring. */
.home-link:hover, .home-link:focus-visible { background: var(--card-alt); text-decoration: none; }
.home-link-i { flex: none; }
.home-menu .home-link-i { color: var(--placeholder); }
.home-link-t { flex: 1; min-width: 0; }
/* The words at a line's right: In progress's stage (.home-wip-stage gives its own colour). No link carries a number. */
.home-link-n { flex: none; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.home-link-go { flex: none; color: var(--border-strong); }
.home-link:hover .home-link-go, .home-link:focus-visible .home-link-go,
.home-menu .home-link:hover .home-link-i, .home-menu .home-link:focus-visible .home-link-i { color: var(--accent); }
/* What the group CREATES, after the places it goes: the same row, set apart by a little space alone. */
.home-make-first { margin-top: 0.6rem; }

/* THE HYMN HAS THE RIGHT-HAND TWO FIFTHS TO ITSELF (the user, 11/8/2026: "it seems the 'a hymn for today' column needs to be
   wider so that lines don't break"), starting level with the welcome (the user, 11/6/2026: "should start up on the same line
   as 'welcome to precentor'"); the left carries the welcome, What needs you and the links. The hymn shows as many whole
   stanzas as the left has room for (static/js/hymn-today.js), its type fitted to its column as ever. Stacked: the welcome,
   What needs you, the hymn, then the links. */
.home-band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; margin: 0 0 1rem; align-items: stretch; }
.home-band-left { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.home-band-left > .card, .home-band-left > .home-menu { margin: 0; width: auto; }
.home-band-left > .home-head { margin: 0 0 0.1rem; }
/* THE LINKS CARD RUNS ON TO THE BAND'S FOOT (spec 448's rule, carried into spec 449's band): where the hymn stands taller
   than the left - a Viewer's first stanza alone, or the hymn a pixel or two over its room - the left's last card takes the
   difference under its last row, so the two cards end level. */
.home-band-left > .home-menu:last-child { flex: 1 1 auto; }
.home-band-right { display: flex; flex-direction: column; min-width: 0; }
.home-band-right > .ht-page { flex: 1 1 auto; }
@media (min-width: 901px) { .home-band-left .home-needs-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); } }

/* A tablet: one column - the welcome, What needs you, the hymn, then the links, still in their columns; with no hymn,
   the three columns become two, the groups back in the ruled order. */
@media (max-width: 900px) {
  .home-band { display: flex; flex-direction: column; }
  .home-band-left, .home-band-right { display: contents; }
  .home-band .home-head { order: 0; }
  .home-band .home-needs { order: 1; }
  .home-band .ht-page { order: 2; min-width: 0; }
  .home-band .home-menu { order: 3; }
  .home-menu-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-menu-3 .home-col { display: contents; }
}
/* A phone: what needs you as rows, then one column of groups in the ruled order, each row the card's width. */
@media (max-width: 640px) {
  .page-header.home-head { margin-bottom: 0.9rem; row-gap: 0.25rem; }
  .page-header.home-head h1 { font-size: 1.5rem; }
  .home-band { gap: 0.75rem; }
  .home-needs, .home-needs-few { width: auto; padding: 0.75rem 0.85rem 0.85rem; margin-bottom: 0.75rem; }
  .home-needs .card-head { flex-wrap: wrap; row-gap: 0.15rem; }
  .home-needs-cells { flex-direction: column; gap: 0.4rem; }
  .home-need { flex: none; flex-direction: row; align-items: center; gap: 0.6rem; padding: 0.45rem 0.7rem; }
  .home-need-top { min-width: 4.6rem; }
  .home-need-n { font-size: 1.25rem; }
  .home-needs-cells + .home-wip { margin-top: 0.9rem; }
  .home-menu { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; padding: 0.7rem 0.35rem 0.4rem; }
  .home-col { display: contents; }
  /* ...as wide as the card again, so each row stays a wide target for a finger, its arrow at the card's edge. */
  .home-menu .home-links { width: auto; }
  .home-link { padding: 0.48rem 0.5rem; }
}
/* ---- end of the front page ---- */

/* ===================== LOOSE ENDS =====================

   One card per group, one line per check, and every check prints whether or not
   it found anything. A clear line keeps its place in grey with a tick so the
   page reads as a list of questions asked, not a list of failures - which is
   also what makes it obvious when the page itself breaks. */
.loose-intro { max-width: 68ch; margin-top: -0.5rem; }
.loose-summary {
  display: flex; align-items: center; gap: 0.9rem; margin: 1.1rem 0 1.4rem;
}
.loose-summary-n {
  font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1;
  min-width: 2.6rem; text-align: right;
}
.loose-summary-clear { color: var(--muted); }
.loose-summary .muted { display: block; font-size: 0.85rem; }
.loose-group { margin-bottom: 1.25rem; }
.loose-line { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.loose-line:first-of-type { border-top: 0; padding-top: 0.25rem; }
.loose-line-head { display: flex; align-items: baseline; gap: 0.9rem; }
.loose-line-n {
  font-size: 1.2rem; font-weight: 700; color: var(--accent);
  min-width: 2.4rem; text-align: right; flex: none;
}
/* minmax-free: this is a flex child, so min-width:0 is what keeps a long hint
   from pushing the row wider than the card (nothing_overflows, test_navigation). */
.loose-line-label { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.loose-line-label .muted { font-size: 0.85rem; }
.loose-line-clear .loose-line-n { color: var(--muted); font-weight: 400; }
.loose-line-clear strong { font-weight: 500; color: var(--muted); }
.loose-rows {
  list-style: none; margin: 0.6rem 0 0; padding: 0 0 0 3.3rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr));
  gap: 0.15rem 1.2rem; font-size: 0.9rem;
}
.loose-rows li { min-width: 0; overflow-wrap: anywhere; }
.loose-ref { font-size: 0.8rem; margin-left: 0.4rem; }
.loose-more { padding-left: 3.3rem; font-size: 0.85rem; margin: 0.4rem 0 0; }

@media (max-width: 640px) {
  .loose-rows, .loose-more { padding-left: 0; }
}

/* ===================== ANALYTICS AND ITS CHARTS =====================

   Drawn from the app's own theme variables, not from a charting library's
   palette, so a colour change or a dark mode reaches the charts for free. No
   charting library: the templates draw each chart as inline SVG, since a
   vendored library would bring a dependency, a version to keep, and colours
   that know nothing of this app's theme. */
.analytics-scope strong { color: var(--accent); }
.analytics-filters { margin-bottom: 1.25rem; }
.chart-grid {
  display: grid; gap: 1.25rem; margin-bottom: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
}
.chart-card { margin-bottom: 1.5rem; min-width: 0; }
/* Inside a grid the gap already spaces them, so the margin would
   double it. */
.chart-grid > .chart-card { margin-bottom: 0; }
/* A band heading needs room above it more than below: it introduces
   the cards under it and should not float between two of them. */
.analytics-band { margin: 2.25rem 0 0.9rem; font-size: 1.3rem; }
.analytics-band:first-of-type { margin-top: 0.5rem; }
.chart-note { font-size: 0.85rem; margin: -0.2rem 0 0.9rem; max-width: 60ch; }
.chart-empty { font-size: 0.9rem; font-style: italic; margin: 0.6rem 0; }
.chart-more { font-size: 0.85rem; margin: 0.6rem 0 0; }
.chart-table { margin-top: 0.4rem; }
.chart-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- headline numbers ---- */
.stat-row {
  display: grid; gap: 0.75rem; margin: 0 0 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem; min-width: 0;
}
.stat-n {
  display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.05;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: 0.9rem; margin-top: 0.15rem; }
.stat-hint { display: block; font-size: 0.78rem; color: var(--muted); }
.stat-good .stat-n { color: var(--success); }

/* ---- horizontal bars ----
   A grid, not a flex row: the labels line up in their own column whatever
   their length, which is the whole reason these are horizontal. */
.bar-chart { display: grid; gap: 0.35rem; }
.bar-row {
  display: grid; align-items: center; gap: 0.6rem;
  grid-template-columns: minmax(6rem, 11rem) minmax(0, 1fr) auto;
}
.bar-label {
  font-size: 0.86rem; min-width: 0; overflow-wrap: anywhere;
  color: var(--ink); text-decoration: none;
}
a.bar-label:hover { color: var(--accent); text-decoration: underline; }
.bar-track {
  display: block; background: var(--card-alt); border-radius: 999px;
  height: 0.85rem; min-width: 0; overflow: hidden;
}
.bar-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  /* A bar of zero is still a row with a track - see the macro. A minimum of
     2px keeps a value of 1 beside a value of 2,000 visible as something
     rather than nothing. */
  min-width: 2px;
}
/* A fourth column only where a percentage is shown, so a chart without one
   keeps its bar at full width rather than reserving space for nothing. */
.bar-row-pct {
  grid-template-columns: minmax(6rem, 11rem) minmax(0, 1fr) auto auto;
}
.bar-pct {
  font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums;
  min-width: 2.6rem; text-align: right;
}
.bar-value {
  font-size: 0.84rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--muted); min-width: 2.5rem; text-align: right;
}
.bar-row:hover .bar-fill { filter: brightness(1.08); }

/* ---- donut ----
   Stroke-dasharray on concentric circles: one number per slice, and a slice
   of nothing draws nothing rather than a degenerate arc. */
.donut-wrap { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.donut { width: 9.5rem; height: 9.5rem; flex: none; transform: rotate(-90deg); }
.donut-hole { fill: none; stroke: var(--card-alt); stroke-width: 5; }
.donut-seg {
  fill: none; stroke-width: 5; transition: stroke-width 0.12s;
}
.donut-seg:hover { stroke-width: 6.5; }
/* Six is enough for every donut on these pages; a seventh slice would reuse
   the first colour, which is why the key beside it is not optional. */
.donut-seg-1 { stroke: var(--accent); }
.donut-seg-2 { stroke: var(--accent-light); }
.donut-seg-3 { stroke: #5b7f7a; }
.donut-seg-4 { stroke: #8a7ea8; }
.donut-seg-5 { stroke: #b58a4e; }
.donut-seg-6 { stroke: #6b6156; }
.donut-centre, .donut-centre-label {
  transform: rotate(90deg); transform-origin: 21px 21px; text-anchor: middle;
  fill: var(--ink);
}
.donut-centre { font-size: 4px; font-weight: 700; }
.donut-centre-label { font-size: 2.2px; fill: var(--muted); }
.donut-key { list-style: none; margin: 0; padding: 0; font-size: 0.87rem; min-width: 0; }
.donut-key li { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.12rem 0; }
.donut-key li::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 3px; flex: none;
  background: var(--muted);
}
.donut-key li.donut-key-1::before { background: var(--accent); }
.donut-key li.donut-key-2::before { background: var(--accent-light); }
.donut-key li.donut-key-3::before { background: #5b7f7a; }
.donut-key li.donut-key-4::before { background: #8a7ea8; }
.donut-key li.donut-key-5::before { background: #b58a4e; }
.donut-key li.donut-key-6::before { background: #6b6156; }
.donut-key .muted { margin-left: auto; font-size: 0.8rem; white-space: nowrap; }

/* ---- a line over time ---- */
.timeline-wrap { position: relative; padding-top: 0.5rem; }
.timeline { width: 100%; height: 8rem; display: block; overflow: visible; }
.timeline-area { fill: var(--accent); opacity: 0.13; }
.timeline-line {
  fill: none; stroke: var(--accent); stroke-width: 0.6;
  vector-effect: non-scaling-stroke; stroke-linejoin: round;
}
/* THE DOTS ARE HTML, not SVG: the chart is stretched with
   preserveAspectRatio="none", which would squash a circle into an ellipse. */
.timeline-dots { position: absolute; inset: 0.5rem 0 1.6rem 0; }
.timeline-dot {
  position: absolute; width: 0.55rem; height: 0.55rem; margin: -0.27rem;
  border-radius: 50%; background: var(--accent); cursor: default;
}
.timeline-dot:hover, .timeline-dot:focus { outline: none; transform: scale(1.5); }
.timeline-tip {
  position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-size: 0.76rem;
  padding: 0.25rem 0.5rem; border-radius: var(--radius); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.1s; z-index: 3;
}
.timeline-tip strong { margin-left: 0.4rem; }
.timeline-dot:hover .timeline-tip, .timeline-dot:focus .timeline-tip { opacity: 1; }
.timeline-axis {
  display: flex; justify-content: space-between; font-size: 0.76rem;
  color: var(--muted); margin-top: 0.3rem;
}

@media (max-width: 560px) {
  .bar-row { grid-template-columns: minmax(4.5rem, 8rem) minmax(0, 1fr) auto; }
  .donut { width: 7.5rem; height: 7.5rem; }
}
.analytics-gated { max-width: 60ch; font-size: 0.9rem; margin-top: 1.25rem; }

.chart-after { margin: 0.9rem 0 0; }
/* A heading inside a card, under a chart - smaller than the card's own. */
.chart-subhead {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); margin: 1.4rem 0 0.4rem;
}

/* WHY, AND ELSEWHERE (10/31/2026, the copyright refinement): under When it becomes free, the US renewal search a
   Manager or an Admin records, the other countries' lines where they differ, and the written-together mark - quiet
   lines, the card's own muted size. */
.wd-renewal { margin: 0.5rem 0 0; }
.wd-renewal .rights-pill { margin-right: 0.15rem; }
.wd-renewal-form { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0.1rem 0 0.4rem; }
.wd-renewal-form select { font-size: 0.85rem; }
.wd-pd-abroad, .wd-written-together { list-style: none; padding-left: 0; margin: 0.4rem 0 0; font-size: 0.85rem; }
.wd-pd-abroad li, .wd-written-together li { margin: 0 0 0.25rem; }
.wd-pd-abroad li[title] { cursor: help; }
.wd-written-together .inline-form { display: inline; margin-left: 0.3rem; }

/* ===================================================================
   THE DOCUMENT REPOSITORY - the picker field, its dialog, the category
   table and the rights card.

   The dialog itself is .modal-overlay / .modal-dialog, the app's generic
   centred modal; only what is INSIDE it is new. The one override is its
   width: a search result carries a title, a type, a creator and where the
   work is printed, and 480px puts every one of those on its own line.
   =================================================================== */

/* WHAT A DOCUMENT APPLIES TO. Not a .stacked-form label - it holds a list and
   a button rather than one control - so it restates the label's own look
   rather than inheriting it. */
.doc-works { margin-bottom: 0.85rem; }
.doc-works-label { display: block; font-size: 0.88rem; color: var(--muted); }
.doc-works-list { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.doc-works-item {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.6rem;
  padding: 0.45rem 0.7rem; margin-bottom: 0.35rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-alt);
}
/* A REFERENCE THAT MATCHED NOTHING LOOKS DIFFERENT FROM ONE THAT DID. It is
   kept on purpose, and it is a question rather than a link - the Loose ends
   page asks it. */
.doc-works-item-unmatched { border-style: dashed; border-color: var(--error); }
.doc-works-name { font-weight: 600; min-width: 0; }
.doc-works-meta { color: var(--muted); font-size: 0.82rem; min-width: 0; }
.doc-works-item .pill-btn { margin-left: auto; }
.doc-works-empty { margin: 0.3rem 0 0.5rem; }

.doc-work-dialog { max-width: 620px; }
.doc-work-search { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.doc-work-search input[type="search"] { flex: 1 1 auto; min-width: 0; }
.doc-work-search select { flex: 0 1 13rem; min-width: 0; }
.doc-work-results { max-height: 46vh; overflow-y: auto; }
.doc-work-hits { list-style: none; margin: 0; padding: 0; }
.doc-work-hit {
  padding: 0.55rem 0.7rem; margin-bottom: 0.4rem;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.doc-work-hit-head { display: flex; align-items: baseline; gap: 0.5rem; }
.doc-work-hit-title { font-weight: 600; min-width: 0; }
.doc-work-hit-type { color: var(--muted); font-size: 0.78rem; text-transform: capitalize; }
.doc-work-hit-meta { color: var(--muted); font-size: 0.82rem; margin: 0.15rem 0 0.4rem; }
/* ALREADY ON THIS DOCUMENT: shown rather than hidden, because a search that
   silently drops what you already chose reads as a search that cannot find
   it. */
.doc-work-hit-taken { opacity: 0.65; }
.doc-work-hit-taken-note { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.doc-work-foot { margin: 0.75rem 0 0; }

/* THE CATEGORY DIALOG. Each row is its own form - a rename, a move up, a
   move down, a delete - so the cells hold controls rather than text and the
   inputs have to stay inline. */
.doc-category-dialog { max-width: 560px; }
/* THE ADD FORM is a dialog now, and it holds a dozen fields: the generic
   480px would make a column of it. */
.doc-add-dialog { max-width: 620px; }
.doc-add-dialog .stacked-form { margin-top: 0.25rem; }
/* The two page actions sit together, the vivid one first. */
.doc-page-actions { display: flex; align-items: center; gap: 0.6rem; }
/* HOUSEKEEPING LIVES UNDER THE LIST, not beside the one button the page is
   for: it has to be reachable, not prominent. */
.doc-page-foot { margin: 0.75rem 0 0; }
/* THE PAYMENT FOLD. The tick sits where the fieldset's legend used to, so the
   question and the fields it opens read as one block. A checkbox-label is a
   flex row, and the sentence beside the box has to be ONE item to wrap. */
.doc-payment-tick { align-items: flex-start; margin: 0.9rem 0 0.5rem; }
.doc-payment-fields[hidden] { display: none; }

/* THE SUMMARY ROW. A <tfoot>, so it sits under the body however the rows are
   sorted, and its cells are <th> - they label the column rather than being
   another row of it. Heavier top border because it is a different KIND of
   line, not the ninth document. */
.doc-summary th {
  border-top: 2px solid var(--border-strong);
  background: var(--card-alt); font-weight: 600; vertical-align: top;
  text-align: left; padding: 0.6rem 0.75rem; white-space: nowrap;
}
/* THE FOUR MIDDLE COLUMNS CENTRE (user, 2026-09-27). The heading is a flex
   button inside the cell with a text-align of its own, so the cell rule alone
   would centre every row except the one naming the column. */
.doc-table th.doc-mid, .doc-table td.doc-mid { text-align: center; }
.doc-table th.doc-mid .table-sort-btn { justify-content: center; text-align: center; }
.doc-summary th .muted { font-weight: 400; white-space: normal; }
.doc-category-form { display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.doc-category-form input[type="text"] { flex: 1 1 auto; min-width: 6rem; }
.doc-category-add { margin-top: 0.75rem; }
.doc-category-table td { vertical-align: middle; padding-left: 0.4rem; padding-right: 0.4rem; }
.doc-category-table td:first-child { padding-left: 0; }
/* THE TWO ARROWS SIT TOGETHER, and a disabled one keeps its place rather than
   collapsing - the ends of the list would otherwise shift under the cursor. */
.doc-category-move { display: flex; gap: 0.25rem; white-space: nowrap; }
.doc-category-move .pill-btn { padding: 0.28rem 0.5rem; }
.doc-category-move .pill-btn[disabled] { opacity: 0.35; cursor: default; }

/* THE RIGHTS CARD. A long sentence beside a tick, so the box sits at the top
   of it rather than halfway down the wrap. */
.doc-rights-work { padding: 0.6rem 0; border-top: 1px solid var(--border); }
.doc-rights-work:first-of-type { border-top: 0; }
.doc-rights-work h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.doc-rights-work .checkbox-label { align-items: flex-start; margin-bottom: 0.45rem; }
.doc-rights-done { margin: 0 0 0.3rem; }

/* ================================================ BUG REPORTS AND SUGGESTIONS
   (user, 2026-10-01: "report a bug, and make a suggestion" at the top of the
   menu with your name). The dialog, the notice, My feedback, and the
   dashboard a Manager or an Admin answers them from. */

/* My feedback's count, in the account menu, while an answer waits unread. */
.userbox-count { display: inline-block; min-width: 1.15rem; padding: 0 0.35rem;
  margin-left: 0.3rem; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 0.72rem; font-weight: 600; line-height: 1.25rem;
  text-align: center; }

/* THE NOTICE UNDER THE HEADER while something you sent has an answer you
   have not read - in the review band's own amber, so it reads as "waiting on
   you" rather than as an alarm. */
.feedback-notice { background: var(--status-in_review-bg); color: var(--ink);
  text-align: center; padding: 0.45rem 1rem; font-size: 0.9rem;
  border-bottom: 1px solid var(--border); }
.feedback-notice a { font-weight: 600; margin-left: 0.4rem; }

/* THE DIALOG, a little wider than a confirmation: it holds a paragraph and,
   often, a picture. */
.feedback-dialog { max-width: 560px; }
.feedback-form[hidden], .feedback-thanks[hidden], .feedback-error[hidden] {
  display: none; }
/* The Bug / Suggestion switch is the app's segmented switch, drawn with
   buttons rather than links - so the buttons' own borders and paint go.
   ITS OWN CLASS, NOT .feedback-kind: that is the small Bug/Suggestion
   tag on the dashboard, and sharing it gave the switch the tag's padding
   - the colour of the chosen half sat in a rectangle inside its segment
   instead of filling it (user, 2026-10-01: "The color on the selected
   option needs to fill the region, not just a rectangle behind the
   text"). */
.feedback-form .feedback-kind-switch { margin: 0 0 0.8rem; }
.feedback-kind-switch .seg-opt { font: inherit; font-size: 0.85rem;
  cursor: pointer; background: none; border: 0;
  border-left: 1px solid var(--line, #d8d2c8); }
.feedback-kind-switch .seg-opt:first-child { border-left: 0; }
.feedback-kind-switch .seg-opt.is-on { background: var(--accent); color: #fff; }
/* THE SWITCH IS THE TITLE (the user, 11/9/2026: "it's not really clear what the switch does just by looking at
   it"): Report bug | Make suggestion in the box's head, at a title's size; the chosen half filled, as every
   switch in the app. */
.feedback-kind-switch.feedback-kind-title .seg-opt { font-size: 1rem; font-weight: 600; padding: 0.35rem 1rem; }
.feedback-prompt { display: block; font-weight: 600; margin: 0 0 0.3rem; }
.feedback-form textarea { width: 100%; box-sizing: border-box; min-height: 7rem;
  resize: vertical; font: inherit; }
.feedback-shot { margin: 0.75rem 0 0.5rem; }
.feedback-shot-add { border: 1px dashed var(--border-strong);
  border-radius: var(--radius); padding: 0.6rem 0.8rem; font-size: 0.86rem;
  background: var(--paper); }
.feedback-shot-add.is-over, .feedback-shot-add:focus { outline: none;
  border-color: var(--accent); background: var(--card-alt); }
.feedback-shot-add[hidden] { display: none; }
.feedback-shot-preview { display: flex; align-items: flex-start; gap: 0.7rem; }
.feedback-shot-preview[hidden] { display: none; }
.feedback-shot-preview img { max-width: 220px; max-height: 140px;
  border: 1px solid var(--border); border-radius: 4px; }
.feedback-context { font-size: 0.82rem; margin: 0.5rem 0 0; }
.feedback-context summary { cursor: pointer; color: var(--muted); }
.feedback-context-list { display: grid; margin: 0.5rem 0 0;
  grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 0.8rem; }
.feedback-context-list dt { color: var(--muted); }
.feedback-context-list dd { margin: 0; overflow-wrap: anywhere; }
.feedback-context-list [hidden] { display: none; }
.feedback-env { font-size: 0.82rem; margin: 0.5rem 0 0;
  color: var(--status-in_review-fg); }
.feedback-error { color: var(--error); font-size: 0.86rem; margin: 0.6rem 0 0; }
.feedback-thanks-head { font-size: 1rem; margin-top: 0; }

/* WHAT WAS SENT, as cards on My feedback and as pills everywhere. */
.feedback-list { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.feedback-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 0.7rem; }
.feedback-card.is-fresh { border-color: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(201, 139, 111, 0.25); }
.feedback-card-head { display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 0.6rem; margin-bottom: 0.4rem; }
.feedback-when { margin-left: auto; }
.feedback-fresh { font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.feedback-ref { font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.feedback-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.3rem 0; }
.feedback-from { margin: 0.25rem 0 0; }
.feedback-answer { margin-top: 0.55rem; padding: 0.5rem 0.75rem;
  background: var(--card-alt); border-radius: 6px; white-space: pre-wrap; }
.feedback-kind, .feedback-status { display: inline-block; font-size: 0.74rem;
  font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px;
  white-space: nowrap; vertical-align: middle; }
.feedback-kind-bug { background: var(--status-revision_needed-bg);
  color: var(--status-revision_needed-fg); }
.feedback-kind-suggestion { background: var(--type-lyrics-bg);
  color: var(--type-lyrics-fg); }
.feedback-status-new { background: var(--status-in_review-bg);
  color: var(--status-in_review-fg); }
.feedback-status-planned { background: var(--status-backlog-bg);
  color: var(--status-backlog-fg); }
.feedback-status-in_progress { background: var(--type-melody-bg);
  color: var(--type-melody-fg); }
.feedback-status-done { background: #dcefe0; color: var(--success); }
.feedback-status-wont_do { background: var(--card-alt); color: var(--muted); }
.page-header h1 .feedback-kind, .page-header h1 .feedback-status {
  font-size: 0.78rem; margin-left: 0.35rem; }

/* THE DASHBOARD AND ONE REPORT. */
.feedback-table .feedback-summary { color: var(--ink); }
.feedback-row-done td, .feedback-row-wont_do td { opacity: 0.75; }
.feedback-detail, .feedback-answer-card { max-width: 52rem; }
.feedback-detail-head { font-size: 1.05rem; margin: 0 0 0.5rem; }
/* A report's number in its heading, full-height (the user, 11/10/2026): the serif face draws numbers at
   lowercase height by default, and FB-0 read as "FB-o". */
.feedback-ref-head { font-variant-numeric: lining-nums; }
.feedback-detail-sub { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
.feedback-context-full { font-size: 0.9rem; margin-top: 1rem; }
.feedback-path { overflow-wrap: anywhere; }
.feedback-shot-full img { max-width: 100%; border: 1px solid var(--border);
  border-radius: 4px; }
.feedback-errors { font-size: 0.85rem; padding-left: 1.2rem; }
.feedback-errors code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* NOTES ON A REPORT (user, 2026-10-01: "an admin comment to any item that
   clarifies or refines the feedback/bug report"). Oldest first, each with
   who wrote it and when, Delete beside the name rather than under the words. */
.feedback-notes-card { max-width: 52rem; }
.feedback-notes-why { margin: -0.2rem 0 0.8rem; }
.feedback-notes { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.feedback-note { border-left: 3px solid var(--accent-light);
  background: var(--card-alt); border-radius: 0 6px 6px 0;
  padding: 0.5rem 0.75rem; margin-bottom: 0.6rem; }
.feedback-note-head { display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.3rem 0.6rem; }
.feedback-note-delete { margin-left: auto; }
.feedback-note .feedback-body { margin: 0.3rem 0 0; }
.feedback-note-add textarea { width: 100%; box-sizing: border-box;
  resize: vertical; font: inherit; }
/* ...and as the sender reads them, under what they wrote. */
.feedback-note-mine { margin: 0.5rem 0 0; padding: 0.45rem 0.7rem;
  border-left: 3px solid var(--accent-light); background: var(--card-alt);
  border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.feedback-note-who { font-weight: 600; white-space: normal; }
/* STATUS AND KIND SIDE BY SIDE on the answer, the kind being the rarer
   correction of the two. */
.feedback-answer-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.feedback-answer-row label { flex: 1 1 12rem; }
.feedback-answer-row label:last-child { flex: 0 1 11rem; }
.feedback-answer-row select { width: 100%; }
/* AND DRAWN BY THE APP, NOT THE BROWSER (user, 2026-10-01: "the bottom of
   the 'g' in 'progress' and 'suggestion' is slightly cut off"). A native
   dropdown ignores line-height and sets its words in a box only as tall as
   the font says it is; at the user's zoom their browser set the words low
   in that box and clipped every descender along one line. Headless Edge at
   six different scales did not, so this does not depend on reproducing it:
   without the native look the words sit in a real line box, a line and a
   half tall, and the arrow is drawn here instead. Same outer height. */
.feedback-answer-row select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  line-height: 1.5; padding: 0.35rem 2rem 0.35rem 0.55rem;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2620' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
  background-size: 0.75rem auto; }

/* THE SENDER'S WORDS, SET APART on a report's page (user, 2026-10-01: "the
   suggestion text isn't set apart or otherwise easy to distinguish from other
   text"): a quotation, in the accent the app's own headings use, a size up. */
.feedback-quote { margin: 0.25rem 0 1rem; padding: 0.7rem 0.95rem;
  border-left: 4px solid var(--accent); background: var(--paper);
  border-radius: 0 6px 6px 0; font-size: 1.05rem; line-height: 1.5;
  color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
/* ...and what the dialog captured, one panel a shade darker than the card
   ("should have a slightly darker background or something to unify it"). */
.feedback-captured { background: var(--card-alt); border-radius: 6px;
  padding: 0.65rem 0.9rem 0.75rem; }
.feedback-captured-label { margin: 0 0 0.45rem; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.feedback-captured .feedback-context-full { margin-top: 0; }

/* ============================== SERVICE PLANNER ==============================
   Tools > Service Planner (user, 2026-10-02): the list of events, an event's
   own form, and the event page - each day a card, its blocks inside it, a row
   for each hymn. */
.sp-status {
  display: inline-block; font-size: 0.75rem; line-height: 1.35; padding: 0.1rem 0.5rem;
  border-radius: 6px; background: var(--status-draft-bg); color: var(--status-draft-fg);
}
.sp-status.sp-locked { background: var(--status-published-bg); color: var(--status-published-fg); }
.sp-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sp-inline { display: inline; margin: 0; }
.sp-theme-text { font-style: italic; margin: 0.35rem 0 0.25rem; }
.sp-focus { margin: 0.35rem 0 0; }
.sp-tag-passage { background: #e4ecf4; color: #2c5a8a; }
/* The marks gathered at the top: the colour of a caution, not of an error -
   a repeat is flagged, never refused. They fold away, and each line goes to
   its row. */
.sp-flags { background: #fdf8ec; border-color: #e8d3a6; padding: 0.7rem 1.2rem; }
.sp-flags > summary { cursor: pointer; }
.sp-flags-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }
.sp-flags-count {
  display: inline-block; min-width: 1.4rem; margin-left: 0.25rem; padding: 0 0.4rem; border-radius: 999px;
  background: #f6e7c8; color: #7a5310; font-size: 0.75rem; line-height: 1.5; text-align: center;
}
.sp-flags ul { margin: 0.45rem 0 0; padding-left: 1.2rem; }
.sp-flags li { margin: 0.15rem 0; }
.sp-flags a { color: inherit; }
/* DISMISSING A WARNING (user, 2026-10-03): a quiet button after each line,
   and the dismissed ones folded away at the card's foot. */
.sp-flag-form { margin-left: 0.4rem; }
.sp-flag-dismiss {
  font: inherit; font-size: 0.74rem; line-height: 1.3; padding: 0.05rem 0.5rem; cursor: pointer;
  color: var(--muted); background: transparent; border: 1px solid var(--border-strong); border-radius: 999px;
}
.sp-flag-dismiss:hover, .sp-flag-dismiss:focus-visible { color: var(--ink); background: var(--card); }
.sp-flags-none { margin: 0.45rem 0 0; }
.sp-flags-dismissed { margin-top: 0.55rem; font-size: 0.86rem; color: var(--muted); }
.sp-flags-dismissed > summary { cursor: pointer; }
.sp-flags-dismissed ul { margin-top: 0.3rem; }
.sp-tools { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
/* THE EVENT PAGE, LAID OUT TO FIND YOUR WAY AROUND (user, 2026-10-03: "this
   is a really long list where everything is in the left column and it looks
   overwhelming - not easy to navigate ... all the buttons on the right of
   every line are also overwhelming"): the days listed on the left and kept
   in view, one day shown at a time with its blocks side by side, and
   everything a row can do in the one menu at its end. Wider than the app's
   other pages, for the blocks' room. */
body.sp-wide main.container { max-width: 1360px; }
.sp-planner { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sp-nav {
  position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.6rem 0.45rem 0.7rem; box-shadow: 0 1px 3px rgba(43,38,32,0.05);
}
/* Clear of the test environment's banner, which is pinned to the top too. */
body.env-flagged .sp-nav { top: 2.75rem; max-height: calc(100vh - 3.75rem); }
.sp-nav-title {
  margin: 0 0.5rem 0.3rem; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.sp-nav-days, .sp-nav-blocks { list-style: none; margin: 0; padding: 0; }
.sp-nav a {
  display: flex; align-items: baseline; gap: 0.45rem; padding: 0.28rem 0.5rem;
  border-radius: 6px; color: var(--ink);
}
.sp-nav a:hover { background: var(--paper); text-decoration: none; }
.sp-nav-day-link { font-weight: 600; font-size: 0.88rem; }
.sp-nav-day.is-current > .sp-nav-day-link { background: var(--card-alt); color: var(--accent); }
.sp-nav-blocks { margin: 0.15rem 0 0.45rem 0.75rem; padding-left: 0.2rem; border-left: 2px solid var(--border); }
.sp-nav-block { font-size: 0.82rem; }
.sp-nav-time { flex: 0 0 4.3rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-nav-name { flex: 1 1 auto; min-width: 0; }
/* A block with a hymn to look at: a dot in the caution's colour. */
.sp-nav-block.has-flags .sp-nav-name::after {
  content: ""; display: inline-block; width: 0.42rem; height: 0.42rem; margin-left: 0.35rem;
  border-radius: 50%; background: #d39b2a; vertical-align: 0.08em;
}
.sp-nav-none { margin: 0.2rem 0.5rem; }
.sp-nav-add { margin: 0.5rem 0.5rem 0; }
.sp-nav-panel { margin: 0.5rem 0.3rem 0; }
/* ONE DAY AT A TIME, once the script has said which. */
.sp-planner.is-one-day .sp-day:not(.is-current) { display: none; }
.sp-planner.is-one-day .sp-nav-day:not(.is-current) .sp-nav-blocks { display: none; }
.sp-main { min-width: 0; }
.sp-day { padding: 1rem 1.1rem 1.1rem; }
.sp-day-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.6rem;
}
.sp-day-head h2 { margin: 0; padding: 0; border: none; font-size: 1.25rem; }
.sp-day-head .sp-menu { margin-left: auto; }
/* A NEW BLOCK, from the + in the day's title row (user, 2026-10-03). */
.sp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.75rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--accent);
  font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.sp-icon-btn:hover, .sp-icon-btn:focus-visible { background: var(--card-alt); border-color: var(--accent-light); }
.sp-day-head .sp-add-block-btn { margin-left: auto; }
.sp-day-head .sp-add-block-btn + .sp-menu { margin-left: 0; }
/* THE DAY'S BLOCKS, SIDE BY SIDE, in time order across and then down. */
.sp-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; align-items: start; }
/* THREE BLOCKS SIDE BY SIDE (user, 2026-10-03: "Can we fit three cards in three columns, and only go to two per column with a row break if there are 4+ service blocks?"): a part of the day with three blocks lays them in three columns, any other number in two, a fourth starting a second row; by the width of the part's own band (container sp-part), a narrower one steps down to two columns, then one. */
@container sp-part (min-width: 38rem) { .sp-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container sp-part (min-width: 57rem) { .sp-blocks.sp-blocks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* THE PARTS OF THE DAY (user, 2026-10-03: "I would like each day divided into
   Morning ..., afternoon ..., evening"), WITH DEFINITION (user: "I would like
   there to be more definition between the times of day - this is a lot of
   white still"): each part a band of its own colour - a warm cream for the
   morning, a green for the afternoon, a dusk blue for the evening - with its
   icon and its name, and the white blocks standing on it. The list of days
   names each part in the same colour. */
.sp-tone-morning { --tone-bg: #fbf0d9; --tone-line: #ebd09b; --tone-strong: #d4a24a; --tone-ink: #85570f; }
.sp-tone-afternoon { --tone-bg: #e8f1e2; --tone-line: #c3dab8; --tone-strong: #86b277; --tone-ink: #3d6a37; }
.sp-tone-evening { --tone-bg: #e4ebf6; --tone-line: #c1cfe6; --tone-strong: #7f9dcb; --tone-ink: #31568a; }
.sp-tone-untimed { --tone-bg: #efebe5; --tone-line: #d8d0c4; --tone-strong: #b5a68e; --tone-ink: #6b6156; }
.sp-day-part {
  margin-top: 0.9rem; padding: 0.6rem 0.75rem 0.8rem; container: sp-part / inline-size;
  background: var(--tone-bg); border: 1px solid var(--tone-line); border-radius: var(--radius);
}
.sp-day-empty { margin: 0.6rem 0 0.2rem; }
.sp-day-part-name {
  display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.6rem; padding: 0; border: none;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--tone-ink);
}
/* EACH ICON ON THE MIDDLE OF ITS WORD'S CAPITALS (user, 2026-10-03: "they
   need more breathing room between the icon and its text, and the text and
   icon need to be vertically centered"). Centred on the line box, which
   capitals sit high in, an icon read low in the list and high in a band;
   each is moved by what was measured off the fonts in the browser. */
.sp-part-icon { flex: 0 0 auto; position: relative; }
.sp-day-part-name .sp-part-icon { top: 0.06em; }
.sp-day-part .sp-block {
  border-color: var(--tone-line); border-top-color: var(--tone-strong);
  box-shadow: 0 1px 4px rgba(43,38,32,0.10);
}
.sp-nav-part {
  display: flex; align-items: center; gap: 0.45rem; margin: 0.45rem 0 0.1rem 0.45rem;
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tone-ink);
}
.sp-nav-part:first-child { margin-top: 0.15rem; }
.sp-nav-part .sp-part-icon { width: 12px; height: 12px; top: -0.087em; }
.sp-block {
  background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent-light);
  border-radius: var(--radius); padding: 0.55rem 0.7rem 0.6rem; min-width: 0;
}
.sp-block-head { display: flex; align-items: center; gap: 0.45rem; }
.sp-block-name { margin: 0; font-size: 1rem; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.sp-block-kind { display: block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 400; color: var(--muted); }
/* The block's own button opens its dialog, drawn as a menu's button is. */
.sp-edit-block-btn { border: none; background: none; font: inherit; padding: 0; margin-left: auto; flex: 0 0 auto; }
/* A FOLDED BLOCK (user, 2026-10-02: "Make the service blocks collapsible,
   with a brief summary below the title line"): its title line, and under it
   the one line of what it holds, which opens it again. */
.sp-fold {
  background: none; border: none; cursor: pointer; padding: 0 0.1rem 0 0;
  color: var(--muted); font-size: 0.95rem; line-height: 1; align-self: center;
}
.sp-fold span { display: inline-block; transition: transform 0.15s ease; }
.sp-block.is-folded .sp-fold span { transform: rotate(-90deg); }
.sp-block-brief { display: none; margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.sp-block.is-folded .sp-block-brief { display: block; }
.sp-block.is-folded .sp-block-body { display: none; }
.sp-fold-all { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; margin: 0 0 0.6rem; }
/* THE PASSAGES AND THE FOLD BUTTONS, ONE ROW ACROSS THE HEADER (user, 2026-10-03: "the 'collapse all'
   and 'expand all' buttons can move up to the same row as the 'ps 118'"), so the day's card starts level
   with the list of days. The header's own row gap is taken back, and the theme gives up the bottom
   margin that used to fold into the passages' top one, so the passages stand where they stood. */
.sp-head-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
  margin-top: -1rem; }
.page-header .sp-theme-text { margin-bottom: 0; }
.sp-head-row .sp-fold-all { margin: 0.35rem 0 0 auto; }
/* WHAT IS HIDDEN BY ITS ATTRIBUTE STAYS HIDDEN, whatever display its class
   gives it: an author rule outranks the browser's own [hidden]. */
.sp-fold-all[hidden], .sp-panel[hidden], .sp-link-btn[hidden], .sp-fold[hidden],
.sp-what-hymn[hidden], .sp-what-part[hidden] { display: none; }
.sp-block-time { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
/* THE SERVICE TIME, set on the block's heading: the picker reads as the time. */
.sp-time-form { display: inline-flex; align-items: center; flex: 0 0 auto; }
/* THE PLANNER'S OWN TIME PICKER (user, 2026-10-03: "The time selector here should
   only have 00, 15, 30, and 45"): one box reading as the time - 10:30 PM - each
   part of it a list of its own, its arrow left off as the browser's picker has. */
.sp-timesel {
  display: inline-flex; align-items: center; gap: 0.05rem; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.2rem 0.3rem;
}
.sp-timesel select, .sp-dialog-form .sp-timesel select {
  display: inline-block; width: auto; margin: 0; font: inherit; color: inherit; line-height: 1.3;
  background: transparent; border: none; border-radius: 4px; padding: 0.05rem 0.2rem;
  -webkit-appearance: none; appearance: none; cursor: pointer; text-align: center;
}
.sp-timesel select:hover, .sp-timesel select:focus-visible { background: var(--card-alt); outline: none; }
.sp-timesel-ap { margin-left: 0.25rem !important; }
.sp-timesel-colon { color: var(--muted); }
.sp-timesel.sp-time { font-size: 0.85rem; padding: 0.05rem 0.25rem; }
.sp-dialog-form .sp-timesel { display: flex; width: fit-content; margin-top: 0.25rem; font-size: 0.95rem; }
/* A REFUSAL, SAID IN THE DIALOG above its Save, every field kept (user,
   2026-10-03: "throws an error when i try to save, and then deletes
   everything I've entered"); a passage refused is marked where it was typed. */
.sp-dialog-error {
  margin: 0.2rem 0 0.7rem; padding: 0.55rem 0.75rem; border-radius: var(--radius); font-size: 0.9rem;
  color: #8a2a1a; background: #fbebe7; border: 1px solid #e8b9ad;
}
.sp-dialog-form input[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15); }
/* THE TIME PICKER, DRAWN (user, 2026-10-03: "The format of these lists leaves
   something to be desired... they're too narrow and undifferentiated from the
   background"): the lists hidden under a box reading as the time, which opens
   a panel of its own - wide enough to read, set off from the page by its
   border and shadow, its buttons in the planner's colours. */
.sp-timesel { position: relative; }
.sp-timesel.is-drawn, .sp-dialog-form .sp-timesel.is-drawn { border: none; background: none; padding: 0; }
.sp-timesel.is-drawn > select, .sp-dialog-form .sp-timesel.is-drawn > select,
.sp-timesel.is-drawn > .sp-timesel-colon { display: none; }
.sp-timesel-btn {
  font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem 0.5rem; min-width: 5.6rem;
  text-align: left; cursor: pointer; white-space: nowrap;
}
.sp-timesel-btn.is-empty { color: var(--muted); }
.sp-timesel-btn:hover, .sp-timesel-btn[aria-expanded="true"] { border-color: var(--accent-light); }
.sp-dialog-form .sp-timesel-btn { padding: 0.4rem 0.6rem; border-radius: var(--radius); min-width: 7rem; }
.sp-timesel-pop {
  position: absolute; z-index: 40; top: calc(100% + 0.3rem); left: 0; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(43, 38, 32, 0.22); padding: 0.75rem 0.85rem 0.65rem;
  font-size: 0.92rem; font-weight: 400; font-family: var(--font-sans);
}
.sp-timesel-pop[hidden] { display: none; }
.sp-timesel-cols { display: flex; gap: 1.1rem; }
.sp-timesel-col-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.4rem; min-height: 1em;
}
.sp-timesel-grid { display: grid; gap: 0.3rem; }
.sp-timesel-col.is-hours .sp-timesel-grid { grid-template-columns: repeat(3, 2.6rem); }
.sp-timesel-col.is-minutes .sp-timesel-grid, .sp-timesel-col.is-half .sp-timesel-grid { grid-template-columns: 3rem; }
.sp-timesel-opt {
  font: inherit; font-variant-numeric: tabular-nums; height: 2.05rem; padding: 0; color: var(--ink);
  background: var(--card-alt); border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.sp-timesel-opt:hover, .sp-timesel-opt:focus-visible { border-color: var(--accent-light); outline: none; }
.sp-timesel-opt.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.sp-timesel-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.7rem; }
.sp-timesel-foot .sp-link-btn { font-size: 0.85rem; }
.sp-block-about { margin: 0.35rem 0 0.1rem; font-size: 0.85rem; }
.sp-block-about .sp-theme-text { margin: 0 0 0.2rem; }
.sp-block-themes { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; margin: 0; }
.sp-block-themes .tag { margin: 0; }
.sp-about-label { font-size: 0.72rem; color: var(--muted); margin-right: 0.1rem; }
/* A BLOCK'S ROWS: what each is for, the hymn, its length, and its menu. */
.sp-slots { list-style: none; margin: 0.45rem 0 0.2rem; padding: 0; }
.sp-slot {
  display: grid; grid-template-columns: minmax(6.5rem, 9.5rem) minmax(0, 1fr) auto auto;
  gap: 0.1rem 0.5rem; align-items: center;
  padding: 0.2rem 0.25rem; border-bottom: 1px solid var(--border); border-radius: 4px;
}
.sp-slot:last-child { border-bottom: none; }
.sp-slot.has-flags { background: #fdf8ec; }
.sp-slot-label { grid-column: 1; color: var(--muted); font-size: 0.8rem; line-height: 1.25; }
.sp-slot-hymn { grid-column: 2; min-width: 0; font-size: 0.9rem; align-self: baseline; }
/* THE NUMBER FIRST, THE LENGTH LAST (user, 2026-10-03: "the hymn duration looks like the most
   prominent thing in the service block, but really it's the least important thing. The hymn
   number is more important"): the length small and grey, level with the hymn's first line;
   the number bolder and a touch larger than its title (.sp-hymn-num). */
.sp-slot-dur {
  grid-column: 4; font-variant-numeric: tabular-nums; font-size: 0.74rem; color: var(--muted);
  align-self: baseline;
}
.sp-slot > .sp-menu { grid-column: 5; }
/* THE BIN BETWEEN A HYMN AND ITS LENGTH (user, 2026-10-03: "I'd like a little trash can icon added
   here that deletes the hymn, but leaves the slot intact"), JUST ITS ICON ("I wouldn't like the trash
   can to be a button - more subtle - just the icon"): no box at any time; grey and faint, a little
   less so on the line pointed at, and red itself when it is. */
.sp-slot-clear-form { grid-column: 3; margin: 0; align-self: center; line-height: 0; }
.sp-slot-clear, .sp-slot-clear:hover, .sp-slot-clear:active {
  display: inline-flex; padding: 0.1rem; margin: 0; border: 0; border-radius: 0; background: none;
  box-shadow: none;
}
.sp-slot-clear { color: var(--muted); cursor: pointer; opacity: 0.45; }
.sp-slot:hover .sp-slot-clear { opacity: 0.75; }
.sp-slot .sp-slot-clear:hover, .sp-slot .sp-slot-clear:focus-visible { color: var(--error); opacity: 1; }
.sp-slot-flags { grid-column: 2 / -1; }
.sp-block-flags { margin: 0.5rem 0 0.1rem; }
/* A NARROW BLOCK - three to a row (.sp-blocks-3) leaves each about 20rem -
   lays its lines out as a phone does: what a line is for above, its hymn and
   length below - the hymn set in a little, so each line is told apart (user,
   2026-10-03: "Indent each hymn number and name a bit so its easier to tell
   each item apart") - and the block's name on a line of its own under its time.
   By the block's own width (container sp-block), not the window's. */
.sp-block { container: sp-block / inline-size; }
@container sp-block (max-width: 22rem) {
  .sp-slot { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .sp-slot-label { grid-column: 1 / -1; }
  .sp-slot-hymn, .sp-slot-dur, .sp-slot > .sp-menu, .sp-slot-clear-form { grid-row: 2; }
  .sp-slot-hymn { grid-column: 1; padding-left: 0.85rem; }
  .sp-slot-clear-form { grid-column: 2; }
  .sp-slot-dur { grid-column: 3; }
  .sp-slot > .sp-menu { grid-column: 4; }
  .sp-part-name { grid-column: 1 / 3; }
  .sp-part > .sp-menu { grid-row: 1; }
  .sp-slot-flags { grid-column: 1 / -1; }
  .sp-block-head { flex-wrap: wrap; }
  .sp-block-name { order: 3; flex-basis: 100%; }
}
/* THE COMMUNION HYMNS, ONE LINE THAT OPENS (user, 2026-10-03: "I'd like the
   communion hymns to be treated as a sub-list of some sort, that is
   collapsible and defaults to collapsed, but I can still expand and edit as
   needed"): the line names them and says how many are chosen; opened, its
   rows hang under it, set in from the block's own. */
/* ...AND SET APART (user, 2026-10-03: "This should have something that makes it
   more apparent that there are hymns here - like some sort of shading, or more
   space, or something that sets it a bit apart from the surrounding items -
   right now it blends in, but it contains a lot of information so it should be
   made to look a bit more important"): a tinted box of its own with an accent
   edge, room above and below, its name bold in the accent colour; opened, its
   rows sit on white inside it. */
.sp-slot-group { margin: 0.5rem 0; }
.sp-group {
  background: #f7ece8; border: 1px solid #e6cfc5; border-left: 4px solid var(--accent-light);
  border-radius: 6px;
}
.sp-group > summary {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.65rem;
  border-radius: 5px; cursor: pointer; list-style: none;
}
.sp-group > summary::-webkit-details-marker { display: none; }
.sp-group > summary:hover { background: #f2e1da; }
.sp-group-arrow { display: inline-block; width: 0.7rem; color: var(--accent); font-size: 0.85rem; transition: transform 0.15s ease; }
.sp-group[open] > summary .sp-group-arrow, .sp-row-group.is-open .sp-group-arrow { transform: rotate(90deg); }
.sp-group-name { font-size: 0.92rem; font-weight: 700; color: var(--accent); }
.sp-group-brief { font-size: 0.8rem; color: var(--muted); }
.sp-slot-group.has-flags > .sp-group { border-color: #e8d3a6; border-left-color: #d39b2a; }
.sp-slots.sp-group-slots { margin: 0 0.45rem 0.45rem; padding: 0.1rem 0.3rem; background: var(--card); border-radius: 4px; }
/* A PART OF THE SERVICE: a quiet line of its own, between the hymns. */
/* THE PARTS OF THE SERVICE STAND OUT (user, 2026-10-03: "These are the most
   significant items in the service block (and also fill the most time)... how
   can this be formatted to better reflect this?"): a band in a DEEPER shade of
   its part of the day's colour - the band's own shade read as a hole in the card
   ("with the fill color matching the color of the background, it reads like a
   transparency and feels odd") - edged in the strong shade, taller than a hymn's
   line, its name set as the block's own name is - not a grey note in italics. */
.sp-part {
  background: color-mix(in srgb, var(--tone-line, var(--border)) 72%, var(--card));
  border-bottom-color: transparent;
  border-left: 4px solid var(--tone-strong, var(--accent-light)); border-radius: 4px;
  margin: 0.45rem 0; padding: 0.55rem 0.7rem;
}
.sp-part-name {
  grid-column: 1 / -1; font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--ink);
}
/* WHO, after the part's name: plain, and smaller (user, 2026-10-03: "name does
   not need to be bold or as large as the label"). */
.sp-part-person { font-family: var(--font-sans); font-size: 0.86rem; font-weight: 400; margin-left: 0.2rem; }
.sp-part-dash { color: var(--muted); }
/* THE HYMN IS THE BUTTON: it reads as the hymn, and answers the pointer. */
.sp-hymn {
  font: inherit; text-align: left; color: var(--ink); background: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 6px; padding: 0.1rem 0.3rem; margin-left: -0.3rem;
  width: calc(100% + 0.3rem);
  display: block; /* its FIRST line its baseline, for the length set level with it (.sp-slot-dur) */
}
.sp-hymn:hover, .sp-hymn:focus-visible { background: var(--paper); border-color: var(--border); }
.sp-hymn-num { font-weight: 700; font-size: 1.06em; white-space: nowrap; }
.sp-hymn.is-empty {
  width: fit-content; margin-left: 0; font-size: 0.84rem; color: var(--accent);
  border: 1px dashed var(--border-strong);
}
.sp-hymn.is-empty:hover { background: var(--card-alt); }
.sp-flag {
  display: inline-block; font-size: 0.75rem; line-height: 1.35; margin: 0 0.4rem 0.2rem 0;
  padding: 0.1rem 0.5rem; border-radius: 6px; background: #f6e7c8; color: #7a5310;
}
.sp-flag-repeat, .sp-flag-tune, .sp-flag-broadcast { background: #f6dede; color: var(--error); }
/* A hymn on the Do not broadcast list, found by hand in the chooser. */
.sp-tag-nobroadcast { background: #f6dede; color: var(--error); margin: 0 0 0 0.4rem; }
/* WHAT THE LINE HOLDS NOW, at the top of the chooser: its page, and leaving
   the line empty - where a line's own menu used to offer them. */
.sp-current {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; margin: 0 0 0.6rem;
  padding: 0.45rem 0.65rem; background: var(--card-alt); border-radius: var(--radius); font-size: 0.88rem;
}
.sp-current[hidden], .sp-current-open[hidden] { display: none; }
.sp-current-label { color: var(--muted); }
.sp-current-what { font-weight: 600; }
.sp-current .btn { margin-left: auto; }
.sp-block-foot { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.45rem; }
.sp-block-foot .sp-icon-btn { width: 1.7rem; height: 1.55rem; font-size: 0.95rem; }
/* AUTO-POPULATE, at the right of a block's foot, and what it just did. */
.sp-autofill-form { margin-left: auto; }
.sp-autofill-btn { font-weight: 600; }
.sp-autofill-btn:disabled { color: var(--muted); font-weight: 400; cursor: not-allowed; }
.sp-autofill-btn:disabled:hover { text-decoration: none; }
.sp-filled {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; margin: 0 0 0.55rem;
  padding: 0.4rem 0.65rem; background: var(--card-alt); border-radius: var(--radius); font-size: 0.86rem;
}
.sp-filled .sp-link-btn { font-size: inherit; font-weight: 600; }
.sp-link-btn {
  font: inherit; font-size: 0.82rem; background: none; border: none; padding: 0.1rem 0;
  color: var(--accent); cursor: pointer; text-align: left;
}
.sp-link-btn:hover { text-decoration: underline; }
/* THE ONE MENU AT A ROW'S END (user, 2026-10-03: "all the buttons on the
   right of every line are also overwhelming"). */
.sp-menu { position: relative; flex: 0 0 auto; }
.sp-menu > summary { list-style: none; }
.sp-menu > summary::-webkit-details-marker { display: none; }
.sp-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.5rem;
  border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 1.05rem; line-height: 1; user-select: none;
}
.sp-menu-btn:hover, .sp-menu[open] > .sp-menu-btn { background: var(--card-alt); color: var(--ink); }
.sp-menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 40; min-width: 14rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16); padding: 0.3rem 0;
}
.sp-menu.opens-up .sp-menu-panel { top: auto; bottom: calc(100% + 0.25rem); }
.sp-menu-form { display: block; margin: 0; }
.sp-menu-item {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 0.86rem; color: var(--ink);
  background: none; border: none; padding: 0.38rem 0.9rem; cursor: pointer; white-space: nowrap;
}
.sp-menu-item:hover, .sp-menu-item:focus-visible { background: var(--paper); text-decoration: none; }
.sp-menu-danger { color: var(--error); }
.sp-menu-rule { border: none; border-top: 1px solid var(--border); margin: 0.3rem 0; }
/* A DAY'S OR A BLOCK'S OWN FORM, and the forms adding a day or a block,
   opened in place. */
.sp-panel { margin: 0.5rem 0 0.3rem; padding: 0.7rem 0.8rem; background: var(--card-alt); border-radius: var(--radius); }
.sp-panel-form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.sp-panel-form input:not([type="checkbox"]), .sp-panel-form select { display: block; width: 100%; margin-top: 0.2rem; }
.sp-panel-form .sp-row { margin-bottom: 0.5rem; }
.sp-panel-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* ADDING OR CHANGING A ROW, in a small dialog. */
.sp-dialog-small { max-width: 30rem; }
.sp-dialog-form label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.7rem; }
.sp-dialog-form label.sp-check { display: flex; color: var(--ink); margin: 0 0 0.35rem; }
.sp-dialog-form input:not([type="checkbox"]):not([type="radio"]), .sp-dialog-form select {
  display: block; width: 100%; margin-top: 0.25rem;
}
.sp-what { margin-bottom: 0.75rem; }
/* THE BLOCK'S DIALOG (user, 2026-10-03: "In the dialog box, I'd like to be
   able to drag and drop to re-order items"): each row a card of its own with
   a handle to drag it by, what it is, its label, the hymn it holds, and an x
   to remove it; a part on the quiet tint the page gives it, and the communion
   hymns one group, tinted as on the page. */
.sp-block-dialog { max-width: 54rem; }
.sp-block-fields .sp-kind-field { flex: 2 1 16rem; }
.sp-block-fields .sp-time-field { flex: 0 1 9rem; }
.sp-kind-field[hidden], .sp-block-remove[hidden], .sp-rows-inner[hidden], .sp-rows-empty[hidden] { display: none; }
.sp-rows-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.8rem; margin: 0.7rem 0 0.45rem; }
.sp-rows-head .sp-rows-plus { margin-left: auto; }
.sp-rows-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.sp-rows { list-style: none; margin: 0; padding: 0; }
/* MORE ROOM BETWEEN THE LINES (user, 2026-10-03: "These need a bit more
   breathing room between them"), and one dropdown a line: what it is, the
   hymn it holds, an x. Each part has its column, so a part - which holds no
   hymn - lets its name run across. */
.sp-row-item {
  display: grid; grid-template-columns: auto minmax(13rem, 19rem) minmax(0, 1fr) auto;
  gap: 0.65rem; align-items: center; margin: 0 0 0.55rem; padding: 0.5rem 0.55rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
}
.sp-row-item.is-part { background: var(--card-alt); }
.sp-row-item > .sp-row-handle { grid-column: 1; }
.sp-row-main { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-width: 0; }
.sp-row-item.is-part > .sp-row-main { grid-column: 2 / 4; }
.sp-row-item > .sp-row-hymn { grid-column: 3; }
.sp-row-item > .sp-row-remove { grid-column: 4; }
#sp-block-form .sp-row-main .sp-row-kind { flex: 1 1 12rem; width: auto; }
#sp-block-form .sp-row-main .sp-row-name { flex: 1 1 11rem; width: auto; }
.sp-row-name[hidden], .sp-row-hymn[hidden], .sp-row-person[hidden] { display: none; }
#sp-block-form .sp-row-main .sp-row-person { flex: 1 1 11rem; width: auto; }
.sp-row-own { flex-basis: 100%; font-size: 0.78rem; color: var(--muted); }
.sp-row-own-clear {
  margin-left: 0.45rem; padding: 0; border: none; background: none; font: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline;
}
#sp-block-form .sp-row-item input, #sp-block-form .sp-row-item select {
  margin: 0; width: 100%; font-size: 0.86rem; padding: 0.2rem 0.35rem;
}
.sp-row-item.is-part .sp-row-name { font-style: italic; }
.sp-row-handle {
  touch-action: none; cursor: grab; border: none; background: none; color: var(--muted);
  padding: 0.2rem 0.25rem; font: inherit; font-size: 0.95rem; line-height: 1; letter-spacing: -0.2em;
  border-radius: 4px; user-select: none;
}
.sp-row-handle:hover, .sp-row-handle:focus-visible { background: var(--card-alt); color: var(--ink); }
.sp-row-item.is-dragging { box-shadow: 0 6px 18px rgba(0,0,0,0.18); border-color: var(--accent-light); position: relative; z-index: 2; }
.sp-row-item.is-dragging .sp-row-handle { cursor: grabbing; }
.sp-row-hymn { font-size: 0.84rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row-hymn.is-none { color: var(--muted); font-style: italic; }
.sp-row-remove {
  border: none; background: none; color: var(--muted); font: inherit; font-size: 1.15rem; line-height: 1;
  cursor: pointer; padding: 0.05rem 0.3rem; border-radius: 4px;
}
.sp-row-remove:hover, .sp-row-remove:focus-visible { color: var(--error); background: #f6dede; }
.sp-row-item.sp-row-group {
  align-items: start; background: #f7ece8; border-color: #e6cfc5; border-left: 4px solid var(--accent-light);
}
.sp-row-group > .sp-row-group-box { grid-column: 2 / -1; }
.sp-row-group-toggle {
  display: flex; align-items: center; gap: 0.55rem; width: 100%; padding: 0.2rem 0;
  border: none; background: none; font: inherit; text-align: left; cursor: pointer;
}
.sp-row-group-name { font-weight: 700; color: var(--accent); }
.sp-row-group-count { font-size: 0.8rem; color: var(--muted); }
.sp-rows.sp-rows-inner { margin: 0.35rem 0 0.15rem; }
.sp-row-group-add { margin: 0.1rem 0 0.2rem; }
/* Sub-theme and passages a row under the time and name; the themes a line
   naming those chosen, which opens their list. */
.sp-block-focus { margin-top: 0.7rem; }
.sp-block-themes-pick { margin: 0.65rem 0 0.2rem; }
.sp-block-themes-pick > summary { cursor: pointer; font-size: 0.88rem; color: var(--muted); }
.sp-themes-chosen { margin-left: 0.4rem; color: var(--accent); }
.sp-block-themes-pick[open] > summary { margin-bottom: 0.4rem; }
.sp-block-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* The bin in the dialog's top bar, beside its x - red only when pointed at. */
.sp-dialog-tools { display: flex; align-items: center; gap: 0.6rem; }
.modal-head .sp-block-remove {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  padding: 0; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 1rem;
}
.modal-head .sp-block-remove:hover, .modal-head .sp-block-remove:focus-visible {
  color: var(--error); background: #f6dede; border-color: #e7b9b9;
}
.modal-head .sp-block-remove[hidden] { display: none; }
@media (max-width: 700px) {
  .sp-row-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sp-row-item > .sp-row-main, .sp-row-item.is-part > .sp-row-main, .sp-row-item > .sp-row-hymn { grid-column: 2; }
  .sp-row-item > .sp-row-remove { grid-column: 3; grid-row: 1; }
}
/* EXPORT: the three formats, each a choice of its own. */
.sp-export-choices { display: grid; gap: 0.5rem; margin: 0.4rem 0 0.2rem; }
.sp-export-choice {
  display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.sp-export-choice:hover, .sp-export-choice:focus-visible {
  background: var(--card-alt); border-color: var(--accent-light); text-decoration: none;
}
.sp-export-choice span { font-size: 0.84rem; color: var(--muted); }
/* THE SLIDES CHOICE IS A BUTTON, opening a dialog of its own rather than a download, drawn as the
   other three are. */
button.sp-export-choice { background: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
/* SLIDES: the event's hymns to choose from, a service at a time, each ticked to begin with. */
.sp-slides-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.sp-slides-list { max-height: 52vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.2rem 0.75rem 0.5rem; }
.sp-slides-block { border: none; margin: 0.6rem 0 0; padding: 0; min-width: 0; }
.sp-slides-block legend { font-weight: 600; font-size: 0.92rem; padding: 0; }
.sp-slides-line { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.12rem 0 0.12rem 1.45rem; font-size: 0.9rem; }
.sp-slides-line.is-off { color: var(--muted); }
.sp-slides-status { min-height: 1.3em; font-size: 0.88rem; margin: 0.6rem 0 0; }
.sp-slides-status.is-error { color: #a33; }
/* THE SHEET A DECK IS DRAWN ON, out of sight but drawn: a frame that is not shown at all lays nothing
   out and its engraving would measure nothing (a zero-size box draws silently as nothing), so it is
   full size, inside the window, and transparent, behind the page. */
.sp-slides-frame { position: fixed; left: 0; top: 0; width: 1280px; height: 960px; border: 0; opacity: 0;
  pointer-events: none; z-index: -1; }
/* SLIDE BATCHES (user, 2026-10-04), wherever they are listed - Tools > Slides, an event's page, a book's:
   one row each, what it holds and where it stands on the left, what can be done with it on the right. */
.sb-card { padding: 0.7rem 1.2rem; scroll-margin-top: 3.5rem; }
.sb-card > summary { cursor: pointer; }
.sb-card-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }
.sb-card-foot { margin: 0.4rem 0 0; }
.sb-section h2 { margin: 0 0 0.25rem; }
.sb-rules { margin: 0.25rem 0 1rem; }
.sb-list { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.sb-batch { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 0.65rem 0; border-top: 1px solid var(--border); }
.sb-batch:first-child { border-top: none; }
.sb-main { flex: 1 1 auto; min-width: 0; }
.sb-title { font-weight: 600; }
.sb-title .muted { font-weight: normal; }
.sb-contents { font-size: 0.9rem; }
.sb-status { font-size: 0.88rem; margin-top: 0.1rem; }
.sb-drawing .sb-status { color: var(--accent); font-weight: 600; }
.sb-paused .sb-status, .sb-stale { color: #7a5310; }
.sb-when { margin-top: 0.1rem; }
.sb-stale, .sb-note { font-size: 0.85rem; margin-top: 0.15rem; }
.sb-failures { font-size: 0.85rem; margin-top: 0.15rem; }
.sb-failures > summary { cursor: pointer; color: #a33; }
.sb-failures ul { margin: 0.2rem 0 0; padding-left: 1.2rem; }
.sb-new { display: inline-block; margin-left: 0.3rem; padding: 0 0.45rem; border-radius: 999px;
  background: #e3efe0; color: #2f5a27; font-size: 0.72rem; font-weight: 600; line-height: 1.5; vertical-align: 1px; }
.sb-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.4rem; }
.sb-line-form { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; }
.sb-bin { background: none; border: 0; padding: 0.3rem; border-radius: var(--radius); color: var(--muted);
  cursor: pointer; line-height: 0; }
.sb-bin:hover, .sb-bin:focus-visible { color: #a33; background: #f8ecec; }
.sb-range { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: normal; }
.sb-range-end { width: 4.6rem; }
/* THE SLIDES DIALOG (user, 2026-10-17): making slides above, the slides made below, on a book's or a
   recording's page - the button between Publish and Print. */
/* TWO SECTIONS TOLD APART (user, 2026-10-17: "I'd like this dialog box's sections to be more
   differentiated"): making slides is a tinted, bordered panel - the bordered choices of the Print dialog,
   tinted as a card's alternate rows are - and the slides made are a list under the quiet uppercase heading
   the theme picker's sections use. */
.sb-dialog { max-width: 50rem; text-align: left; }
.sb-make { background: var(--card-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; margin: 0 0 1rem; }
.sb-make h4 { margin: 0 0 0.3rem; font-size: 0.98rem; }
.sb-make-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; }
.sb-parts { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.92rem; }
.sb-parts label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
/* THE NUMBERS FIELD: its label above, as .stacked-form labels a field, and a quiet hint under it; a thin
   rule between it and the choice stack so the two groups read apart. */
.sb-numbers-field { display: flex; flex-direction: column; padding-left: 1.25rem; border-left: 1px solid var(--border); }
.sb-field-label { display: block; margin: 0 0 0.2rem; font-size: 0.88rem; color: var(--muted); }
.sb-field-hint { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); }
.sb-numbers { width: 11rem; }
.sb-make-go { margin-left: auto; }
.sb-numbers-note { flex-basis: 100%; font-size: 0.82rem; color: #a33; }
.sb-numbers-note[hidden] { display: none; }
/* THE SLIDES DIALOG'S CHIPS (user, 2026-10-24, of Comfort & Joy's typed "1-18": "maybe something like how credits
   for an accompanist are chosen for specific tracks?" - r119 and r123, "yes"): the credit dialog's chooser in
   the typed field's place, as wide as about ten chips, so the button goes to a line of its own at the right. */
.sb-chips { margin: 0; max-width: 30rem; }
/* THE PRINT DIALOG, A ROW A DOCUMENT (user, 2026-10-24, of "Which document?": "Also, the print dialog isn't super
   clear about what each thing does, what action is required, etc." - r120, r121, r122 and r124, "yes"): its name
   and a small file-type tag, one plain line under them, and one action at the right - Download, an outlined pill
   with an arrow (two for the Scripture index), or Open, a plain link with an arrow after it (Printable sheets,
   last). On a phone the action goes under the line. */
.pub-print-dialog { max-width: 34rem; }
.pub-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: center;
  padding: 0.7rem 0.2rem; border-top: 1px solid var(--border); }
.pub-doc:first-child { border-top: 0; }
.pub-doc-name { grid-column: 1; margin: 0; display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.98rem; }
.pub-doc-tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 0 0.3rem; }
.pub-doc-what { grid-column: 1; margin: 0; font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.pub-doc-act { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 0.4rem; margin: 0; }
.pub-doc-dl { appearance: none; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.95rem;
  border-radius: 999px; border: 1px solid rgba(122, 59, 46, 0.45); background: var(--card); color: var(--accent);
  font: inherit; font-size: 0.86rem; line-height: 1.5; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pub-doc-dl:hover, .pub-doc-dl:focus-visible { background: rgba(122, 59, 46, 0.08); border-color: var(--accent); text-decoration: none; }
.pub-doc-open { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.2rem; font-size: 0.86rem;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pub-doc-note { margin: 0.5rem 0.2rem 0; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 520px) {
  .pub-doc { grid-template-columns: minmax(0, 1fr); }
  .pub-doc-act { grid-column: 1; grid-row: auto; margin-top: 0.35rem; }
}
.sb-made h4 { margin: 0 0 0.25rem; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); }
.sb-list-compact { margin-top: 0; }
.sb-list-compact .sb-batch { align-items: center; padding: 0.45rem 0; }
.sb-list-compact .sb-title { font-size: 0.95rem; }
.sb-meta { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.sb-drawing .sb-meta [data-sb-status-text] { color: var(--accent); font-weight: 600; }
.sb-paused .sb-meta [data-sb-status-text] { color: #7a5310; }
.sb-made .sb-card-foot { margin-top: 0.5rem; font-size: 0.82rem; }
@media (max-width: 640px) {
  .sb-make-go { margin-left: 0; width: 100%; }
  .sb-numbers-field { flex: 1 1 100%; padding: 0.6rem 0 0; border-left: none; border-top: 1px solid var(--border); }
  .sb-numbers { width: 100%; }
  .sb-list-compact .sb-batch { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  .sb-batch { flex-direction: column; gap: 0.4rem; }
  .sb-actions { justify-content: flex-start; }
}
/* WHERE A CHANGE WAS MADE, lit for a moment when the page comes back to it,
   and kept clear of the pinned banner when the page goes to it. */
@keyframes sp-lit { from { box-shadow: 0 0 0 3px #f2c66d; background-color: #fff6dc; } to { box-shadow: 0 0 0 3px transparent; } }
.sp-lit { animation: sp-lit 1.8s ease-out; }
.sp-day, .sp-block, .sp-slot { scroll-margin-top: 3.5rem; }
.sp-page-foot { display: flex; justify-content: flex-end; margin: 0.5rem 0 0; }
.sp-edit { margin: 0.35rem 0; }
.sp-edit > summary { cursor: pointer; color: var(--accent); font-size: 0.85rem; }
.sp-edit > form {
  display: block; margin-top: 0.5rem; padding: 0.75rem 0.9rem;
  background: var(--card-alt); border-radius: var(--radius);
}
.sp-edit label, .sp-form label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6rem; }
.sp-edit input:not([type="checkbox"]), .sp-edit select,
.sp-form input:not([type="checkbox"]), .sp-form select { display: block; width: 100%; margin-top: 0.25rem; }
.sp-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end; }
.sp-row > label { flex: 1 1 12rem; margin-bottom: 0; }
.sp-row > .btn { flex: 0 0 auto; }
.sp-edit .sp-row, .sp-form .sp-row { margin-bottom: 0.6rem; }
label.sp-check {
  display: inline-flex; gap: 0.35rem; align-items: center;
  margin: 0 0.9rem 0.3rem 0; color: var(--ink); font-size: 0.86rem;
}
/* THE THEMES DIALOG's list in columns, so its fifty-odd themes fit without a
   long scroll. */
.sp-theme-groups { columns: 2 15rem; column-gap: 1.5rem; margin-bottom: 0.75rem; }
.sp-theme-group { break-inside: avoid; }
.sp-theme-groups label.sp-check { display: flex; margin-right: 0; }
/* THEMES SET ASIDE AT SUMMER AND WINTER SERVICES: out of the list until
   shown (the script decides which, service-planner.js). */
.sp-theme-groups label.sp-check.sp-off, .sp-theme-groups .sp-theme-group.sp-off { display: none; }
.sp-hidden-note .sp-link-btn { font-size: inherit; font-weight: 600; }
.sp-theme-group h4 {
  margin: 0.55rem 0 0.25rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted);
}
.sp-form { max-width: 52rem; }
.sp-form input.sp-num { display: inline-block; width: 6.5rem; margin: 0 0.3rem; }
.sp-hint { margin: -0.35rem 0 0.9rem; }
.sp-empty { margin: 0.4rem 0; }
/* THE CHOOSER, wider than the shared dialog: a hymn's reasons need the room. */
.sp-dialog { max-width: 46rem; }
.sp-results { margin: 0.5rem 0 0.75rem; }
.sp-hit {
  display: flex; gap: 0.75rem; justify-content: space-between; align-items: flex-start;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
}
.sp-hit-main { min-width: 0; }
.sp-hit-num { font-weight: 600; margin-right: 0.4rem; }
.sp-hit-first { font-style: italic; color: var(--muted); font-size: 0.86rem; }
.sp-hit-why { margin: 0.25rem 0 0; padding-left: 1.1rem; font-size: 0.84rem; }
.sp-hit-pick { display: flex; flex-direction: column; gap: 0.3rem; flex: 0 0 auto; }
/* WHAT THE SUGGESTIONS LEAVE OUT (user, 2026-10-03: "This note should have a
   different treatment/format"): a quiet box apart from the list, its reasons
   chips. */
.sp-left-out {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem;
  margin: 0.75rem 0 0.25rem; padding: 0.5rem 0.7rem;
  background: var(--card-alt); border-radius: var(--radius);
}
.sp-left-out-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.sp-left-out-list { display: flex; flex-wrap: wrap; gap: 0.3rem 0.35rem; margin: 0; padding: 0; list-style: none; }
.sp-left-out-item {
  font-size: 0.8rem; line-height: 1.35; color: var(--ink); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.12rem 0.6rem;
}
.sp-lookup, .sp-manual { border-top: 1px solid var(--border); padding-top: 0.6rem; margin-top: 0.4rem; }
.sp-lookup h4, .sp-manual h4 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.sp-lookup .sp-row input, .sp-manual .sp-row input { flex: 1 1 14rem; }
.sp-manual .sp-row #sp-manual { flex: 0 1 9rem; min-width: 7rem; }
/* NARROWER WINDOWS keep the list of days, and its times to click (user,
   2026-10-03: "Can each time row be clickable so it takes me to that
   block?"): a narrower list and narrower blocks, and on a phone the list
   above the day instead of beside it. */
@media (max-width: 1100px) {
  .sp-planner { grid-template-columns: 12.5rem minmax(0, 1fr); gap: 0.9rem; }
  /* the blocks follow their band's width (.sp-blocks, container sp-part), not the window's */
}
@media (max-width: 760px) {
  .sp-planner { grid-template-columns: minmax(0, 1fr); }
  .sp-nav, body.env-flagged .sp-nav { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .sp-slot { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .sp-slot-label { grid-column: 1 / -1; }
  .sp-slot-hymn, .sp-slot-dur, .sp-slot > .sp-menu, .sp-slot-clear-form { grid-row: 2; }
  .sp-slot-hymn { grid-column: 1; padding-left: 0.85rem; }
  .sp-slot-clear-form { grid-column: 2; }
  .sp-slot-dur { grid-column: 3; }
  .sp-slot > .sp-menu { grid-column: 4; }
  .sp-part-name { grid-column: 1 / 3; }
  .sp-part > .sp-menu { grid-row: 1; }
  .sp-slot-flags { grid-column: 1 / -1; }
  .sp-hit { flex-direction: column; }
  .sp-hit-pick { flex-direction: row; flex-wrap: wrap; }
}
/* SERVICE BLOCK KINDS (Admin > System): each kind a card, its starting hymns
   a row each - what it is for, its label, how many - saved row by row. */
.sbk-rows { list-style: none; margin: 0.6rem 0 0.4rem; padding: 0; }
.sbk-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center;
  padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.sbk-row:last-child { border-bottom: none; }
.sbk-row-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; flex: 1 1 32rem; }
.sbk-row-form select { flex: 0 1 15rem; }
.sbk-row-form input[name="label"] { flex: 1 1 14rem; min-width: 10rem; }
.sbk-count { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); }
.sbk-count input { width: 4.2rem; }
.sbk-add-row { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
/* ---- THE LIST VIEW, version 1 (prototype for approval, 2026-10-09) ------
   A book's contents as a BOOK CARD over a dense list (user, 2026-10-09:
   "promising"). The card is the Page View's hymn card one level up - its
   name, four figures in fixed places, the book to scale, and counted lines
   that each add up the way they read. The list is one unframed row per
   number with every fact in a fixed column, each tune on its own line. */
.lv-book { padding: 1rem 1.25rem 0.9rem; margin-bottom: 0.9rem; }
.lv-book-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.3rem 0.9rem; align-items: center; }
.lv-book-head.nocover { grid-template-columns: minmax(0, 1fr) auto; }
.lv-cover { display: block; height: 3.4rem; width: auto; max-width: 3rem; border: 1px solid var(--border-strong); border-radius: 3px; object-fit: cover; }
.lv-book h1 { margin: 0; font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
.lv-book-sub { color: var(--muted); font-size: 0.86rem; margin: 0.15rem 0 0; }
.lv-name-part { display: inline-block; }
/* A GAP BETWEEN THE FIGURES, so two captions never read as one phrase; the
   boxes give it back (Numbers 5.4rem, Hymns 3.6rem, the others 6.1rem) and
   the row stays 23rem, the width a name on one line was fitted to at 1280+. */
.lv-figs { display: flex; align-items: flex-start; column-gap: 0.6rem; }
.lv-bfig { flex: none; width: 6.1rem; }
.lv-bfig:first-child { width: 5.4rem; }
.lv-bfig-count { width: 3.6rem; }
.lv-bfig .fx-n { font-size: 1.3rem; }
.lv-bfig .fx-c { white-space: nowrap; }
/* THE RIBBON: label column, then the bands stacked, the page's outline over them. The label column only as wide
   as its words (user, 2026-10-24, of the gap beside SHZ 2008's Sections and Themes: "this space should be minimized
   - it will help differentiate this section from the 'first written in' section"). A SMALL STRIP (a box a number)
   is the card's full width: a hymnal's and a periodical's have no labels ("in this context they're
   self-explanatory"), a recording's one label, TRACKS, stands just above it ("Can the tracks be full width, and the
   header just above them?"), with a little more room above ("A little more space here"). */
.lv-rib { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.6rem; margin: 1.3rem 0 0.1rem; }
.lv-rib.small { grid-template-columns: minmax(0, 1fr); }
.lv-rib.rec { row-gap: 0.35rem; margin-top: 1.5rem; }
.lv-rls { display: flex; flex-direction: column; gap: 2px; }
.lv-rl { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.lv-rl-miss { color: var(--error); }
.lv-rl-sec, .lv-rib-row.sec { height: 1.3rem; }
.lv-rl-th, .lv-rib-row.th { height: 1.1rem; }
.lv-rl-pres, .lv-rib-row.pres { height: 1.1rem; }
.lv-rl-tk, .lv-rib-row.tk { height: 0.6rem; }
.lv-rl-nums, .lv-rib-row.nums { height: 1.75rem; }
.lv-rib.rec .lv-rib-row.nums { height: 2.3rem; }
.lv-rib.rec .lv-rl-nums { height: auto; }
.lv-rl-thl, .lv-rib-row.thl { height: 1.75rem; }
.lv-bands { min-width: 0; }
.lv-bandset { position: relative; display: flex; flex-direction: column; gap: 2px; }
.lv-rib-row { position: relative; border-radius: 3px; }
.lv-hatch { background: repeating-linear-gradient(135deg, #f6f3ee, #f6f3ee 3px, #e7e1d7 3px, #e7e1d7 6px); }
.lv-rib-row.sec, .lv-rib-row.th, .lv-rib-row.pres { overflow: hidden; }
.lv-seg { position: absolute; top: 0; bottom: 0; box-sizing: border-box; overflow: hidden; white-space: nowrap;
  font-size: 0.72rem; line-height: 1.3rem; padding: 0; color: var(--ink);
  border-right: 2px solid var(--card); text-decoration: none; container-type: inline-size; }
a.lv-seg:hover { filter: brightness(0.93); text-decoration: none; }
.lv-rib-row.sec .lv-seg { font-weight: 600; }
.lv-rib-row.th .lv-seg { font-size: 0.63rem; line-height: 1.1rem; color: #3e352c; border-right-width: 1px; }
/* A BAND'S LABEL NEVER CLIPS (user, 2026-10-09): it shortens with an ellipsis
   inside its own band, and a band too narrow for a readable label shows its
   colour alone - its title still names it and its range, and it still links */
.lv-lab { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 0.4rem; }
.lv-rib-row.th .lv-lab { padding: 0 0.3rem; }
@container (max-width: 3rem) { .lv-rib-row.sec .lv-lab { display: none; } }
@container (max-width: 2.2rem) { .lv-rib-row.th .lv-lab { display: none; } }
.lv-seg .rng { color: #4d4338; font-weight: 400; margin-left: 0.3rem; font-variant-numeric: tabular-nums; }
.s-cy { background: #cf9c45; } .t-cy { background: #f2dfbd; } .t-cy.alt { background: #e9cd9d; }
.s-sv { background: #c8e4b8; } .t-sv { background: #e9f5e2; } .t-sv.alt { background: #dcefd2; }
.s-lc { background: #8aaee0; } .t-lc { background: #d4e0f4; } .t-lc.alt { background: #bccfee; }
.s-dl { background: #f4c8b2; } .t-dl { background: #fbe9df; } .t-dl.alt { background: #f8dccd; }
.s-el { background: #a68ad6; } .t-el { background: #ddd2f0; } .t-el.alt { background: #cbbbe8; }
.s-x { background: #e4ded5; } .t-x { background: #f0ece4; }
.lv-pr { position: absolute; top: 0; bottom: 0; background: #c9b79c; }
.lv-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--error); border-radius: 1px; }
.lv-tick:hover { width: 4px; margin-left: -2px; }
.lv-win { position: absolute; top: -4px; bottom: -4px; border: 2px solid var(--accent); border-radius: 4px;
  pointer-events: none; z-index: 2; box-sizing: border-box; min-width: 6px; }
.lv-win span { position: absolute; bottom: 100%; left: -2px; margin-bottom: 2px; font-size: 0.66rem; color: var(--accent); white-space: nowrap; font-weight: 600; }
.lv-rib-scale { position: relative; height: 1rem; margin-top: 3px; font-size: 0.62rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-rib-scale span { position: absolute; top: 0.1rem; transform: translateX(-50%); }
.lv-rib-scale span.start { transform: none; }
.lv-rib-scale span.end { left: auto !important; right: 0; transform: none; }
/* a short book (or a recording, or a periodical): a box per number */
.lv-box { text-align: center; padding: 0; font: 700 0.84rem/1.75rem var(--font-serif); color: var(--ink); border-right-width: 2px; }
.lv-box b { font-weight: 700; }
.lv-box.on { box-shadow: inset 0 -3px 0 var(--accent); }
.lv-box[draggable="true"] { cursor: grab; }
.lv-box.lv-box-dragging { opacity: 0.45; }
.lv-box.drop-before { box-shadow: inset 3px 0 0 var(--accent); }
.lv-box.drop-after { box-shadow: inset -3px 0 0 var(--accent); }
.lv-rib.rec .lv-box { line-height: 1.05; padding-top: 0.3rem; }
.lv-rib.rec .lv-box b { display: block; font-size: 0.84rem; }
.lv-box small { display: block; font: 400 0.62rem var(--font-sans); color: #4d4338; margin-top: 0.12rem; }
.lv-boxgap { position: absolute; left: 3px; right: 5px; bottom: 2px; height: 3px; background: var(--error); border-radius: 1px; }
.lv-boxth { position: absolute; top: 0; box-sizing: border-box; padding: 0 0.2rem; font-size: 0.6rem; line-height: 1.2;
  color: var(--muted); text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow-wrap: normal; word-break: normal; border-left: 1px solid var(--border); container-type: inline-size; }
.lv-boxth:first-child { border-left: none; }
/* the same rule in a short book's ribbon: each theme word, and each box's
   number, shortens with an ellipsis inside its box; too narrow, it goes */
.lv-boxth .lv-w { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: top; }
@container (max-width: 1.2rem) { .lv-boxth .lv-w { display: none; } }
.lv-box .lv-lab { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 0.1rem; }
@container (max-width: 1.5rem) { .lv-box .lv-lab { visibility: hidden; } }
.lv-chips { display: none; flex-wrap: wrap; gap: 0.3rem; margin: 0.55rem 0 0.1rem; }
.lv-chips a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.5rem; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.76rem; color: var(--ink); text-decoration: none; background: var(--card); }
.lv-chips a i { width: 0.6rem; height: 0.6rem; border-radius: 2px; display: inline-block; }
.lv-chips a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.lv-note-line { margin: 0.35rem 0 0; font-size: 0.76rem; color: var(--muted); }
/* THE COUNTED LINES: a small-caps label, then name and count - each a filter */
.lv-lines { margin-top: 0.7rem; display: grid; gap: 0.2rem; }
.lv-foldable { display: grid; gap: 0.2rem; }
.lv-fold-btn { display: none; }
.lv-line { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); column-gap: 0.5rem; align-items: baseline; font-size: 0.82rem; line-height: 1.6; }
.lv-k { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lv-items { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.85rem; row-gap: 0.1rem; }
.lv-it a, .lv-share { color: var(--ink); text-decoration: none; white-space: nowrap; }
.lv-it a:hover, .lv-share:hover { color: var(--accent); }
.lv-it a[aria-current], .lv-share[aria-current] { color: var(--accent); font-weight: 600; }
.lv-cnt { display: inline-block; min-width: 1.1rem; padding: 0 0.32rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card-alt); font-size: 0.72rem; font-weight: 600; line-height: 1.35; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-sum a { font-weight: 600; }
.lv-line.lv-miss .lv-k { color: var(--error); }
.lv-line.lv-miss .lv-cnt { background: #f3d9d9; border-color: #ebc4c4; color: var(--error); }
/* each other book as its own share of the whole: a name, "378 of 604", and a
   thin bar as wide as that share - separate fractions, not slices of one total */
.lv-shares { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; flex-basis: 100%; margin-top: 0.1rem; }
.lv-share { display: inline-grid; grid-template-columns: auto auto; column-gap: 0.4rem; align-items: baseline; min-width: 7.5rem; }
.lv-share-n { color: var(--muted); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.lv-bar { grid-column: 1 / -1; height: 3px; background: var(--card-alt); border-radius: 2px; overflow: hidden; margin-top: 1px; }
.lv-bar i { display: block; height: 100%; background: var(--accent-light); }
/* ABOUT AND RIGHTS on one line, each in its ruled form; About takes the
   whole line while it is open */
.lv-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.9rem; margin-bottom: 0.9rem; align-items: start; }
.lv-meta.one { grid-template-columns: minmax(0, 1fr); }
.lv-meta:has(.pub-about-disclosure[open]) { grid-template-columns: minmax(0, 1fr); }
.lv-meta > .card { margin: 0; padding: 0.7rem 1.1rem; }
.lv-meta .pub-about-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem 1rem; }
.lv-meta .pub-about-disclosure { flex: 1 1 12rem; min-width: 0; }
.lv-meta .pub-about-disclosure h2 { font-size: 1.05rem; }
.lv-rights-card .card-head { margin: 0; padding: 0; border: none; display: inline; }
.lv-rights-card .card-head h2 { display: inline; font-size: 1.05rem; margin: 0 0.6rem 0 0; padding: 0; border: none; }
.lv-rights-card > p { display: inline; margin: 0; font-size: 0.9rem; }
/* HALF AND HALF, ONE HEIGHT (user, 2026-10-24: "this space feels odd" - About's summary on a second line left a
   gap under a one-line Rights card - and "those should each be half width instead of 1/3 and 2/3 width"): side
   by side the two stretch to the taller, and the Rights card's line is centred in it. */
.lv-meta:not(.one) { align-items: stretch; }
.lv-meta:not(.one) > .lv-rights-card { display: flex; flex-wrap: wrap; align-items: center; }
.lv-rights-card .card-head + p ~ p { display: block; margin-top: 0.4rem; }
.lv-rights-card .card-head .btn-row { margin-top: 0.4rem; }
/* THE PAGER ROW: the count, Go to, Order, the size, the page links */
.lv-pager { margin-bottom: 0.6rem; justify-content: flex-start; }
/* RENUMBER ALL, rare and sweeping, a quiet text link beside the "+ Add hymn" pill (user, 2026-10-24, approving the
   drawing): .link-btn's underlined --accent, a step smaller, its underline faint until pointed at. */
.lv-contents-head > .pub-renumber-all { font-size: 0.85rem; text-underline-offset: 3px; text-decoration-color: rgba(122, 59, 46, 0.35); }
.lv-contents-head > .pub-renumber-all:hover { text-decoration-color: currentColor; }
.lv-goto, .lv-order { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.88rem; color: var(--muted); }
.lv-goto input { width: 4.6rem; padding: 0.3rem 0.45rem; font-size: 0.88rem; border: 1px solid var(--border); border-radius: var(--radius); }
.lv-order select { padding: 0.28rem 0.5rem; font-size: 0.86rem; width: auto; }
.lv-pager .list-pager-links { margin-left: auto; }
.lv-active { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin: 0.2rem 0 0.6rem; font-size: 0.86rem; }
.lv-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.15rem 0.3rem 0.15rem 0.65rem; border-radius: 999px; background: var(--card-alt); border: 1px solid var(--border); }
.lv-chip a { color: var(--muted); text-decoration: none; font-size: 1rem; line-height: 1; padding: 0 0.25rem; }
.lv-chip a:hover { color: var(--accent); }
.lv-goto-miss { color: var(--error); }
/* A SETTLED OR LOCKED BOOK'S PADLOCK after its name in the card (r152, the user 2026-10-26: "a more subtle
   locked icon ... that I can see, but isn't the thing on the page calling most attention to itself"): muted,
   smaller than the name, darker under the pointer; what it means is its title. */
.lv-lock { display: inline-block; width: 0.5em; height: 0.62em; margin-left: 0.4rem; vertical-align: 0.02em;
  color: var(--muted); opacity: 0.75; cursor: help; }
.lv-lock svg { display: block; width: 100%; height: 100%; }
.lv-lock:hover { opacity: 1; color: var(--ink); }
/* STEP THROUGH THESE (r149, the user, 2026-10-26: "looks good"): a link after the chips in the accent, its arrow
   a little apart. */
.lv-step-through { align-self: center; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lv-step-through:hover { text-decoration: underline; }
.lv-step-through span { display: inline-block; margin-left: 0.2rem; }
/* ONE NUMBER, ONE GRID - AND NO ALSO IN COLUMN (user, 2026-10-24: "isn't this info available on the page view? if
   so, this column can be removed to free up space and simplify the list view a bit"): number | words | melody |
   meter | key/mode, then an open book's pen and bin; the words and the melody share the width the column held. An
   open book's number column is wider, for its grip (below). */
.lv-grid { display: grid; column-gap: 0.8rem; grid-template-columns: 3.4rem minmax(0, 1.25fr) minmax(0, 1fr) 6.4rem 6.8rem; }
.lv-grid.open { grid-template-columns: 3.9rem minmax(0, 1.25fr) minmax(0, 1fr) 6.2rem 6.6rem 2.6rem; }
.lv-cols { font: 600 0.64rem/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 0.45rem 0.5rem; background: var(--card-alt); border-radius: 5px; margin-bottom: 0.1rem; }
.lv-cols a { color: inherit; text-decoration: none; }
.lv-cols .c { text-align: center; }
.lv-cols .r { text-align: right; }
/* Nothing on the line above the list - a reader with no control on a recording, whose title went - draws no line. */
.lv-contents-head:not(:has(h2, button, a, input, select)) { display: none; }
.lv-row { padding: 0.55rem 0.5rem 0.6rem; border-bottom: 1px solid #efe9df; row-gap: 0.35rem; align-items: start; scroll-margin-top: 4rem; }
.lv-row > * { grid-row: var(--dr); }
.lv-row:target { animation: lv-lit 2.4s ease-out; }
@keyframes lv-lit { from { background: #f6e6c4; } to { background: transparent; } }
.lv-row.drag-over { box-shadow: inset 4px 0 0 var(--sec, transparent), inset 0 3px 0 var(--accent); }
.lv-row.drag-over.drag-after { box-shadow: inset 4px 0 0 var(--sec, transparent), inset 0 -3px 0 var(--accent); }
/* THE NUMBER CENTRED IN ITS COLUMN (user, 2026-10-24: "these numbers should be centered in their column - right
   now they hug the left side"), the drag grip out of the line. A periodical's wider issue cell, with its date editor
   and controls, keeps to the left.
   THE GRIP CLEAR OF THE RAIL, THE NUMBER CLEAR OF THE GRIP (user, 2026-10-24, of a hymnal's List View: "drag handles
   collide with colored band"): the section rail is the row's first 4px (its inset box-shadow, below), so the grip's
   1rem box starts 0.45rem from the row's edge, a small gap after the rail (the row's padding is 0.5rem: left
   -0.05rem in the cell), and the number is centred in the space RIGHT of the grip (the cell's padding-left, 0.95rem,
   is the grip's right edge). An open book's number column is 3.9rem, a laptop's too, so three figures - "714"
   measures 2.2rem in the 1.3rem serif - stand clear of the grip with 4px or more either side (measured). A row with no grip - a
   Viewer's, a locked book's, a phone's - keeps its number centred in the whole column. */
.lv-no-cell { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.1rem 0.15rem; min-width: 0; position: relative; }
.lv-no-cell > .lv-grip { position: absolute; left: -0.05rem; top: 0.05rem; margin: 0; }
.lv-no-cell:has(> .lv-grip) { padding-left: 0.95rem; }
.lv-periodical .lv-no-cell { justify-content: flex-start; }
.lv-no { font: 700 1.3rem/1.05 var(--font-serif); color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
a.lv-no:hover { text-decoration: underline; }
.lv-no-issue { font-size: 1rem; color: var(--ink); }
/* A TRACK WHOSE OWN STYLE DIFFERS FROM ITS RECORDING'S (the user, 10/31/2026: "build it"): the shelf's mark,
   smaller, under its number - two for a track with two. */
.lv-trk-style { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  margin-top: 0.2rem; }
.lv-trk-style .style-icon { width: 0.9rem; height: 0.9rem; vertical-align: 0; }
.lv-trk-style .style-mark-w { font-size: 0.56rem; }
.lv-issue-ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-top: 0.3rem; flex-basis: 100%; }
/* An issue's Slides and Print, side by side under its Publish (r146). */
.lv-issue-files { display: flex; gap: 0.4rem; }
.lv-grip { color: var(--border-strong); font-size: 0.9rem; cursor: grab; margin: 0 0.2rem 0 -0.45rem; letter-spacing: -0.25em; }
.lv-words { grid-column: 2; min-width: 0; }
.lv-text-more { margin-top: 0.4rem; padding-top: 0.35rem; border-top: 1px dashed var(--border); }
.lv-sep { border-top: 1px dashed var(--border); padding-top: 0.35rem; }
.lv-tl { line-height: 1.3; }
.lv-title { font: 700 0.98rem/1.3 var(--font-serif); color: var(--ink); text-decoration: none; }
a.lv-title:hover, a.lv-tname:hover { text-decoration: underline; }
.lv-tl .pub-flag-pill { margin-left: 0.3rem; vertical-align: 0.12em; }
.lv-first { font-size: 0.8rem; font-style: italic; line-height: 1.35; color: #4d4338; }
.lv-cred { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.lv-cred .pub-flag-pill { vertical-align: 0.08em; }
.lv-orig { font-size: 0.78rem; color: var(--muted); line-height: 1.45; margin-top: 0.05rem; }
.lv-orig b { font-weight: 600; color: #7d7064; font-size: 0.68rem; letter-spacing: 0.03em; }
.lv-orig a { color: inherit; text-decoration: none; }
.lv-orig a:hover { color: var(--accent); }
.lv-tune { grid-column: 3; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.45rem; align-items: start; }
.lv-noletter { display: none; }
.lv-tune:not(:has(.lv-letter)) { grid-template-columns: minmax(0, 1fr); }
.lv-tune-more { padding-top: 0.3rem; border-top: 1px dashed var(--border); }
.lv-tbody { min-width: 0; }
.lv-tname { font: 700 0.86rem/1.35 var(--font-serif); font-variant: small-caps; letter-spacing: 0.05em; color: var(--accent); text-decoration: none; }
.lv-tname.ph { font: 400 0.8rem/1.45 var(--font-sans); letter-spacing: 0; color: var(--muted); font-variant: normal; }
.lv-letter.fx-letter { min-width: 1.4rem; height: 1.4rem; font-size: 0.9rem; border-radius: 0.3rem; margin-top: 0; }
.lv-arr { white-space: normal; } /* Each music credit on its own line (user, 2026-10-10). */ .lv-mc { display: block; }
.lv-fig { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.lv-meter { grid-column: 4; }
.lv-key { grid-column: 5; }
.lv-tune-more + .lv-key, .lv-key.lv-key-more { padding-top: 0.3rem; }
.lv-v { font: 400 0.96rem/1.3 var(--font-serif); font-variant-numeric: tabular-nums; }
.lv-dash { color: var(--placeholder); }
.lv-cap { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.lv-tr { text-decoration: underline dotted var(--border-strong); text-underline-offset: 2px; cursor: help; }
/* THE ROW'S PEN AND BIN at its far right, pen then bin (user, 2026-10-24: "the pen and bin can be moved to the
   far right of the row"): the column as wide as the two, the bin's box ending at the row's own edge, past its
   0.5rem of padding; full on the row pointed at. */
.lv-edit { grid-column: 6; justify-self: end; align-self: start; display: flex; align-items: center; gap: 0.1rem; margin: -0.08rem -0.5rem 0 0; }
.lv-edit > .inline-form { display: flex; margin: 0; }
.lv-row:hover .ico-btn { opacity: 1; }
.lv-gap { color: var(--error); font: 600 0.74rem/1.3 var(--font-sans); white-space: nowrap; }
/* WHAT IS MISSING, on the piece it belongs to: the pink loose-end look of In
   Review and Permission outstanding (user, 2026-10-09, decision c) */
.lv-flags { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; margin-top: 0.2rem; line-height: 1.5; }
.status-pill.pub-flag-pill.lv-miss { white-space: normal; text-align: left; text-transform: none; font-size: 0.68rem; letter-spacing: 0; }
/* the book's own filing, as headings through the list */
.lv-sechead { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0.28rem 0.6rem;
  font: 600 0.68rem/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-radius: 4px; }
.lv-sechead .rng, .lv-thhead .rng { margin-left: auto; color: #4d4338; font-size: 0.78rem; letter-spacing: 0; text-transform: none; font-weight: 400; font-variant-numeric: tabular-nums; }
.lv-thhead { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0.5rem 0.25rem; border-bottom: 1.5px solid var(--border-strong); }
.lv-thhead h3 { margin: 0; padding: 0; border: none; font: 600 0.95rem/1.3 var(--font-sans); color: var(--accent); letter-spacing: 0.01em; }
.lv-thhead .rng { color: var(--muted); }
.lv-sechead.s-cy { background: #e9cd9d; } .lv-sechead.s-sv { background: #dcefd2; } .lv-sechead.s-lc { background: #bccfee; }
.lv-sechead.s-dl { background: #f8dccd; } .lv-sechead.s-el { background: #cbbbe8; } .lv-sechead.s-x { background: var(--card-alt); }
/* WHERE EACH HYMN BELONGS (user, 2026-10-24: "what can we do to subtly indicate which hymns belong to which
   section/theme? right now, the theme headers blend in with the rows, and the section headers can disappear in a
   large section" - approved as drawn). The List View's own list only (the Themes page draws these headings too):
   - A RAIL: a 4px bar down the left of every row and theme heading in its SECTION's colour, the band's own colour
     (the template gives each its section, lv-in-<cls>, from the band above it);
   - THE THEME HEADING TINTED, a light wash of that colour, so it reads as a heading and not one more row;
   - STICKY: the band, and the theme heading under it, stay at the top of the window while their hymns scroll,
     until the next takes their place - below the test copies' banner, pinned there too (base.html's .env-banner,
     body.env-flagged; production has none): 0.6rem of padding and a 1.5 line of 0.82rem, one line wide and two on
     a phone (measured 29px and 49px; the test environment's label is 456px on one line, so two below 28.5rem).
     The band is 1.65rem (26.4px measured); the heading tucks 1px under it. A row a link lands on (#n-) clears
     both. */
.lv-in-cy { --sec: #e9cd9d; } .lv-in-sv { --sec: #dcefd2; } .lv-in-lc { --sec: #bccfee; }
.lv-in-dl { --sec: #f8dccd; } .lv-in-el { --sec: #cbbbe8; } .lv-in-x { --sec: var(--card-alt); }
body { --lv-stick: 0px; }
body.env-flagged { --lv-stick: 1.83rem; }
.lv-list > .lv-row:not(.drag-over), .lv-list > .lv-thhead { box-shadow: inset 4px 0 0 var(--sec, transparent); }
.lv-list > .lv-thhead { background: color-mix(in srgb, var(--sec, var(--card-alt)) 22%, var(--card)); padding-left: 0.75rem;
  border-radius: 0 4px 4px 0; position: sticky; top: var(--lv-stick); z-index: 3; }
.lv-list > .lv-sechead { position: sticky; top: var(--lv-stick); z-index: 4; }
.lv-list:has(> .lv-sechead) > .lv-thhead { top: calc(var(--lv-stick) + 1.65rem - 1px); }
.lv-list:has(> .lv-thhead) > .lv-row { scroll-margin-top: max(4rem, calc(var(--lv-stick) + 2.6rem)); }
.lv-list:has(> .lv-sechead) > .lv-row { scroll-margin-top: calc(var(--lv-stick) + 4.25rem); }
@media (max-width: 28.5rem) { body.env-flagged { --lv-stick: 3.06rem; } }
/* THE EDIT DIALOG: one number's pieces, its stanzas, Delete */
.lv-edit-dialog { max-width: 720px; }
.lv-edit-part { margin-bottom: 0.9rem; }
.lv-edit-part h4 { margin: 0 0 0.35rem; font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lv-edit-part .pub-hymn-entry { margin-bottom: 0.35rem; }
.lv-edit-unit { font-family: var(--font-serif); font-weight: 700; margin: 0.6rem 0 0.3rem; }
.lv-edit-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding-top: 0.7rem; border-top: 1px solid var(--border); margin-bottom: 0; }
/* ADDING IS AN OUTLINED PILL (user, 2026-10-24: "what should be done about the + buttons with text?" - drawn,
   then "yes"): + Add words, + Add melody, + Add arrangement - outlined, there being several to a dialog, where
   the page's one main add (+ Add hymn) is filled. A pill under a column of entries stands clear of the card
   above it (user: "needs space" - it touched it). */
.btn-pill-outline { padding: 0.15rem 0.75rem; font-size: 0.8rem; line-height: 1.4; white-space: nowrap; }
/* OUTLINED AT A BUTTON'S OWN SIZE (user, 2026-10-24, of the band above a book's card: Page view, Publish, Slides
   and Print were four filled buttons all shouting the same - drawn, then "I'm liking this direction"): Slides
   and Print, the files a book makes, outlined in the pill's colours, so Publish is the one filled button. */
.btn-pill-outline, .btn-outline { background: var(--card); color: var(--accent); border: 1px solid rgba(122, 59, 46, 0.45); }
.btn-pill-outline:hover, .btn-pill-outline:focus-visible,
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(122, 59, 46, 0.08); border-color: var(--accent); box-shadow: none; }
.lv-edit-dialog .pub-arrangement-sublist + .work-picker-open { margin-top: 0.45rem; }
.lv-edit-stanzas { margin: 0; font-size: 0.88rem; }
.lv-edit-issue { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; flex-basis: 100%; }
/* A published issue's state and its Unpublish, under the issue date (r147). */
.lv-edit-issue-state { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; flex-basis: 100%; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.lv-edit-unpublish { font-size: 0.8rem; color: var(--muted); }
.lv-edit-unpublish:hover { color: var(--accent); }
.lv-edit-label { font-size: 0.85rem; color: var(--muted); }
#lv-edit-sources[hidden], .lv-edit-src[hidden] { display: none; }
.lv-periodical .lv-grid { grid-template-columns: 6.6rem minmax(0, 1.25fr) minmax(0, 1fr) 6.4rem 6.8rem; }
.lv-periodical .lv-grid.open { grid-template-columns: 6.6rem minmax(0, 1.25fr) minmax(0, 1fr) 6.2rem 6.6rem 2.6rem; }
/* LAPTOP-NARROW: the figures a little narrower */
@media (max-width: 1150px) {
  .lv-grid { grid-template-columns: 3.2rem minmax(0, 1.2fr) minmax(0, 1fr) 5.8rem 6.2rem; column-gap: 0.65rem; }
  .lv-grid.open { grid-template-columns: 3.9rem minmax(0, 1.2fr) minmax(0, 1fr) 5.6rem 6rem 2.6rem; }
}
/* A NARROW WINDOW: the four figures go under the name rather than squeeze
   it into a column of single words */
@media (max-width: 60rem) {
  .lv-book-head { grid-template-columns: auto minmax(0, 1fr); }
  .lv-book-head.nocover { grid-template-columns: minmax(0, 1fr); }
  .lv-figs { grid-column: 1 / -1; justify-content: start; margin-top: 0.5rem; }
}
/* A PHONE: each number a block, nothing scrolls sideways; First written in
   and a foreign book's In English fold behind one line (user, 2026-10-09, decision d) */
@media (max-width: 46rem) {
  .lv-book { padding: 0.85rem 0.9rem 0.8rem; }
  .lv-book-head { grid-template-columns: auto minmax(0, 1fr); }
  .lv-book-head.nocover { grid-template-columns: minmax(0, 1fr); }
  .lv-figs { grid-column: 1 / -1; margin-top: 0.5rem; }
  .lv-figs { column-gap: 0.4rem; }
  .lv-figs .lv-bfig { flex: 1 1 0; width: auto; min-width: 0; }
  .lv-bfig .fx-c { white-space: normal; }
  .lv-book h1 { font-size: 1.3rem; }
  .lv-rib { grid-template-columns: minmax(0, 1fr); }
  .lv-rls { display: none; }
  .lv-rib.rec .lv-rls { display: flex; }
  .lv-rib-row.th .lv-seg { color: transparent; }
  .lv-rib-row.sec .lv-seg .rng { display: none; }
  .lv-rib:not(.small) .lv-rib-row.sec .lv-seg { font-size: 0.6rem; }
  .lv-rib:not(.small) .lv-rib-row.sec .lv-lab { padding: 0 0.2rem; }
  .lv-chips { display: flex; }
  .lv-rib-row.thl { display: none; }
  .lv-rib.small .lv-box { font-size: 0.62rem; }
  .lv-rib.small.many .lv-box b { color: transparent; }
  .lv-box small { display: none; }
  .lv-rib.rec .lv-rib-row.nums { height: 1.75rem; }
  .lv-note-line { margin-left: 0; }
  .lv-line { grid-template-columns: minmax(0, 1fr); line-height: 1.55; margin-top: 0.15rem; }
  .lv-fold-btn { display: block; width: 100%; text-align: left; margin: 0.6rem 0 0; padding: 0.35rem 0; border: none; border-top: 1px solid var(--border);
    background: none; cursor: pointer; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
  .lv-fold-btn::before { content: '\25B8\00A0'; }
  .lv-fold-btn[aria-expanded="true"]::before { content: '\25BE\00A0'; }
  .lv-foldable { display: none; }
  .lv-foldable.is-open { display: grid; }
  .lv-meta { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  /* The contents card's centred heading takes its own line on a phone, so
     Add hymn and Renumber all never run into it (user, 2026-09-16). */
  .card:has(.lv-list) > .card-head { flex-wrap: wrap; }
  .card:has(.lv-list) > .card-head > h2 { position: static !important; transform: none !important; flex: 1 0 100%; text-align: center; order: -1; }
  .lv-pager .list-pager-size { display: none; }
  .lv-pager .list-pager-links { margin-left: 0; }
  .lv-pager .lv-paging { margin-left: 0; }
  .lv-cols { display: none; }
  .lv-grid, .lv-grid.open { grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, max-content); column-gap: 0.5rem; }
  .lv-periodical .lv-grid, .lv-periodical .lv-grid.open { grid-template-columns: 5.4rem minmax(0, 1fr) minmax(0, max-content); }
  .lv-row > * { grid-row: auto; }
  .lv-no-cell { grid-column: 1; grid-row: 1 / span 6; }
  .lv-words { grid-column: 2 / -1; }
  .lv-meter { grid-column: 2 / -1; flex-direction: row; align-items: baseline; gap: 0.45rem; text-align: left; }
  .lv-tune { grid-column: 2; }
  .lv-key { grid-column: 3; align-items: flex-end; text-align: right; max-width: 6.4rem; }
  /* The pen and bin keep to the row's top right, the first words beside them. */
  .lv-row > .lv-edit { grid-row: 1; grid-column: 3; justify-self: end; margin-top: -0.2rem; }
  .lv-row.open > .lv-words:not(.lv-sep) { grid-column: 2; }
  .lv-grip, .lv-no-cell > .lv-grip { display: none; }
  .lv-no-cell:has(> .lv-grip) { padding-left: 0; }
  .lv-v { font-size: 0.9rem; }
  .lv-sep { border-top: none; padding-top: 0; }
}
/* A FOREIGN-LANGUAGE BOOK HAS NO METER COLUMN (user, 2026-10-09): Key/Mode
   moves up a column and the others take the room - and no In English column
   (user, 2026-10-24), the Page view's "Also published in" names those books.
   Not on a phone, where every number is already a block of its own. */
@media (min-width: 46.01rem) {
  .lv-foreign .lv-grid { grid-template-columns: 3.4rem minmax(0, 1.3fr) minmax(0, 1.05fr) 6.8rem; }
  .lv-foreign .lv-grid.open { grid-template-columns: 3.9rem minmax(0, 1.3fr) minmax(0, 1.05fr) 6.6rem 2.6rem; }
  .lv-foreign .lv-key { grid-column: 4; }
  .lv-foreign .lv-edit { grid-column: 5; }
}
@media (min-width: 46.01rem) and (max-width: 1150px) {
  .lv-foreign .lv-grid { grid-template-columns: 3.2rem minmax(0, 1.25fr) minmax(0, 1fr) 6.2rem; }
  .lv-foreign .lv-grid.open { grid-template-columns: 3.9rem minmax(0, 1.25fr) minmax(0, 1fr) 6rem 2.6rem; }
}

/* BROWSE > THEMES: the contents, always shown, then the hymns under each chosen theme */
.thx-head { align-items: center; }
/* the contents, as a hymnal's: a column a section under its band, its themes down it, one count each like a page number;
   five side by side on a wide screen, fewer as it narrows, one on a phone */
.thx-toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.1rem; align-items: start; margin: 0 0 1.25rem; }
@media (min-width: 34rem) { .thx-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 50rem) { .thx-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .thx-toc { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thx-col { min-width: 0; }
.thx-colhead { margin: 0; text-decoration: none; }
a.thx-colhead:hover { text-decoration: none; }
/* the faint hover ring only on a band that is not chosen: a chosen one keeps its accent ring under the pointer */
a.thx-colhead:not([aria-current]):hover { box-shadow: inset 0 0 0 1px rgba(43, 38, 32, 0.3); }
.thx-colhead[aria-current] { box-shadow: inset 0 0 0 2px var(--accent); }
.thx-colhead.is-none { color: var(--muted); }
.thx-tl { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.thx-tl li { margin: 0; padding: 0; }
.thx-tl a, .thx-tl .is-none { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; align-items: baseline; padding: 0.1rem 0.6rem; border-radius: 4px; font-size: 0.84rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.thx-tl a:hover { background: var(--card-alt); color: var(--accent); text-decoration: none; }
.thx-tl .n { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; text-align: right; }
/* each chosen theme filled, under the pointer too (this rule follows :hover) */
.thx-tl a[aria-current] { background: #f7ebe6; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 600; } /* chosen: outlined, not filled (user, 2026-10-25) */
.thx-tl a[aria-current] .n { color: var(--accent); }
.thx-tl .is-none, .thx-tl .is-none .n { color: var(--placeholder); }
/* a finger, not a mouse: each entry and band at least 2rem tall, so neighbouring links are not 22px strips touching (24px is WCAG 2.2's floor) */
@media (pointer: coarse) {
  .thx-tl a, .thx-tl .is-none { min-height: 2rem; align-content: center; }
  .thx-colhead { min-height: 2rem; align-items: center; }
}
/* nothing chosen: the one line under the contents, said once */
.thx-hint { margin: -0.4rem 0 1.25rem; font-size: 0.84rem; color: var(--muted); }
/* a theme's heading: its name, then a dash and what the theme means, its count at the right like a page number. The
   description wraps inside its own column, so neither the dash nor the count is ever left on a line alone; a phone
   gives the description a line of its own under the name and count, with no dash */
.thx-th { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.6rem; align-items: baseline; }
.thx-th h3 { grid-column: 1; grid-row: 1; }
.thx-th .rng { grid-column: 3; grid-row: 1; margin-left: 0; }
.thx-desc { grid-column: 2; grid-row: 1; min-width: 0; font-style: italic; font-size: 0.84rem; color: var(--muted); }
.thx-desc::before { content: "\2014\00a0"; font-style: normal; }
/* the hymns, five columns: the hymn, its primary theme, its other themes, its hymnals, its recordings; headed once (.lv-cols) */
.thx-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(0, 0.65fr); column-gap: 1rem; }
.thx-row { padding: 0.45rem 0.5rem; border-bottom: 1px solid #efe9df; align-items: start; }
/* where a theme's primary hymns give way to its secondary ones: one quiet line, in place of the row rule above it */
.thx-row:has(+ .thx-row.is-second) { border-bottom-color: transparent; }
.thx-row.is-second { border-top: 1px dashed var(--border-strong); }
.thx-words .status-pill { margin-left: 0.3rem; vertical-align: 0.12em; }
.thx-prim, .thx-others { display: flex; flex-wrap: wrap; align-content: start; gap: 0.25rem; min-width: 0; }
.thx-prim .tag, .thx-others .tag { margin: 0; text-decoration: none; }
.thx-row .tag.is-on { background: #f7ebe6; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 600; } /* chosen: outlined, not filled (user, 2026-10-25) */
.thx-where { font-size: 0.8rem; line-height: 1.55; min-width: 0; }
.thx-where a { color: var(--ink); text-decoration: none; }
.thx-where a:hover { color: var(--accent); text-decoration: underline; }
.thx-where .bk { color: var(--muted); }
/* a phone stacks the five - the hymn, its primary theme, its other themes, its hymnals, then its recordings - and
   shows no column heads; an empty cell takes no room */
@media (max-width: 46rem) {
  .thx-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
  .thx-grid.thx-cols { display: none; }
  .thx-prim:empty, .thx-others:empty, .thx-where:empty { display: none; }
  .thx-th { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.1rem; }
  .thx-th .rng { grid-column: 2; }
  .thx-desc { grid-column: 1 / -1; grid-row: 2; }
  .thx-desc::before { content: none; }
}

/* REFERENCES > SCRIPTURE (the user's rulings, 2026-10-12): the books of the Bible always on screen in Browse > Themes'
   contents (.thx-toc, .thx-tl), a row of a chosen book's chapters, one Passage box, then a group per chosen passage */
/* the tabs, and Clear at the row's right end while something is chosen (user, 2026-10-13: not beside the title, nor
   beside Export, which keeps the title line's right end); where the row cannot hold both, Clear wraps to the right
   under the tabs */
.scx-tabrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0 0 0.9rem; }
.scx-tabrow .scx-tabs { margin: 0; }
.scx-clear { display: inline-flex; align-items: center; gap: 0.3em; margin-left: auto; }
/* the box: label, the text, and directly after it a small quiet Go (user, 2026-10-13, of the filled Show hymns: "why
   would it be so vivid?") */
.scx-box { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; }
.scx-box label { font-size: 0.84rem; color: var(--muted); }
.scx-box input[type="text"] { flex: 1 1 auto; min-width: 0; max-width: 36rem; }
.scx-box .btn { flex: 0 0 auto; }
.scx-problem { margin: 0 0 0.9rem; color: var(--error); font-size: 0.86rem; }
.scx-problem p { margin: 0.15rem 0; }
.scx-toc { margin-top: 0.9rem; }
.scx-band { cursor: default; }
/* the Apocrypha behind a rule, kept separate as ruled - where the five columns stand side by side */
@media (min-width: 64rem) { .scx-apo { border-left: 1px solid var(--border); padding-left: 1.1rem; margin-left: -0.55rem; } }
.scx-toc .scx-ab { display: none; }
/* the second tab: People and Events in two columns of their own, Places in one */
@media (min-width: 64rem) { .scx-subjects { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr); } }
@media (min-width: 46.01rem) {
  .scx-two .thx-tl { column-count: 2; column-gap: 1.1rem; }
  .scx-two .thx-tl li { break-inside: avoid; }
}
/* a chosen book's chapters: the number, its count under it; none greyed and not a link */
.scx-chapters { margin: 0 0 1rem; }
.scx-chbook { margin: 0 0 0.35rem; font: 600 0.95rem/1.3 var(--font-sans); color: var(--accent); }
.scx-chrow { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.scx-ch { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 2.5rem; padding: 0.15rem 0.3rem; border: 1px solid var(--border); border-radius: 4px; color: var(--ink); text-decoration: none; line-height: 1.15; }
.scx-ch b { font-size: 0.86rem; font-weight: 600; }
.scx-ch .n { font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
a.scx-ch:hover { background: var(--card-alt); color: var(--accent); text-decoration: none; }
a.scx-ch[aria-current] { background: #f7ebe6; border-color: var(--accent); color: var(--accent); font-weight: 600; } /* chosen: outlined, not filled (user, 2026-10-25) */
a.scx-ch[aria-current] .n { color: var(--accent); }
.scx-ch.is-none { border-color: transparent; color: var(--placeholder); }
.scx-ch.is-none .n { color: var(--placeholder); }
.scx-all { min-width: 3rem; }
@media (pointer: coarse) { .scx-ch { min-height: 2.4rem; min-width: 2.6rem; } }
/* a group: the full name, the neighbours, its count of hymns at the right like a page number */
.scx-group, .scx-subject { margin-bottom: 1rem; }
/* a link that lands on a group or a row of chapters leaves a little above it (and clears a sticky banner) */
.scx-group, .scx-subject, .scx-chapters { scroll-margin-top: 2.4rem; }
.scx-ghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin: 0 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 1.5px solid var(--border-strong); }
.scx-ghead h2 { margin: 0; padding: 0; border: 0; font-size: 1.15rem; }
.scx-ghead .rng { margin-left: auto; color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.scx-nb { font-size: 0.84rem; color: var(--muted); }
.scx-nb a { text-decoration: none; }
.scx-meta { flex: 1 1 14rem; font-size: 0.84rem; color: var(--muted); }
.scx-meta a { white-space: nowrap; }
.scx-here { margin: 0 0 0.6rem; font-size: 0.84rem; line-height: 1.6; }
.scx-here .n { color: var(--muted); font-size: 0.76rem; }
.scx-kind { margin-right: 0.15rem; font: 600 0.66rem/1 var(--font-sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.scx-gap { display: inline-block; width: 1.1rem; }
.scx-note { font-size: 0.8rem; margin: 0 0 0.5rem; }
.scx-none { margin: 0.2rem 0 0.3rem; color: var(--muted); }
.scx-none a, .scx-here a, .scx-meta a, .scx-nb a, .scx-unnamed a { color: var(--accent); }
/* a block's heading carries its one-sentence meaning, as a theme's heading carries its description */
.scx-tier .sb-tier { margin-bottom: 0.4rem; }
.scx-tier .sb-fold-toggle { align-items: baseline; flex-wrap: wrap; }
.scx-help { flex: 1 1 18rem; min-width: 0; font-style: italic; font-size: 0.8rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.scx-help::before { content: "\2014\00a0"; font-style: normal; }
.scx-tier .sb-count { margin-left: auto; }
.scx-group .sb-section + .sb-section, .scx-setpanel .sb-section + .sb-section { margin-top: 1.1rem; padding-top: 0.9rem; }
/* passage, hymn verses, title, number, hymnal */
.scx-table th:nth-child(1), .scx-table td:nth-child(1) { width: 15%; }
.scx-table th:nth-child(2), .scx-table td:nth-child(2) { width: 12%; }
.scx-table th:nth-child(3), .scx-table td:nth-child(3) { width: 52%; }
.scx-table th:nth-child(4), .scx-table td:nth-child(4) { width: 8%; }
.scx-table th:nth-child(5), .scx-table td:nth-child(5) { width: 13%; }
.scx-no { font-variant-numeric: tabular-nums; }
.scx-no a, .scx-title a { text-decoration: none; }
.scx-no a:hover, .scx-title a:hover { text-decoration: underline; }
.scx-bk { color: var(--muted); font-size: 0.84rem; }
/* the second tab's lists: title, hymn verses, number, hymnal, and what the hymn says of the name */
.scx-stable th:nth-child(1), .scx-stable td:nth-child(1) { width: 31%; }
.scx-stable th:nth-child(2), .scx-stable td:nth-child(2) { width: 11%; }
.scx-stable th:nth-child(3), .scx-stable td:nth-child(3) { width: 7%; }
.scx-stable th:nth-child(4), .scx-stable td:nth-child(4) { width: 10%; }
.scx-stable th:nth-child(5), .scx-stable td:nth-child(5) { width: 41%; }
.scx-stable .scx-unnamed th { width: auto; padding: 0.7rem 0.5rem 0.25rem; text-align: left; font-size: 0.82rem; font-weight: 600; color: var(--muted); border-top: 1px dashed var(--border-strong); }
.scx-stable .scx-unnamed .n { font-weight: 400; }
.scx-inhymn { font-size: 0.84rem; color: var(--muted); }
.scx-subject .scx-ghead h2 .sb-fold-toggle { font: inherit; }
.scx-subject.sb-open > .scx-ghead .sb-fold-toggle::before { transform: rotate(90deg); }
/* a phone: the books as the hymnal's abbreviations, four across; each line two lines, no column heads */
@media (max-width: 33.99rem) {
  .scx-toc:not(.scx-subjects) .thx-tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0.2rem; }
  .scx-toc:not(.scx-subjects) .thx-tl a, .scx-toc:not(.scx-subjects) .thx-tl .is-none { padding: 0.1rem 0.3rem; column-gap: 0.25rem; }
  .scx-toc .scx-full { display: none; }
  .scx-toc .scx-ab { display: inline; }
  .scx-subjects .thx-tl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.3rem; }
  .scx-box { flex-wrap: wrap; }
  .scx-box label { flex: 1 0 100%; }
}
@media (max-width: 46rem) {
  .scx-table thead, .scx-stable thead { display: none; }
  .scx-table, .scx-stable { table-layout: auto; }
  .scx-table tr.sb-row, .scx-stable tr.sb-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.5rem; padding: 0.35rem 0.2rem; border-bottom: 1px solid var(--border); }
  .scx-table tr.sb-row > td, .scx-stable tr.sb-row > td { display: block; width: auto !important; padding: 0; border: 0 !important; background: none !important; }
  .scx-table .scx-no, .scx-stable .scx-no { order: 1; min-width: 2.2rem; font-weight: 600; }
  .scx-table .scx-title, .scx-stable .scx-title { order: 2; flex: 1 1 calc(100% - 3rem); min-width: 0; }
  .scx-table .scx-cit { order: 3; padding-left: 2.7rem !important; font-size: 0.82rem; color: var(--muted); }
  .scx-table .scx-vv, .scx-stable .scx-vv { order: 4; font-size: 0.82rem; }
  .scx-table .scx-bk, .scx-stable .scx-bk { order: 5; font-size: 0.82rem; }
  .scx-stable .scx-vv { padding-left: 2.7rem !important; }
  .scx-stable .scx-inhymn { order: 6; flex: 1 0 100%; padding-left: 2.7rem !important; }
  .scx-stable .scx-inhymn:empty { display: none; }
  .scx-tier .sb-fold-toggle .scx-help { flex-basis: 100%; order: 3; }
}
/* TWO OR MORE PASSAGES (user, 2026-10-13): two or three are a diagram (.scx-vn, below); four or more, four figures
   that act as tabs, then Passage by passage, quieter; one line per hymn, a chip for each passage it is on, carrying
   the kind */
.scx-sets { margin: 0.2rem 0 1rem; scroll-margin-top: 2.4rem; }
.scx-views { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem 0.6rem; margin: 0 0 0.8rem; }
.scx-view { display: inline-flex; flex-direction: column; min-width: 10rem; padding: 0.4rem 0.9rem 0.45rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card); color: var(--ink); line-height: 1.15; text-decoration: none; }
.scx-view .scx-vl { font-size: 0.82rem; color: var(--muted); }
.scx-view .scx-fig { font: 600 2rem/1.05 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--accent); }
a.scx-view:hover { background: var(--card-alt); text-decoration: none; }
a.scx-view[aria-current] { background: #f7ebe6; border-color: var(--accent); } /* chosen: outlined, not filled (user, 2026-10-25) */
a.scx-view[aria-current] .scx-vl, a.scx-view[aria-current] .scx-fig { color: var(--accent); }
.scx-view.is-none { border-style: dashed; border-color: var(--border); background: none; }
.scx-view.is-none .scx-vl, .scx-view.is-none .scx-fig { color: var(--placeholder); }
a.scx-view.scx-view-each { min-width: 0; padding: 0.15rem 0.3rem; border: 0; border-radius: 0; background: none; color: var(--accent); font-size: 0.86rem; text-decoration: underline; }
a.scx-view.scx-view-each .scx-vl { font-size: inherit; color: inherit; }
a.scx-view.scx-view-each[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); }
.scx-setpanel > .scx-none { margin: 0 0 0.5rem; }
/* THE DIAGRAM OF TWO OR THREE PASSAGES (user, 2026-10-13): equal circles crossing only where passages share a hymn;
   each part its own outline inside its own link, so the part is what the pointer hits; the rings drawn over the parts
   and never hit. Chosen parts in the accent tint with their counts in the accent; a hovered part a lighter tint; a
   part with none muted - unfilled, no count, its name its tooltip. Beside it the total chosen, its sentence, the
   quick choices, then Passage by passage, then how it is clicked (a mouse's words, or a finger's). At its layout's
   own size (up to 380 x 230), smaller on a phone, never wider than the column. */
.scx-vn { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; margin: 0 0 0.8rem; }
.scx-vn-svg { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; }
.scx-vn-svg a, .scx-vn-svg a:hover { cursor: pointer; outline: none; text-decoration: none; }
.scx-vn-svg .vn-part { fill: rgba(122, 59, 46, 0.035); stroke: none; transition: fill 0.12s; }
.scx-vn-svg a:hover .vn-part { fill: rgba(122, 59, 46, 0.11); }
.scx-vn-svg a[aria-current] .vn-part { fill: rgba(122, 59, 46, 0.24); }
.scx-vn-svg a[aria-current]:hover .vn-part { fill: rgba(122, 59, 46, 0.3); }
.scx-vn-svg a:focus-visible .vn-part { stroke: var(--accent); stroke-width: 3px; }
.scx-vn-svg .vn-n { font: 600 15px var(--font-sans); fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.scx-vn-svg a[aria-current] .vn-n { fill: var(--accent); font-weight: 700; }
.scx-vn-svg .vn-zero .vn-part { fill: none; pointer-events: all; cursor: default; }
.scx-vn-svg .vn-rings circle { fill: none; stroke: var(--border-strong); stroke-width: 1.25px; pointer-events: none; }
.scx-vn-svg .vn-label { font: 600 12.5px var(--font-sans); fill: var(--muted); text-anchor: middle; }
.scx-vn-read { flex: 1 1 15rem; min-width: 0; }
.scx-vn-sum { margin: 0 0 0.4rem; line-height: 1.25; }
.scx-vn-sum .scx-fig { margin-right: 0.3rem; font: 600 2rem/1.05 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.scx-vn-quick, .scx-vn-each { margin: 0 0 0.3rem; font-size: 0.86rem; }
.scx-vn-quick a, .scx-vn-each a { text-decoration: underline; }
.scx-vn-quick a[aria-current], .scx-vn-each a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); }
.scx-vn-quick .is-none { color: var(--placeholder); }
.scx-vn-dot { color: var(--muted); }
.scx-vn-how { margin: 0.45rem 0 0; font-size: 0.8rem; color: var(--muted); }
.scx-vn-how .scx-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .scx-vn-how .scx-touch { display: inline; } .scx-vn-how .scx-mouse { display: none; } }
/* number, title, hymnal, the passages it is on */
.scx-settable th:nth-child(1), .scx-settable td:nth-child(1) { width: 7%; }
.scx-settable th:nth-child(2), .scx-settable td:nth-child(2) { width: 38%; }
.scx-settable th:nth-child(3), .scx-settable td:nth-child(3) { width: 9%; }
.scx-settable th:nth-child(4), .scx-settable td:nth-child(4) { width: 46%; }
.scx-chips { line-height: 1.25; }
.scx-chip.sb-verses { display: inline-flex; align-items: baseline; gap: 0.35rem; margin: 0.1rem 0.3rem 0.1rem 0; padding: 0.05rem 0.5rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 0.78rem; line-height: 1.45; text-decoration: none; white-space: nowrap; }
.scx-chip.sb-verses:hover { border-color: var(--accent); color: var(--accent); }
.scx-chip .scx-chip-t { font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.scx-chip.scx-t-based_on { border-color: var(--accent); }
.scx-chip.scx-t-based_on .scx-chip-t { color: var(--accent); font-weight: 700; }
.scx-chip.scx-t-thematic { border-style: dashed; }
.scx-chip.sb-verses[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.scx-chip.sb-verses[aria-expanded="true"] .scx-chip-t { color: #f3e6e2; }
@media (max-width: 46rem) {
  .scx-settable thead { display: none; }
  .scx-settable { table-layout: auto; }
  .scx-settable tr.sb-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.5rem; padding: 0.35rem 0.2rem; border-bottom: 1px solid var(--border); }
  .scx-settable tr.sb-row > td { display: block; width: auto !important; padding: 0; border: 0 !important; background: none !important; }
  .scx-settable .scx-no { order: 1; min-width: 2.2rem; font-weight: 600; }
  .scx-settable .scx-title { order: 2; flex: 1 1 calc(100% - 3rem); min-width: 0; }
  .scx-settable .scx-bk { order: 3; padding-left: 2.7rem !important; font-size: 0.82rem; }
  .scx-settable .scx-chips { order: 4; flex: 1 1 0; min-width: 0; }
  .scx-chip.sb-verses { white-space: normal; }
  .scx-view { min-width: 0; flex: 1 1 8rem; }
  a.scx-view.scx-view-each { flex: 0 0 auto; }
}

/* REFERENCES > MAPS: the place list above the maps, a pin's numbered lines, its "not named" */
.map-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem 1.1rem; margin: 0 0 1rem; }
@media (min-width: 46rem) { .map-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.map-index ul { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.map-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; padding: 0.1rem 0.6rem; border-radius: 4px; font-size: 0.84rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.map-index a:hover { background: var(--card-alt); color: var(--accent); text-decoration: none; }
.map-index a[aria-current] { background: #f7ebe6; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font-weight: 600; } /* chosen: outlined, not filled (user, 2026-10-25) */
.map-index .n { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; text-align: right; }
.map-index a[aria-current] .n { color: var(--accent); }
@media (pointer: coarse) { .map-index a { min-height: 2rem; align-content: center; } }
.map-pop .search-citation-list li { align-items: baseline; }
.map-pop .search-citation-list li > a.map-no { flex: 0 0 auto; min-width: 1.9rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; text-decoration: none; }
.map-pop .search-citation-list li > a.map-no:hover { color: var(--accent); text-decoration: underline; }
.map-pop .search-citation-list .sb-verses { margin-left: auto; font-size: 0.78rem; white-space: nowrap; }
.map-unnamed { margin-left: auto; font-size: 0.76rem; font-style: italic; color: var(--muted); white-space: nowrap; }
.map-all { margin: 0.5rem 0 0; font-size: 0.82rem; }
.map-pop .map-related a.tag { text-decoration: none; }

/* THE PASSAGE VIEW OPENS IN PLACE (user, 2026-10-13): a row directly under the line clicked, pushing the rest down,
   never over them (scripture-passage.js); the two halves side by side, stacked on a phone (.sp-cols wraps) */
tr.sp-inrow > td { width: auto !important; padding: 0.1rem 0.3rem 0.5rem; border-bottom: 1px solid var(--border); background: none; }
/* the line it belongs to keeps the hover shade while it is open */
.sb-table tr.sb-row:has(.sb-verses[aria-expanded="true"]) > td { background: rgba(122, 59, 46, 0.07); }
.search-citation-list li:has(> .sb-verses[aria-expanded="true"]) { background: rgba(122, 59, 46, 0.07); }
.scripture-passage.sp-inplace { position: static; z-index: auto; min-width: 0; max-width: none; margin: 0.1rem 0 0; box-shadow: none; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.scripture-passage.sp-inplace:focus { outline: none; }
.scripture-passage.sp-inplace:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sp-inplace .sp-head { margin-bottom: 0.45rem; }
.sp-inplace .sp-relation-head { font-size: 0.8rem; color: var(--muted); }
.sp-inplace .sp-text { max-height: 18rem; }
/* in a pin's box: one more line of its list */
.search-citation-list li.sp-inli { display: block; padding: 0.15rem 0 0.35rem; }
.map-pop .sp-inplace { padding: 0.45rem 0.55rem; font-size: 0.8rem; }
.map-pop .sp-inplace .sp-text { max-height: 9rem; }
@media (max-width: 46rem) {
  .scx-table tr.sp-inrow, .scx-stable tr.sp-inrow, .scx-settable tr.sp-inrow { display: block; }
  .scx-table tr.sp-inrow > td, .scx-stable tr.sp-inrow > td, .scx-settable tr.sp-inrow > td { display: block; padding: 0.1rem 0 0.5rem; }
}

/* A HYMN PAGE'S PILL BOX: other hymns on the same passage, on the Scripture page */
/* A LECTIONARY DAY'S TEXTS, on the Scripture page */
.lect-scx { margin: 0.35rem 0 0; font-size: 0.8rem; }
.lect-scx a:hover .lq-name-go, .lect-scx a:focus-visible .lq-name-go { opacity: 1; }
.scripture-passage .sp-others { margin: 0.55rem 0 0; font-size: 0.82rem; }

/* SORTABLE LISTS (static/js/sortable-list.js): a row dragged by its handle
   straight to its place, or picked up with Enter or Space and moved with the
   arrow keys; saved as it is dropped. First on Admin > Themes, whose section
   tables are the order. */
.sortable-handle { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2rem; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; line-height: 1; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sortable-grip { display: inline-block; width: 10px; height: 15px; vertical-align: -3px; font-size: 0; line-height: 0; overflow: hidden; background: radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 0 0 / 5px 5px; }
.sortable-handle:hover { background: var(--card-alt); color: var(--ink); }
.sortable-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
[data-sortable-list].is-sorting > [data-sortable-id] { transition: transform 150ms ease; }
[data-sortable-list] > .is-dragging { position: relative; z-index: 2; transition: none !important; border-color: var(--accent); box-shadow: 0 6px 18px rgba(43, 38, 32, 0.18); }
[data-sortable-list] > .is-lifted { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
[data-sortable-list][aria-busy="true"] .sortable-handle { cursor: progress; }
.sortable-indicator { position: fixed; z-index: 1000; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); pointer-events: none; }
body.sortable-dragging, body.sortable-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.sortable-status { min-height: 1.2em; margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--muted); }
.sortable-status.is-saved { color: var(--success); }
.sortable-status.is-error { color: var(--error); }
@media (pointer: coarse) {
  .sortable-handle { min-width: 2.75rem; min-height: 2.75rem; }
}
/* a TABLE's rows (Admin > Themes: each section's table is its order) - the handle in a narrow first column; the row
   taken up drawn opaque over the rows it passes, and outlined, as a table row carries no border of its own */
.theme-table th.theme-grip, .theme-table td.theme-grip { width: 2.6rem; padding-left: 0.2rem; padding-right: 0; vertical-align: middle; }
[data-sortable-list] > tr.is-dragging > td { background: var(--card); }
[data-sortable-list] > tr.is-lifted > td { background: var(--card-alt); }
[data-sortable-list] > tr.is-dragging, [data-sortable-list] > tr.is-lifted { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  [data-sortable-list].is-sorting > [data-sortable-id] { transition: none; }
}
/* MAP INDEX HEADINGS ARE LINKS to their maps (user, 2026-10-13); the anchor undoes the place links' grid. */
.map-index a.map-index-head { display: block; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
.map-index a.map-index-head:hover { background: none; }
.map-index a.map-index-head:hover .lv-sechead, .map-index a.map-index-head:focus-visible .lv-sechead { box-shadow: inset 0 0 0 2px var(--accent); }
.map-card { scroll-margin-top: 1rem; }
/* A PIN'S BOX UNDER THE MAP (scripture-map.js) when it fits beside its pin on neither side - a phone: the frame's
   width, below the image. The frame keeps its height (its pins are percentages of it); its margin makes the room. */
.map-pop.map-pop-under { left: 0 !important; top: 100% !important; transform: none; margin: 1.15rem 0 0; width: 100%; box-sizing: border-box; }
/* MEASURED BEFORE IT IS SEEN: parked at the frame's left edge, invisible, so it never widens the page. */
.map-pop.map-pop-measure { left: 0 !important; top: 0 !important; transform: none; margin: 0; visibility: hidden; }
/* IN A PIN'S BOX A LONG TITLE WRAPS in its own column beside its number, not whole below it. */
.map-pop .search-citation-list li > a:not(.map-no) { flex: 1 1 0; min-width: 0; }

/* REFERENCES > CROSS-REFERENCE: five tabs, each one question - room to breathe */
/* THE TWO CARDS' COLOURS - no letters (user, 2026-10-13: "All this A/B is overkill"): Start from, the accent brown;
   Compare with, a slate blue from the palette (the lyrics pill's), white on it 7:1. Each its card's tint, bands, edge,
   hover, chosen fill and the soft colour of a chosen entry's count - nowhere else on the page. */
.xr-page { max-width: 62rem;
  --xr-start: var(--accent); --xr-start-tint: #fdf9f6; --xr-start-band: #f3e6de; --xr-start-line: #dcc3b7; --xr-start-hover: #f5e7df; --xr-start-soft: #f3e6e2;
  --xr-with: #2c5a8a; --xr-with-tint: #f7f9fd; --xr-with-band: #e0e9f4; --xr-with-line: #b4c8de; --xr-with-hover: #e4ecf6; --xr-with-soft: #dce7f3; }
.xr-head { align-items: center; margin-bottom: 0.4rem; }
.crossref-export { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--muted); }
/* the five tabs: a strip of bordered tabs standing on the panel's top edge - the open one joined to the panel (its
   background, no edge between them, a heavier top edge in the accent), the others quieter, on the recessed surface.
   The strip overlaps the panel's edge by its width, so the open tab's bottom covers it. */
.xr-tabs { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 0.3rem; margin: 0 0 -1px; padding: 0 0.7rem; }
.xr-tabs [role="tab"] { flex: none; padding: 0.5rem 1.05rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; background: var(--card-alt); color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.xr-tabs [role="tab"]:hover { background: #f7f3ec; color: var(--ink); text-decoration: none; }
.xr-tabs [role="tab"][aria-selected="true"] { padding-top: 0.6rem; border-color: var(--border); border-top: 3px solid var(--accent); border-bottom-color: var(--card); background: var(--card); color: var(--accent); }
.xr-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
/* a strip too wide for its screen fades at the edge that has more (static/js/cross-reference.js sets which) */
.xr-tabs.is-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.2rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.2rem), transparent); }
.xr-tabs.is-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 2.2rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 2.2rem), transparent); }
.xr-tabs.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 2.2rem, #000 calc(100% - 2.2rem), transparent); mask-image: linear-gradient(to right, transparent, #000 2.2rem, #000 calc(100% - 2.2rem), transparent); }
/* the open tab's panel: everything the tab asks and answers */
.xr-panel { margin: 0 0 1.5rem; padding: 1.4rem 1.5rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
/* the question each tab asks, said once */
.xr-question { margin: 0 0 1.2rem; font: 400 1.15rem/1.4 var(--font-serif); color: var(--ink); }
.xr-emptyline { margin: 0.4rem 0 2rem; color: var(--muted); }
.xr-note { margin: 0 0 1rem; color: var(--muted); }
.xr-grey { color: var(--muted); font-size: 0.86rem; }
.xr-tune { color: var(--muted); font-family: var(--font-sans); font-style: italic; font-size: 0.8rem; }
.xr-by { color: var(--muted); font: 400 0.82rem/1.4 var(--font-sans); }
.xr-draft { padding: 0 0.35rem; border-radius: 4px; background: var(--status-backlog-bg); color: var(--status-backlog-fg); font-size: 0.7rem; font-weight: 600; }
.xr-word { color: var(--muted); }
/* a single choice in a row - Match by's, the Hymn tab's books: chosen as the blocks' entries are */
.xr-chip { display: inline-flex; align-items: baseline; gap: 0.3rem; padding: 0.16rem 0.65rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 0.86rem; line-height: 1.45; text-decoration: none; }
.xr-chip:hover { background: var(--card-alt); color: var(--accent); text-decoration: none; }
.xr-chip[aria-current] { border-color: var(--accent); background: #f7ebe6; color: var(--accent); font-weight: 600; } /* chosen: outlined, not filled (user, 2026-10-25) */
/* ---- the two cards: Start from, Compare with - each Browse > Themes' contents (thx-toc), one count an entry, on its
   own tint under its own heavier top edge, its heading in its colour; a chosen entry filled in it ---- */
.xr-choose { margin: 0; }
.xr-ab { display: flex; flex-direction: column; }
/* the hint and Match by under the cards (.xr-after): the hint, then Match by its own row */
.xr-hint + .xr-match { margin-top: 1.2rem; }
.xr-side { --side: var(--xr-start); --side-tint: var(--xr-start-tint); --side-band: var(--xr-start-band); --side-line: var(--xr-start-line); --side-hover: var(--xr-start-hover); --side-soft: var(--xr-start-soft);
  min-width: 0; padding: 0.7rem 0.9rem 0.85rem; border: 1px solid var(--side-line); border-top: 4px solid var(--side); border-radius: var(--radius); background: var(--side-tint); }
.xr-side.xr-blk-right { --side: var(--xr-with); --side-tint: var(--xr-with-tint); --side-band: var(--xr-with-band); --side-line: var(--xr-with-line); --side-hover: var(--xr-with-hover); --side-soft: var(--xr-with-soft); }
.xr-blk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.7rem; margin: 0 0 0.6rem; }
.xr-blk-head h2 { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font: 600 1rem/1.3 var(--font-sans); color: var(--side); }
.xr-blk-note { color: var(--muted); font-size: 0.84rem; }
/* CLEAR beside the card's title (user, 2026-10-13: the quiet one in the corner "looks like it's trying to be a column
   header instead of a clear button"): the outlined Clear of every filter bar, small (.btn .btn-outline .btn-sm); the
   heading's row keeps the button's height, so a card does not jump as Clear comes and goes */
.xr-blk-head { min-height: 2.1rem; }
.xr-toc { margin: 0; }
.xr-toc .thx-colhead { margin-top: 0; }
.xr-side .lv-sechead.s-x { background: var(--side-band); }
.xr-side a.thx-colhead:not([aria-current]):hover { box-shadow: inset 0 0 0 1px var(--side-line); }
.xr-side .thx-colhead[aria-current] { box-shadow: inset 0 0 0 2px var(--side); }
.xr-side .thx-tl a:hover { background: var(--side-hover); color: var(--side); }
.xr-side .thx-tl a[aria-current] { background: color-mix(in srgb, var(--side) 12%, var(--card)); box-shadow: inset 0 0 0 1px var(--side); color: var(--side); } /* chosen: outlined, not filled (user, 2026-10-25) */
.xr-side .thx-tl a[aria-current] .n { color: var(--side); }
.xr-side .thx-tl .is-none.is-on { box-shadow: inset 0 0 0 1px var(--side); }
.xr-colname { min-width: 0; }
.xr-colnote { margin: 0.3rem 0.6rem 0; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
/* WHAT START FROM HOLDS IS NOT LISTED UNDER COMPARE WITH (user, 2026-10-13: "totally removed ... instead of just
   grayed out"), nor a group it holds whole; with nothing left, the card's one line says so */
.xr-toc .is-taken { display: none; }
.xr-allgone { margin: 0; color: var(--muted); font-size: 0.88rem; }
/* a recording's number before its name, in a box's matches and its chips */
.xr-rn { font-weight: 600; font-variant-numeric: tabular-nums; }
.xr-hint { margin: 0.75rem 0 0; }
/* "compared with" between the cards: one above the other, a rule across with the words and an arrow down; side by
   side (60rem and up, where their columns fit), each card its own height - one never stretched, empty, to the
   other's (a box's matches grow Compare with alone) - and between them, near their tops, a short upright rule with
   the arrow across */
.xr-cw { display: flex; align-items: center; gap: 0.55rem; margin: 0.5rem 0; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.xr-cw::before, .xr-cw::after { content: ""; flex: 1 1 0; border-top: 1px dashed var(--border-strong); }
.xr-cw-arrow { flex: none; width: 1.15rem; height: 1.15rem; transform: rotate(90deg); }
@media (min-width: 60rem) {
  /* side by side: the cards' shares of the width (--xr-cols: app.py _crossref_pair's `w`), "compared with" between,
     the hint and Match by under both */
  .xr-ab.can-pair { display: grid; grid-template-columns: var(--xr-cols, minmax(0, 1fr) 4.4rem minmax(0, 1fr)); align-items: start; }
  .xr-ab.can-pair > .xr-blk-left { grid-column: 1; grid-row: 1; }
  .xr-ab.can-pair > .xr-blk-right { grid-column: 3; grid-row: 1; }
  .xr-ab.can-pair > .xr-after { grid-column: 1 / -1; grid-row: 2; }
  /* THE SPACE UNDER START FROM (user, 2026-10-13: "can we do something about this space?"): where Compare with is the
     taller by at least their height (static/js/cross-reference.js measures), the hint and Match by move up under
     Start from, wrapping to its width - the Also its own line - and Compare with spans both rows; the second row
     takes what Compare with leaves (1fr), so the first is Start from's own height and nothing is stretched */
  .xr-ab.can-pair.is-tucked { grid-template-rows: auto 1fr; margin-bottom: 1.5rem; }
  .xr-ab.can-pair.is-tucked > .xr-blk-right { grid-row: 1 / span 2; }
  .xr-ab.can-pair.is-tucked > .xr-after { grid-column: 1; }
  .xr-ab.can-pair.is-tucked .xr-hint + .xr-match { margin-top: 0.7rem; margin-bottom: 0; }
  .xr-ab.can-pair.is-tucked .xr-also { flex-basis: 100%; margin: 0.15rem 0 0; padding-left: 0; }
  .xr-ab.can-pair > .xr-cw { grid-column: 2; grid-row: 1; flex: none; flex-direction: column; justify-content: flex-start; gap: 0.35rem; width: 4.4rem; margin: 1.1rem 0 0; padding: 0 0.2rem; text-align: center; line-height: 1.2; }
  .xr-ab.can-pair > .xr-cw::before, .xr-ab.can-pair > .xr-cw::after { flex: none; height: 1.4rem; border-top: 0; border-left: 1px dashed var(--border-strong); }
  .xr-ab.can-pair .xr-cw-arrow { width: 1.4rem; height: 1.4rem; transform: none; }
  .xr-ab.can-pair .xr-toc { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
  /* a card of short columns folds them two to one, each kept whole */
  .xr-ab.can-pair .is-fold .xr-toc { display: block; column-count: var(--n, 1); column-gap: 1.1rem; }
  .xr-ab.can-pair .is-fold .xr-col { break-inside: avoid; margin: 0 0 0.85rem; }
  .xr-ab.can-pair .is-fold .xr-col:last-child { margin-bottom: 0; }
}
.xr-clear[hidden] { display: none; }
/* THE BLOCK NOT SHOWN UNTIL MEASURED (cross_reference.html: is-measuring, set just before it and taken off by the
   script after the layout as it decides where the block stands): a frame painted in that moment - a first visit,
   a slow machine - shows the cards alone, never the block where it is about to move from. Without a script the
   class is never set */
.xr-ab.is-measuring > .xr-after { visibility: hidden; }
/* ---- A CARD THAT FINDS (Recordings, Periodicals, Other publications - user, 2026-10-13: "I don't want a super long
   list to scroll through"): its few entries - "Every recording", then a style each with its icon, how many
   recordings and the hymns they hold - then the box, its matches IN PLACE under it (they push the page down, never
   over anything), and what it chose as chips ---- */
.xr-groups { margin: 0 0 0.75rem; }
.xr-groups a, .xr-groups .is-none { grid-template-columns: minmax(0, 1fr) auto 2.6rem; font-size: 0.88rem; }
.xr-groups .nm { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; }
.xr-holds { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.xr-side .thx-tl a[aria-current] .xr-holds { color: var(--side); }
.xr-box { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0; }
/* the box's label on its own line, the box and Find under it: room for the placeholder's whole question */
.xr-box label { flex: 1 0 100%; font-size: 0.84rem; font-weight: 600; color: var(--side); }
.xr-box input[type="search"] { flex: 1 1 11rem; min-width: 0; padding: 0.42rem 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card); font-size: 0.92rem; }
.xr-hits { margin: 0.4rem 0 0; }
/* Find lands back on the box (#xr-box), its matches under it, clear of a banner pinned to the top - two lines
   of it on a phone (the Go to row's own margin) */
.xr-box { scroll-margin-top: 4rem; }
.xr-hits:empty { display: none; }
.xr-hitlist { list-style: none; margin: 0; padding: 0.15rem 0; border: 1px solid var(--side-line); border-radius: var(--radius); background: var(--card); }
.xr-hitlist a, .xr-hitlist .is-none { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.5rem; align-items: center; padding: 0.28rem 0.6rem; color: var(--ink); font-size: 0.86rem; line-height: 1.35; text-decoration: none; }
/* A MATCH'S NAME WRAPS where its column is narrow, never cut, and says why it matched after it - a recording's year
   and place, muted (verification, 2026-10-13: a phone cut "No. 908 ZZZ Scale Recordi..." and showed neither; a phone
   shows no hover) */
.xr-hitlist .nm { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
/* each part kept whole where it fits a line - to the next line rather than broken across two - as a Recordings cell's place */
.xr-hit-a { display: inline-block; max-width: 100%; color: var(--muted); }
.xr-hitlist a[aria-current] .xr-hit-a, .xr-hitlist a[aria-current] .xr-dot { color: var(--side-soft); }
.xr-hitlist .n { grid-column: 3; color: var(--muted); font-size: 0.78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xr-hitlist a:hover, .xr-hitlist a:focus-visible { background: var(--side-hover); color: var(--side); text-decoration: none; }
.xr-hitlist a:focus-visible { outline: 2px solid var(--side); outline-offset: -2px; }
.xr-hitlist a[aria-current] { background: var(--side); color: #fff; }
.xr-hitlist a[aria-current] .n { color: var(--side-soft); }
.xr-hitlist .is-none, .xr-hitlist .is-none .n { color: var(--placeholder); }
.xr-hits-more, .xr-hits-none { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.82rem; }
.xr-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.55rem 0 0; }
.xr-chips[hidden] { display: none; }
.xr-chipx { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; padding: 0.1rem 0.15rem 0.1rem 0.6rem; border-radius: 999px; background: var(--side); color: #fff; font-size: 0.82rem; line-height: 1.4; }
.xr-chipx .nm { min-width: 0; max-width: 18rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xr-chip-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 999px; color: #fff; font-size: 1rem; line-height: 1; text-decoration: none; }
.xr-chip-x:hover, .xr-chip-x:focus-visible { background: rgba(255, 255, 255, 0.25); color: #fff; text-decoration: none; }
/* ---- the Hymn tab: one box, a row of books, one card ---- */
.xr-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; margin: 0 0 0.6rem; }
.xr-find input[type="search"] { flex: 1 1 22rem; max-width: 34rem; padding: 0.62rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card); font-size: 1.08rem; }
.xr-inrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin: 0 0 1.1rem; font-size: 0.88rem; }
.xr-ingroup { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }
.xr-ingroup:empty { display: none; }
.xr-example, .xr-miss { margin: 0 0 1.6rem; color: var(--muted); }
.xr-miss { color: var(--ink); }
.xr-picks { list-style: none; margin: 0 0 1.2rem; padding: 0; max-width: 46rem; border-top: 1px solid var(--border); }
.xr-picks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.9rem; padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--border); }
.xr-picks a { display: inline-flex; align-items: baseline; gap: 0.8rem; color: var(--ink); text-decoration: none; }
.xr-picks a:hover .xr-pick-t { color: var(--accent); text-decoration: underline; }
.xr-pick-no { min-width: 7.5rem; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.xr-pick-t { font-family: var(--font-serif); font-size: 1.02rem; }
.xr-more-line { margin: 0 0 1.4rem; }
.xr-hcard { max-width: 46rem; margin: 1.2rem 0 1.2rem; padding: 1.5rem 1.7rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.xr-hcard-head { margin: 0 0 1.3rem; }
.xr-hcard-nos { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; margin: 0 0 0.25rem; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.xr-hcard-nos a { font-weight: 600; }
.xr-hcard h2 { margin: 0; font: 600 1.45rem/1.3 var(--font-serif); }
.xr-hcard h2 a { color: var(--ink); text-decoration: none; }
.xr-hcard h2 a:hover { color: var(--accent); text-decoration: underline; }
.xr-hcard-line { margin: 0.2rem 0 0; color: var(--muted); font-family: var(--font-serif); }
.xr-part { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--border); }
.xr-part h3 { margin: 0; font: 600 0.72rem/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.xr-part-hint { margin: 0.15rem 0 0.7rem; color: var(--muted); font-size: 0.86rem; }
.xr-none { margin: 0; color: var(--muted); font-style: italic; }
.xr-sub + .xr-sub { margin-top: 1rem; }
.xr-sub h4 { display: flex; align-items: baseline; gap: 0.55rem; margin: 0 0 0.35rem; font: 600 0.95rem/1.35 var(--font-sans); }
.xr-sub h4 a { color: var(--ink); text-decoration: none; }
.xr-sub h4 a:hover { color: var(--accent); text-decoration: underline; }
.xr-sub.is-asked h4 { color: var(--accent); }
.xr-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 1.45rem; height: 1.45rem; border-radius: 999px; background: var(--card-alt); color: var(--accent); font-size: 0.78rem; font-weight: 700; }
.xr-sub.is-asked .xr-letter { background: var(--accent); color: #fff; }
.xr-page .ph { color: var(--muted); }
/* places, one per line: book | number(s) | the words there - one set of columns for the whole list (subgrid), so
   "No. 84 tracks" and "August 2025" line up with "SHZ 2008" and 6; a recording's line starts with its style's icon */
.xr-places { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 1rem; list-style: none; margin: 0; padding: 0; }
.xr-places li { display: grid; grid-column: 1 / -1; grid-template-columns: 9.5rem 6.5rem minmax(0, 1fr); grid-template-columns: subgrid; align-items: baseline; padding: 0.22rem 0; line-height: 1.45; }
.xr-places .xr-pfx { color: var(--muted); font-size: 0.9rem; }
.xr-nums { font-weight: 600; font-variant-numeric: tabular-nums; }
.xr-places .xr-grey { font-family: var(--font-serif); font-size: 0.92rem; }
.xr-pw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.65rem; min-width: 0; }
.xr-places li.xr-recsum { display: block; padding: 0.6rem 0 0.2rem; color: var(--muted); font-size: 0.86rem; }
.xr-places li.xr-recsum:first-child { padding-top: 0; }
/* THE "Recorded:" LINE (user, 2026-10-13: it "stays short when a hymn is on many recordings"): an icon a style with how
   many recordings, each opening that style's recordings beneath it - in the list's own columns */
.xr-recbtn { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0 0 0 0.3rem; padding: 0.08rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 0.86rem/1.4 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.xr-recbtn:hover { border-color: var(--accent-light); color: var(--accent); }
.xr-recbtn[aria-expanded="true"] { border-color: var(--accent); background: #f6ece8; color: var(--accent); }
.xr-recbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.xr-places li[hidden] { display: none; }
.xr-places li.xr-recgrp { padding: 0; }
.xr-recgrp > .xr-places { grid-column: 1 / -1; grid-template-columns: subgrid; }
/* a number paired by its melody alone - it holds no words (user, 2026-10-13) - said so after it, small and muted */
.xr-mo { color: var(--muted); font: 400 0.74rem/1.3 var(--font-sans); white-space: nowrap; }
/* a hymn not yet recorded whose melody a track carries without words (user, 2026-10-13: "Not recorded; noted"):
   after its title, as quiet, linked to that track; "+N" the rest, in place */
.xr-row .xr-inst a.xr-mo { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 0.15em; }
.xr-row .xr-inst a.xr-mo:hover { color: var(--accent); text-decoration-color: currentColor; }
.xr-inst-more { margin: 0 0 0 0.1rem; padding: 0 0.35rem; font-size: 0.72rem; vertical-align: baseline; }
/* ---- a comparison: Match by, a row of its own under the blocks ---- */
.xr-match { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; margin: 0 0 1.5rem; font-size: 0.88rem; }
.xr-match .xr-word { margin-right: 0.35rem; }
/* Match by belongs to neither side: its choice is filled in ink, never a side's colour */
.xr-match .xr-chip[aria-current] { border-color: var(--ink); background: var(--card-alt); color: var(--ink); }
.xr-match-hint { margin-left: 0.5rem; color: var(--muted); font-size: 0.82rem; }
/* melody and arrangement, asked now and then: two plain links at the row's end, quieter than Match by's own */
.xr-also { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35rem; margin-left: auto; padding-left: 1rem; color: var(--muted); font-size: 0.82rem; }
.xr-also a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 0.18em; }
.xr-also a:hover { color: var(--accent); text-decoration-color: currentColor; }
.xr-also a[aria-current] { color: var(--accent); font-weight: 600; text-decoration: none; }
/* the figures: tabs of their own, each a count of its list - three, or as many as a comparison shows (two where a
   side is wholly foreign-language books, four where In both parts into Same words and Melody only), filling the row */
.xr-figs { display: grid; grid-template-columns: repeat(var(--xr-nfig, 3), minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.4rem; }
.xr-fig { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.2rem 1.05rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; }
.xr-fig:hover { border-color: var(--accent-light); text-decoration: none; }
.xr-fig[aria-current] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.xr-fig-n { font: 600 2.1rem/1.05 var(--font-serif); font-variant-numeric: tabular-nums; }
.xr-fig[aria-current] .xr-fig-n { color: var(--accent); }
.xr-fig-l { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }
.xr-fig[aria-current] .xr-fig-l { color: var(--ink); font-weight: 600; }
/* ONLY THE CHOSEN FIGURE IS TINTED (user, 2026-10-13: the middle one, tinted whether chosen or not, "makes it look
   like it's always selected"); the middle one's priority is that it is the one chosen on arrival */
.xr-fig[aria-current] { background: #fbf5f1; }
/* why a figure is not shown (a side wholly of foreign-language books), said once, quiet, under the figures */
.xr-figs-why { margin: -0.6rem 0 1.2rem; font-size: 0.86rem; }
/* four figures two by two where four in a row would crowd their names (a phone stacks them, below) */
@media (max-width: 60rem) {
  .xr-figs { grid-template-columns: repeat(var(--xr-nfig-mid, var(--xr-nfig, 3)), minmax(0, 1fr)); }
}
/* the pager row: the List View's */
.xr-pager { flex-wrap: wrap; }
/* the list: the left side's number and name | every place on the right, one per line */
.xr-list { margin: 0.4rem 0 1rem; }
.xr-lhead, .xr-row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1.6rem; }
.xr-list.is-two .xr-lhead, .xr-list.is-two .xr-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.xr-lhead { padding: 0 0.5rem 0.4rem; border-bottom: 1px solid var(--border); font: 600 0.68rem/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.xr-row { padding: 0.6rem 0.5rem; border-bottom: 1px solid #efe9df; align-items: baseline; font-size: 0.92rem; line-height: 1.5; scroll-margin-top: 4rem; }
.xr-row:target { animation: lv-lit 2.4s ease-out; }
.xr-row a { color: var(--ink); text-decoration: none; }
.xr-row a:hover { color: var(--accent); text-decoration: underline; }
.xr-l { display: grid; grid-template-columns: var(--xr-no, 4.2rem) minmax(0, 1fr); column-gap: 0.9rem; align-items: baseline; min-width: 0; }
.xr-no { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.xr-noe { display: block; }
.xr-no .xr-pfx, .xr-e .xr-pfx { color: var(--muted); font-weight: 400; }
.xr-t { font-family: var(--font-serif); font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.xr-t .ph { font: 400 0.84rem/1.45 var(--font-sans); }
.xr-at { display: block; color: var(--muted); font: 400 0.82rem/1.45 var(--font-sans); }
.xr-r { min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.xr-e { padding: 0.04rem 0; }
.xr-e a { font-weight: 600; }
.xr-e .xr-grey { font-family: var(--font-serif); }
.xr-more { margin-top: 0.15rem; padding: 0.05rem 0.45rem; border: none; border-radius: 999px; background: var(--card-alt); color: var(--accent); font: 600 0.78rem/1.5 var(--font-sans); cursor: pointer; }
.xr-more:hover { text-decoration: underline; }
/* ---- RECORDING-STYLE ICONS (templates/_style_icon.html): at the text's size, in its colour ---- */
.style-icon { display: inline-block; flex: none; width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.xr-e .style-icon, .xr-places .xr-pfx .style-icon { margin-right: 0.35rem; color: var(--ink); }
.xr-sty { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
/* WHERE, WHEN, IN WHAT STYLE (user, 2026-10-13: "Where was this hymn recorded, when was it recorded, and in what style
   was it recorded?"): a row's Recordings cell, a line a recording - its style's icon in a column of its own, then its
   number, its title, its year, its place - the words sung there, where they differ, under it. A line too long for
   its cell WRAPS beside the icon, never cut: a phone shows no hover, so a title or a place cut short could not be
   read (verification, 2026-10-13) */
.xr-rc { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.45rem; align-items: baseline; padding: 0.04rem 0; }
.xr-rc-i .style-icon { color: var(--ink); }
.xr-rc-main { min-width: 0; }
.xr-rc-no { font-weight: 600; white-space: nowrap; }
.xr-rc-main .xr-rc-t { font-family: var(--font-serif); }
.xr-rc-y { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xr-rc-p { color: var(--muted); }
/* a place kept whole where it fits a line - to the next line rather than broken across two - and wrapping
   inside itself only where it is longer than a line (an address) */
.xr-rc-p { display: inline-block; max-width: 100%; }
/* the dot between title, year and place, held to what comes before it (cross_reference.html dot()): a line that
   wraps never starts with one */
.xr-dot { margin: 0 0.1em; color: var(--muted); }
.xr-rc > .xr-grey { grid-column: 2; display: block; font-family: var(--font-serif); }
/* the Hymn card's recording: its title, year and place after its number, wrapping to its column */
.xr-rc-about { display: block; min-width: 0; margin-right: 0.65rem; font-size: 0.88rem; }
.xr-rc-about .xr-rc-t { font-family: var(--font-serif); }
/* the key to the icons, once, quiet, under the list */
.xr-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.2rem 0 1.1rem; padding: 0 0.5rem; color: var(--muted); font-size: 0.82rem; }
/* Admin > Lookup lists > Recording Styles: each style's icon, the set drawn as radio buttons */
.lookup-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.4rem; margin: 0.45rem 0 0; padding: 0; border: 0; }
.lookup-icons legend { float: left; margin: 0 0.4rem 0 0; padding: 0; color: var(--muted); font-size: 0.8rem; }
.lookup-icon { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.45rem; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); font-size: 0.8rem; cursor: pointer; }
.lookup-icon:hover { background: var(--card-alt); }
.lookup-icon input { margin: 0; accent-color: var(--accent); }
.lookup-icon .style-icon { width: 1.3rem; height: 1.3rem; }
.lookup-icon:has(input:checked) { border-color: var(--accent); background: #f6ece8; color: var(--accent); }
.lookup-icon:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
/* ...and the word under it (Recording Styles, under the icons; Recording Sub-labels, a column): a short box, Save */
.lookup-word-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.45rem; margin: 0.45rem 0 0; }
.lookup-word-form label { color: var(--muted); font-size: 0.8rem; }
.lookup-word-form input[name="word"] { width: 7.5rem; }
.lk-word .lookup-word-form { flex-wrap: nowrap; margin: 0; }
/* a finger: every target at least 24px each way (WCAG 2.5.8), its text centred in it */
@media (pointer: coarse) {
  .xr-chip, .xr-tabs [role="tab"] { display: inline-flex; align-items: center; min-height: 2.4rem; }
  .xr-also { align-items: center; }
  .xr-also a { display: inline-flex; align-items: center; min-height: 1.75rem; }
  .xr-clear { display: inline-flex; align-items: center; min-height: 2rem; }
  .xr-no a, .xr-e a, .xr-nums a, .xr-hcard-nos a, .xr-rc-no { display: inline-block; min-height: 1.5rem; line-height: 1.5rem; }
  /* several numbers on one line ("tracks 9, 12"): each a box of its own */
  .xr-no a:not(:only-of-type), .xr-e a:not(:only-of-type), .xr-nums a:not(:only-of-type),
  .xr-hcard-nos a:not(:only-of-type) { min-width: 1.5rem; text-align: center; }
  .xr-more { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0.15rem 0.7rem; }
  .lookup-icon { min-height: 2.2rem; }
  .xr-recbtn { min-height: 2rem; }
  .xr-hitlist a, .xr-hitlist .is-none { min-height: 2.4rem; }
  .xr-chip-x { width: 1.9rem; height: 1.9rem; }
}
/* a phone: the tabs scroll sideways (the open one scrolled into sight), the panel closer to its edges, the figures
   stack, the right side under the left, indented, named once in the head */
@media (max-width: 46rem) {
  .xr-tabs { overflow-x: auto; padding: 0 0.3rem; scrollbar-width: none; }
  .xr-tabs::-webkit-scrollbar { display: none; }
  .xr-tabs [role="tab"] { padding-left: 0.8rem; padding-right: 0.8rem; }
  .xr-panel { padding: 1rem 0.75rem 0.6rem; }
  .xr-side { padding: 0.6rem 0.65rem 0.75rem; }
  .xr-find input[type="search"] { flex-basis: 100%; max-width: none; }
  .xr-hcard { padding: 1.1rem 1rem 0.4rem; }
  .xr-places { display: block; }
  .xr-places li { grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 0.6rem; }
  .xr-places li.xr-recgrp:not([hidden]) { display: block; }
  .xr-chipx .nm { max-width: 13rem; }
  /* the box the card's whole width, Find under it: room for the placeholder's whole question */
  .xr-box input[type="search"] { flex-basis: 100%; }
  .xr-box input[type="search"]::placeholder { font-size: 0.84rem; }
  /* the words there take a line of their own */
  .xr-places .xr-pw.has-grey { grid-column: 1 / -1; }
  /* the page links once, under the list: the top keeps the count and Go to */
  .xr-pager .list-pager-links { display: none; }
  .xr-match-hint { flex-basis: 100%; margin-left: 0; }
  .xr-also { flex-basis: 100%; margin: 0.15rem 0 0; padding-left: 0; }
  .xr-figs { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .xr-fig { flex-direction: row; align-items: baseline; gap: 0.8rem; padding: 0.7rem 0.9rem; }
  .xr-fig-n { font-size: 1.6rem; min-width: 3.2rem; }
  /* as specific as the two-column rule it undoes (.xr-list.is-two ...), or that rule wins and the head stays two
     squeezed columns */
  .xr-list.is-two .xr-row, .xr-list.is-two .xr-lhead { grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
  .xr-list.is-two .xr-lhead { row-gap: 0.15rem; }
  .xr-list.is-two .xr-lhead span + span, .xr-r { padding-left: calc(var(--xr-no, 4.2rem) + 0.9rem); }
  /* a Recordings cell keeps the width its lines need: indented no further than a hymnal's number */
  .xr-list.has-rc .xr-lhead span + span, .xr-list.has-rc .xr-r { padding-left: min(calc(var(--xr-no, 4.2rem) + 0.9rem), 5.1rem); }
  /* what is on the right of a wide number's row (is-wide-no, below) comes under it, indented a little */
  .xr-list.is-wide-no .xr-lhead span + span, .xr-list.is-wide-no .xr-r { padding-left: 1.2rem; }
}
/* A RECORDING'S OR AN ISSUE'S NUMBER OVER ITS TITLE on a phone or a tablet (is-wide-no - "No. 84 track 5", "Easter
   Messenger 2026"): beside its 11.5rem column the title had 87px of a phone's 301px row and ran to five lines, and
   123px of a tablet's (verification, 2026-10-13); over it, the title takes its column's width */
@media (max-width: 60rem) {
  .xr-list.is-wide-no .xr-l { grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
}

/* What an agreement includes: the dialog the works count opens. */
.agr-works-dialog { max-width: 36rem; }
.agr-works-to { margin: 0 0 .75rem; }
.agr-works-head { font-size: 1rem; margin: 0 0 .35rem; }
.agr-works-list { margin: 0 0 1rem; padding-left: 1.1rem; max-height: 60vh; overflow-y: auto; }
.agr-works-list li { padding: .15rem 0; }
.agr-works-actions { align-items: center; }
.agr-works-serial { margin-right: auto; }
/* The name opens the agreement: it reads as a link (user, 2026-10-16: "It should be made more clear that the
   name is clickable"). */
.agr-gen-name { font-weight: 600; color: var(--accent); text-decoration: underline;
  text-decoration-color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agr-gen-name:hover, .agr-gen-name:focus-visible { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.agd-works-n { font-variant-numeric: tabular-nums; }
/* Generate asks first: the selected agreements and the remuneration choice. */
.agr-confirm-dialog { max-width: 40rem; }
.agr-confirm-list { margin: 0 0 1rem; padding-left: 1.1rem; max-height: 40vh; overflow-y: auto; }
.agr-confirm-list li { padding: .2rem 0; }
.agr-confirm-total { list-style: none; margin: .3rem 0 0 -1.1rem; color: var(--muted, #6b6259); }
.agr-confirm-choice { border: 0; padding: 0; margin: 0 0 .5rem; }
.agr-confirm-choice legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.agr-confirm-choice .checkbox-label { align-items: flex-start; margin-bottom: .45rem; }
.agr-void-dialog { max-width: 32rem; }
.agr-void-reason { display: block; margin: .25rem 0 0; }
.agr-void-reason input { display: block; width: 100%; margin-top: .25rem; }
/* AGREEMENTS ACROSS BOOKS (user, 2026-10-16). All's To generate is a Generate form: a section per book or
   recording, its counts and Select this book; a heading per book in a person's card (By Person); the "add to"
   box, shown once its card is ticked; the "also on" line. On the Generated tab, an agreement in more than one
   book says how many of its works are where, and a book's foot names those listed under another. */
.agl-gen-sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin: 1.1rem 0 0.2rem; }
.agl-gen-sec-next { padding-top: 0.9rem; border-top: 1px solid var(--border); }
.agl-gen-sec-name { margin: 0; font-size: 1.05rem; }
.agl-gen-sec-n { font-size: 0.85rem; }
.agl-gen-sec-select { margin-left: auto; }
.agl-gen-away { margin: 0.4rem 0 0; font-size: 0.85rem; }
.agr-batch-also { margin: 0.15rem 0 0 1.6rem; font-size: 0.82rem; }
.agr-work-grid .agr-book-sub th { width: auto; padding: 0.55rem 0 0.15rem; font: 600 0.68rem/1.3 var(--font-sans);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); text-align: left; }
.agr-book-sub-also { font-weight: 400; }
.agr-addto { margin: 0.45rem 0 0 1.6rem; font-size: 0.85rem; align-items: flex-start; }
.agr-addto .agr-serial { margin: 0; }
.agr-batch-off .agr-addto { display: none; }
.agd-order.agl-gen-group { margin-left: 0; }
.agd-books { display: block; font-size: 0.8rem; }
.agd-also-here { margin: 0.6rem 0 0; font-size: 0.85rem; }
.card-head.agr-gen-head { flex-wrap: wrap; row-gap: 0.5rem; }
@media (max-width: 700px) {
  .agl-gen-sec-select { margin-left: 0; }
  .agr-batch-also, .agr-addto { margin-left: 0.3rem; }
}
/* ---- SECURED ELSEWHERE / WORK FOR HIRE (round wfh, 2026-10-17) ----------------------
   A To secure card's two buttons, the one dialog (templates/_rights_held_dialog.html,
   static/js/held-dialog.js), the Work for hire pill, the Rights tab's Secured without
   an agreement, and the Rights status figures (user, 2026-10-17: option B, "figures,
   like the book card's"). */
.agr-batch-head .agr-held { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; }
/* TO SECURE'S TICK BOXES AS OUTLINED CHOICES (the user, 11/1/2026: "yes", the rest of To secure to match the
   permission dialog): the rightsholder, each work (its type its words) and Add to; chosen, outlined on the tint with a
   check; a rightsholder with only some works chosen, a dash. The checkbox is still the form's, hidden inside. */
label.ags-pick { justify-content: flex-start; text-align: left; font-weight: normal; }
label.ags-pick input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
label.ags-pick:has(input:checked) { font-weight: normal; color: var(--ink); }
label.ags-pick::after { content: "\2713"; display: inline-block; width: 0.8em; margin-left: 0.4rem; text-align: center;
  color: var(--accent); font-weight: 600; visibility: hidden; }
label.ags-pick:has(input:checked)::after { visibility: visible; }
label.ags-pick:has(input:indeterminate) { border-color: var(--accent); background: #fbf3ef; }
label.ags-pick:has(input:indeterminate)::after { content: "\2013"; visibility: visible; }
label.agr-work-cell.ags-pick { padding: 0.25rem 0.6rem; font-size: 0.82rem; }
label.agr-addto.ags-pick { display: flex; width: fit-content; max-width: calc(100% - 1.6rem); font-size: 0.85rem; }
.agr-held .agh-short { display: none; }
.rights-pill.rights-wfh { background: #ece4f1; color: #553d6e; }
.wd-permission-manual .rights-pill.rights-wfh { margin-right: 0.15rem; }
.agh-dialog { max-width: 520px; }
.agh-dialog .modal-head { align-items: flex-start; gap: 1rem; }
.agh-dialog .modal-head h3 { line-height: 1.3; }
.agh-points { margin: 0 0 0.9rem; padding-left: 1.1rem; font-size: 0.88rem; }
.agh-points li { margin-bottom: 0.2rem; }
.agh-line { margin: 0 0 0.9rem; font-size: 0.88rem; color: var(--muted); }
.agh-dialog .seg-switch { margin: 0 0 0.9rem; }
.agh-works { border: 0; padding: 0; margin: 0 0 0.85rem; min-width: 0; }
.agh-works legend { padding: 0; margin: 0 0 0.35rem; font-size: 0.88rem; color: var(--muted); }
.agh-works .checkbox-label { margin: 0 0 0.35rem; color: var(--ink); align-items: flex-start; gap: 0.5rem; }
.agh-works .checkbox-label input { margin-top: 0.22rem; }
.agh-works .type-label { margin-left: 0.35rem; }
.agh-meta { display: block; font-size: 0.8rem; color: var(--muted); }
/* THE PARTIES AND WORKS AS OUTLINED CHOICES (the user, 11/1/2026: "the checkbox feels old fashioned"): a box each,
   across the dialog, the name over what it is for; chosen, outlined on its tint with a check. The checkbox is
   still the form's, hidden inside, as an outlined choice hides its radio. A line Work for hire cannot take is dimmed. */
.agh-works label.agh-choice, .agr-regen-works label.agh-choice { display: flex; justify-content: flex-start; align-items: center; width: 100%;
  box-sizing: border-box; margin: 0 0 0.4rem; text-align: left; font-weight: normal; }
.agh-choice input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.agh-choice-text { min-width: 0; }
.agh-choice-name { display: block; }
label.agh-choice:has(input:checked) { font-weight: normal; color: var(--ink); }
label.agh-choice:has(input:checked) .agh-choice-name { font-weight: 600; color: var(--accent); }
label.agh-choice:has(input:checked)::after { content: "\2713"; margin-left: auto; padding-left: 0.6rem;
  color: var(--accent); font-weight: 600; }
label.agh-choice:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.agh-row { display: flex; gap: 0 1rem; flex-wrap: wrap; }
.agh-row > label { flex: 1 1 11rem; }
.agh-hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.agh-delete { margin: 0.1rem 0 0.7rem; font-size: 0.88rem; }
[data-held-dialog] [hidden] { display: none !important; }
.flash-undo { margin: 0.3rem 0 0.8rem; }
.agf-how { border-top: 1px solid var(--border); padding: 0.55rem 0.2rem; }
.agf-how > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.2rem 0.5rem; }
.agf-how > summary::-webkit-details-marker { display: none; }
.agf-how > summary::before { content: "\25B8"; color: var(--muted); font-size: 0.8rem; }
.agf-how[open] > summary::before { content: "\25BE"; }
.agf-how .agf-how-note { flex: 1 1 18rem; min-width: 0; }
.agf-how .agf-works { margin-top: 0.4rem; }
.agf-held th:first-child { width: 38%; }
.agf-wait { display: block; font-size: 0.8rem; color: var(--muted); }
.agf-figs { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; align-items: flex-start; margin: 0.15rem 0 0.2rem; }
.agf-fig { display: flex; flex-direction: column; min-width: 7.5rem; color: inherit; text-decoration: none; }
a.agf-fig:hover .agf-fig-l { text-decoration: underline; }
.agf-fig-n { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.15; color: var(--ink); }
.agf-fig-n small { font-size: 0.95rem; color: var(--muted); }
.agf-fig-l { font-size: 0.82rem; color: var(--muted); }
.agf-fig.is-out .agf-fig-n { color: var(--accent); }
.agf-sep { width: 1px; align-self: stretch; background: var(--border); }
.lv-rights-card .agh-figs { margin: 0.1rem 0 0.55rem; }
@media (max-width: 600px) {
  .agr-batch-head .agr-held { margin-left: 0; flex-basis: 100%; }
  .agr-held .agh-long { display: none; }
  .agr-held .agh-short { display: inline; }
  .agf-figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem 1rem; }
  .agf-sep { display: none; }
  .agf-fig { min-width: 0; }
}
/* THE RIGHTS CARD'S HEAD, LIKE THE BOOK CARD'S (user, 2026-10-24, of its heading and figures: "what can we do to
   make this look more unified and separated from the section below?" - the figures were chosen 2026-10-17, "like
   the book card's"): the title at the left, the three figures at the right on the same row, each its small label
   above its number (the book card's .fx-fig order), the thin divider after the first; a rule under the whole row
   before the lines. A phone puts the figures under the title, three across, their labels wrapping. */
.agf-headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.6rem 1.2rem;
  padding-bottom: 0.75rem; margin-bottom: 0.2rem; border-bottom: 1px solid var(--border); }
.lv-rights-card .agf-headrow > .card-head { display: block; align-self: center; }
.lv-rights-card .agf-headrow > .agh-figs { flex-wrap: nowrap; align-items: flex-end; gap: 0 1.6rem; margin: 0; }
.agf-headrow .agf-fig { align-items: center; text-align: center; }
.agf-headrow .agf-fig-l { font-size: 0.74rem; line-height: 1.25; white-space: nowrap; }
.agf-headrow .agf-fig-n { font-size: 1.55rem; line-height: 1.15; }
@media (max-width: 600px) {
  .lv-rights-card .agf-headrow > .agh-figs { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 0.8rem; align-items: end; }
  .agf-headrow .agf-fig-l { white-space: normal; }
}
/* The reading box's onward link, in its bottom row left of Close (user, 2026-10-16). */
.lect-read-actions { display: flex; align-items: center; gap: 0.8rem; }
.lect-read-link { margin-right: auto; font-size: 0.9rem; }
.lect-read-link:empty { display: none; }
.lect-read-link:empty + .btn { margin-left: auto; }
/* ---- THE REVIEWS PAGE (rv-) - a Manager's or an Admin's Overview board, a tab
   per workstream, one shared row. Borrows xr-tabs, agd-find/agd-tools/agd-order,
   agd-filters/agd-chip/sh-on, agd-bulk and the registry dialog unchanged. ---- */
.rv-head { align-items: center; margin-bottom: 0.7rem; }
.agd-tools.rv-tools { margin: 0 0 0.9rem; }
.rv-tabs { border-bottom: 1px solid var(--border); margin: 0 0 1.1rem; }
.rv-tabs .xr-tabs { margin-bottom: -1px; padding-left: 0.2rem; }
.rv-tabs .xr-tabs [role="tab"] .agd-n { font-weight: 400; margin-left: 0.4rem; }
.rv-tabs .xr-tabs [role="tab"][aria-selected="true"] { background: var(--paper); border-bottom-color: var(--paper); }
/* The amber line, and the stalled list it opens in place. */
.rv-cta { margin: 0 0 1rem; padding: 0.5rem 0.6rem 0.5rem 0.9rem; border-left: 3px solid #c9a227;
  background: #fdf8ea; border-radius: 2px; }
.rv-cta > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; cursor: pointer; list-style: none; }
.rv-cta > summary::-webkit-details-marker { display: none; }
.rv-cta-text { flex: 1 1 26rem; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.rv-cta-text strong { color: #6b4f13; font-weight: 600; }
.rv-cta-btn { flex: 0 0 auto; background: var(--card); }
.rv-cta-btn::after { content: " \25BE"; font-size: 0.8em; }
.rv-cta[open] .rv-cta-btn::after { content: " \25B4"; }
.rv-cta-hide, .rv-cta[open] .rv-cta-show { display: none; }
.rv-cta[open] .rv-cta-hide { display: inline; }
.rv-stall { margin: 0.55rem 0 0.1rem; padding: 0.15rem 0.8rem 0.25rem; background: var(--card);
  border: 1px solid #eadcb4; border-radius: var(--radius); }
.rv-stall-h, .rv-stall-r { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.8fr) 6.5rem;
  column-gap: 1rem; align-items: baseline; padding: 0.42rem 0; }
.rv-stall-h { font: 600 0.68rem/1.2 var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 0.3rem; }
.rv-stall-r { border-top: 1px dotted var(--border); font-size: 0.92rem; }
.rv-stall-r .type-label { margin-left: 0.4rem; }
.rv-stall-r .rv-and { color: var(--muted); margin: 0 0.3rem; }
.rv-stall-where { color: var(--muted); font-size: 0.86rem; }
.rv-stall-where b { color: var(--ink); font-weight: 600; }
.rv-stall-days { color: #8a6414; font-weight: 600; font-variant-numeric: tabular-nums; }
/* The board: a row a workstream, a column a stage; on a phone, on its side. */
.rv-board { display: grid; grid-template-columns: 8rem repeat(5, minmax(0, 1fr)); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; }
.rv-board > * { border-top: 1px solid var(--border); border-left: 1px dotted var(--border); }
.rv-board > :nth-child(-n+6) { border-top: 0; }
.rv-board > :nth-child(6n+1) { border-left: 0; }
.rv-bh { padding: 0.55rem 0.8rem 0.5rem; font: 600 0.68rem/1.25 var(--font-sans); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); background: var(--card-alt); }
.rv-bh small { display: block; margin-top: 0.15rem; font: 400 0.76rem/1.3 var(--font-sans); letter-spacing: 0;
  text-transform: none; color: var(--muted); }
.rv-bh.is-you { background: #f7edcf; color: #6b4f13; box-shadow: inset 0 3px 0 #c9a227; }
.rv-bh.is-you small { color: #8a6f3a; }
.rv-ws { display: flex; align-items: center; padding: 0.7rem 0.8rem; font: 700 1.05rem/1.2 var(--font-serif); }
.rv-ws a { color: var(--accent); }
.rv-cell { display: flex; flex-direction: column; justify-content: center; min-height: 4.1rem; padding: 0.55rem 0.8rem;
  color: var(--ink); }
.rv-cell.is-you { background: #fdf8ea; }
.rv-v { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent); text-decoration: none; align-self: flex-start; }
a.rv-v:hover { text-decoration: underline; }
.rv-cell.is-zero .rv-v { color: #b9b0a4; font-size: 1.1rem; }
.rv-c { font-size: 0.78rem; line-height: 1.4; color: var(--muted); text-decoration: none; }
a.rv-c:hover { text-decoration: underline; }
.rv-c.is-late { color: var(--status-revision_needed-fg); font-weight: 600; }
.rv-c.is-stalled { color: #8a6414; font-weight: 600; }
.rv-cell.is-na { background: #f4efe7; }
/* By book. */
.rv-sechead { display: flex; align-items: baseline; gap: 0.7rem; margin: 0 0 0.45rem; }
.rv-sechead h2 { margin: 0; font-size: 1.05rem; }
.rv-books { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.4rem; }
.rv-books > .rv-bh { border-left: 1px dotted var(--border); }
.rv-books > .rv-bh:first-child { border-left: 0; }
.rv-bk { padding: 0.65rem 0.8rem; border-top: 1px solid var(--border); font: 600 0.98rem/1.3 var(--font-serif); }
.rv-bc { padding: 0.6rem 0.8rem; border-top: 1px solid var(--border); border-left: 1px dotted var(--border);
  font-size: 0.85rem; color: var(--muted); }
.rv-bar { display: flex; width: 100%; max-width: 9rem; height: 6px; border-radius: 3px; overflow: hidden;
  background: #e6ddd0; margin: 0.25rem 0 0.3rem; }
.rv-bar i { display: block; height: 100%; background: var(--success); }
.rv-open { font-weight: 600; color: var(--accent); }
.rv-bc .rv-done { color: var(--success); font-weight: 600; }
.rv-bc.is-na { color: #b9b0a4; }
.rv-draft { padding: 0 0.35rem; border-radius: 4px; background: var(--status-backlog-bg); color: var(--status-backlog-fg);
  font: 600 0.7rem/1.5 var(--font-sans); vertical-align: 0.2em; margin-left: 0.3rem; }
/* A workstream's tab: its chips and the static bulk row. */
.rv-toolrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 0.9rem; }
.rv-toolrow .agd-filters { margin: 0; flex: 1 1 32rem; }
.agd-chip.is-none { color: #a59c90; border-style: dashed; pointer-events: none; box-shadow: none; }
.agd-bulk.rv-bulk { margin-bottom: 0.9rem; }
.agd-bulk.rv-bulk .agd-flabel { margin-left: 0.2rem; }
.agd-bulk.rv-bulk .btn[disabled] { opacity: 0.45; cursor: default; }
/* ONE ROW, shared by every tab; the No. column only in a book's section. */
.rv-list { padding: 0.55rem 1.25rem 0.45rem; margin-bottom: 1rem; }
.rv-list > .card-head { flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin-bottom: 0.3rem; }
.rv-list > .card-head > h2 { font-size: 1.08rem; }
.rv-prog { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: var(--muted); font-family: var(--font-sans); margin-left: auto; }
.rv-prog .rv-bar { width: 6.5rem; margin: 0; }
.rv-prog strong { color: var(--ink); font-weight: 600; }
.rv-cols, .rv-row { display: grid; grid-template-columns: 1.25rem minmax(0, 2.6fr) 10.5rem minmax(0, 1.55fr);
  column-gap: 1rem; align-items: start; margin: 0 -0.75rem; padding: 0.5rem 0.75rem; }
.rv-list.has-no .rv-cols, .rv-list.has-no .rv-row { grid-template-columns: 1.25rem 2.4rem minmax(0, 2.6fr) 10.5rem minmax(0, 1.55fr); }
.rv-pairs .rv-cols, .rv-pairs .rv-row { grid-template-columns: 1.25rem minmax(0, 3fr) minmax(0, 1.5fr); }
.rv-pairs.has-no .rv-cols, .rv-pairs.has-no .rv-row { grid-template-columns: 1.25rem 2.4rem minmax(0, 3fr) minmax(0, 1.5fr); }
.rv-cols { padding-top: 0.2rem; padding-bottom: 0.3rem; font: 600 0.68rem/1.2 var(--font-sans); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); align-items: center; }
.rv-cols-all { display: none; }
.rv-row { border-top: 1px dotted var(--border); }
/* THE OVERVIEW'S RECORDINGS GRID (piece 3a, APPROVED 11/2/2026): the hymn grid's own style, a label column and the
   three rounds; on a phone it stays as it is (four short columns). */
.rv-board.rv-rec-board { grid-template-columns: 8rem repeat(3, minmax(0, 1fr)); grid-template-rows: none;
  grid-auto-flow: row; }
.rv-rec-board > :nth-child(n) { border-top: 1px solid var(--border); border-left: 1px dotted var(--border); }
.rv-rec-board > :nth-child(-n+4) { border-top: 0; }
.rv-rec-board > :nth-child(4n+1) { border-left: 0; }
.rv-rec-board .rv-c.is-overdue { color: var(--error); font-weight: 600; }
@media (max-width: 640px) {
  .rv-board.rv-rec-board { grid-template-columns: 5.2rem repeat(3, minmax(0, 1fr)); grid-template-rows: none;
    grid-auto-flow: row; }
}
/* THE RECORDINGS TAB (piece 3a; rec_draw/F_reviews): an album a row - the album (its title opening its review page,
   No. . what to review . comments under it), its round (a pill, the due date under it), what it waits on. */
.rv-albums { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.rv-alb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 12rem) minmax(0, 16rem); gap: 0.4rem 1rem;
  align-items: start; padding: 0.7rem 0.2rem; border-top: 1px dotted var(--border); }
.rv-alb-head { border-top: 0; padding: 0.1rem 0.2rem 0.35rem; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rv-alb-head + .rv-alb { border-top: 1px solid var(--border); }
.rv-alb-what, .rv-alb-round, .rv-alb-wait { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.rv-alb-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; color: var(--accent);
  text-decoration: none; }
.rv-alb-title:hover { text-decoration: underline; }
.rv-alb-sub { font-size: 0.8rem; color: var(--muted); }
.rv-alb-sub a { color: inherit; }
.rv-alb-pill { align-self: flex-start; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--status-draft-bg);
  color: var(--status-draft-fg); }
.rv-alb-due { font-size: 0.8rem; }
.rv-alb-late { color: var(--error); font-weight: 700; }
.rv-alb-wait > span:first-child { font-size: 0.88rem; }
@media (max-width: 640px) {
  .rv-alb { grid-template-columns: minmax(0, 1fr); }
  .rv-alb-head { display: none; }
  .rv-alb-round { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
}
.rv-row input.rv-pick, .rv-cols > input { margin: 0; }
.rv-row.is-picked { background: #fbf3ee; }
.rv-no { font-family: var(--font-serif); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums;
  padding-top: 0.05rem; }
.rv-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--accent); }
.rv-title + .type-label { margin-left: 0.4rem; vertical-align: 0.1em; }
.rv-with { font-family: var(--font-sans); font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.rv-with b { font-weight: 600; color: var(--ink); }
.rv-sub { display: block; margin-top: 0.12rem; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.rv-sub .rv-dot { margin: 0 0.3rem; }
.rv-sub a { color: var(--muted); text-decoration: underline; text-decoration-color: #cfc5b8; text-underline-offset: 2px; }
.rv-stage .status-pill { font-size: 0.66rem; }
.rv-when { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.rv-when.is-late { color: var(--status-revision_needed-fg); font-weight: 600; }
.rv-turn { font-size: 0.9rem; line-height: 1.35; padding-top: 0.05rem; }
.rv-turn .rv-then { display: block; font-size: 0.8rem; color: var(--muted); }
.rv-turn .rv-then a { color: var(--muted); text-decoration: underline; }
.rv-turn .rv-cnt { color: var(--muted); font-size: 0.85rem; }
.rv-turn .rv-flag { display: block; margin-top: 0.1rem; font-size: 0.8rem; color: #8a6414; font-weight: 600; }
.rv-no-ph { display: none; font-family: var(--font-sans); font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-right: 0.35rem; }
@media (max-width: 700px) {
  .rv-head h1 { font-size: 1.7rem; }
  .rv-tabs .xr-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 0.15rem; padding-left: 0; }
  .rv-tabs .xr-tabs [role="tab"] { padding: 0.45rem 0.55rem 0.5rem; font-size: 0.86rem; white-space: nowrap; }
  .rv-tabs .xr-tabs [role="tab"] .agd-n { margin-left: 0.25rem; }
  .rv-toolrow .agd-chip.is-none { display: none; }
  .agd-tools.rv-tools .agd-order { margin-left: 0; }
  .rv-stall-h { display: none; }
  .rv-stall-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.1rem; }
  .rv-stall-r > :first-child { grid-column: 1 / -1; }
  /* The board on its side: the stages down, the three workstreams across. */
  .rv-board { grid-template-columns: 5.7rem repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto);
    grid-auto-flow: column; }
  .rv-board > * { border-top: 1px solid var(--border); border-left: 1px dotted var(--border); }
  .rv-board > :nth-child(6n+1) { border-top: 0; }
  .rv-board > :nth-child(-n+6) { border-left: 0; }
  .rv-board > :first-child { border: 0; }
  .rv-bh { padding: 0.5rem 0.55rem; font-size: 0.64rem; }
  .rv-bh small { font-size: 0.7rem; }
  .rv-bh.is-you { box-shadow: inset 3px 0 0 #c9a227; }
  .rv-ws { justify-content: flex-start; padding: 0.5rem 0.45rem; font-size: 0.84rem; background: var(--card-alt); }
  .rv-cell { min-height: 0; justify-content: flex-start; padding: 0.5rem 0.45rem; }
  .rv-v { font-size: 1.2rem; }
  .rv-c { font-size: 0.72rem; }
  .rv-books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rv-books > .rv-bh { display: none; }
  .rv-bk { grid-column: 1 / -1; border-top: 1px solid var(--border-strong); background: var(--card-alt); padding: 0.5rem 0.8rem; }
  .rv-books > .rv-bk:first-of-type { border-top: 0; }
  .rv-bc { border-top: 0; padding: 0.45rem 0.7rem 0.55rem; }
  .rv-bc:nth-child(4n+2) { border-left: 0; }
  .rv-bc::before { content: attr(data-k); display: block; font: 600 0.64rem/1.3 var(--font-sans); letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted); }
  .agd-bulk.rv-bulk .agd-bulk-more { margin-left: auto; }
  .rv-list { padding: 0.5rem 0.9rem 0.35rem; }
  .rv-prog { margin-left: 0; }
  .rv-cols, .rv-list.has-no .rv-cols, .rv-pairs .rv-cols, .rv-pairs.has-no .rv-cols {
    grid-template-columns: 1.1rem minmax(0, 1fr); column-gap: 0.65rem; margin: 0 -0.5rem; padding: 0.3rem 0.5rem; }
  .rv-cols > span { display: none; }
  .rv-cols > .rv-cols-all { display: inline; font: 400 0.85rem var(--font-sans); text-transform: none; letter-spacing: 0; }
  /* A row: the tick in the margin, the hymn on its own line, then its stage
     and whose turn it is. */
  .rv-row, .rv-list.has-no .rv-row, .rv-pairs .rv-row, .rv-pairs.has-no .rv-row { display: flex; flex-wrap: wrap;
    align-items: baseline; column-gap: 0.7rem; row-gap: 0.2rem; position: relative; margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 2.25rem; }
  .rv-row > .rv-pick-hit { position: absolute; left: 0; top: 0; bottom: 0; width: 2.25rem; margin: 0; padding: 0 0 0 0.5rem; }
  .rv-row > .rv-no { display: none; }
  .rv-row > div:first-of-type { flex: 1 1 100%; }
  .rv-row > .rv-stage { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.45rem; }
  .rv-row > .rv-stage .rv-when { display: inline; margin: 0; }
  .rv-row > .rv-turn { padding: 0; }
  .rv-title .rv-no-ph { display: inline; }
}

/* ===================== THE LIBRARY (Dashboards > Analytics) =====================
   Every card asks a question, answers it in short bullets, then draws the
   chart. Built on the app's own tokens; the languages wear the one analytics
   palette (--chart-*, at the end of this file), the kinds of work their own
   --type-* colors, and single-series bars the accent. */
.lb-head { align-items: flex-start; }
.lb-lede { max-width: 80ch; color: var(--ink); font-size: 0.98rem; margin: 0.35rem 0 0; padding-left: 1.2rem; line-height: 1.45; }
.lb-lede li + li { margin-top: 0.15rem; }
.lb-lede li::marker { color: var(--muted); }
.lb-asof { font-size: 0.8rem; margin: 0.45rem 0 0; }
.lb-asof strong { color: var(--accent); }
.lb-filters { align-items: center; }
.lb-filter-note { font-size: 0.8rem; max-width: 60ch; }
.lb-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lb-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 1.25rem; align-items: stretch; }
.lb-grid > .card { margin-bottom: 0; }
.lb-grid > .lb-wide { grid-column: 1 / -1; }
.lb-card .card-head { flex-wrap: wrap; row-gap: 0.15rem; }
.lb-card .card-head h2 { font-size: 1.12rem; }
.lb-card .card-head .card-summary { margin-left: auto; }
.lb-answer { margin: -0.1rem 0 0.85rem; padding-left: 1.15rem; max-width: 84ch; font-size: 0.92rem; line-height: 1.42; }
.lb-answer li + li { margin-top: 0.12rem; }
.lb-answer li::marker { color: var(--muted); }
.lb-lead { margin: -0.15rem 0 0.4rem; font-family: var(--font-serif); font-size: 1.02rem; }
.lb-lead a.link-btn { text-underline-offset: 3px; }
.lb-foot { font-size: 0.78rem; margin: 0.7rem 0 0; max-width: 92ch; line-height: 1.4; }
.lb-note { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; line-height: 1.4; }
.lb-h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin: 1rem 0 0.45rem; font-family: var(--font-sans); }
.lb-h3 .muted { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 0.3rem; }
.lb-dark { color: #fff; }
/* the languages, in the one palette */
.lb-b-fi { background: var(--chart-fi); } .lb-b-de { background: var(--chart-de); } .lb-b-sv { background: var(--chart-sv); }
.lb-b-en { background: var(--chart-en); } .lb-b-other { background: var(--chart-other); }
.lb-f-fi { fill: var(--chart-fi); } .lb-f-de { fill: var(--chart-de); } .lb-f-sv { fill: var(--chart-sv); }
.lb-f-en { fill: var(--chart-en); } .lb-f-other { fill: var(--chart-other); }
.lb-bl-fi { border-left-color: var(--chart-fi) !important; } .lb-bl-de { border-left-color: var(--chart-de) !important; }
.lb-bl-sv { border-left-color: var(--chart-sv) !important; } .lb-bl-en { border-left-color: var(--chart-en) !important; }
.lb-bl-other { border-left-color: var(--chart-other) !important; } .lb-bl-lyr { border-left-color: var(--type-lyrics-fg) !important; }
/* the kinds of work, in their own colors */
.lb-k-ol { fill: var(--type-original-language-fg); } .lb-k-mel { fill: var(--type-melody-fg); }
.lb-k-lyr { fill: var(--type-lyrics-fg); } .lb-k-arr { fill: var(--type-arrangement-fg); }
.lb-svg text.lb-t-ol { fill: var(--type-original-language-fg); } .lb-svg text.lb-t-mel { fill: var(--type-melody-fg); }
.lb-svg text.lb-t-lyr { fill: var(--type-lyrics-fg); } .lb-svg text.lb-t-arr { fill: var(--type-arrangement-fg); }
/* SVG charts */
.lb-svg { display: block; overflow: visible; font-family: var(--font-sans); }
.lb-svg text { fill: var(--ink); }
.lb-viz-n { display: none; }
.lb-lab-s { font-size: 12.5px; }
.lb-lane-name { font-size: 12px; font-weight: 600; }
.lb-halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.lb-svg .lb-ax-l, .lb-svg .lb-tick, .lb-svg .lb-guide-l { fill: var(--muted); }
.lb-ax-l { font-size: 10.5px; }
.lb-tick { font-size: 10.5px; font-variant-numeric: tabular-nums; }
.lb-guide-l { font-size: 10px; }
.lb-iqr { fill: var(--card-alt); }
.lb-median { stroke: var(--ink); stroke-width: 1.5; }
.lb-base { stroke: var(--border-strong); stroke-width: 1; }
.lb-gridline { stroke: var(--border); stroke-width: 1; }
.lb-guide { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.lb-guide-book { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.55; }
.lb-dots { stroke: #fff; stroke-width: 0.8; opacity: 0.9; }
.lb-colbar { fill: var(--accent-light); }
.lb-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.3rem 1.25rem; margin: 0.5rem 0 0.2rem; padding: 0; font-size: 0.78rem; color: var(--muted); }
.lb-legend li { display: flex; align-items: flex-start; gap: 0.4rem; line-height: 1.35; white-space: nowrap; flex: 0 1 calc((var(--need, 0px) - 100%) * 999); }
.lb-legend li > .lb-sw { margin-top: 0.17em; }
.lb-legend.lb-legend-s { column-gap: 0.6rem; }
.lb-combos .bar-row { grid-template-columns: minmax(8rem, 15.5rem) minmax(0, 1fr) auto; }
.lb-combos .bar-label { overflow-wrap: normal; }
.lb-combos .bar-fill { background: var(--accent); }
.lb-combos .bar-value { color: var(--ink); }
.lb-venn { max-width: 560px; margin: 0.4rem 0 0.2rem; }
.lb-venn .lb-vn-box { fill: none; stroke: var(--border-strong); stroke-width: 1.2; }
.lb-venn .lb-vn-c { fill: var(--accent); fill-opacity: 0.13; stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 1.4; }
.lb-venn text.lb-vn-title { font-weight: 600; fill: var(--ink); }
.lb-venn text.lb-vn-name { font-weight: 600; fill: var(--accent); }
.lb-venn text.lb-vn-n { font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.lb-venn text.lb-vn-note { fill: var(--muted); }
.lb-sw { width: 0.7rem; height: 0.7rem; border-radius: 3px; display: inline-block; flex: none; }
.lb-stack { display: flex; gap: 2px; border-radius: 4px; overflow: hidden; min-width: 0; width: 100%; }
.lb-seg { display: block; min-width: 3px; }
.lb-seg b { display: block; font-size: 0.66rem; font-weight: 600; text-align: center; color: #fff; overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-b-de b, .lb-b-other b { color: #2a241c; }
.lb-langkey { margin: -0.35rem 0 0.75rem; font-size: 0.84rem; color: var(--ink); }
.lb-keys { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.1rem 0.75rem; font-size: 0.74rem; color: var(--muted); }
.lb-keys span { display: inline-flex; align-items: center; gap: 0.3rem; }
.lb-keys i { width: 0.6rem; height: 0.6rem; border-radius: 2px; display: inline-block; }
.lb-keys-b { margin-top: 0.35rem; }
.lb-split { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 372fr); gap: 1.8rem; align-items: start; }
.lb-split .lb-h3 { margin-top: 0.1rem; }
.lb-split.lb-split-1 { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.lb-svg .lb-lab-m { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.lb-svg .lb-pill { fill: var(--card); stroke: #cdbcaa; stroke-width: 1; }
.lb-svg .lb-pill-t { font-size: 11.5px; font-weight: 600; fill: var(--ink); }
.lb-svg .lb-leader { stroke: #b9a897; stroke-width: 1; }
.lb-svg .lb-band-l { font-size: 11px; fill: var(--muted); }
.lb-svg .lb-bookl { font-size: 10.5px; fill: var(--muted); }
.lb-viz-n .lb-svg .lb-bookl { font-size: 11.5px; }
.lb-svg .lb-neg { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 1.5; }
.lb-svg .lb-tick-l { font-size: 13px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.lb-svg .lb-ax-m { font-size: 13px; fill: var(--ink); }
.lb-svg .lb-guide-m { font-size: 12.5px; font-weight: 600; fill: var(--muted); }
/* one hymn */
.lb-chain { display: flex; align-items: stretch; gap: 0.3rem; margin: 0.2rem 0 0.8rem; }
.lb-node { flex: 1 1 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.6rem; background: var(--paper); display: flex; flex-direction: column; gap: 0.15rem; }
.lb-node-en { background: var(--type-lyrics-bg); border-color: #b8cde6; }
.lb-node-lang { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-left: 4px solid var(--border-strong); padding-left: 0.35rem; }
.lb-node-title { font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.25; }
.lb-node-who { font-size: 0.78rem; color: var(--muted); }
.lb-arrow { color: var(--border-strong); align-self: center; font-size: 1.2rem; padding: 0 0.1rem; }
.lb-chain-music { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; font-size: 0.88rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.lb-chain-music .tag { margin: 0; }
.lb-chain-print { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.lb-across { font-size: 0.86rem; margin: 0.7rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--border); max-width: 110ch; }
/* the books */
.lb-ledger { display: grid; gap: 0.55rem; }
.lb-led { display: grid; grid-template-columns: 2.6rem 9.6rem minmax(0, 1fr); grid-template-areas: "y n bar" ". f f"; column-gap: 0.6rem; row-gap: 0.1rem; align-items: center; }
.lb-led-y { grid-area: y; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-led-n { grid-area: n; font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.lb-led-n .status-pill { font-size: 0.64rem; vertical-align: 1px; }
.lb-led-bar { grid-area: bar; min-width: 0; }
.lb-led-track { display: flex; gap: 2px; height: 0.85rem; min-width: 4px; }
.lb-led-track i { display: block; height: 100%; border-radius: 2px; }
.lb-led-kept { background: #8c7e6e; }
.lb-led-new { background: var(--accent); }
.lb-led-new2 { background: var(--accent-light); }
.lb-led-plain { background: var(--border-strong); }
.lb-led-partial, .lb-hatch { border: 1px solid var(--border-strong); border-radius: 3px; background: repeating-linear-gradient(45deg, #f0ece4 0 3px, #d9cfc0 3px 5px); }
.lb-led-partial { display: block; }
.lb-led-partial i { background: #8c7e6e; }
.lb-led-f { grid-area: f; font-size: 0.78rem; color: var(--muted); }
.lb-led.is-chosen .lb-led-n, .lb-cov.is-chosen .lb-cov-n, .lb-st-row.is-chosen .lb-st-lab, .lb-cm th.is-chosen { color: var(--accent); }
.lb-led.is-chosen .lb-led-n::before, .lb-cov.is-chosen .lb-cov-n::before, .lb-st-row.is-chosen .lb-st-lab::before { content: "\25B8\00a0"; }
.lb-upset { display: grid; gap: 0.35rem; }
.lb-up-head, .lb-up-r { display: grid; grid-template-columns: repeat(var(--sets, 3), 5rem) minmax(0, 1fr) 2.6rem; align-items: center; }
.lb-up-head { align-items: end; margin-bottom: 0.2rem; }
.lb-up-h { font-size: 0.72rem; line-height: 1.15; color: var(--muted); text-align: center; padding: 0 0.2rem; }
.lb-up-h b { display: block; color: var(--ink); font-size: 0.82rem; margin-top: 0.1rem; }
.lb-up-d { justify-self: center; width: 0.72rem; height: 0.72rem; border-radius: 50%; background: var(--card-alt); border: 1px solid var(--border); }
.lb-up-d.on { background: var(--ink); border-color: var(--ink); }
.lb-up-bar { height: 0.82rem; padding-left: 0.4rem; }
.lb-up-bar i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.lb-up-r b { font-size: 0.82rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
/* what is recorded */
.lb-rec-0 { fill: #efeae2; background: #efeae2; } .lb-rec-1 { fill: #cf8a68; background: #cf8a68; }
.lb-rec-2 { fill: #a5543a; background: #a5543a; } .lb-rec-3 { fill: #6b2e22; background: #6b2e22; }
.lb-cov-boxes { grid-area: s; display: flex; flex-wrap: wrap; gap: 3px; }
.lb-cov-boxes span { min-width: 2.2rem; padding: 0.12rem 0.2rem; border-radius: 3px; text-align: center; font-size: 0.7rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.lb-cov-boxes span.lb-rec-0 { color: var(--muted); font-weight: 400; }
.lb-cov.lb-cov-same { grid-template-columns: 7rem minmax(0, 1fr); grid-template-areas: "n say"; }
.lb-cov-say { grid-area: say; font-size: 0.88rem; }
.lb-rec-bar { background: #bf7858; }
.lb-rec-cov .lb-h3:first-child, .lb-rec2 .lb-h3:first-child { margin-top: 0.2rem; }
.lb-rec2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0.4rem 2.2rem; align-items: start; margin-top: 0.5rem; }
.lb-rec2 > div > div + div { margin-top: 0.9rem; }
.lb-q { margin: -0.15rem 0 0.55rem; color: var(--ink); font-size: 0.84rem; }
.lb-cov { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 7.4rem; grid-template-areas: "n s f" ". ax ."; column-gap: 0.7rem; row-gap: 0.1rem; align-items: center; margin-bottom: 0.45rem; }
.lb-cov-n { grid-area: n; font-size: 0.86rem; font-weight: 600; }
.lb-cov-s { grid-area: s; display: block; width: 100%; height: 1.05rem; border-radius: 2px; }
.lb-cov-f { grid-area: f; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.lb-cov-f b { color: var(--ink); }
.lb-cov-ax { grid-area: ax; display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-cov-key li:first-child { margin-right: -0.4rem; }
.lb-mr { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.32rem; font-size: 0.84rem; }
.lb-mr li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; align-items: baseline; row-gap: 0.12rem; }
.lb-mr-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-mr-l b { font-weight: 600; margin-right: 0.2rem; }
.lb-mr-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-mr-b { grid-column: 1 / -1; display: block; height: 3px; background: var(--card-alt); border-radius: 2px; }
.lb-mr-b i { display: block; height: 100%; background: #bf7858; border-radius: 2px; }
.lb-cols { display: grid; align-items: end; gap: 2px; height: 4.4rem; border-bottom: 1px solid var(--border-strong); padding-top: 1rem; }
.lb-ycol { position: relative; height: 100%; display: flex; align-items: flex-end; }
.lb-ycol i { display: block; width: 100%; background: #bf7858; border-radius: 2px 2px 0 0; }
.lb-ycol b { position: absolute; left: 50%; transform: translate(-50%, -0.1rem); font-size: 0.68rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.lb-cols-ax { display: grid; gap: 2px; margin-top: 0.2rem; font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-cols-ax span { display: flex; justify-content: center; white-space: nowrap; overflow: visible; min-width: 0; }
.lb-styles { max-width: 26rem; }
.lb-styles .bar-value { color: var(--ink); }
/* where the words came from */
.lb-fl { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.2rem 0.7rem; align-items: center; margin-bottom: 0.55rem; }
.lb-fl-lab { font-size: 0.82rem; font-weight: 600; }
.lb-routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.42rem; }
.lb-routes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.6rem; align-items: center; }
.lb-route { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.2rem; font-size: 0.84rem; }
.lb-route .lb-arrow { font-size: 0.95rem; }
.lb-chip { display: inline-flex; align-items: center; gap: 0.3rem; }
.lb-chip-end { color: var(--muted); }
.lb-route-n { font-weight: 600; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-route-bar { grid-column: 1 / -1; height: 4px; background: var(--card-alt); border-radius: 99px; overflow: hidden; }
.lb-route-bar span { display: block; height: 100%; background: var(--accent-light); border-radius: 99px; }
.lb-st-head, .lb-st-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 3.2rem; gap: 0.3rem 0.8rem; align-items: center; }
.lb-st-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.3rem; line-height: 1.3; }
.lb-st-head i { display: block; text-transform: none; letter-spacing: 0; font-style: normal; }
.lb-st-head span:last-child { text-align: right; }
.lb-st-row { padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.85rem; }
.lb-st-lab small { display: block; color: var(--muted); font-size: 0.74rem; }
.lb-st-bars { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lb-mini { height: 5px; background: var(--card-alt); border-radius: 99px; overflow: hidden; display: block; }
.lb-mini span { display: block; height: 100%; background: var(--accent); }
.lb-st-num { text-align: right; display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lb-st-num strong { font-size: 1rem; }
.lb-st-num span { font-size: 0.76rem; color: var(--muted); }
/* the melodies */
.lb-mels { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.lb-mels th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 0 0.4rem 0.3rem 0; }
.lb-mels td { padding: 0.34rem 0.4rem 0.34rem 0; border-top: 1px solid var(--border); vertical-align: middle; }
.lb-mels .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.lb-mel b { font-weight: 600; letter-spacing: 0.01em; }
.lb-mel small { display: block; color: var(--muted); font-size: 0.74rem; }
.lb-pips { white-space: nowrap; }
.lb-pip { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 2px; vertical-align: middle; }
.lb-pip-n { font-size: 0.78rem; color: var(--muted); margin-left: 0.3rem; vertical-align: middle; }
.lb-bks { white-space: normal; line-height: 1.7; }
.lb-bk { display: inline-block; font-size: 0.66rem; padding: 0.05rem 0.25rem; margin-right: 2px; border-radius: 4px; color: var(--placeholder); border: 1px solid var(--border); }
.lb-bk.on { color: var(--accent); background: #efe6da; border-color: #efe6da; font-weight: 600; }
.lb-hg, .lb-sg { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 0.8rem; font-variant-numeric: tabular-nums; table-layout: fixed; }
.lb-hg th, .lb-sg th { font-weight: 600; font-size: 0.72rem; color: var(--muted); text-align: center; padding: 0.2rem; vertical-align: bottom; line-height: 1.2; }
.lb-hg tbody th, .lb-sg tbody th { text-align: left; color: var(--ink); font-size: 0.8rem; font-weight: 500; }
.lb-hg th small, .lb-sg th small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 400; }
.lb-hg td, .lb-sg td { text-align: center; padding: 0.42rem 0.1rem; border-radius: 4px; }
.lb-hg-c0 { width: 8.5rem; }
.lb-hg th.lb-hg-c0 { text-align: left; padding-left: 0.2rem; }
.lb-hg th.lb-hg-grp { color: var(--ink); padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.lb-legend.lb-legend-r { display: flex; justify-content: flex-end; }
.lb-n { display: none; }
.lb-sg-c0 { width: 10.2rem; }
.lb-sg td { padding: 0.3rem 0.05rem; font-size: 0.76rem; }
.lb-sg thead th { font-size: 0.66rem; padding: 0.2rem 0; white-space: nowrap; letter-spacing: -0.01em; }
.lb-sg tbody th small { display: inline; margin-left: 0.3rem; }
.lb-sg tbody th { line-height: 1.15; }
.lb-sg-all td { color: var(--muted); font-weight: 600; background: transparent; border-bottom: 1px solid var(--border-strong); border-radius: 0; }
.lb-more { background: color-mix(in srgb, var(--accent) 60%, #f3f0ea); }
.lb-less { background: #fdfcfa; box-shadow: inset 0 0 0 1px #e3dacd; }
.lb-same { background: #f1ece4; }
.lb-sg td.lb-sg-less { color: var(--muted); box-shadow: inset 0 0 0 1px #ece5da; }
.lb-km { display: grid; grid-template-columns: 5.4rem repeat(var(--cols), minmax(0, 1fr)); align-items: center; row-gap: 0.05rem; }
.lb-km-sig { text-align: center; font-size: 0.86rem; color: var(--muted); letter-spacing: -0.05em; padding-bottom: 0.25rem; border-bottom: 1px solid var(--border); }
.lb-km-m { font-size: 0.82rem; font-weight: 600; }
.lb-km-c { display: flex; flex-direction: column; align-items: center; padding: 0.15rem 0 0.25rem; min-width: 0; }
.lb-km-b { height: 1.85rem; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-km-b i { display: block; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: var(--type-melody-fg); }
.lb-km-c em { font-style: normal; font-size: 0.72rem; font-weight: 700; line-height: 1.15; }
.lb-km-c small { font-size: 0.66rem; line-height: 1.1; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-km-axis { display: flex; justify-content: space-between; font-size: 0.72rem; margin: 0.2rem 0 0 5.4rem; }
.lb-km-sigh { font-size: 0.68rem; color: var(--muted); line-height: 1.15; align-self: end; padding-bottom: 0.15rem; }
.lb-k2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem 4.5rem; align-items: start; }
.lb-k2-bars .bar-row { grid-template-columns: minmax(7rem, 18.5rem) minmax(0, 1fr) 1.6rem; column-gap: 0.4rem; }
.lb-k2-bars .bar-value { min-width: 0; }
.lb-k2-bars .bar-label { font-size: 0.88rem; overflow-wrap: normal; }
.lb-k2-bars .bar-value { color: var(--ink); font-size: 0.86rem; }
.lb-k2-org .bar-row { grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 2.6rem; }
.lb-k2-maj { background: #d29a7c; } .lb-k2-min { background: #7a3b2e; } .lb-k2-mode { background: #d8cfc3; }
.lb-legend.lb-k2-key { margin: 0 0 0.55rem; }
.lb-mn { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.lb-mn-row { display: grid; gap: 0.15rem; }
.lb-mn-lab { font-size: 0.86rem; color: var(--ink); }
.lb-mn-bar { position: relative; display: flex; height: 1.2rem; border-radius: 3px; overflow: hidden; background: #efe6dc; }
.lb-mn-min { display: flex; align-items: center; background: #7a3b2e; min-width: 2px; }
.lb-mn-min b { color: #fff; font-size: 0.74rem; font-weight: 600; padding-left: 0.45rem; white-space: nowrap; }
.lb-mn-out { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; color: var(--ink); font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.lb-sw.lb-mn-rest { background: #efe6dc; box-shadow: inset 0 0 0 1px #e0d4c6; }
.lb-k2-chg { font-size: 0.8rem; color: var(--muted); margin-top: 0.7rem; }
.lb-bf-wrap { max-width: 52rem; }
@media (max-width: 900px) { .lb-k2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .lb-k2-bars .bar-row, .lb-k2-org .bar-row { grid-template-columns: minmax(6rem, 10.5rem) minmax(0, 1fr) 2.6rem; } }
.lb-km-t { grid-template-columns: 2.2rem repeat(var(--cols), minmax(0, 1fr)); }
.lb-km-ms { font-weight: 400; color: var(--muted); letter-spacing: -0.05em; }
.lb-km-mode { letter-spacing: 0; }
.lb-bf-head, .lb-bf-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.6rem minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.lb-bf-head { margin-bottom: 0.3rem; font-size: 0.78rem; }
.lb-bf-head span:first-child { text-align: right; }
.lb-bf-head .tag { margin: 0; }
.lb-bf-row { padding: 0.12rem 0; font-size: 0.82rem; }
.lb-bf-l, .lb-bf-r { display: flex; align-items: center; gap: 0.35rem; }
.lb-bf-l { justify-content: flex-end; }
.lb-bf-bar { height: 0.8rem; display: block; }
.lb-bf-text { background: var(--type-lyrics-fg); border-radius: 4px 0 0 4px; }
.lb-bf-mel { background: var(--type-melody-fg); border-radius: 0 4px 4px 0; }
.lb-bf-m { text-align: center; font-variant-numeric: tabular-nums; }
.lb-bf-v { font-size: 0.76rem; color: var(--muted); font-weight: 600; min-width: 1.6rem; font-variant-numeric: tabular-nums; }
.lb-bf-l .lb-bf-v { text-align: right; }
/* the people */
.lb-hands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.lb-hand-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.lb-hand-h .tag { margin: 0; }
.lb-hand-h small { color: var(--muted); font-size: 0.74rem; }
.lb-hand ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.lb-hand li { display: grid; grid-template-columns: minmax(0, 9.6rem) minmax(0, 1fr) 2rem; gap: 0.4rem; align-items: center; font-size: 0.82rem; }
.lb-hand-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-hand-bar { height: 6px; background: var(--card-alt); border-radius: 99px; overflow: hidden; }
.lb-hand-bar span { display: block; height: 100%; background: var(--accent-light); }
.lb-hand-v { text-align: right; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-hand-f { font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; }
.lb-thirds { display: flex; gap: 2px; height: 22px; border-radius: 4px; overflow: hidden; font-size: 0.74rem; font-weight: 600; color: #fff; }
.lb-thirds span { display: flex; align-items: center; justify-content: center; }
.lb-third-1 { background: var(--accent); } .lb-third-2 { background: #a5624b; } .lb-third-3 { background: #e2c6b8; color: var(--ink); }
.lb-thirds3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.35rem; align-items: start; }
.lb-th { border-radius: 6px; padding: 0.75rem 0.9rem 0.8rem; }
.lb-th-1 { background: #f1ddd3; } .lb-th-2 { background: #f7ece6; } .lb-th-3 { background: #fbf6f2; }
.lb-th-n { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.1; }
.lb-th-n b { font-size: 2rem; font-weight: 700; color: var(--accent); margin-right: 0.15rem; }
.lb-th-c { font-size: 0.74rem; color: var(--muted); margin: 0.1rem 0 0.5rem; }
.lb-th-names { list-style: none; margin: 0; padding: 0; font-size: 0.78rem; }
.lb-th-names li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.1rem 0; border-bottom: 1px solid rgba(120, 80, 60, 0.12); }
.lb-th-names b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-th-more { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 640px) { .lb-thirds3 { grid-template-columns: minmax(0, 1fr); } }
/* scripture and the church year */
.lb-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.85rem, 1fr)); gap: 3px; }
.lb-bkc, .lb-bk0 { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 2.35rem; border-radius: 4px; font-size: 0.68rem; line-height: 1.1; text-align: center; padding: 0 0.1rem; }
.lb-bkc em, .lb-bk0 em { font-style: normal; max-width: 100%; }
.lb-bkc b { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.lb-bk0 { border: 1px dashed var(--border-strong); color: var(--muted); }
.lb-days { display: grid; gap: 4px; }
.lb-dr { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 0.6rem; align-items: center; font-size: 0.8rem; }
.lb-dr-cells { display: flex; flex-wrap: wrap; gap: 3px; }
.lb-day { width: 14px; height: 14px; border-radius: 3px; display: block; }
.lb-day-0 { background: #fff; border: 1px solid var(--border-strong); }
/* how complete the record is */
.lb-cm { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 0.84rem; font-variant-numeric: tabular-nums; table-layout: fixed; }
.lb-cm thead th { font-size: 0.8rem; font-weight: 600; color: var(--ink); padding: 0.2rem; }
.lb-cm thead th:first-child { width: 30%; }
.lb-cm tbody th { text-align: left; font-weight: 600; font-size: 0.84rem; padding: 0.25rem 0.3rem; }
.lb-cm tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.lb-cm-link { font-weight: 400; font-size: 0.74rem; margin-left: 0.3rem; }
.lb-cm td { text-align: center; padding: 0.3rem 0.2rem; border-radius: 5px; }
.lb-cm-ok { background: #e3efe6; color: var(--success); font-size: 0.78rem; }
.lb-cm-na { color: var(--placeholder); }
.lb-of { color: var(--muted); font-size: 0.76rem; }
.lb-cm-gap td { padding: 0; height: 5px; border-bottom: 1px solid var(--border); border-radius: 0; }
.lb-details { margin-top: 0.5rem; font-size: 0.82rem; }
.lb-details summary { cursor: pointer; color: var(--accent); }
.lb-details ul { margin: 0.35rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.15rem; }
/* when the works go free */
.lb-pd-now { background: var(--success); } .lb-pd-dated { background: var(--accent-light); }
.lb-pd-copyright { background: #e9c9b9; } .lb-pd-cannot { background: #d6cfc4; } .lb-pd-owned { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, #fff 2px 4px); }
.lb-pd-keys { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.15rem; font-size: 0.82rem; }
.lb-pd-keys li { display: flex; align-items: center; gap: 0.4rem; }
.lb-pd-keys .muted { font-size: 0.76rem; }
/* where the library comes from (2026-10-21): a bar a kind, 30px tall, each part's number inside it, the kind's
   total at its end. A part too thin for its number hides it - a container query on the part, by the number's length
   (lb-pv-d1 .. d6) - and its title says it on hover, the note under the bar (lb-pv-thin) where there is none. The chart palette's provenance tokens; white figures on the
   dark parts, dark on the light ones. */
.lb-pv-bars { display: grid; gap: 0.55rem; margin: 0.15rem 0 0.2rem; }
.lb-pv-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 0.7rem; align-items: center; }
.lb-pv-lab { font-size: 0.86rem; font-weight: 600; }
.lb-pv-track { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.lb-pv-bar { display: flex; gap: 2px; flex: none; height: 30px; min-width: 4px; width: calc((100% - 4.2rem) * var(--w, 100) / 100); border-radius: 4px; overflow: hidden; }
.lb-pv-seg { display: flex; align-items: center; justify-content: center; min-width: 2px; overflow: hidden; container-type: inline-size; }
.lb-pv-seg b { font-size: 0.78rem; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-pv-tot { font-size: 0.8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-pv-thin { display: none; grid-column: -2 / -1; margin-top: 0.15rem; font-size: 0.74rem; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: none), (max-width: 640px) { .lb-pv-thin { display: block; } }
.lb-pv-own { background: var(--chart-own); } .lb-pv-lic { background: var(--chart-lic); } .lb-pv-pd { background: var(--chart-pd); }
.lb-pv-srk { background: var(--chart-srk); } .lb-pv-none { background: var(--chart-none); } .lb-pv-other { background: var(--chart-other); }
.lb-pv-lic b, .lb-pv-none b, .lb-pv-other b { color: #2a241c; }
@container (max-width: 1rem) { .lb-pv-d1 { display: none; } }
@container (max-width: 1.4rem) { .lb-pv-d2 { display: none; } }
@container (max-width: 1.85rem) { .lb-pv-d3 { display: none; } }
@container (max-width: 2.3rem) { .lb-pv-d4 { display: none; } }
@container (max-width: 2.65rem) { .lb-pv-d5 { display: none; } }
@container (max-width: 3.1rem) { .lb-pv-d6 { display: none; } }
.lb-pv-key { margin-top: 0.6rem; }
/* the church's own: a grid that adds up, shaded by size, every number a link to its list. The lists are drawn once,
   under the grid, hidden; a number's link makes its heading the :target, and the rules below show the works of that
   heading's row (lb-pv-fr-*) and column (lb-pv-fc-*) - no script. */
.lb-pv-grid { width: 100%; max-width: 46rem; margin-top: 0.1rem; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.lb-pv-grid thead th { font-size: 0.78rem; font-weight: 600; color: var(--muted); padding: 0.2rem; vertical-align: bottom; line-height: 1.2; }
.lb-pv-grid thead th:first-child { width: 8.2rem; }
.lb-pv-grid tbody th { text-align: left; font-weight: 600; font-size: 0.84rem; padding: 0.25rem 0.3rem; }
.lb-pv-grid td { text-align: center; padding: 0.45rem 0.2rem; border-radius: 5px; }
.lb-pv-grid td a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-light); }
.lb-pv-grid td.lb-dark a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.7); }
.lb-pv-grid td.lb-pv-0 { color: var(--placeholder); }
.lb-pv-grid td.lb-pv-sum { background: var(--card-alt); }
.lb-pv-grid tr.lb-pv-sums th { padding-top: 0.35rem; }
.lb-pv-grid td.lb-pv-grand a { color: var(--accent); }
/* The cell whose list is open keeps a ring: the list's heading is the #target, so the card asks which one. */
#lb-pv:has(#lb-pv-tr-living:target) td:has(> a[href="#lb-pv-tr-living"]),
#lb-pv:has(#lb-pv-tr-open:target) td:has(> a[href="#lb-pv-tr-open"]),
#lb-pv:has(#lb-pv-tr-recorded:target) td:has(> a[href="#lb-pv-tr-recorded"]),
#lb-pv:has(#lb-pv-tr-none:target) td:has(> a[href="#lb-pv-tr-none"]),
#lb-pv:has(#lb-pv-nt-living:target) td:has(> a[href="#lb-pv-nt-living"]),
#lb-pv:has(#lb-pv-nt-open:target) td:has(> a[href="#lb-pv-nt-open"]),
#lb-pv:has(#lb-pv-nt-recorded:target) td:has(> a[href="#lb-pv-nt-recorded"]),
#lb-pv:has(#lb-pv-nt-none:target) td:has(> a[href="#lb-pv-nt-none"]),
#lb-pv:has(#lb-pv-ol-living:target) td:has(> a[href="#lb-pv-ol-living"]),
#lb-pv:has(#lb-pv-ol-open:target) td:has(> a[href="#lb-pv-ol-open"]),
#lb-pv:has(#lb-pv-ol-recorded:target) td:has(> a[href="#lb-pv-ol-recorded"]),
#lb-pv:has(#lb-pv-ol-none:target) td:has(> a[href="#lb-pv-ol-none"]),
#lb-pv:has(#lb-pv-mel-living:target) td:has(> a[href="#lb-pv-mel-living"]),
#lb-pv:has(#lb-pv-mel-open:target) td:has(> a[href="#lb-pv-mel-open"]),
#lb-pv:has(#lb-pv-mel-recorded:target) td:has(> a[href="#lb-pv-mel-recorded"]),
#lb-pv:has(#lb-pv-mel-none:target) td:has(> a[href="#lb-pv-mel-none"]),
#lb-pv:has(#lb-pv-arr-living:target) td:has(> a[href="#lb-pv-arr-living"]),
#lb-pv:has(#lb-pv-arr-open:target) td:has(> a[href="#lb-pv-arr-open"]),
#lb-pv:has(#lb-pv-arr-recorded:target) td:has(> a[href="#lb-pv-arr-recorded"]),
#lb-pv:has(#lb-pv-arr-none:target) td:has(> a[href="#lb-pv-arr-none"]),
#lb-pv:has(#lb-pv-tr:target) td:has(> a[href="#lb-pv-tr"]),
#lb-pv:has(#lb-pv-nt:target) td:has(> a[href="#lb-pv-nt"]),
#lb-pv:has(#lb-pv-ol:target) td:has(> a[href="#lb-pv-ol"]),
#lb-pv:has(#lb-pv-mel:target) td:has(> a[href="#lb-pv-mel"]),
#lb-pv:has(#lb-pv-arr:target) td:has(> a[href="#lb-pv-arr"]),
#lb-pv:has(#lb-pv-living:target) td:has(> a[href="#lb-pv-living"]),
#lb-pv:has(#lb-pv-open:target) td:has(> a[href="#lb-pv-open"]),
#lb-pv:has(#lb-pv-recorded:target) td:has(> a[href="#lb-pv-recorded"]),
#lb-pv:has(#lb-pv-none:target) td:has(> a[href="#lb-pv-none"]),
#lb-pv:has(#lb-pv-all:target) td:has(> a[href="#lb-pv-all"]) { box-shadow: inset 0 0 0 2px var(--accent); }
.lb-pv-head, .lb-pv-list { display: none; }
.lb-pv-head:target { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; margin: 0.9rem 0 0.35rem; font-size: 0.9rem; scroll-margin-top: 3.5rem; }
.lb-pv-head:target ~ .lb-pv-list { display: grid; gap: 0.2rem; margin: 0; padding-left: 1.1rem; font-size: 0.84rem; }
.lb-pv-close { font-size: 0.8rem; }
.lb-pv-fr-tr:target ~ .lb-pv-list > li:not(.lb-pv-r-tr), .lb-pv-fr-nt:target ~ .lb-pv-list > li:not(.lb-pv-r-nt),
.lb-pv-fr-ol:target ~ .lb-pv-list > li:not(.lb-pv-r-ol), .lb-pv-fr-mel:target ~ .lb-pv-list > li:not(.lb-pv-r-mel),
.lb-pv-fr-arr:target ~ .lb-pv-list > li:not(.lb-pv-r-arr),
.lb-pv-fc-living:target ~ .lb-pv-list > li:not(.lb-pv-c-living), .lb-pv-fc-open:target ~ .lb-pv-list > li:not(.lb-pv-c-open),
.lb-pv-fc-recorded:target ~ .lb-pv-list > li:not(.lb-pv-c-recorded), .lb-pv-fc-none:target ~ .lb-pv-list > li:not(.lb-pv-c-none) { display: none; }
/* where is each provenance from (2026-10-23): the provenance card's bars (lb-pv-*), a nationality a row; the one
   line under them says whose nationality a work takes. */
.lb-na-note { margin: 0.55rem 0 0; font-size: 0.8rem; color: var(--muted); }
/* when was each provenance written (2026-10-23): a column a period, stacked by provenance in the card's order
   (Original compositions on top), a slice's number in it where _library_story found it tall enough - 12rem is the
   tallest column, which LIBRARY_ERA_SHOW is measured against - and lb-pv-seg's container query still hiding one too
   narrow; the column's total above it, No year muted. */
.lb-er, .lb-er-ax { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); column-gap: 0.55rem; max-width: 50rem; }
.lb-er { align-items: end; margin-top: 0.35rem; }
.lb-er-col { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.lb-er-tot { font-size: 0.8rem; font-weight: 400; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; margin-bottom: 0.2rem; }
.lb-er-stack { display: flex; flex-direction: column; gap: 2px; height: calc(12rem * var(--h, 0) / 100); min-height: 3px; border-radius: 4px 4px 0 0; overflow: hidden; }
.lb-er-stack > .lb-pv-seg { min-width: 0; min-height: 2px; }
.lb-er-ax { margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid var(--border); }
.lb-er-ax span { font-size: 0.76rem; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.lb-er-col.lb-er-muted .lb-er-stack { opacity: 0.55; }
.lb-er-ax .lb-er-muted { color: var(--muted); }
.lb-er-ax + .lb-er-thin { margin-top: 0.5rem; }
@media (max-width: 359px) { .lb-pv-grid thead th { hyphens: auto; overflow-wrap: anywhere; } }
@media (max-width: 1100px) { .lb-hands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .lb-grid, .lb-split, .lb-rec2 { grid-template-columns: minmax(0, 1fr); }
  .lb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lb-viz-w { display: none; } .lb-viz-n { display: block; }
  .lb-card { padding: 1rem; }
  .lb-card .card-head { flex-wrap: wrap; }
  .lb-card .card-head .card-summary { flex-basis: 100%; font-size: 0.78rem; color: var(--muted); margin-top: -0.2rem; }
  .lb-chain { flex-direction: column; }
  .lb-chain .lb-arrow { transform: rotate(90deg); line-height: 0.6; }
  .lb-chain-print { margin-left: 0; }
  .lb-led { grid-template-columns: 2.4rem minmax(0, 1fr); grid-template-areas: "y n" ". bar" ". f"; }
  .lb-cov { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n f" "s s" "ax ax"; }
  .lb-mr-l { white-space: normal; }
  .lb-up-head, .lb-up-r { grid-template-columns: repeat(var(--sets, 3), 3.6rem) minmax(0, 1fr) 2.2rem; }
  .lb-up-h { font-size: 0.66rem; }
  .lb-fl { grid-template-columns: minmax(0, 1fr); }
  .lb-keys { grid-column: 1; }
  .lb-st-head { grid-template-columns: minmax(0, 1fr) 3.2rem; }
  .lb-st-head span:first-child { display: none; }
  .lb-st-row { grid-template-columns: minmax(0, 1fr) 3.2rem; }
  .lb-st-row .lb-st-lab { grid-column: 1 / -1; }
  .lb-mels thead th:nth-child(3), .lb-mels td.lb-bks { display: none; }
  .lb-hg-c0 { width: 5.6rem; }
  .lb-hg td { font-size: 0.72rem; padding: 0.35rem 0; }
  .lb-hg th { font-size: 0.64rem; }
  .lb-hg tbody th { font-size: 0.74rem; }
  .lb-bf-head, .lb-bf-row { grid-template-columns: minmax(0, 1fr) 6.4rem minmax(0, 1fr); }
  .lb-bf-m { font-size: 0.72rem; }
  .lb-hands { grid-template-columns: minmax(0, 1fr); }
  .lb-w { display: none; } .lb-n { display: inline; }
  .lb-sg-c0 { width: 6.4rem; }
  .lb-sg { border-spacing: 1px; }
  .lb-sg td { padding: 0.3rem 0; font-size: 0.7rem; }
  .lb-sg tbody th { font-size: 0.72rem; }
  .lb-dr { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .lb-cm { font-size: 0.76rem; border-spacing: 2px; }
  .lb-cm thead th:first-child { width: 34%; }
  .lb-cm thead th { font-size: 0.68rem; }
  .lb-of { display: none; }
  .lb-cm tbody th { font-size: 0.74rem; padding: 0.2rem 0; }
  .lb-cm-ok { font-size: 0.7rem; }
  .lb-pd-keys { flex-direction: column; }
  .lb-km-t .lb-km-sig { font-size: 0.6rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
  .lb-pv-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; }
  .lb-pv-bar { width: calc((100% - 3.4rem) * var(--w, 100) / 100); }
  .lb-pv-grid { font-size: 0.78rem; border-spacing: 2px; }
  .lb-pv-grid thead th { font-size: 0.62rem; padding-inline: 0; overflow-wrap: normal; }
  .lb-pv-grid thead th:first-child { width: 5.2rem; }
  .lb-pv-grid tbody th { font-size: 0.74rem; padding: 0.2rem 0; }
  .lb-pv-grid td { padding: 0.4rem 0; }
  .lb-er, .lb-er-ax { column-gap: 0.2rem; }
  .lb-er-tot { font-size: 0.68rem; }
  .lb-er-ax span { font-size: 0.62rem; }
}

/* ===== Review & Publication (/analytics/process) =====
   The books on their way, the workshop, how it got here, the committee and
   the rest of the shelf (user, 2026-10-17, approving the redesign drawn on
   real data). Stage colors are the Reviews board's: Not started the
   backlog's grey, With the reviewers In Review's amber, For the committee
   and To publish the board's own amber, Being revised Revision Needed's. */
.pa-lede { color: var(--ink); margin: 0.35rem 0 0; padding-left: 1.2rem; font-size: 0.95rem; line-height: 1.45; max-width: 80ch; }
.pa-lede li + li { margin-top: 0.15rem; }
.pa-lede li::marker { color: var(--muted); }
.pa-sub { color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 0; }
.pa-q { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 0 0 0.3rem; padding: 0; border: 0; }
.pa-say { margin: 0 0 0.9rem; color: var(--ink); font-size: 0.92rem; line-height: 1.5; max-width: 95ch; }
.pa-note { font-size: 0.86rem; color: var(--muted); margin: 0.4rem 0 0; line-height: 1.45; }
.pa-note strong { color: var(--ink); font-weight: 600; }
.pa-book-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; border-bottom: 1px solid var(--border); padding-bottom: 0.65rem; margin-bottom: 0.9rem; }
.pa-book-head h2 { margin: 0; padding: 0; border: 0; font-size: 1.25rem; }
.pa-book-head .pa-nums-span { color: var(--muted); font-size: 0.88rem; }
.pa-links { margin-left: auto; font-size: 0.86rem; display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; }
.pa-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem; margin: 0 0 1.2rem; font-size: 1.02rem; line-height: 1.45; }
.pa-verdict .readiness-pill { font-size: 0.84rem; }
.pa-book-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem; cursor: pointer; }
.pa-book-more > summary .pa-more-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.pa-book-more > summary .pa-more-say { color: var(--muted); font-size: 0.9rem; }
.pa-book-more[open] > summary { margin-bottom: 0.9rem; }
.page-header.pa-head { padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.pa-bsec { background: var(--card-alt); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); padding: 0.85rem 1rem 1rem; }
.pa-bsec > :last-child { margin-bottom: 0; }
.pa-bsec + .pa-bsec { margin-top: 1.4rem; }
.pa-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; margin: 0 0 0.8rem; }
.pa-sec-head h2.pa-sec-name { margin: 0; padding: 0; border: 0; font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.25; }
.pa-sec-meta { margin-left: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0.2rem 0.9rem; font-size: 0.8rem; }
.pa-sec-meta .pa-links { gap: 0.4rem 0.45rem; }
.pa-head .pa-lede a, .pa-past a, .pa-every a, .pa-settled a, .pa-shelf td a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pa-sec-meta .pa-nums-span { color: var(--muted); }
.pa-sec-meta .pa-links { margin-left: 0; }
.pa-book-more:not([open]) { padding-bottom: 0.85rem; }
.pa-book-more:not([open]) > summary.pa-sec-head { margin-bottom: 0; }
.pa-book-more > summary { list-style: none; }
.pa-book-more > summary::-webkit-details-marker { display: none; }
.pa-book-more > summary::before { content: '\25B8'; color: var(--muted); font-size: 0.9rem; }
.pa-book-more[open] > summary::before { content: '\25BE'; }
.pa-more-v { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; }
.pa-book-more[open] .pa-more-v { display: none; }
.card.pa-bc { padding: 1.35rem 1.65rem 1.5rem; }
.pa-bc > :last-child { margin-bottom: 0; }
.pa-bc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin: 0 0 1.5rem; }
.pa-bc-two > .card { margin: 0; }
/* the rail to print */
.pa-rail { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.pa-stn { position: relative; padding: 2rem 0.7rem 0 0; min-width: 0; }
.pa-stn::before { content: ""; position: absolute; left: 0; right: 0; top: 0.64rem; height: 2px; background: var(--border); }
.pa-stn:last-child::before { display: none; }
.pa-dot { position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; border: 1.5px solid currentColor; z-index: 1; box-sizing: border-box; }
.pa-ok .pa-dot { background: var(--status-published-bg); color: var(--status-published-fg); }
.pa-warn .pa-dot { background: var(--status-in_review-bg); color: var(--status-in_review-fg); }
.pa-block .pa-dot { background: var(--status-revision_needed-fg); color: #fff; border-color: var(--status-revision_needed-fg); }
.pa-open .pa-dot { background: var(--status-draft-bg); color: var(--status-draft-fg); }
.pa-stn-name { display: flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pa-lock { width: 0.72rem; height: 0.72rem; stroke: var(--status-revision_needed-fg); fill: var(--status-revision_needed-fg); stroke-width: 1.6; flex: none; }
.pa-lock path { fill: none; }
.pa-stn-fig { display: block; font-size: 1.02rem; font-weight: 700; margin-top: 0.12rem; font-variant-numeric: tabular-nums; }
.pa-block .pa-stn-fig { color: var(--status-revision_needed-fg); }
.pa-stn-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.12rem; line-height: 1.32; }
/* two columns inside a card */
.pa-two { display: grid; gap: 1.5rem 2.25rem; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); margin: 0 0 1.6rem; }
.pa-two.pa-two-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
.pa-two > div { min-width: 0; }
.pa-block-sec { margin: 0 0 1.6rem; }
.pa-block-sec:last-child { margin-bottom: 0.2rem; }
/* documents */
.pa-docs { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.pa-docs td { padding: 0.34rem 0.4rem 0.34rem 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.pa-docs td:first-child { white-space: nowrap; }
.pa-docs tr:last-child td { border-bottom: 0; }
.pa-docs .d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pa-docs .m { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.pa-fresh { color: var(--status-published-fg); white-space: nowrap; }
.pa-stale { color: var(--status-revision_needed-fg); white-space: nowrap; }
/* where its rights stand */
.pa-fun { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.12rem 0.65rem; align-items: start; margin: 0.15rem 0 0; }
.pa-fun > b { font-size: 1.08rem; line-height: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; }
.pa-fun > b.z { color: var(--status-revision_needed-fg); }
.pa-fun .row { min-width: 0; padding-bottom: 0.35rem; }
.pa-fun .bar { display: block; height: 0.62rem; border-radius: 2px; margin: 0.24rem 0 0.2rem; }
.pa-fun .b0 { background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--border); }
.pa-fun .b1 { background: var(--status-revision_needed-bg); box-shadow: inset 0 0 0 1px #dcae99; }
.pa-fun .b2 { background: var(--accent-light); }
.pa-fun .b3 { background: var(--status-published-bg); box-shadow: inset 0 0 0 1px #b7d8bf; }
.pa-fun .bz { height: 0.62rem; border: 1.5px dashed var(--status-revision_needed-fg); border-radius: 2px; width: 1.4rem; box-sizing: border-box; }
.pa-fun .lab { display: block; font-size: 0.83rem; line-height: 1.35; }
.pa-fun .lab span { color: var(--muted); }
/* whose permission it waits on */
.pa-who { display: grid; grid-template-columns: fit-content(17rem) 6.5rem 2.6rem 3.2rem minmax(0, max-content); column-gap: 0.8rem; align-items: center; font-size: 0.85rem; width: max-content; max-width: 100%; }
.pa-who-r { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 0.22rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.pa-who-r:not(.pa-who-hr):hover { background: var(--card-alt); }
.pa-who-hr { align-items: end; padding: 0 0 0.25rem; border-bottom-color: var(--border); }
.pa-who-hr .pa-who-h { border-bottom: 0; padding-bottom: 0; }
.pa-who-h.pa-who-key { text-transform: none; letter-spacing: 0; font-size: 0.7rem; line-height: 1.3; }
.pa-who-key > span { display: block; white-space: nowrap; }
.pa-who-key i { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 2px; margin-right: 0.25rem; vertical-align: -0.04rem; }
.pa-who-key i.s { background: var(--accent); }
.pa-who-key i.x { background: var(--accent-light); }
.pa-who-h { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; align-self: end; }
.pa-who-h.r, .pa-who-n { text-align: right; }
.pa-who-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.pa-who-bar { display: flex; height: 0.72rem; gap: 1px; }
.pa-who-bar .s { background: var(--accent); border-radius: 2px; }
.pa-who-bar .x { background: var(--accent-light); border-radius: 2px; }
.pa-who-n { font-variant-numeric: tabular-nums; color: var(--ink); }
.pa-who-n.m { color: var(--muted); }
.pa-who-st { color: var(--muted); font-size: 0.82rem; line-height: 1.3; min-width: 0; }
.pa-flag { display: inline-block; font-size: 0.7rem; border-radius: 999px; padding: 0.02rem 0.45rem; margin-left: 0.35rem; white-space: nowrap; vertical-align: 0.05rem; background: var(--status-in_review-bg); color: var(--status-in_review-fg); }
.pa-who-more { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; line-height: 1.45; }
/* number by number */
.pa-numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.25rem, 1fr)); gap: 0.55rem 0.15rem; margin: 0.2rem 0 0.5rem; }
.pa-num { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.pa-num-run { grid-column: span 2; }
.pa-num-n { font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-num-clear .pa-num-n, .pa-num-run .pa-num-n { color: var(--status-published-fg); }
.pa-num-clear .pa-num-n::after { content: " \2713"; }
.pa-pm { font-size: 0.7rem; line-height: 0.7rem; height: 0.7rem; letter-spacing: -1px; color: var(--status-in_review-fg); }
.pa-cell { width: 1.75rem; height: 1.2rem; border-radius: 3px; font-size: 0.64rem; font-weight: 700; display: grid; place-items: center; cursor: default; }
.pa-c-need { background: var(--status-revision_needed-fg); color: #fff; }
.pa-c-waiting { background: var(--status-revision_needed-bg); color: var(--status-revision_needed-fg); box-shadow: inset 0 0 0 1px #dcae99; }
.pa-c-cleared { background: var(--status-published-bg); color: var(--status-published-fg); box-shadow: inset 0 0 0 1px #b7d8bf; }
.pa-c-nobody { background: #dde9f6; color: #2d5a88; box-shadow: inset 0 0 0 1px #b5cce4; }
.pa-c-free { background: var(--card-alt); color: var(--muted); }
.pa-c-key { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pa-key > .pa-key-br { grid-column: 1 / -1; height: 0; }
.pa-c-run { width: auto; padding: 0 0.35rem; background: var(--status-published-bg); color: var(--status-published-fg); font-weight: 600; white-space: nowrap; }
.pa-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; align-items: center; font-size: 0.8rem; color: var(--muted); margin: 0.6rem 0 0; }
.pa-key + .pa-key { margin-top: 0.35rem; }
.pa-key > span, .pa-deckey > span { display: flex; align-items: center; flex: 0 1 calc((var(--need) - 100%) * 999); white-space: nowrap; }
.pa-key-txt { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 0; }
.pa-key .pa-cell { display: inline-grid; width: 1.3rem; height: 0.95rem; font-size: 0.56rem; margin-right: 0.45rem; vertical-align: -0.12rem; flex: none; }
.pa-key .pa-pm { display: inline-block; width: 1.3rem; text-align: center; margin-right: 0.45rem; flex: none; }
/* the stage strip, and a stage named on a row */
.pa-stages { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.3rem; margin: 0 0 1rem; }
.pa-stage { display: flex; flex-direction: column; justify-content: center; min-width: 7.6rem; padding: 0.42rem 0.75rem; border-radius: var(--radius); text-decoration: none; line-height: 1.25; }
.pa-stage:hover { text-decoration: none; filter: brightness(0.97); }
.pa-stage .nm { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pa-stage b { font-size: 1.3rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pa-stage b small { font-size: 0.78rem; font-weight: 400; margin-left: 0.2rem; }
.pa-stage .pr { font-size: 0.8rem; }
.pa-stage.s-zero { opacity: 0.55; }
.pa-stage.s-published { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.pa-arrow { align-self: center; color: var(--border-strong); font-size: 1.1rem; }
.pa-sp { display: inline-block; font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 0.08rem 0.55rem; white-space: nowrap; }
.card > .pa-stages:last-child { margin-bottom: 0; }
.pa-ws-two { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.5rem; margin: 0 0 1.5rem; }
.pa-ws-two > .card { margin: 0; min-width: 0; }
.pa-ws-c .pa-lw { display: block; width: auto; }
.pa-ws-c .pa-lw li { display: block; padding: 0.4rem 0; }
.pa-ws-c .pa-lw .w { display: block; line-height: 1.35; }
.pa-ws-c .pa-lw .m { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin-top: 0.25rem; }
.pa-ws-c .pa-lw .m .tag { margin: 0; }
.pa-ws-c .pa-lw .d { text-align: left; color: var(--muted); }
.pa-ws-c > :last-child { margin-bottom: 0; }
.pa-subq { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 1.3rem 0 0.45rem; }
.pa-waits { border-collapse: collapse; font-size: 0.86rem; }
.pa-waits th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; text-align: left; padding: 0 0.9rem 0.3rem 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pa-waits td { padding: 0.28rem 0.9rem 0.28rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.pa-waits .n { text-align: right; font-variant-numeric: tabular-nums; min-width: 3.4rem; }
.pa-waits .t { font-weight: 600; padding-left: 0.7rem; padding-right: 0; border-left: 1px solid var(--border); }
.pa-waits .dash { color: var(--muted); opacity: 0.6; font-weight: 400; }
.pa-waits .sm { display: none; }
.pa-waits tr.z .pa-sp { opacity: 0.55; }
.pa-lw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, max-content) auto 4.6rem 6rem; column-gap: 1rem; font-size: 0.86rem; width: max-content; max-width: 100%; }
.pa-lw li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 0.28rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.pa-lw .w { min-width: 0; }
.pa-lw .tag { margin: 0 0.4rem 0 0; }
.pa-lw .d { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-lw .pa-long { margin-left: 0; }
.pa-stage.s-not_started, .pa-sp.s-not_started { background: var(--status-backlog-bg); color: var(--status-backlog-fg); }
.pa-stage.s-with_reviewers, .pa-sp.s-with_reviewers { background: var(--status-in_review-bg); color: var(--status-in_review-fg); }
.pa-stage.s-committee, .pa-sp.s-committee, .pa-stage.s-to_publish, .pa-sp.s-to_publish { background: #f7edcf; color: #6b4f13; }
.pa-stage.s-revising, .pa-sp.s-revising { background: var(--status-revision_needed-bg); color: var(--status-revision_needed-fg); }
/* the workshop, grouped by hymn */
.pa-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pa-ws { display: grid; grid-template-columns: minmax(0, 2.2fr) 9.4rem 5.4rem 8.2rem minmax(0, 2.6fr); column-gap: 0.9rem; font-size: 0.86rem; align-items: center; }
.pa-ws-h { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.pa-ws-h.axis { display: flex; justify-content: space-between; }
.pa-ws-r { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.pa-ws-blk { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin-top: 0.6rem; padding: 0 0.6rem 0.3rem; }
.pa-ws-g { grid-column: 1 / -1; font-family: var(--font-serif); font-weight: 600; font-size: 0.95rem; margin: 0 -0.6rem 0.2rem; padding: 0.38rem 0.6rem; background: var(--card-alt); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
.pa-ws-blk .c.w { padding-left: 0.85rem; }
.pa-ws-sec { grid-column: 1 / -1; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 1.2rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.pa-ws-r.loose { padding: 0.2rem 0; }
.pa-ws-r.loose + .pa-ws-r.loose { border-top: 1px dotted var(--border-strong); }
.pa-ws-r.loose .c.w { padding-left: 0.6rem; }
.pa-ws-r.loose b { font-weight: 600; }
.pa-unn { color: var(--muted); font-style: italic; }
.pa-for { color: var(--muted); }
.pa-ws .c { padding: 0.2rem 0; min-width: 0; }
.pa-ws .tag { margin: 0 0.35rem 0 0; }
.pa-ws .since { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.pa-ws .wait { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-long { display: inline-block; font-size: 0.68rem; font-weight: 600; color: var(--status-revision_needed-fg); background: var(--status-revision_needed-bg); border-radius: 999px; padding: 0 0.42rem; margin-left: 0.4rem; vertical-align: 0.04rem; }
.pa-ws .why { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.pa-ws .why strong { color: var(--status-revision_needed-fg); font-weight: 600; }
.pa-stall { display: inline-block; font-size: 0.68rem; font-weight: 600; color: #8a6414; background: #f7edcf; border-radius: 999px; padding: 0 0.42rem; margin-right: 0.3rem; vertical-align: 0.04rem; }
.pa-trk { display: block; position: relative; height: 1.15rem; border-radius: 2px; background: var(--card-alt); overflow: visible; }
.pa-trk .z { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(161, 70, 42, 0.13) 0 3px, transparent 3px 6px); border-left: 1px dashed rgba(161, 70, 42, 0.55); }
.pa-trk .tk { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; color: #9c9182; opacity: 0.85; }
.pa-trk b { position: absolute; top: 0.17rem; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; border-radius: 50%; border: 1.5px solid var(--card); box-sizing: border-box; z-index: 2; }
.pa-trk em { position: absolute; top: 0.05rem; font-style: normal; font-size: 0.74rem; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 0.55rem; white-space: nowrap; z-index: 2; }
.pa-trk em.l { padding: 0 0.55rem 0 0; transform: translateX(-100%); }
.pa-mdays { display: none; }
.pa-trk .d-not_started { background: var(--status-backlog-fg); }
.pa-trk .d-with_reviewers { background: var(--status-in_review-fg); }
.pa-trk .d-committee { background: #c9a227; }
.pa-trk .d-revising { background: var(--status-revision_needed-fg); }
.pa-trk .d-to_publish { background: var(--status-approved-fg); }
.pa-tkey { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; font-size: 0.8rem; color: var(--muted); margin: 0.7rem 0 0; }
.pa-tkey i { display: inline-block; vertical-align: -0.1rem; margin-right: 0.35rem; }
.pa-tkey .kt { width: 1.5px; height: 0.8rem; background: #9c9182; }
.pa-tkey .kz { width: 1.1rem; height: 0.8rem; background: repeating-linear-gradient(135deg, rgba(161, 70, 42, 0.18) 0 3px, transparent 3px 6px); border-left: 1px dashed rgba(161, 70, 42, 0.55); }
.pa-tkey .kd { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--status-in_review-fg); }
.pa-dates { margin: 1rem 0 0; padding: 0.6rem 0 0; border-top: 1px solid var(--border); font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.pa-dates .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 0.4rem; font-weight: 600; }
.pa-dates strong { color: var(--status-revision_needed-fg); font-weight: 600; }
ul.pa-dates { padding-left: 1.2rem; font-size: 0.86rem; max-width: none; }
/* how it got here */
.pa-flow { width: 100%; height: auto; display: block; overflow: visible; }
.pa-flow text { font-family: var(--font-sans); fill: var(--muted); }
.pa-flow .lane { fill: var(--ink); font-size: 0.9em; }
.pa-flow .grid { stroke: var(--border); stroke-width: 1; }
.pa-flow .grid.dash { stroke-dasharray: 2 3; }
.pa-flow .grid.dot { stroke-dasharray: 1 3; }
.pa-flow .draft { fill: var(--status-draft-bg); opacity: 0.6; }
.pa-flow .chg { stroke: var(--status-revision_needed-fg); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pa-flow .leader { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 2; }
.pa-flow .mk circle { fill: var(--accent); }
.pa-flow .mk text { fill: #fff; font-weight: 700; text-anchor: middle; font-size: 0.92em; }
.pa-flow .val { fill: var(--ink); font-weight: 600; }
.pa-flow .lane-mark { fill: var(--accent-light); }
.pa-flow .lane-dot { fill: var(--ink); }
.pa-flow .ar { stroke-width: 0.6; }
.pa-flow .ar-in_review { fill: color-mix(in srgb, var(--status-in_review-fg) 62%, var(--card)); stroke: var(--status-in_review-fg); }
.pa-flow .ar-revision_needed { fill: color-mix(in srgb, var(--status-revision_needed-fg) 70%, var(--card)); stroke: var(--status-revision_needed-fg); }
.pa-flow .ar-approved { fill: color-mix(in srgb, var(--status-approved-fg) 70%, var(--card)); stroke: var(--status-approved-fg); }
.pa-flow .ar-backlog { fill: color-mix(in srgb, var(--status-backlog-fg) 70%, var(--card)); stroke: var(--status-backlog-fg); }
.pa-flow .ar1 { fill: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.pa-flow .ln { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.pa-flow .mo { fill: var(--ink); }
.pa-flow .mol { fill: var(--ink); font-weight: 600; }
.pa-flow .ldr { stroke: var(--muted); stroke-width: 0.9; }
.pa-flow .pill rect { fill: var(--card-alt); stroke: var(--border-strong); stroke-width: 0.8; }
.pa-flow .pill text { text-anchor: middle; fill: var(--ink); }
.pa-flow .pill .pd { font-weight: 700; }
.pa-flow-n { display: none; }
.pa-skey { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-size: 0.8rem; color: var(--muted); margin: 0.1rem 0 0.2rem; }
.pa-skey i { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.3rem; vertical-align: -0.08rem; }
.pa-skey .sw-in_review { background: color-mix(in srgb, var(--status-in_review-fg) 62%, var(--card)); box-shadow: inset 0 0 0 1px var(--status-in_review-fg); }
.pa-skey .sw-revision_needed { background: color-mix(in srgb, var(--status-revision_needed-fg) 70%, var(--card)); box-shadow: inset 0 0 0 1px var(--status-revision_needed-fg); }
.pa-skey .sw-approved { background: color-mix(in srgb, var(--status-approved-fg) 70%, var(--card)); box-shadow: inset 0 0 0 1px var(--status-approved-fg); }
.pa-skey .sw-backlog { background: color-mix(in srgb, var(--status-backlog-fg) 70%, var(--card)); box-shadow: inset 0 0 0 1px var(--status-backlog-fg); }
.pa-skey-note { margin: 0 0 0.6rem; font-size: 0.8rem; }
.pa-evs { list-style: none; margin: 0.9rem 0 0; padding: 0; columns: 2; column-gap: 2rem; font-size: 0.86rem; line-height: 1.4; }
.pa-evs li { break-inside: avoid; padding: 0.22rem 0 0.22rem 1.75rem; position: relative; }
.pa-evs li span.n { position: absolute; left: 0; top: 0.25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; }
.pa-evs b { font-variant-numeric: tabular-nums; font-weight: 600; }
/* what the committee decided */
.pa-dec { display: flex; flex-wrap: wrap; gap: 3px; margin: 0.15rem 0 0.45rem; }
.pa-dec i { width: 1.15rem; height: 1.15rem; border-radius: 2px; display: grid; place-items: center; font-style: normal; font-size: 0.6rem; font-weight: 700; box-sizing: border-box; }
.pa-d-approved { background: var(--status-approved-fg); color: #fff; }
.pa-d-sent { background: var(--status-revision_needed-bg); box-shadow: inset 0 0 0 1.5px var(--status-revision_needed-fg); color: var(--status-revision_needed-fg); }
.pa-d-turned { background: var(--status-archived-fg); color: #fff; }
.pa-d-rights { background: var(--status-revision_needed-fg); color: #fff; }
.pa-deckey { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; align-items: center; font-size: 0.82rem; color: var(--muted); margin: 0; }
.pa-deckey-txt { margin: 0.35rem 0 0.8rem; }
.pa-deckey i { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.45rem; vertical-align: -0.08rem; flex: none; }
.pa-deckey b { color: var(--ink); font-weight: 600; margin-left: 0.3rem; }
.pa-decrows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1rem; align-items: start; margin: 0.3rem 0 0.7rem; }
.pa-decrow-l { font-size: 0.86rem; color: var(--ink); white-space: nowrap; line-height: 1.15rem; }
.pa-decrow-l b { font-weight: 600; margin-left: 0.2rem; }
.pa-decrows .pa-dec { margin: 0; }
.pa-dec-notes { margin-top: 0.7rem; }
.pa-why { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
.pa-why li { padding: 0.4rem 0; border-top: 1px solid var(--border); line-height: 1.4; }
.pa-why li:first-child { border-top: 0; padding-top: 0; }
.pa-why q { color: var(--muted); font-style: italic; }
.pa-why .when { color: var(--muted); font-size: 0.8rem; }
.pa-why .pa-rq { font-size: 0.82rem; color: var(--muted); }
/* the rest of the shelf */
.pa-shelf td, .pa-shelf th { font-size: 0.88rem; }
.pa-settled { font-size: 0.86rem; color: var(--muted); margin: 0.7rem 0 0; line-height: 1.5; }
.pa-settled b { color: var(--ink); }
.pa-settled a { white-space: nowrap; }
@media (max-width: 860px) {
  .pa-two, .pa-two.pa-two-even, .pa-bc-two, .pa-ws-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pa-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
  .pa-stn { padding: 0 0 0.85rem 2.1rem; }
  .pa-stn::before { left: 0.64rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .pa-flow-w { display: none; }
  .pa-flow-n { display: block; }
  .pa-evs { columns: 1; }
  .pa-ws { grid-template-columns: minmax(0, 1fr) auto; }
  .pa-ws .c.trk, .pa-ws .pa-ws-h, .pa-ws .pa-ws-h.axis, .pa-tkey { display: none; }
  .pa-ws .c.stage { justify-self: end; }
  .pa-ws .c.since { white-space: normal; }
  .pa-ws .c.wait { justify-self: end; }
  .pa-waits .lg { display: none; }
  .pa-decrows { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .pa-decrows .pa-dec { margin-bottom: 0.5rem; }
  .pa-waits .sm { display: inline; }
  .pa-waits th, .pa-waits td { padding-right: 0.55rem; }
  .pa-waits .n { min-width: 0; }
  .pa-waits .t { display: none; }
  .pa-waits th { letter-spacing: 0.02em; }
  .pa-lw { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 0.6rem; width: auto; }
  .pa-lw .w { grid-column: 1 / -1; }
  .pa-ws-blk .c.w, .pa-ws-r.loose .c.w { padding-left: 0; }
  .pa-mdays { display: inline; }
  .pa-ws .c.why { grid-column: 1 / -1; padding-bottom: 0.4rem; }
  .pa-links { margin-left: 0; }
  .pa-sec-meta { margin-left: 0; justify-content: flex-start; }
  .pa-bsec { padding: 0.75rem 0.6rem 0.8rem; }
  .card.pa-bc { padding: 1.1rem 1.1rem 1.2rem; }
  .pa-stage { min-width: 0; flex: 1 1 40%; }
  .pa-arrow { display: none; }
  .pa-who { grid-template-columns: minmax(0, 1fr) 4.4rem 3rem 3rem; column-gap: 0.6rem; width: auto; }
  .pa-who-st { grid-column: 1 / -1; padding-bottom: 0.3rem; }
  .pa-who-h.pa-who-sth { display: none; }
}
@media (max-width: 600px) {
  .pa-docs .m { display: none; }
  .pa-docs td:first-child, .pa-stale { white-space: normal; }
}

/* ===================== APP USAGE (/analytics/usage) =====================
   The rules for App Usage alone, every class prefixed uc-, and any rule that
   touches a shared class scoped under .uc-page so the other two dashboards
   are untouched. Chart colors come from the one analytics palette below
   (--chart-*); roles keep the app's own role badges. */
.uc-page .analytics-band { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.uc-page .analytics-band small { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.uc-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; flex: none; margin-right: 0.4rem; vertical-align: -1px; }
.uc-zero { color: var(--border-strong); }
.uc-m { display: none; }
.uc-flag { color: var(--error); font-weight: 600; }
.uc-hatch { background-image: repeating-linear-gradient(135deg, rgba(43, 38, 32, 0.16) 0 2px, transparent 2px 5px) !important; }
.uc-ans { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.4; margin: 0 0 0.8rem; max-width: 84ch; }
.uc-ans-list { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 92ch; line-height: 1.45; font-size: 0.95rem; }
.uc-ans-list li + li { margin-top: 0.2rem; }
.uc-ans-list li::marker { color: var(--muted); }
.uc-ans-def { font-size: 0.8rem; color: var(--muted); margin: -0.4rem 0 0.9rem; max-width: 96ch; }
.uc-norec-card { margin: 0; font-size: 0.92rem; color: var(--muted); font-style: italic; padding: 0.7rem 0.9rem;
  border-radius: 6px; background: repeating-linear-gradient(135deg, var(--card-alt) 0 6px, transparent 6px 12px); }
.uc-sub { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }

/* the lede */
.uc-lede { padding: 1.15rem 1.4rem 1.1rem; }
.uc-lede-head { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.25; margin: 0 0 0.45rem; }
.uc-lede-p { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.45; }
.uc-lede-p li + li { margin-top: 0.2rem; }
.uc-lede-p li::marker { color: var(--muted); }
.uc-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem 1.25rem; }
.uc-fig { border-top: 1px solid var(--border); padding-top: 0.55rem; min-width: 0; }
.uc-tn { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.uc-tl { display: block; font-size: 0.9rem; margin-top: 0.1rem; }
.uc-tw { display: block; font-size: 0.78rem; color: var(--muted); }
.uc-up { color: var(--success); font-weight: 600; }
.uc-def { font-size: 0.78rem; color: var(--muted); margin: 0.75rem 0 0; }

/* weeks: four lanes on one axis */
.uc-lanes { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.35rem 0.75rem; align-items: end; }
.uc-ll { font-size: 0.84rem; font-weight: 600; line-height: 1.15; padding-bottom: 0.1rem; }
.uc-ll small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.uc-lane, .uc-axis { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 3px; }
.uc-lane { height: 54px; align-items: end; border-bottom: 1px solid var(--border); }
.uc-lane-tall { height: 92px; }
.uc-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.uc-col i { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.uc-v { font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 1px; white-space: nowrap; }
.uc-norec { align-self: stretch; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; color: var(--muted);
  font-style: italic; border-radius: 3px; margin-bottom: 2px; overflow: hidden; white-space: nowrap;
  background: repeating-linear-gradient(135deg, var(--card-alt) 0 5px, transparent 5px 10px); }
.uc-lane-dots { height: auto; min-height: 30px; border-bottom: 0; }
.uc-dots { gap: 2px; }
.uc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.75; }
.uc-axis { font-size: 0.7rem; color: var(--muted); }
.uc-axis span { white-space: nowrap; overflow: visible; }
.uc-axis-m span { font-weight: 600; color: var(--ink); }
.uc-axis-d span { text-align: center; }
.uc-lane-mk { height: auto; border-bottom: 0; align-items: start; }
.uc-mk-col { justify-content: flex-start; gap: 2px; }
b.uc-mk { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 0.66rem; font-weight: 700; flex: none; }
.uc-moments { list-style: none; margin: 0.9rem 0 0; padding: 0.8rem 0 0; border-top: 1px solid var(--border); columns: 2; column-gap: 2rem; font-size: 0.84rem; }
.uc-moments li { display: flex; gap: 0.5rem; align-items: baseline; break-inside: avoid; margin: 0 0 0.3rem; line-height: 1.35; }
.uc-moments li span > b { font-variant-numeric: tabular-nums; margin-right: 0.2rem; }

/* what the app is used for: the ranked features */
.uc-share { display: flex; height: 0.95rem; border-radius: 999px; overflow: hidden; margin: 0.1rem 0 0.55rem; background: var(--card-alt); }
.uc-share span { display: block; height: 100%; }
.uc-share span + span { box-shadow: inset 2px 0 0 var(--card); }
.uc-share-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; font-size: 0.86rem; margin: 0 0 1rem; }
.uc-ft { display: grid; align-items: center; column-gap: 0.9rem;
  grid-template-columns: minmax(10rem, 14rem) minmax(5rem, 1fr) 3rem 3.6rem 2.6rem minmax(7rem, 10rem) 3rem; }
.uc-ft-head { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.uc-ft-head > span:nth-child(n+3) { text-align: right; }
.uc-ft-head > span:nth-child(6) { text-align: left; }
.uc-rolekey { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 0.5rem; white-space: nowrap; }
.uc-rolekey i { display: inline-block; width: 0.9rem; height: 0.55rem; border-radius: 2px; background: var(--chart-en); margin: 0 0.25rem 0 0.35rem; vertical-align: 0; }
.uc-rolekey i.l { background: color-mix(in srgb, var(--chart-en) 42%, #ffffff); }
.uc-rolekey i.o { background: color-mix(in srgb, var(--chart-en) 18%, #ffffff); }
.uc-rolekey-m { display: none; font-size: 0.78rem; color: var(--muted); margin: -0.6rem 0 0.4rem; }
.uc-rolekey-m .uc-rolekey { margin-left: 0; white-space: normal; }
.uc-ft-row { padding: 0.2rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); font-size: 0.88rem; }
.uc-ft-row:last-of-type { border-bottom: 0; }
.uc-ft-name { display: flex; align-items: center; min-width: 0; }
.uc-ft-num { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); font-size: 0.84rem; }
.uc-ft-pages { font-weight: 700; color: var(--ink); }
.uc-ft-track { display: flex; height: 0.7rem; background: var(--card-alt); border-radius: 999px; overflow: hidden; min-width: 0; }
.uc-ft-track i { display: block; height: 100%; }
.uc-ft-track i + i { box-shadow: inset 1px 0 0 var(--card); }
.uc-spark { display: flex; align-items: flex-end; gap: 1px; height: 1.3rem; }
.uc-spark i { flex: 1; background: currentColor; border-radius: 1px 1px 0 0; min-width: 0; }
.uc-spark i.z { height: 1px; opacity: 0.35; background: var(--border-strong); }

/* hymns, ranked */
.uc-hymns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.uc-hymns li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; padding: 0.42rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.uc-hy-n { font-size: 0.9rem; min-width: 0; }
.uc-hy-n b { font-weight: 600; margin-right: 0.25rem; }
.uc-hymns em { font-size: 0.84rem; color: var(--muted); min-width: 0; }
.uc-hy-last { font-size: 0.76rem; color: var(--muted); text-align: right; white-space: nowrap; align-self: baseline; }
.uc-hy-c { font-size: 0.82rem; color: var(--muted); text-align: right; white-space: nowrap; }
.uc-hy-c b { color: var(--ink); font-size: 0.9rem; }

/* ranked bars: arrivals, searches, files */
.uc-reach { max-width: 48rem; }
.uc-reach .bar-row { grid-template-columns: minmax(6rem, 12rem) minmax(0, 1fr) auto; }
.uc-reach .bar-fill { background: var(--chart-en); }
.uc-reach .bar-fill.uc-rest { background: var(--chart-other); }
.uc-reach .bar-value { color: var(--ink); }

/* when the work is done */
.uc-week { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr); gap: 1.5rem; align-items: start; }
.uc-heat { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 3.8rem; gap: 3px 0.5rem; align-items: center; }
.uc-hx, .uc-hrow, .uc-hbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.uc-hx span { font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.uc-hrow b { display: block; aspect-ratio: 1 / 1; border-radius: 3px; background: color-mix(in srgb, var(--chart-en) var(--p), var(--card)); }
.uc-hrow b.z { background: var(--card-alt); opacity: 0.6; }
.uc-hy { font-size: 0.8rem; font-weight: 600; }
.uc-hy-s { font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.uc-we { color: var(--accent); }
.uc-hm { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.uc-hm small { font-weight: 400; color: var(--muted); }
.uc-hm-h { font-weight: 400; color: var(--muted); font-size: 0.68rem; white-space: normal; line-height: 1.1; }
.uc-hbars { height: 28px; align-items: end; margin-top: 2px; }
.uc-hbars i { display: block; background: color-mix(in srgb, var(--chart-en) 55%, #ffffff); border-radius: 2px 2px 0 0; min-height: 1px; }
.uc-pair-head, .uc-pair-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.uc-pair-head { font-size: 0.74rem; color: var(--muted); line-height: 1.2; margin-bottom: 0.3rem; align-items: end; }
.uc-pair-row { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; }
.uc-pb { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.uc-pb i { display: block; height: 0.75rem; border-radius: 999px; background: var(--chart-en); min-width: 2px; }
.uc-pb-c i { background: color-mix(in srgb, var(--chart-en) 55%, #ffffff); }
.uc-pb em { font-style: normal; font-weight: 600; font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* every sitting, day by day */
.uc-sit-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 16.5rem; gap: 1.75rem; align-items: start; }
.uc-sit-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 6.4rem; gap: 0.6rem; align-items: center; min-height: 17px; }
.uc-sd { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.uc-sd b { color: var(--ink); font-weight: 600; }
.uc-sit-row.uc-we .uc-sd, .uc-sit-row.uc-we .uc-sd b { color: var(--accent); }
.uc-strip { position: relative; height: 15px; border-radius: 3px; background-color: var(--card-alt);
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px); background-size: 25% 100%; background-position: 4.1667% 0; }
.uc-sit-row.uc-we .uc-strip { background-color: color-mix(in srgb, var(--accent-light) 18%, var(--card)); }
.uc-strip i { position: absolute; top: 2px; height: 8px; border-radius: 2px; background: var(--accent); min-width: 3px; }
.uc-strip u { position: absolute; bottom: 1px; width: 1px; height: 4px; background: var(--ink); opacity: 0.6; }
.uc-st { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; overflow: hidden; }
.uc-st small { font-weight: 400; color: var(--muted); }
.uc-sit-axis { min-height: 16px; }
.uc-sit-ticks { position: relative; height: 16px; }
.uc-sit-ticks span { position: absolute; transform: translateX(-50%); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.uc-sit-note > span:nth-child(2) { font-size: 0.74rem; color: var(--muted); line-height: 1.3; padding: 0 0 0.25rem; }
.uc-sit-key { font-size: 0.74rem; color: var(--muted); margin: 0.5rem 0 0 5.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.uc-sit-key i { display: inline-block; width: 16px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 0.3rem; vertical-align: middle; }
.uc-sit-key u { display: inline-block; width: 1px; height: 8px; background: var(--ink); margin-right: 0.35rem; vertical-align: middle; }
.uc-side h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.uc-side p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; margin: 0.7rem 0 0; }
.uc-split { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.5rem; align-items: center; margin-bottom: 0.45rem; }
.uc-split-l { font-size: 0.8rem; color: var(--muted); }
.uc-split-bar { display: flex; height: 1.35rem; border-radius: 4px; overflow: hidden; background: var(--card-alt); }
.uc-split-bar i.uc-dark { color: #fff; }
.uc-split-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.7rem; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--accent) var(--p), var(--card)); border-right: 1px solid var(--card); white-space: nowrap; overflow: hidden; }
.uc-split-key { display: flex; flex-wrap: wrap; gap: 0.25rem 0.8rem; font-size: 0.72rem; color: var(--muted); margin: 0.3rem 0 0 5.7rem; }
.uc-split-key i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin-right: 0.25rem; vertical-align: -1px;
  background: color-mix(in srgb, var(--accent) var(--p), var(--card)); }

/* what the app makes */
.uc-o { display: grid; grid-template-columns: minmax(10rem, 13rem) 12.6rem minmax(0, 1fr) 3.2rem 3.2rem; align-items: center; column-gap: 0.8rem;
  padding: 0.42rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); font-size: 0.88rem; }
.uc-o-head { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--border); padding: 0 0 0.35rem; }
.uc-o-head span:nth-child(n+4) { text-align: right; }
.uc-o-l small { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.25; }
.uc-o-f { font-size: 0.78rem; line-height: 1.9; }
.uc-o-f .role-badge { margin: 0 0.2rem 0 0; font-size: 0.62rem; white-space: nowrap; display: inline-block; line-height: 1.4; }
.role-badge.uc-held { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); }
.uc-o-t { position: relative; height: 1.3rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  background: linear-gradient(var(--border), var(--border)) 0 50% / 100% 1px no-repeat; }
.uc-o-t > span { position: absolute; inset: 0; }
.uc-narrow { display: none; }
.uc-o-t i { position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--chart-en);
  border: 1.5px solid var(--card); transform: translateX(-50%); }
.uc-o-t i.uc-o-big { width: auto; height: auto; min-width: 1.45rem; margin-top: -0.62rem; padding: 0.08rem 0.32rem; border-radius: 999px;
  color: #fff; font-size: 0.7rem; font-weight: 700; font-style: normal; text-align: center; line-height: 1.2; }
.uc-o-arr { position: absolute; top: -0.15rem; bottom: -0.15rem; width: 0; border-left: 2px dashed var(--muted); }
.uc-o-arr span { position: absolute; right: 4px; top: -0.05rem; font-size: 0.66rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  background: var(--card); padding: 0 0.2rem; }
.uc-o-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: 0.86rem; }
.uc-o-none { color: var(--error); }
.uc-o-axis { border-bottom: 0; padding-top: 0; }
.uc-o-ticks { position: relative; height: 1.1rem; font-size: 0.7rem; color: var(--muted); }
.uc-o-ticks span { position: absolute; top: 0.2rem; transform: translateX(-2px); }

/* the menu map */
.uc-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.8rem; color: var(--muted); margin: 0 0 1rem; align-items: center; }
.uc-menus { columns: 3 17rem; column-gap: 1.6rem; }
.uc-menu { break-inside: avoid; margin: 0 0 0.75rem; }
.uc-menu-h { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; margin: 0 0 0.35rem; }
.uc-menu-h .muted { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 0.3rem; }
.uc-tiles { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.uc-tile { display: inline-flex; align-items: baseline; gap: 0.45rem; font-size: 0.82rem; padding: 0.22rem 0.55rem; border-radius: 6px;
  border: 1px solid transparent; line-height: 1.3; }
.uc-tile b { font-variant-numeric: tabular-nums; font-size: 0.78rem; }
.uc-tile.b0 { border: 1px dashed var(--border-strong); color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--border) 55%, transparent) 5px 6px); }
.uc-tile.b0 b { color: var(--error); }
.uc-tile.b1 { background: color-mix(in srgb, var(--accent-light) 16%, var(--card)); border-color: color-mix(in srgb, var(--accent-light) 30%, var(--card)); }
.uc-tile.b2 { background: color-mix(in srgb, var(--accent-light) 38%, var(--card)); }
.uc-tile.b3 { background: color-mix(in srgb, var(--accent) 55%, var(--accent-light)); color: #fff; }
.uc-empty { font-size: 0.68rem; font-style: italic; }

/* the accounts */
.uc-acct td { vertical-align: top; font-size: 0.88rem; }
.uc-acct th:nth-child(1) { width: 17%; }
.uc-acct th:nth-child(2) { width: 29%; }
.uc-acct th:nth-child(3) { width: 17%; }
.uc-acct th:nth-child(4) { width: 20%; }
.uc-acct .role-badge { margin: 0 0.2rem 0.2rem 0; display: inline-block; }
.uc-page .chart-after { font-size: 0.84rem; line-height: 1.45; margin: 0.8rem 0 0; max-width: 96ch; }
.uc-blind { font-size: 0.82rem; color: var(--muted); margin: -0.5rem 0 0; max-width: 96ch; line-height: 1.5; }
.uc-blind b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .uc-week, .uc-sit-wrap { grid-template-columns: minmax(0, 1fr); }
  .uc-hymns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .uc-page .card.chart-card { padding: 1rem 0.85rem; }
  .uc-page .analytics-band { font-size: 1.12rem; }
  .uc-page .analytics-band small { flex-basis: 100%; font-size: 0.78rem; }
  .uc-rolekey-m { display: block; }
  .uc-lede-head { font-size: 1.2rem; }
  .uc-reach .bar-row { grid-template-columns: minmax(0, 9.2rem) minmax(0, 1fr) auto; gap: 0.5rem; }
  .uc-ans { font-size: 1.02rem; }
  .uc-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-tn { font-size: 1.45rem; }
  .uc-lanes { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .uc-ll { padding-top: 0.45rem; }
  .uc-ll small { display: inline; margin-left: 0.35rem; }
  .uc-ll:empty { display: none; }
  .uc-lane, .uc-axis { gap: 2px; }
  .uc-v { font-size: 0.56rem; }
  .uc-axis-m span { font-size: 0.62rem; }
  .uc-axis-d span { font-size: 0.6rem; }
  .uc-norec { font-size: 0.62rem; }
  b.uc-mk { width: 0.95rem; height: 0.95rem; font-size: 0.56rem; }
  .uc-moments { columns: 1; }
  .uc-share-key { gap: 0.2rem 0.9rem; font-size: 0.8rem; }
  .uc-ft-head { display: none; }
  .uc-ft-row { grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "name name name pages" "track track track track" "spark ch days last";
    row-gap: 0.2rem; column-gap: 0.7rem; padding: 0.45rem 0; }
  .uc-ft-name { grid-area: name; }
  .uc-ft-track { grid-area: track; }
  .uc-ft-pages { grid-area: pages; }
  .uc-ft-ch { grid-area: ch; }
  .uc-ft-days { grid-area: days; }
  .uc-ft-last { grid-area: last; }
  .uc-spark { grid-area: spark; height: 1rem; }
  .uc-m { display: inline; font-weight: 400; }
  .uc-ft-ch, .uc-ft-days, .uc-ft-last { font-size: 0.76rem; }
  .uc-heat { grid-template-columns: 1.9rem minmax(0, 1fr) 2.6rem; gap: 2px 0.3rem; }
  .uc-hx span { font-size: 0.54rem; }
  .uc-hrow, .uc-hx, .uc-hbars { gap: 1px; }
  .uc-hrow b { border-radius: 1px; }
  .uc-hy, .uc-hm { font-size: 0.7rem; }
  .uc-hm small { font-size: 0.62rem; }
  .uc-hm-h { font-size: 0.56rem; }
  .uc-sit-row { grid-template-columns: 3.6rem minmax(0, 1fr) 3.9rem; gap: 0.35rem; }
  .uc-sd { font-size: 0.68rem; }
  .uc-st { font-size: 0.7rem; line-height: 1.05; }
  .uc-st small { display: block; font-size: 0.62rem; }
  .uc-mid { display: none; }
  .uc-sit-key { margin-left: 0; }
  .uc-split-key { margin-left: 0; }
  .uc-o { grid-template-columns: minmax(0, 1fr) 2.6rem 2.6rem; grid-template-areas: "l p e" "f f f" "t t t"; row-gap: 0.25rem; }
  .uc-o-l { grid-area: l; }
  .uc-o-f { grid-area: f; line-height: 1.4; }
  .uc-o-t { grid-area: t; }
  .uc-o > .uc-o-n:nth-of-type(4) { grid-area: p; }
  .uc-o > .uc-o-n:nth-of-type(5) { grid-area: e; }
  .uc-o-head { grid-template-areas: "l p e"; }
  .uc-o-head span:nth-child(2), .uc-o-head span:nth-child(3) { display: none; }
  .uc-o-head span:nth-child(4) { grid-area: p; }
  .uc-o-head span:nth-child(5) { grid-area: e; }
  .uc-o-axis { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t"; }
  .uc-o-axis > span:not(.uc-o-ticks) { display: none; }
  .uc-o-axis .uc-o-ticks { grid-area: t; }
  .uc-wide { display: none; }
  .uc-narrow { display: block; }
  .uc-menus { columns: 1; }
  .uc-acct thead { display: none; }
  .uc-acct, .uc-acct tbody, .uc-acct tr, .uc-acct td { display: block; width: 100%; }
  .uc-acct tr { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
  .uc-acct tr:last-child { border-bottom: 0; }
  .uc-acct td { border: 0; padding: 0.12rem 0; }
  .uc-acct td.uc-acct-n { font-weight: 600; }
  .uc-acct td[data-l]::before { content: attr(data-l); display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin-top: 0.2rem; }
}

/* App Usage, round 2 (2026-10-17): the moments as labels on the weeks lanes; the biggest days; the menus in two plain columns. */
.uc-lane { position: relative; }
.uc-lane.uc-tagged { --rows: var(--rows-w, 0); padding-top: calc(var(--rows) * 38px + 8px); height: calc(54px + var(--rows) * 38px + 8px); }
.uc-lane-tall.uc-tagged { height: calc(92px + var(--rows) * 38px + 8px); }
.uc-pill { position: absolute; top: calc((var(--rows) - 1 - var(--r)) * 38px); z-index: 1; height: 32px; padding: 2px 7px; font-size: 0.66rem; line-height: 13px; white-space: nowrap; color: var(--ink); background: var(--card); border: 1px solid var(--border-strong); border-radius: 8px; }
.uc-pill b { display: block; font-weight: 700; }
.uc-lead { position: relative; flex: 1 1 auto; width: 1px; min-height: 4px; margin-bottom: 5px; background: var(--muted); }
.uc-lead::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 1px; height: calc(var(--r) * 38px + 14px); background: var(--muted); }
.uc-lead::after { content: ""; position: absolute; left: -2px; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.uc-tag-n { display: none; }
.uc-fu { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(6rem, 1fr) 4rem 3.4rem 3.4rem; column-gap: 1rem; align-items: center; }
.uc-fu-head { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); }
.uc-fu-head > span:nth-child(n+3) { text-align: right; }
.uc-fu-g { margin: 0.8rem 0 0.15rem; font-size: 0.92rem; }
.uc-fu-row { padding: 0.18rem 0; font-size: 0.88rem; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.uc-fu-bar { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.uc-fu-bar i { display: block; flex: none; height: 0.7rem; min-width: 2px; width: calc((100% - 3rem) * var(--w) / 100); border-radius: 0 3px 3px 0; background: var(--chart-en); }
.uc-fu-bar b { font-weight: 700; font-variant-numeric: tabular-nums; }
.uc-fu-num { text-align: right; color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.uc-acct.uc-made th:nth-child(1) { width: 30%; }
.uc-acct.uc-made th:nth-child(2) { width: 24%; }
.uc-acct.uc-made th:nth-child(3) { width: 15%; }
.uc-acct.uc-made th:nth-child(4) { width: 10%; }
.uc-acct.uc-made th:nth-child(5) { width: auto; }
.uc-made th:nth-child(n+3), .uc-made td:nth-child(n+3) { text-align: right; }
.uc-made td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.uc-made-sub { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 400; }
.uc-key { --need: 20rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin: 0 0 1rem; font-size: 0.8rem; color: var(--muted); }
.uc-key > span { flex: 0 1 calc((var(--need) - 100%) * 999); white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
.uc-key > span > :first-child { flex: none; margin: 0; }
.uc-key-note { margin: 0.6rem 0 0; font-size: 0.8rem; }
.uc-sub small { font-weight: 400; font-size: 0.78rem; margin-left: 0.35rem; }
.uc-acct.uc-bigdays th:nth-child(1) { width: 14%; }
.uc-acct.uc-bigdays th:nth-child(2) { width: 15%; }
.uc-acct.uc-bigdays th:nth-child(3) { width: 10%; }
.uc-acct.uc-bigdays th:nth-child(4) { width: auto; }
.uc-mcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.uc-mcol > .uc-sub { margin: 0.2rem 0 0; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.uc-mgroup { margin: 0.6rem 0 0; }
.uc-mgroup h4 { margin: 0 0 0.15rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.uc-mgroup ul { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; line-height: 1.45; }
.uc-mgroup li { display: flex; justify-content: space-between; gap: 1rem; max-width: 24rem; }
.uc-mgroup li b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) {
  .uc-tag-w { display: none; }
  .uc-tag-n { display: block; }
  .uc-lane.uc-tagged { --rows: var(--rows-n, 0); }
}
@media (max-width: 700px) {
  .uc-pill { font-size: 0.6rem; padding: 2px 6px; }
  .uc-fu-head { display: none; }
  .uc-fu-row { grid-template-columns: auto auto auto minmax(0, 1fr); grid-template-areas: "name name name name" "bar bar bar bar" "ch days last ."; row-gap: 0.15rem; column-gap: 0.8rem; padding: 0.4rem 0; }
  .uc-fu-name { grid-area: name; }
  .uc-fu-bar { grid-area: bar; }
  .uc-fu-bar i { width: calc((100% - 5.5rem) * var(--w) / 100); }
  .uc-fu-ch { grid-area: ch; }
  .uc-fu-days { grid-area: days; }
  .uc-fu-last { grid-area: last; }
  .uc-fu-num { text-align: left; font-size: 0.76rem; }
  .uc-made td:nth-child(n+3) { text-align: left; }
  .uc-made td.uc-made-n { display: inline-block; width: auto; margin-right: 1.4rem; vertical-align: top; }
  .uc-mcols { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .uc-bigdays td.uc-bd-t, .uc-bigdays td.uc-bd-p { display: inline-block; width: auto; margin-right: 0.9rem; }
  .uc-bigdays td.uc-bd-t::before, .uc-bigdays td.uc-bd-p::before { display: none; }
  .uc-bigdays td.uc-bd-none { display: none; }
}

/* Analytics chart palette (one set for the three dashboards) */
:root {
  --chart-fi: #3366aa;
  --chart-de: #bb8a26;
  --chart-sv: #2b9a86;
  --chart-en: #b04a3c;
  --chart-other: #c8c0b4;
  --chart-4: #947ec4;
  /* American and Canadian on Analytics > People, each its own (checked with the whole set for colour
     blindness): American the palette's lavender, Canadian a plum. On that page every colour is a
     nationality, the Generations band's charts included */
  --chart-am: #947ec4;
  --chart-ca: #7f4470;
  /* Where the library comes from (The Library): the church's own the app's maroon, then a warm tan, a
     muted green, a slate gray and a light gray - apart in lightness as well as in hue */
  --chart-own: #7a3b2e;
  --chart-lic: #d6b68e;
  --chart-pd: #557a5f;
  --chart-srk: #4e5a6b;
  --chart-none: #e4ded4;
}

/* Analytics > People (templates/analytics_people.html). The approved map and its
   table (rm-*): circles take the one chart palette, every other nationality a
   neutral dark enough to stand on the land. The rest of the page (pd-*): a pair
   of cards a row, each the same height. */
.rm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 1.25rem; align-items: stretch; margin-bottom: 1.25rem; }
.rm-row > .card { margin: 0; }
.rm-card .card-head h2, .pd-card .card-head h2 { font-size: 1.12rem; }
.rm-bul { margin: 0 0 0.7rem; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.45; }
.rm-bul li + li { margin-top: 0.12rem; }
.rm-bul li::marker { color: var(--muted); }
.rm-more { margin: 0.6rem 0 0; font-size: 0.85rem; }
.rm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin: 0 0 0.55rem; padding: 0; font-size: 0.8rem; color: var(--muted); }
.rm-legend li { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; flex: 0 1 calc((var(--need, 0px) - 100%) * 999); }
.rm-legend .rm-sw { margin: 0; }
.rm-c-fi { --rm-c: var(--chart-fi); } .rm-c-de { --rm-c: var(--chart-de); } .rm-c-sv { --rm-c: var(--chart-sv); }
.rm-c-en { --rm-c: var(--chart-en); } .rm-c-am { --rm-c: var(--chart-am); } .rm-c-ca { --rm-c: var(--chart-ca); } .rm-c-other { --rm-c: #a39a8f; }
.rm-map { display: block; width: 100%; height: auto; }
.rm-map-narrow { display: none; }
.rm-sea { fill: var(--paper); stroke: var(--border); }
/* North America beside the key on a desktop, Europe below at the full width */
.rm-na-row { display: flex; align-items: flex-start; gap: 1rem; margin: 1.1rem 0 0.6rem; }
.rm-na-row .rm-map-na { width: 56%; flex: none; }
.rm-na-row .rm-legend { order: 2; flex: 1; min-width: 0; margin: 0.15rem 0 0; }
.rm-legend-stack { flex-direction: column; flex-wrap: nowrap; gap: 0.1rem 0; }
.rm-legend-stack li { flex: none; white-space: normal; }
.rm-panel { paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.rm-panel-name { font-weight: 700; fill: var(--ink); letter-spacing: 0.01em; }
.rm-panel-sub { fill: var(--muted); }
.rm-sym { cursor: pointer; }
.rm-hit { fill: transparent; }
.rm-disc { fill: var(--rm-c); stroke: color-mix(in srgb, var(--rm-c) 62%, var(--ink)); stroke-width: 0.9px; }
.rm-ring { fill: none; stroke: color-mix(in srgb, var(--rm-c) 80%, var(--ink)); stroke-width: 1.4px; }
.rm-sym:hover .rm-disc, .rm-sym:focus .rm-disc { stroke: var(--ink); stroke-width: 2px; }
.rm-sym:focus { outline: none; }
.rm-sym:focus-visible .rm-hit { stroke: var(--accent); stroke-width: 2px; stroke-dasharray: 3 2; }
.rm-sym.is-sel .rm-disc { stroke: var(--ink); stroke-width: 2.4px; }
.rm-sym.is-dim, .rm-in.is-dim, .rm-out.is-dim, .rm-small.is-dim, .rm-leader.is-dim { opacity: 0.28; }
.rm-lead { stroke: var(--muted); stroke-width: 0.8; }
.rm-leader { stroke: #8a7f72; stroke-width: 0.7; }
.rm-home { fill: var(--muted); }
.rm-in { text-anchor: middle; pointer-events: none; fill: var(--ink); }
.rm-in.rm-in-light { fill: #ffffff; }
.rm-in-name { font-size: 10.5px; font-weight: 600; }
.rm-in-fig { font-size: 12.5px; font-weight: 700; }
.rm-in-sec { font-size: 9.5px; font-weight: 600; }
.rm-map-narrow .rm-in-name { font-size: 9.5px; }
.rm-map-narrow .rm-in-fig { font-size: 11px; }
.rm-map-narrow .rm-in-sec { font-size: 8.5px; }
.rm-out { fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.rm-out-fig { font-weight: 700; }
.rm-small { fill: #5d5449; paint-order: stroke; stroke: var(--paper); stroke-width: 2.6px; stroke-linejoin: round; pointer-events: none; }
.rm-small-fig { font-weight: 700; }
.rm-nw { white-space: nowrap; }
.rm-sw { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: -0.05rem; flex: none; background: var(--rm-c); }
.rm-h3 { font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; margin: 0.85rem 0 0.3rem; }
.rm-tail > summary { cursor: pointer; color: var(--accent); font-size: 0.84rem; padding: 0.35rem 0 0.1rem; }
.rm-tail-list { list-style: none; margin: 0.35rem 0 0.2rem; padding: 0; columns: 3 9rem; column-gap: 1.2rem; font-size: 0.84rem; }
.rm-tail-list li { break-inside: avoid; padding: 0.08rem 0; }
.rm-table tfoot td { border-bottom: 0; padding-left: 0; }
.rm-table-wrap { overflow-x: auto; }
.rm-table { width: auto; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.rm-table th, .rm-table td { padding: 0.28rem 0.55rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: baseline; }
.rm-table th:first-child { padding-left: 0; padding-right: 1rem; }
.rm-table th:last-child, .rm-table td:last-child { padding-right: 0; }
.rm-table thead th { font-size: 0.68rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1.2; vertical-align: bottom; hyphens: manual; }
.rm-th-sub, .rm-th-sub2 { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.7rem; }
.rm-table tbody th { font-weight: 400; white-space: nowrap; }
.rm-name { display: block; }
.rm-era { display: block; padding-left: 1.05rem; font-size: 0.75rem; color: var(--muted); line-height: 1.25; }
.rm-table .num { text-align: right; }
.rm-table tbody .num { white-space: nowrap; }
.rm-2nd { color: var(--muted); }
.rm-table .rm-best { font-weight: 700; }
.rm-table tr.is-sel th, .rm-table tr.is-sel td { background: #f3ece2; }
.rm-gave-line { display: none; font-size: 0.78rem; color: var(--muted); white-space: normal; }
.rm-gave-line b { color: var(--ink); font-weight: 700; }
.rm-link { text-underline-offset: 2px; }
/* the Creator Registry's ?nationality= filter, named once in its search card */
.rm-filter-slot { display: contents; }
.rm-filter { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.3rem 0.2rem 0.6rem; border: 1px solid var(--border-strong); border-radius: 999px; background: #f3ece2; font-size: 0.85rem; white-space: nowrap; }
.rm-filter-x { font-size: 1rem; line-height: 1; color: var(--muted); padding: 0 0.3rem; text-decoration: none; }
.rm-filter-x:hover { color: var(--ink); }
.rm-filter-more { margin: 0.5rem 0 0; font-size: 0.82rem; }
.registry-nat-worklist .rights-gap-summary-text { margin: 0; padding-left: 1.25rem; }
.pd-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1.25rem; }
.pd-pair > .card { margin: 0; }
.pd-card { margin-bottom: 1.25rem; }
.pd-w { display: block; }
.pd-n { display: none; }
.pd-name { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(122, 59, 46, 0.45); text-underline-offset: 2px; }
.pd-name:hover { text-decoration-color: var(--accent); }
.pd-yr { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; margin-left: 0.15rem; }
.pd-venn-wrap { max-width: 440px; margin: 0.1rem auto 0.3rem; }
.pd-names { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; line-height: 1.65; }
.pd-names li { display: inline; }
.pd-names li[hidden] { display: none; }
.pd-names li:not(:last-child)::after { content: ", "; color: var(--muted); }
.pd-tr { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.pd-tr th, .pd-tr td { padding: 0.5rem 0.55rem 0.5rem 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pd-tr thead th { font-size: 0.68rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1.2; vertical-align: bottom; }
.pd-tr .num { text-align: right; padding-right: 1rem; width: 1%; white-space: nowrap; }
.pd-tr tbody th { font-weight: 600; white-space: nowrap; width: 1%; padding-right: 1rem; }
.pd-tr td:last-child { padding-right: 0; }
.pd-tr-line { display: flex; align-items: center; gap: 0.4rem; height: 1.2rem; }
.pd-tr-bar { display: flex; height: 0.9rem; border-radius: 3px; overflow: hidden; min-width: 3px; }
.pd-tr-a { display: block; height: 100%; }
.pd-tr-b { display: block; flex: 1; height: 100%; }
.pd-l-fi { background: color-mix(in srgb, var(--chart-fi) 26%, #ffffff); }
.pd-l-de { background: color-mix(in srgb, var(--chart-de) 30%, #ffffff); }
.pd-l-sv { background: color-mix(in srgb, var(--chart-sv) 28%, #ffffff); }
.pd-l-en { background: color-mix(in srgb, var(--chart-en) 26%, #ffffff); }
.pd-l-other { background: color-mix(in srgb, var(--chart-other) 45%, #ffffff); }
.pd-tr-n { font-weight: 600; color: var(--ink); }
.pd-tr-lead { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.pd-unit { display: none; }
.pd-tr-also { margin: 0.55rem 0 0; font-size: 0.86rem; color: var(--ink); }
.pd-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.pd-svg-n { display: none; }
/* the Generations band: every part a first nationality, in the map's own colours (rm-c-*, --rm-c) */
.pd-key { margin: -0.3rem 0 0.8rem; row-gap: 0.1rem; }
.pd-key.pd-key-n { display: none; margin: 0.1rem 0 0.7rem; }
rect.pd-seg { fill: var(--rm-c); }
.pd-cut { stroke: #ffffff; stroke-width: 2; }
.pd-col-nf { fill: url(#pd-hatch); stroke: #b9ad9b; stroke-width: 1; }
.pd-v { fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.pd-tick { fill: var(--muted); font-variant-numeric: tabular-nums; }
.pd-tickm, .pd-base { stroke: var(--border-strong); stroke-width: 1; }
.pd-br { fill: none; stroke-width: 1.3; }
.pd-br-k { stroke: var(--ink); }
.pd-br-t { font-weight: 600; }
.pd-br-t.pd-br-k { fill: var(--ink); stroke: none; }
.pd-defs { position: absolute; width: 0; height: 0; }
#pd-born .lb-answer { margin-bottom: 0.4rem; }
.pd-rows { list-style: none; margin: 0.2rem 0 0; padding: 0; max-width: 54rem; }
.pd-row { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr) 5.6rem; column-gap: 0.75rem; align-items: center; padding: 0.4rem 0; border-top: 1px solid var(--border); }
.pd-row:first-child { border-top: 0; }
.pd-row-lab { font-size: 0.9rem; }
.pd-bar { display: flex; height: 24px; border-radius: 3px; overflow: hidden; min-width: 0; }
.pd-g { display: flex; align-items: center; justify-content: center; min-width: 1px; font-style: normal; font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
/* a part's figure white or ink, whichever reads on its colour; shown only where the part is wide enough */
.pd-g.pd-seg { background: var(--rm-c); color: #fff; container-type: inline-size; }
.pd-g.pd-seg.rm-c-de, .pd-g.pd-seg.rm-c-sv, .pd-g.pd-seg.rm-c-am, .pd-g.pd-seg.rm-c-other { color: var(--ink); }
@container (max-width: 10.9px) { .pd-g-n.pd-d1 { visibility: hidden; } }
@container (max-width: 17.9px) { .pd-g-n.pd-d2 { visibility: hidden; } }
@container (max-width: 24.9px) { .pd-g-n.pd-d3 { visibility: hidden; } }
.pd-g.pd-rest { background: #ece6dd; }
.pd-row-v { font-size: 0.86rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-row-v b { color: var(--ink); font-size: 0.95rem; }
.pd-cap-row { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); column-gap: 0.75rem; margin: 0.1rem 0 0.1rem; max-width: 54rem; }
.pd-cap { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.pd-cap::after { content: " \2193"; }
.pd-supps { border-bottom: 1px solid var(--border); margin-top: 0.2rem; }
.pd-supp { border-top: 1px solid var(--border); }
.pd-supp-sum { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; row-gap: 0.2rem; padding: 0.55rem 0; font-size: 0.9rem; }
.pd-supp-sum::-webkit-details-marker { display: none; }
.pd-supp-sum::before { content: "\25B8"; color: var(--muted); font-size: 0.85em; width: 0.6rem; flex: none; }
.pd-supp[open] > .pd-supp-sum::before { content: "\25BE"; }
.pd-supp-sum:hover .pd-supp-name b { text-decoration: underline; }
.pd-supp-name { flex: none; width: 10.5rem; font-size: 0.95rem; }
.pd-supp-name .status-pill { font-size: 0.62rem; margin-left: 0.2rem; }
.pd-supps { --pd-bar: 9rem; }
.pd-supp-bar { display: inline-block; height: 0.75rem; min-width: 2px; margin-right: 0.45rem; border-radius: 2px; background: #b9ad9b; vertical-align: -0.05rem; }
.pd-supp-n { color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-supp-n b { color: var(--ink); font-weight: 700; }
.pd-supp > .pd-new { margin: 0 0 0.85rem 1.6rem; }
.pd-new { border-collapse: collapse; font-size: 0.88rem; width: auto; }
.pd-new th, .pd-new td { text-align: left; vertical-align: baseline; padding: 0.34rem 0.9rem 0.34rem 0; border-top: 1px solid var(--border); }
.pd-new thead th { border-top: 0; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-bottom: 0.2rem; }
.pd-new tbody th { font-weight: 600; white-space: nowrap; color: var(--ink); }
.pd-new td { padding-right: 0; line-height: 1.55; }
.pd-nm { white-space: nowrap; }
.pd-nm[hidden] { display: none; }
.pd-lists { scroll-margin-top: 1rem; }
.pd-list { margin: 0 0 1.25rem; border-color: var(--border-strong); scroll-margin-top: 1rem; }
.pd-list-head { flex-wrap: wrap; align-items: center; row-gap: 0.4rem; column-gap: 0.75rem; }
.pd-list-head h2 { font-size: 1.12rem; }
.pd-list-head h2 .rm-sw { width: 0.8rem; height: 0.8rem; margin-right: 0.45rem; vertical-align: 0; }
.pd-list-n { color: var(--muted); font-size: 0.9rem; }
.pd-list-acts { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-plist { list-style: none; margin: 0; padding: 0; columns: 3 15rem; column-gap: 1.75rem; font-size: 0.88rem; }
.pd-plist li { break-inside: avoid; padding: 0.3rem 0 0.32rem; border-bottom: 1px solid var(--border); }
.pd-plist li[hidden] { display: none; }
.pd-did { display: block; font-size: 0.8rem; color: var(--muted); }
.pd-tag { font-size: 0.74rem; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 0.4rem; margin-left: 0.3rem; white-space: nowrap; }
.pd-showall { margin: 0.7rem 0 0; }
#people-map { scroll-margin-top: 1rem; }
@media (max-width: 960px) {
  .rm-row, .pd-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rm-map-wide { display: none; }
  .rm-map-narrow { display: block; }
  .rm-na-row { flex-direction: column; gap: 0.55rem; }
  .rm-na-row .rm-legend { order: 0; }
  .rm-na-row .rm-map-na { width: 100%; }
  .rm-table .rm-gave { display: none; }
  .rm-gave-line { display: block; padding-left: 1.05rem; }
  .rm-table tbody th { white-space: normal; }
  .rm-name { display: inline; }
  .rm-era { display: inline; padding-left: 0; }
  .rm-era::before { content: " \00B7  "; }
  .rm-th-sub { display: inline; }
  .rm-th-sub::before { content: " \00B7  "; }
  .pd-w { display: none; }
  .pd-n { display: block; }
  .pd-svg-w { display: none; }
  .pd-svg-n { display: block; }
  .pd-key.pd-key-n { display: flex; }
  .pd-row { grid-template-columns: minmax(0, 1fr) 5.4rem; row-gap: 0.25rem; }
  .pd-row .pd-row-lab { grid-column: 1 / -1; }
  .pd-cap-row { grid-template-columns: minmax(0, 1fr); }
  .pd-cap-row > span:first-child { display: none; }
  .pd-nm { white-space: normal; }
  .pd-new tbody th { white-space: normal; width: 5.2rem; line-height: 1.3; }
  .pd-new th, .pd-new td { padding-right: 0.7rem; }
  .pd-list-acts { margin-left: 0; }
  .pd-supp-name { width: auto; }
  .pd-supps { --pd-bar: 6rem; }
  .pd-supp-n { flex-basis: 100%; padding-left: 1.6rem; }
  .pd-supp-old { display: block; }
  .pd-supp-dot { display: none; }
  .pd-supp > .pd-new { margin-left: 0; }
  /* a row per language: name and count on one line, the bar and its leader under them at full width */
  .pd-tr thead { display: none; }
  .pd-tr, .pd-tr tbody { display: block; }
  .pd-tr tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
  .pd-tr th, .pd-tr td { border-bottom: 0; padding: 0; width: auto !important; }
  .pd-tr .num { padding-right: 0; color: var(--muted); font-size: 0.84rem; }
  .pd-tr .pd-unit { display: inline; }
  .pd-tr-cell { grid-column: 1 / -1; margin-top: 0.3rem; }
}

/* WHAT A RECORDING IS, AND WHAT ITS BOOKLET PRINTS ABOUT EACH TRACK (user,
   2026-10-23, the album import): the description under a recording's title, a
   track's instrumental mark on its row, the credits' one Soloists row with its Edit list, the recorded
   Duration in a track view's head where no melody row carries it, and the
   Recordings shelf's category chip. (The credits' Soloists rows, each with its Edit list, are below.) */
.lv-book-desc { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--ink); line-height: 1.4; max-width: 62ch; }
/* A RECORDING'S FACTS ON ITS BOOK CARD (user, 2026-10-24, of "No. 64 · 2021 · Choral · Christmas": "how can this
   be rearranged to be more easily consumed at a glance?"): No. | Year | Style | Category in a row, each a small
   label over its value, as the card's own figures read; on a narrow screen they wrap. */
.lv-book-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.7rem; margin: 0.55rem 0 0; padding: 0; }
.lv-book-fact { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.lv-book-fact dt { font: 600 0.62rem/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lv-book-fact dd { margin: 0; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.lv-instr { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
/* THE SOLOISTS ROWS IN THE TABLE'S OWN COLUMNS (user, 2026-10-24, approving the drawing), a row per instrument or
   part: Soloists under Role with the row's instrument under it, the soloists across Name and Note in two short
   columns filled downwards (--solo-rows, set by the template), each a track number and the name, never broken.
   Its Edit list: a name, its x, + Add a soloist. */
.pub-solo-role { grid-column: 1; }
.pub-solo-list { grid-column: 2 / 4; display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(var(--solo-rows, 1), auto); column-gap: 1.8rem; row-gap: 0.1rem; min-width: 0; }
.pub-solo-one { display: grid; grid-template-columns: minmax(1.5rem, max-content) auto; column-gap: 0.35rem;
  align-items: baseline; white-space: nowrap; }
.pub-solo-one b { font-weight: 600; }
.pub-solo-tr { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.pub-solo-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.pub-solo-item .inline-form { margin: 0; display: flex; }
/* Each soloist's bin is the bin everywhere (user, 2026-10-24: "Should this 'x' be a trash can?"); + Add a soloist
   the outlined pill, set apart from the names by a thin rule ("right now it almost blends in with the name list"). */
.pub-solo-add { align-self: stretch; margin-top: 0.3rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.pub-solo-edit { position: relative; display: inline-block; }
.pub-solo-edit > summary { list-style: none; cursor: pointer; }
.pub-solo-edit > summary::-webkit-details-marker { display: none; }
.pub-solo-menu { position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 30; display: flex; flex-direction: column;
  align-items: flex-start; gap: 0.2rem; min-width: 13rem; padding: 0.45rem 0.65rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(43, 38, 32, 0.14); }
.pub-solo-menu .link-btn { text-align: left; white-space: nowrap; }
.fx-fig-heard { grid-column: 3 / 5; align-self: center; }
.fx-head-two .fx-fig-meter { grid-column: 3; }
.fx-head-two .fx-fig-heard { grid-column: 4; }
.sh-active { margin: 0 0 0.6rem; }
@media (max-width: 800px) {
  .pub-solo-role, .pub-solo-list { grid-column: auto; }
  .pub-solo-list { grid-auto-flow: row; grid-template-columns: max-content; grid-template-rows: none; }
}
@media (max-width: 46rem) {
  .fx-fig-heard, .fx-head-two .fx-fig-heard, .fx-head-two .fx-fig-meter { grid-column: 2; margin-top: 0.45rem; }
}
@media (max-width: 40rem) {
  .fx-fig-heard, .fx-head-two .fx-fig-heard, .fx-head-two .fx-fig-meter { grid-column: 1 / -1; }
}
/* A RECORDING'S CARD (user, 2026-10-23): a larger cover ("a bit larger"). */
/* And bigger again (user, 2026-10-24: "can the thumbnail be a bit bigger?"): about the height of the title,
   description and facts beside it; a phone keeps 5rem. */
.lv-cover.lv-cover-rec { height: 6.5rem; max-width: 6.5rem; }
@media (max-width: 46rem) {
  .lv-cover.lv-cover-rec { height: 5rem; max-width: 5rem; }
}
/* A RECORDING'S TRACK ROW (user, 2026-10-23, approved as drawn; 2026-10-24: one credit line "makes it difficult
   to find the melody name and to differentiate the melody name and creator from the lyrics"): number | title and
   the words' author | the MELODY, drawn as a hymnal's Melody column draws it (.lv-tname, M: and A: beneath) |
   who performs | length | Edit; the key/mode is on the strip at the top (user, 2026-10-24: "the key column can be
   removed and the key can be put up on the track summary instead of the hymn number"). The performers (user, 2026-10-24: "every person/instrument receiving a
   credit for performing on that track") share the width with the title and the melody, each role on a line
   of its own, a wrapped name indented under its role. Performers and Key in one small sans, muted but
   for the performers' names; the length at the right in the card's figure type (r129, below). Each line sits on the title's
   baseline. On a phone, where the strip has no room for keys: the number, the title and its author with the
   length at the right, the melody under them, then the performers and the key. */
.lv-recording .lv-grid { grid-template-columns: 3.4rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 3.2rem; }
.lv-recording .lv-grid.open { grid-template-columns: 3.4rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 3.2rem 2.6rem; }
.lv-recording .lv-row { align-items: baseline; }
.lv-rmain { grid-column: 2; min-width: 0; }
.lv-rmel { grid-column: 3; min-width: 0; }
.lv-rmeta { display: contents; }
.lv-rmeta > * { grid-row: var(--dr); }
.lv-rmeta.lv-rmeta-none { display: none; }
.lv-rperf { grid-column: 4; min-width: 0; }
.lv-rperf > div { padding-left: 0.9em; text-indent: -0.9em; }
.lv-rperf > div + div { margin-top: 0.1rem; }
.lv-rkey { display: none; }
.lv-rlen { grid-column: 5; justify-self: end; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-recording .lv-edit { grid-column: 6; }
.lv-rperf, .lv-rkey, .lv-rlen { font: 400 0.8rem/1.4 var(--font-sans); color: var(--muted); }
.lv-rperf { color: var(--ink); }
/* The role a label, bold with its colon as the melody's M: is (user, 2026-10-24: "'Choir Men's Choir' reads
   strangely because it's not clear that the first word is a role name"). */
.lv-rperf .lv-cl { font-weight: 700; }
/* EACH TRACK'S LENGTH IN THE CARD'S FIGURE TYPE (user, 2026-10-25, of "A New Hymn - SHZ Supplement 1"'s rows:
   "on a recording that has no individual audio track files uploaded yet, can we get an estimated track length on
   each line? it should use the number of stanzas selected for that track" - drawn as r129, "yes"): the figure in
   the serif, ink, its figures tabular, at the column's right on the title's baseline; under it what it is,
   "estimated" or "as recorded", small and muted. The column is 3.2rem (2.8rem before) so "estimated" sits
   inside it rather than in the gap before the performers. */
.lv-rlen { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.lv-rlen-n { font: 600 1rem/1.15 var(--font-serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-rlen-c { font-size: 0.68rem; line-height: 1.3; color: var(--muted); }
/* A TRACK'S LENGTH in its Edit dialog (user, 2026-10-24). */
.lv-edit-length { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; flex-basis: 100%; }
.lv-edit-length input[name=length] { width: 5.5rem; }
.lv-edit-hint { font-size: 0.8rem; color: var(--muted); }
.lv-edit-value { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
/* AND WHO IMPROVISED ITS ACCOMPANIMENT (user, 2026-10-24: "my dialog doesn't give the improvisation option"): the
   Length and the Track details dialog's menu, a label each in one column, one Save after the last menu - the
   track's Introduction, under the accompaniment's (user, 2026-10-24). */
.lv-edit-length.lv-edit-track { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 0.6rem; }
.lv-edit-track select[name=improvised_by], .lv-edit-track select[name=intro] { max-width: 100%; min-width: 0; }
.lv-edit-length [data-refusal] { grid-column: 1 / -1; flex-basis: 100%; margin: 0; }
@media (max-width: 46rem) {
  .lv-edit-length.lv-edit-track { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .lv-edit-track .lv-edit-label + .lv-edit-value { margin-bottom: 0.35rem; }
}
.lv-rk { display: block; }
@media (max-width: 1150px) {
  .lv-recording .lv-grid { grid-template-columns: 3.2rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr) 3.2rem; }
  .lv-recording .lv-grid.open { grid-template-columns: 3.2rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr) 3.2rem 2.6rem; }
}
@media (max-width: 46rem) {
  .lv-recording .lv-grid { grid-template-columns: 2.6rem minmax(0, 1fr) max-content; }
  .lv-recording .lv-grid.open { grid-template-columns: 2.6rem minmax(0, 1fr) max-content max-content; }
  .lv-recording .lv-no-cell { grid-row: 1; }
  .lv-recording .lv-row > .lv-no-cell:has(.lv-trk-style) { grid-row: 1 / span 3; align-self: start; }
  .lv-rmain { grid-column: 2; }
  .lv-rlen { grid-column: 3; }
  .lv-rmel { grid-column: 2 / -1; }
  .lv-rmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.9rem; grid-column: 2 / -1; }
  .lv-rmeta.lv-rmeta-none { display: none; }
  .lv-rkey { display: block; }
  .lv-rk { display: inline; }
  .lv-rk + .lv-rk { margin-left: 0.35rem; }
  .lv-rkey.lv-sep { border-top: none; padding-top: 0; }
  .lv-recording .lv-row > .lv-edit { grid-row: 1; grid-column: 4; }
}
/* A RECORDING'S GROUP CREDIT (user, 2026-10-24: a choir's singers, an orchestra's players, "by part (SATB, etc.)").
   On the About card, a line a part under the group's row, across its columns before Tracks. In the credit dialog, the
   One person | A group choice; a group's dialog is wide - Name, Role and Note on one line, its one Instrument or part
   box gone - and its members are columns, a part each, four to a row or five past four (layoutCols sets --cols).
   A selector carries .stacked-form where the form's own label and field rules would otherwise win. */
/* THE MEMBERS AS A FOLD (user, 2026-10-24: names "a bit smaller ... not split onto two lines", a large group folded,
   parts "as sub-columns"; then "the totals here per part should disappear" once open, and the total read as a total).
   Shut: "44 members" in ink, then each part's count, then Show members. Open: Hide members, and a column a part (its
   heading carries its count) or, without parts, a roster in columns; a name one a line, never broken. */
.pub-credit-members { grid-column: 1 / 4; min-width: 0; font-size: 0.82rem; line-height: 1.45; padding: 0 0 0.2rem; }
.pub-credit-members > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.15rem 0.8rem; color: var(--muted); }
.pub-credit-members > summary::-webkit-details-marker { display: none; }
.pub-mem-total { color: var(--ink); font-weight: 600; }
.pub-mem-counts { display: inline-flex; flex-wrap: wrap; }
.pub-mem-count { white-space: nowrap; }
.pub-mem-count + .pub-mem-count::before { content: '\00b7'; margin: 0 0.45rem; }
.pub-credit-members[open] .pub-mem-counts { display: none; }
.pub-mem-toggle { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pub-mem-toggle::before { content: '\25B8\00A0'; display: inline-block; text-decoration: none; }
.pub-credit-members[open] .pub-mem-toggle::before { content: '\25BE\00A0'; }
.pub-mem-hide, .pub-credit-members[open] .pub-mem-show { display: none; }
.pub-credit-members[open] .pub-mem-hide { display: inline; }
.pub-mem-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.6rem 1.4rem; margin: 0.35rem 0 0.1rem; }
.pub-mem-head { display: block; margin-bottom: 0.15rem; padding-bottom: 0.1rem; border-bottom: 1px solid var(--border);
  font: 600 0.72rem/1.4 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pub-mem-head small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.pub-mem-cols ul, .pub-mem-roster { margin: 0; padding: 0; list-style: none; }
.pub-mem-roster { columns: 4 9.5rem; column-gap: 1.4rem; margin: 0.35rem 0 0.1rem; }
.pub-mem-cols li, .pub-mem-roster li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; break-inside: avoid; }
.stacked-form .credit-kind { display: inline-flex; flex-wrap: wrap; gap: 0.2rem; margin: 0 0 0.8rem; padding: 0.22rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card-alt); }
.stacked-form .credit-kind[hidden] { display: none; }
.stacked-form .credit-kind label { position: relative; margin: 0; padding: 0.3rem 0.85rem; border-radius: 999px;
  font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.stacked-form .credit-kind input { position: absolute; opacity: 0; pointer-events: none; width: auto; margin: 0; }
.stacked-form .credit-kind label:has(input:checked) { background: var(--card); color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.stacked-form .credit-kind label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.credit-kind small { font-weight: 400; color: var(--muted); }
#credit-dialog-overlay.is-group .modal-dialog { max-width: 66rem; width: 94vw; }
#credit-dialog-overlay.is-group .credit-dialog-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 0.8rem; }
#credit-dialog-overlay.is-group .credit-dialog-instrument { display: none; }
.credit-members-head { margin: 0.2rem 0 0.35rem; font-size: 0.92rem; }
.credit-member-cols { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0.9rem 0.7rem; align-items: start; }
.credit-member-col { display: grid; gap: 0.3rem; min-width: 0; }
.credit-member-col.is-dragging { opacity: 0.45; }
.credit-member-colhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.25rem; align-items: center; }
.credit-member-grip { color: var(--muted); cursor: grab; font-size: 0.85rem; letter-spacing: -0.2em; user-select: none; padding: 0.3rem 0.15rem; }
.stacked-form .credit-member-colhead input { width: 100%; min-width: 0; margin-top: 0; font-weight: 600; }
.credit-member-x { color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0 0.15rem; }
.stacked-form .credit-member-col textarea { width: 100%; margin-top: 0; min-height: 14rem; font: 400 0.86rem/1.45 var(--font-sans); resize: vertical; }
.stacked-form .credit-member-cols.many textarea { min-height: 6.5rem; }
.credit-member-count { font-size: 0.76rem; color: var(--muted); min-height: 1em; }
.credit-members-add { margin: 0.55rem 0 0; }
.credit-members-help { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 0.4rem; line-height: 1.4; }
@media (max-width: 800px) {
  .pub-credit-members { grid-column: 1 / -1; }
}
@media (max-width: 46rem) {
  #credit-dialog-overlay.is-group .credit-dialog-fields { grid-template-columns: minmax(0, 1fr); }
  .credit-member-cols { grid-template-columns: minmax(0, 1fr); }
  .stacked-form .credit-member-col textarea, .stacked-form .credit-member-cols.many textarea { min-height: 8rem; }
}
/* A CREDIT'S NOTE, smaller than the role, part and name beside it (user, 2026-10-24: "The text in the note
   column should be a smaller font"). */
.pub-credit-field.pub-credit-note { font-size: 0.82rem; line-height: 1.4; }
/* A CREDIT'S TRACKS IN ITS DIALOG (user, 2026-10-24: "I'd also like to be able to select which track(s) the credit
   applies to on this dialog"): a box a track, filled where the credit is on it; All and None beside the heading.
   label.credit-track outranks the form's own label rule; the box itself is the checkbox, kept for the keyboard.
   THE NUMBERS IN THE SANS, NOT BOLD (user, 2026-10-25, of Make slides' Numbers: "these numbers are hard to read"):
   the serif is Georgia on Windows, whose figures are old-style - the 7 and 9 hang below the line, the 1 and 0
   are short - and at 600 white on the accent they ran together.
   A CHOSEN NUMBER OUTLINED AND TINTED, NOT FILLED (user, 2026-10-25, of the Make button under them: "this button
   now looks like a selection option instead of an action"): the solid accent is the action's; a choice is the
   accent's outline and number, as the improvised detail's boxes are. Not chosen: white, the number muted. */
.credit-tracks { margin: 0.1rem 0 0.9rem; }
.credit-tracks-head { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.35rem; }
.credit-tracks-head .link-btn { font-size: 0.82rem; }
.credit-track-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.stacked-form label.credit-track, .sb-chips label.credit-track { position: relative; display: inline-block; margin: 0; cursor: pointer; }
.stacked-form .credit-track input, .sb-chips .credit-track input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.credit-track span { display: inline-block; min-width: 2.1rem; padding: 0.25rem 0.4rem; text-align: center;
  border: 1px solid var(--border); border-radius: 0.35rem; background: var(--card);
  font: 400 0.9rem/1.2 var(--font-sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.credit-track input:checked + span { background: #f7ebe6; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.credit-track input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
/* IMPROVISED THE ACCOMPANIMENT ON A PERSON'S CREDIT (user, 2026-10-24, the drawings approved together): FOLDED to
   one quiet line under the Tracks boxes ("many times the improvisation option will not apply and will clutter up
   this dialog"); OPENED, a DETAIL OF TRACKS ("this sort of makes the improvisation selection look more important
   than the track selection above it") - indented on a thin rule, its label a size smaller, its boxes small and
   boxless until chosen, chosen a thin accent outline and accent number, faded where the person is not ticked under
   Tracks. A box chosen for someone else carries a small dot (its hover names them), gone once chosen here. */
.credit-impro, .credit-other { margin-top: 0.5rem; }
.credit-impro-fold { margin: 0; font-size: 0.88rem; color: var(--muted); }
.credit-impro-fold .link-btn { font-size: 0.85rem; }
.credit-impro-fold b { color: var(--ink); font-weight: 600; }
.credit-impro.is-open, .credit-other.is-open { margin-left: 0.35rem; padding: 0.15rem 0 0.1rem 0.75rem; border-left: 2px solid var(--border); }
.credit-impro .credit-tracks-head, .credit-other .credit-tracks-head { font-size: 0.8rem; margin-bottom: 0.2rem; }
.credit-impro .credit-tracks-head .link-btn, .credit-other .credit-tracks-head .link-btn { font-size: 0.76rem; }
.credit-impro .credit-track-chips, .credit-other .credit-track-chips { gap: 0.15rem; }
.credit-impro .credit-track span, .credit-other .credit-track span { position: relative; min-width: 1.55rem;
  padding: 0.08rem 0.2rem; font-size: 0.78rem; border-color: transparent; background: none; color: var(--muted); }
.credit-impro .credit-track:hover span, .credit-other .credit-track:hover span { border-color: var(--border); }
.credit-impro .credit-track input:checked + span,
.credit-other .credit-track input:checked + span { border-color: var(--accent); background: none; color: var(--accent); }
/* PLAYS SOMETHING ELSE ON SOME TRACKS (user, 2026-10-24, the drawing approved "yes"): the improvised line's pattern -
   a row an instrument, its box short and its tracks the small boxes beside it, only the tracks the person is on. */
.credit-other-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin: 0 0 0.4rem; }
.stacked-form .credit-other-row input[name="other_inst"] { width: 10rem; margin: 0; padding: 0.2rem 0.4rem; font-size: 0.85rem; }
.credit-other-more { font-size: 0.8rem; }
/* THE ROLE MENU'S "OTHER..." BOX, under the menu (user, 2026-10-24). */
.stacked-form .credit-role-other { margin-top: 0.35rem; }
.credit-impro .credit-track.is-off { cursor: default; }
.credit-impro .credit-track.is-off span { opacity: 0.35; border-color: transparent; }
.credit-impro .credit-track.has-other span::after { content: ""; position: absolute; top: 2px; right: 2px; width: 4px;
  height: 4px; border-radius: 50%; background: var(--muted); }
/* THE ABOUT CARD'S NOTES a size smaller, as its credits' notes are (user, 2026-10-24: "This note text needs to
   be a smaller font size"). The About card only: a track's own notes keep theirs. */
.pub-about-body .note-text { font-size: 0.88rem; line-height: 1.5; }
/* A TRACK'S PERFORMERS AND ITS NOTE, sections of their own under a rule (user, 2026-10-24: "the performers row
   should be a separate section ... same for the notes field"). A performer a line - the role a bold label as on
   the track list, the instrument in brackets, this track's note for them after it, smaller ("The note on the
   performer for the track needs to be a smaller font size") - and the note's text a size smaller ("notes field
   text should be a smaller font size"). Edit performers stays at the top right of its list. */
.fx-names.fx-performers { align-items: flex-start; }
.fx-perf-list { display: grid; gap: 0.15rem; flex: 1 1 18rem; min-width: 0; }
.fx-perf-role { font-weight: 700; }
.fx-perf-note { margin-left: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.fx-note-row > .note-text { font-size: 0.88rem; line-height: 1.5; }

/* CREDIT ROLES, Admin > Lookup lists (user, 2026-10-24), as drawn: the categories on a recording - dragged by
   their grip, Edit in the row - New role, then the roles on a recording under a heading a category, and the roles
   on a publication. A role typed on a credit and not on the list reads on a tint. */
.credit-roles-page .cr-head { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
.credit-roles-page .cr-head-first { margin-top: 0.2rem; }
.credit-roles-page .data-table td, .credit-roles-page .data-table th { vertical-align: middle; }
.credit-roles-page select { padding: 0.2rem 0.4rem; font-size: 0.86rem; }
.credit-roles-page .cr-cats { max-width: 52rem; }
.credit-roles-page .cr-grip-col { width: 1.4rem; padding-right: 0; }
.credit-cat-grip { touch-action: none; }
.credit-cat-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.credit-roles-page .cr-off, .credit-roles-page .cr-use { color: var(--muted); }
.credit-roles-page .cr-yn { white-space: nowrap; }
.credit-roles-page .cr-use { font-size: 0.85rem; white-space: nowrap; }
.credit-roles-page .cr-acts { white-space: nowrap; text-align: right; }
.credit-roles-page .cr-acts > * + * { margin-left: 0.3rem; }
.credit-roles-page .cr-acts .inline-form { display: inline; }
.credit-roles-page .cr-band td { background: var(--card-alt); font: 600 0.68rem/1.6 var(--font-sans); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.credit-roles-page .cr-typed td { background: #fbf6ea; }
.credit-roles-page .cr-none { font-size: 0.85rem; }
.credit-roles-page .cr-edit-form { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; margin: 0; }
.credit-roles-page .cr-edit-form[hidden] { display: none; }
.credit-roles-page .cr-edit-form input[type="text"] { max-width: 14rem; }
.credit-roles-page .cr-edit-buttons { display: inline-flex; gap: 0.3rem; }
.credit-roles-page .cr-add { margin: 0.5rem 0 0.2rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.credit-roles-page .cr-add input[type="text"] { max-width: 14rem; }
.credit-roles-page .cr-check { font-size: 0.88rem; display: inline-flex; gap: 0.3rem; align-items: center; }
.credit-roles-page .cr-rule { border: 0; border-top: 1px solid var(--border); margin: 1.4rem 0 0.4rem; }
.credit-roles-page .sortable-status:empty { margin: 0; }
.cr-move-to { display: block; margin: 0 0 1rem; font-size: 0.92rem; }
.cr-move-to select { display: block; width: 100%; margin-top: 0.3rem; }

/* ONE DRAG GRIP (user, 2026-10-24: "why are the drag handle styles different?"). Every grip is two vertical
   ellipses; each class had set its own size, colour and letter-spacing, and the negative spacing pulled the two
   columns into one faint one. Last in the file so it wins over each class's own rule: one size, the two columns
   side by side, --muted, in ONE BOX: 1rem wide, the dots centred, 0.3rem above and below that negative margins
   cancel, so no line or row grows. POINTED AT, the accent on a soft tint filling that box ("they change color
   when I point at it? it doesn't look like it to me" - --ink on 2px dots was too faint to see) - the same shape
   on every grip. (.sortable-grip draws its dots as a background.) */
.pub-credit-grip, .lv-grip, .stanza-panel-grip, .credit-member-grip, .tpl-drag-handle, .pub-entry-drag-handle,
.credit-cat-grip, .wd-stanza-grip, .sh-ar-grip {
  font-size: 0.95rem; letter-spacing: normal; line-height: 1; white-space: nowrap; color: var(--muted);
  cursor: grab; user-select: none;
  display: inline-block; box-sizing: border-box; width: 1rem; text-align: center;
  padding: 0.3rem 0; margin-top: -0.3rem; margin-bottom: -0.3rem; border-radius: 4px;
}
.pub-credit-grip:hover, .lv-grip:hover, .stanza-panel-grip:hover, .credit-member-grip:hover, .tpl-drag-handle:hover, .pub-entry-drag-handle:hover,
.credit-cat-grip:hover, .wd-stanza-grip:hover, .sh-ar-grip:hover {
  color: var(--accent); background: rgba(122, 59, 46, 0.1);
}

/* THE WORKS LISTS - Hymns, Music and Works (user, 2026-10-25, of the Hymns list: "this page is a mess. How would
   you suggest cleaning this up?", then "Whatever changes are proposed for the hymns works' list should be applied
   to all works' lists"; r142 approved, "yes" - project_works_list_redesign; work_list.html, work-list.js). The
   page's name; one bar - the search box, the Filters pill, the filters applied as chips, Clear; one line a work,
   Title and its type | Creator | Appears in | the staff's alert mark; each line opening under its chevron to one
   column of label and value in three groups. EVERY CONTROL ONE HEIGHT, the List View band's (--pub-ctl-h): the
   pills, the chips and the search box, one size of type in all of them. */
.wl-pill { box-sizing: border-box; height: var(--pub-ctl-h); font-size: 0.88rem; line-height: 1; }
.btn.pub-pill-btn.wl-pill { padding-left: 0.95rem; padding-right: 0.95rem; }
.btn.btn-primary.pub-pill-btn.wl-pill { padding-left: 1.1rem; padding-right: 1.1rem; }
.wl-form { display: block; margin: 0 0 0.7rem; }
.wl-bar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.wl-bar input[name="q"] { box-sizing: border-box; height: var(--pub-ctl-h); width: 24rem; max-width: 100%;
  padding-top: 0; padding-bottom: 0; }
.wl-fbtn { gap: 0.4rem; }
.wl-fcount { display: inline-block; min-width: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 0.7rem; font-weight: 600; line-height: 1.45; text-align: center; }
/* A FILTER APPLIED: its name in bold, its value, and the x that takes it off - the whole chip is that link. */
.wl-chip { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid rgba(122, 59, 46, 0.45);
  border-radius: 999px; padding: 0 0.3rem 0 0.85rem; color: var(--ink); background: var(--card); white-space: nowrap; }
.wl-chip:hover { text-decoration: none; border-color: var(--accent); background: rgba(122, 59, 46, 0.06); }
.wl-chip b { font-weight: 600; color: var(--muted); }
.wl-chip .wl-cx { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  color: var(--accent); }
/* THE TABLE: one line a work, a long creator cut with an ellipsis; the widths fixed so the columns line up from
   one page to the next. */
.wl-table { table-layout: fixed; }
.wl-table col.wl-col-x { width: 2.1rem; }
.wl-table col.wl-col-t { width: 44%; }
.wl-table col.wl-col-in { width: 12.5rem; }
.wl-table col.wl-col-al { width: 2.4rem; }
.wl-table th, .wl-table td { padding: 0.42rem 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  vertical-align: baseline; }
.wl-table th { padding: 0.45rem 0.6rem; }
.wl-table td.wl-t { white-space: normal; }
.wl-table td.wl-t > a { font-weight: 500; }
.wl-table td.wl-t .wl-tl { margin-left: 0.5rem; white-space: nowrap; vertical-align: 0.08em; }
.wl-table td.wl-xc, .wl-table th.wl-xc { padding: 0.42rem 0 0.42rem 0.45rem; overflow: visible; }
.wl-table td.wl-in { color: var(--ink); }
/* The last row drawn keeps no rule under it: its opened row, hidden, is the table's last child. */
.wl-table tbody tr.wl-row:nth-last-child(2):not(.wl-open) > td { border-bottom: none; }
.wl-sep { color: var(--placeholder, #9a9187); padding: 0 0.35rem; }
/* THE CHEVRON: points right when the row is shut, down when it is open. */
.wl-x { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer; vertical-align: -0.3em; }
.wl-x:hover { background: #efe6da; color: var(--accent); }
.wl-x svg { transition: transform 0.12s; }
tr.wl-open .wl-x svg { transform: rotate(90deg); }
tr.wl-open .wl-x { color: var(--accent); }
tr.wl-open > td { border-bottom-color: transparent; }
/* THE ALERT COLUMN, at the far right, staff only: one mark whatever the alert; the opened row lists each. */
.wl-table th.wl-al, .wl-table td.wl-al { padding-left: 0; padding-right: 0.55rem; text-align: center; overflow: visible; }
.wl-alert { display: inline-grid; place-items: center; color: var(--accent); vertical-align: -0.25em; cursor: help; }
/* THE OPENED ROW: one column under the title, a label then its value, line under line, in three groups parted by
   a hairline. Each line one line, cut and whole on hover - but the themes, which wrap. */
tr.wl-more > td { background: #fbf8f3; padding: 0.1rem 0.6rem 0.75rem; white-space: normal; overflow: visible; }
.wl-one { max-width: 46rem; font-size: 0.88rem; }
.wl-g { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 0.3rem 0.8rem; align-items: baseline; min-width: 0; }
.wl-g + .wl-g { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #ece3d6; }
/* Edit relations at the right end of the joined works' lines, centred on them (r140). */
.wl-g.wl-gj { grid-template-columns: 8.6rem minmax(0, 1fr) auto; }
.wl-ed { grid-column: 3; grid-row: 1 / span var(--wl-rows, 1); align-self: center; justify-self: end; }
.wl-k { grid-column: 1; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wl-k .type-label { font-size: 0.68rem; letter-spacing: 0.06em; }
/* AN ARRANGEMENT'S KIND IN THE OPENED ROW (r143): in this narrow label column it takes a line of its own
   under ARRANGEMENT, and the dot that joins the two on one line elsewhere goes (_work_macros.html). */
.wl-k .type-kind, .fam-kind .type-kind { display: block; }
.wl-k .tk-dot, .fam-kind .tk-dot { display: none; }
.wl-v { grid-column: 2; line-height: 1.5; min-width: 0; }
.wl-v > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-v .wl-by { color: var(--muted); margin-left: 0.6rem; font-size: 0.84rem; }
.wl-v.wl-thv { white-space: normal; color: var(--muted); }
.wl-thv .wl-prim { color: var(--ink); font-weight: 600; }
.wl-v.wl-alerts > div { color: var(--ink); }
.wl-v.wl-alerts > div::before { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin: 0 0.5rem 0.1em 0;
  border-radius: 50%; background: var(--accent); }
.wl-places { list-style: none; margin: 0; padding: 0; }
.wl-places li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-places .style-icon { margin-right: 0.4rem; color: var(--ink); }
/* A book's or a recording's short name stands in for the full one where the line is tight. */
.wl-ns { display: none; }
@media (max-width: 900px) { .wl-nf { display: none; } .wl-ns { display: inline; } }
/* TODAY'S RELATION EDITOR, inside the opened row under the joined works' lines: each field under the opened row's
   own label, then Save - the one filled control, being the action. */
.wl-rel { grid-column: 1 / -1; display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: 0.4rem 0.8rem;
  align-items: center; margin-top: 0.45rem; }
.wl-rel input.wl-v { box-sizing: border-box; height: var(--pub-ctl-h); width: 100%; font-size: 0.88rem;
  padding-top: 0; padding-bottom: 0; }
.wl-rel .wl-v > .btn { justify-self: start; }
/* THE BAR'S LAST CHIP AND CLEAR WRAP TOGETHER (round 2): with several chips, Clear never sits alone on a line of
   its own. A long chip - several themes - is cut, whole on hover. */
.wl-bar-end { display: inline-flex; gap: 0.5rem; align-items: center; flex-wrap: nowrap; max-width: 100%; min-width: 0; }
.wl-chip { max-width: 30rem; min-width: 0; }
.wl-chip b { flex: 0 0 auto; }
.wl-chip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* THE FILTERS DIALOG (r142; work_list.html, work-list.js): the app's dialog, larger, its filters in labelled
   groups. A short choice is a row of pills, all in view, each a checkbox inside (several picks in one filter are
   any of them - the user, 11/9/2026); the themes a drop-down of checkboxes, a column a section, each box drawn as
   the row boxes are (a dialog's checkboxes are outlined choices too, 11/1/2026); Meter a box you type into, its
   matches under it, each meter picked a pill. A PICKED CHOICE
   OUTLINED AND TINTED, NOT FILLED (the user: "The action button looks like a selection pill") - Show N is the one
   filled control. A choice the other picks rule out stays in its place, dimmed, no number. Without a script the
   pill opens it by its address (#wl-fdlg); with one, the script does (.wl-js, .is-open). */
.wl-fdlg-overlay { z-index: 60; }
.wl-fdlg-overlay:not(:target) { display: none; }
.wl-fdlg-overlay.wl-js { display: none; }
.wl-fdlg-overlay.wl-js.is-open { display: flex; }
.modal-dialog.wl-fdlg { max-width: 64rem; width: calc(100% - 2rem); max-height: 92vh; padding: 1.1rem 1.6rem 1.15rem; }
.modal-dialog.wl-fdlg:focus { outline: none; }
.wl-fdlg .modal-head { margin-bottom: 0.35rem; }
.wl-fdlg .modal-head h3 { font-family: var(--font-serif); font-size: 1.25rem; }
.wl-grp { padding: 0.8rem 0 0.85rem; border-top: 1px solid var(--border); }
.wl-grp:first-child { border-top: 0; padding-top: 0.35rem; }
.wl-grp h4 { margin: 0 0 0.15rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); }
.wl-frow { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 0.4rem 0.9rem; align-items: start;
  margin-top: 0.5rem; }
.wl-fl { font-size: 0.9rem; color: var(--ink); line-height: var(--pub-ctl-h); white-space: nowrap; margin: 0; }
.wl-ch { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; min-width: 0; }
.wl-tog { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0 0.9rem;
  border-radius: 999px; border: 1px solid rgba(122, 59, 46, 0.32); background: var(--card); color: var(--ink);
  font-family: inherit; font-weight: 400; cursor: pointer; white-space: nowrap; }
.wl-tog > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wl-tog:hover { border-color: var(--accent); background: rgba(122, 59, 46, 0.06); }
.wl-tog:has(> input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-fdlg .wl-n { color: var(--muted); font-size: 0.76rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.wl-fdlg .wl-n:empty { display: none; }
.wl-tog.on { background: #f7ebe6; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.wl-tog.on .wl-n { color: var(--accent); }
/* A CHOICE'S COUNT IN PARENTHESES (user, 2026-10-25, of the theme switch: "I think these numbers need to be in parentheses -
   right now it's a bit confusing" - "Any of 75" read as seventy-five themes): every choice pill and the switch alike, one
   rule; the theme panel's column of counts and the theme button's number of picks stay bare. */
.wl-fdlg .wl-tog .wl-n:not(:empty)::before { content: "("; }
.wl-fdlg .wl-tog .wl-n:not(:empty)::after { content: ")"; }
.wl-tog.dim { opacity: 0.4; cursor: default; border-color: var(--border); background: var(--card); }
.wl-picked { padding-right: 0.3rem; }
.wl-unpick { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; padding: 0; border: 0;
  border-radius: 50%; background: none; color: var(--accent); cursor: pointer; }
.wl-unpick:hover { background: rgba(122, 59, 46, 0.1); }
/* THE THEME DROP-DOWN, and ANY | ALL | NONE beside it once a theme is picked (each a blank Venn, its region
   shaded): the panel under it the dialog's whole width, a column a section in Browse > Themes' order. */
.wl-thbar { gap: 0.5rem; }
.wl-thbtn { display: inline-flex; align-items: center; gap: 0.5rem; width: 22rem; max-width: 100%; padding: 0 0.75rem 0 0.95rem;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--card); color: var(--ink);
  font-family: inherit; font-size: 0.88rem; cursor: pointer; }
.wl-thbtn:hover { border-color: var(--accent); }
.wl-thbtn.has { border-color: var(--accent); background: #f7ebe6; color: var(--accent); font-weight: 600; }
.wl-thlab { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.wl-fdlg .wl-thbtn .wl-n { font-size: 0.76rem; font-weight: 600; color: inherit; opacity: 0.8; }
.wl-thbtn svg { flex: 0 0 auto; color: var(--muted); }
.wl-thbtn.has svg { color: var(--accent); }
.wl-modes { display: inline-flex; gap: 0.4rem; }
.wl-mode { gap: 0.45rem; padding: 0 0.85rem 0 0.55rem; }
.wl-mode .wl-venn { flex: 0 0 auto; color: var(--muted); }
.wl-mode.on .wl-venn { color: var(--accent); }
.wl-frow-th .wl-thpanel { grid-column: 1 / -1; }
.wl-thpanel { margin-top: 0.05rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  box-shadow: 0 8px 22px rgba(43, 38, 32, 0.13); padding: 0.65rem 0.75rem 0.75rem; }
.wl-thcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.2rem 0.7rem; }
.wl-thsec h5 { margin: 0 0 0.3rem 0.35rem; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wl-thm { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.14rem 0.35rem; margin: 0 0 0.06rem;
  border: 1px solid transparent; border-radius: 6px; font-size: 0.83rem; font-weight: 400; line-height: 1.3;
  color: var(--ink); cursor: pointer; }
.wl-thm input { margin: 0.09rem 0 0; flex: 0 0 auto; align-self: flex-start; }
.wl-thm > input.wl-ti { width: 0.9rem; height: 0.9rem; background-size: 0.66rem; }
.wl-thm .wl-thn { flex: 1; min-width: 0; }
.wl-fdlg .wl-thm .wl-n { font-size: 0.72rem; }
.wl-thm:hover { background: rgba(122, 59, 46, 0.05); }
.wl-thm.on { background: #f7ebe6; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.wl-thm.on .wl-n { color: var(--accent); }
.wl-thm.dim { opacity: 0.4; cursor: default; background: none; }
/* METER: the box you type into (starts-with, biggest first, six listed), the pick an outlined pill with its x. */
.wl-find { position: relative; flex: 0 1 19rem; }
.wl-find-in { box-sizing: border-box; height: var(--pub-ctl-h); width: 100%; font-size: 0.88rem; padding-top: 0; padding-bottom: 0; }
.wl-find-list { max-height: none; }
.wl-msel { box-sizing: border-box; height: var(--pub-ctl-h); max-width: 19rem; font-size: 0.88rem; padding-top: 0; padding-bottom: 0; }
.wl-msel[multiple] { height: auto; }
.wl-fact { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding-top: 0.95rem;
  border-top: 1px solid var(--border); }
.wl-fact .btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 900px) { .wl-thcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* THE LIST VIEW'S OWN FILTERS CHOOSE SEVERAL (the user, 11/10/2026: "yes"): the works lists' pills (.wl-tog) and
   ticked lines (.wl-thm) in its dialog, a row a filter; the long lists - the themes, the meters - in a box of
   their own that scrolls, three across (two on a phone). */
#filters-overlay .modal-dialog.lv-fdlg { max-width: 44rem; }
.lv-frows { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.lv-fpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.05rem 0.5rem; max-height: 12.5rem;
  overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 0.3rem; background: var(--card); }
@media (max-width: 700px) { .lv-fpick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .wl-frow { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .wl-fl { line-height: 1.3; }
  .wl-thcols { grid-template-columns: minmax(0, 1fr); }
}
/* THE KEYBOARD (round 3): every choice in the Filters dialog is reached and worked from the keyboard
   (work-list.js) and shows where the keyboard is - a pill by its outline (above), a theme's line by its border as
   well as its box's ring, the meter lit in the list under the box by the tint and a bar at its left. */
.wl-thm:has(> input:focus-visible) { border-color: var(--accent); }
.wl-find-list [role="option"][aria-selected="true"] { background: #f7ebe6; box-shadow: inset 3px 0 0 var(--accent); }
/* THE WORKS LISTS ON A TABLET AND A PHONE (round 3; the drawing drew a wide screen only). A touch screen has no
   hover, so what a wide screen cuts and shows whole on hover wraps instead: the creator under 900px (a creator's
   name can never go in a hover text - it may be masked), Appears in narrower there and wrapping so the creator
   has the room, and under 700px every line of the opened row. */
@media (max-width: 900px) {
  .wl-table td.wl-c, .wl-table td.wl-in { white-space: normal; }
  .wl-table col.wl-col-in { width: 9.5rem; }
}
/* UNDER 700px - the app's phone width, where the top bar and the agreements' tables turn - EACH WORK IS TWO LINES:
   its title and type, the staff's alert mark at the right end; under it the creator, and where it appears at the
   right. The chevron stays at the head of the row and the headings keep their two sorts, Title and Creator. The
   opened row takes the width under the title, each label over its value; Edit relations under the works it
   edits, and the relation editor's fields each under its label. Nothing scrolls sideways. */
@media (max-width: 700px) {
  .wl-bar input[name="q"] { width: 100%; font-size: 16px; }
  .wl-table, .wl-table thead, .wl-table tbody { display: block; }
  .wl-table colgroup { display: none; }
  .wl-table thead tr { display: flex; background: #f1ebe1; border-bottom: 1px solid var(--border); }
  .wl-table thead th { flex: 0 0 auto; border-bottom: 0; }
  .wl-table thead th.wl-xc { width: 2.1rem; box-sizing: border-box; }
  .wl-table thead th.wl-t { padding-right: 1.4rem; }
  .wl-table thead th.wl-in, .wl-table thead th.wl-al { display: none; }
  .wl-table tr.wl-row { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto auto;
    border-bottom: 1px solid var(--border); }
  .wl-table tr.wl-row.wl-open { border-bottom-color: transparent; }
  .wl-table tbody tr.wl-row:nth-last-child(2):not(.wl-open) { border-bottom: 0; }
  .wl-table tr.wl-row > td { display: block; border-bottom: 0; }
  .wl-table tr.wl-row > td.wl-xc { grid-column: 1; grid-row: 1 / span 2; padding-top: 0.55rem; }
  .wl-table tr.wl-row > td.wl-t { grid-column: 2 / 4; grid-row: 1; padding: 0.55rem 0.6rem 0.1rem; }
  .wl-table tr.wl-row > td.wl-al { grid-column: 4; grid-row: 1; padding: 0.55rem 0.6rem 0 0.1rem; text-align: right; }
  .wl-table tr.wl-row > td.wl-c { grid-column: 2; grid-row: 2; padding: 0 0.6rem 0.6rem; font-size: 0.86rem; }
  .wl-table tr.wl-row > td.wl-in { grid-column: 3 / 5; grid-row: 2; max-width: 10.5rem; padding: 0.05rem 0.6rem 0.6rem 0.3rem;
    white-space: normal; text-align: right; font-size: 0.82rem; color: var(--muted); }
  .wl-table tr.wl-more { display: block; }
  .wl-table tr.wl-more > td:first-child { display: none; }
  .wl-table tr.wl-more > td { display: block; padding: 0.1rem 0.6rem 0.85rem 2.7rem; }
  .wl-g, .wl-g.wl-gj { grid-template-columns: minmax(0, 1fr); row-gap: 0.05rem; }
  .wl-g > .wl-k, .wl-g > .wl-v { grid-column: 1; }
  .wl-g > .wl-k ~ .wl-k { margin-top: 0.5rem; }
  .wl-ed { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.6rem; }
  .wl-v > div, .wl-places li { white-space: normal; }
  .wl-rel { grid-template-columns: minmax(0, 1fr); row-gap: 0.2rem; }
  .wl-rel > .wl-k, .wl-rel > .wl-v { grid-column: 1; }
  .wl-rel > .wl-k ~ .wl-k { margin-top: 0.4rem; }
  .wl-rel > .wl-v:last-child { margin-top: 0.45rem; }
  .wl-rel input.wl-v { font-size: 16px; }
  /* THE FILTERS DIALOG FILLS THE SCREEN (below a test copy's banner, as the List View's sticky rows sit): its name
     and close x pinned at the top, Clear all and Show pinned at the bottom, the groups scrolling between. A long
     book's name wraps inside its pill rather than running out of it. */
  .wl-fdlg-overlay { top: var(--lv-stick, 0px); align-items: stretch; justify-content: stretch; }
  .modal-dialog.wl-fdlg { box-sizing: border-box; width: 100%; max-width: none; height: 100%; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; padding: 0 1rem; overscroll-behavior: contain; }
  .wl-fdlg .modal-head { position: sticky; top: 0; z-index: 3; margin: 0; padding: 0.85rem 1.6rem 0.65rem 0;
    background: var(--card); border-bottom: 1px solid var(--border); }
  .wl-fdlg .modal-head button[aria-label="Close"] { top: 0.75rem; right: -0.45rem; }
  .wl-fdlg .wl-grp:first-child { padding-top: 0.75rem; }
  .wl-fact { position: sticky; bottom: 0; z-index: 3; background: var(--card);
    padding: 0.7rem 0 calc(0.7rem + env(safe-area-inset-bottom, 0px)); }
  .wl-modes { flex-wrap: wrap; }
  .wl-ch .wl-tog { height: auto; min-height: var(--pub-ctl-h); max-width: 100%; white-space: normal; line-height: 1.25;
    padding-top: 0.3rem; padding-bottom: 0.3rem; }
  .wl-find { flex: 1 1 100%; }
  .wl-find-in, .wl-msel { font-size: 16px; }
}
/* A PAGE'S STATE, CENTRED UNDER ITS TITLE (user, 2026-10-25: "the status pill should be centered under the
   title" - and, of a Service Planner event and a feedback report, "Move those two and leave the book bar?" -
   "yes"): the line under a left-aligned page header, as the work page centres its pill under its title. */
.page-state { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin: -0.35rem 0 1.25rem; }
/* ... and as large as the work page's pill (.status-pill-lg), in each pill's own colours. */
.page-state > span { font-size: 0.92rem; padding: 0.3rem 1rem; letter-spacing: 0.05em; border-radius: 999px; }
/* ---- THE SYLLABLE EDITOR (r148f, approved 2026-10-26: "Syllables on the forms") ------------------------------
   One control in three places - the Syllabication page, each stanza panel on a hymn's Edit form, and the words step
   of Add a hymn (templates/_syllable_editor.html, static/js/syllable-editor.js). READ FIRST (r148b: "it looks super
   busy"): every line is the hymn's own text in its own face, a break a light hyphen, the count a small figure after
   the line. NOTHING TO TYPE INTO (r148c), so the words cannot change here: a word is clicked, and it opens large
   under its line (r148d) - a faint dot between two letters where a break could go, a drawn bar where one is; a
   break takes twice a dot's room, so each syllable stands apart (r148f: "right now it almost gets lost"). */
.syl-panel { margin-top: 0.6rem; border-top: 1px solid var(--border); padding-top: 0.55rem; }
.syl-panel > .form-section-title { margin: 0 0 0.2rem; }
.syl-panel-note { margin: 0 0 0.45rem; font-size: 0.82rem; }
.syl-summary { margin: 0.15rem 0 0.5rem; }
.syl-read { max-width: 34rem; }
.syl-read-stanza { margin: 0 0 0.6rem; }
.syl-read-stanza:last-of-type { margin-bottom: 0.3rem; }
.syl-stanza-head { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.25rem; }
.syl-stanza-head h4 {
  margin: 0; font: 600 0.72rem var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink);
}
.syl-stanza-head .syllable-total { font-size: 0.8rem; }
.syl-read-more { margin: 0.1rem 0 0; }
/* A LINE AND ITS COUNT. Every row carries the outline's geometry and only a line that misses its meter, or the one
   with a word open, draws it - so marking a line moves nothing sideways. */
.syl-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem; align-items: baseline; gap: 0.5rem;
  padding: 0.08rem 0.35rem 0.08rem 0.55rem; border: 1px solid transparent; border-radius: var(--radius);
}
.syl-row.syllable-row-off, .syl-row.is-open {
  align-items: center; margin: 0.15rem 0; padding: 0.3rem 0.35rem 0.3rem 0.55rem;
  border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px rgba(122, 59, 46, 0.08);
}
.syl-row > .syllable-tally { grid-column: 2; }
.syl-read-line { grid-column: 1; min-width: 0; font: 1rem/1.55 var(--font-serif); color: var(--ink); overflow-wrap: anywhere; }
.syl-read-n {
  grid-column: 2; justify-self: end; padding-right: 0.55rem;
  font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.syl-hy { color: var(--accent); opacity: 0.75; padding: 0 0.04em; }
/* THE SYLLABICATION PAGE: every stanza a card, the lines the card's width, "8 of 8" on every line. */
.syl-editor[data-syl-mode="page"] .syl-row { grid-template-columns: minmax(0, 1fr) 5.4rem; }
.syl-editor[data-syl-mode="page"] .syl-read-line { font-size: 1.02rem; line-height: 1.6; }
/* THE WHOLE WORD IS THE TARGET (r148d: clicking "between two narrow letters feels like it can be challenging"). */
.syl-word { cursor: pointer; border-radius: 3px; }
.syl-word:hover, .syl-word:focus-visible { background: rgba(122, 59, 46, 0.08); outline: none; }
.syl-word-on { background: rgba(122, 59, 46, 0.1); box-shadow: 0 0 0 2px rgba(122, 59, 46, 0.1); }
.syl-pop {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 0.45rem 0 0.15rem; padding: 0.55rem 0.7rem 0.6rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card);
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.12);
}
.syl-pop-word { display: flex; align-items: stretch; font: 500 1.75rem/1 var(--font-serif); color: var(--ink); }
.syl-pop-l { display: flex; align-items: center; padding: 0.2rem 0; }
/* No boxes and no "+" (r148e: "just the faint dots and dashes ... if I click on a dash, it is removed, and if I click
   on a dot it adds a dash"): under the pointer a dot or a bar only darkens. */
.syl-slot {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 0.8rem; margin: 0; border-radius: 5px; cursor: pointer;
}
.syl-slot.is-empty::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.35; }
.syl-slot.is-break { width: 2.2rem; margin: 0 0.1rem; }
.syl-slot.is-break::after {
  content: ''; position: absolute; left: 0.5rem; right: 0.5rem; top: 55%; height: 3px; border-radius: 2px;
  background: var(--accent);
}
.syl-slot.is-empty:hover::before, .syl-slot.is-empty:focus-visible::before { opacity: 0.85; width: 5px; height: 5px; }
.syl-slot.is-break:hover::after, .syl-slot.is-break:focus-visible::after { background: var(--ink); }
.syl-slot:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.syl-pop-done { margin-left: auto; }
@media (max-width: 560px) {
  .syl-pop-word { flex-wrap: wrap; font-size: 1.45rem; }
}
/* THE STANZA PANEL'S HEAD (Edit form): the stanza's count, red outlined when it is off its meter, and beside it
   "Show syllables", which opens the stanza's lines below its box whatever they come to. */
.stanza-panel-head .syl-head { margin-left: auto; display: inline-flex; align-items: baseline; gap: 0.55rem; }
.stanza-panel-head .syl-head-count {
  font-size: 0.78rem; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--muted);
  border: 1px solid transparent; border-radius: 999px; padding: 0.05rem 0.5rem;
}
.stanza-panel-head .syl-head-count.syllable-total-off { border-color: var(--error); color: var(--error); font-weight: 600; }
.stanza-panel-head .syl-toggle { font-size: 0.8rem; white-space: nowrap; }
.stanza-panel-head .syl-head:not([hidden]) + .scripture-pill { margin-left: 0.5rem; }
/* Every stanza's syllables at once: one link above the Edit form's stanzas, at their right edge. */
.syl-all { margin: 0 0 0.45rem; text-align: right; }
.syl-all-toggle { font-size: 0.82rem; }
.stanza-panel .syl-panel { margin: 0.55rem 0 0; }
/* THE WORK PAGE'S MARK beside "Full text": a word the hymn's own syllabication sets has gone from its line. */
.rights-pill.pub-flag-pill.wd-syl-review { margin-left: 0.6rem; vertical-align: 0.25em; text-decoration: none; font-size: 0.66rem; }

/* ---- THE RIGHTS & PERMISSIONS CARD, CANDIDATE D6 (approved 10/31/2026) -------------------------------------
   work_detail.html, built by _rights_chain in app.py; the timeline's leaders and the renewal dialog by
   rights-chain.js. The STATUS in the title row as a pill (B5: a card whose title-row summary is a status shows it as
   one; counts stay grey); the reason alone opening the body; THIS work in a box with the accent border, and under it
   the works it is made from along a timeline, on a tinted panel; each box a strip of countries, the US column bold, a
   value in green when free now and amber when not yet. Every class is rcd-, so nothing here reaches another card. */
.rcd-card > summary > .card-summary { color: inherit; }
/* THE STATUS PILL CENTRED ON THE HEADING'S LINE (the user, 10/31: it "needs to be vertically centered in the title
   row"). .card-head lines its items up on their baselines, which set the pill's words on the heading's baseline and
   hung its padding below; here the row centres them, and the summary holds the pill as a box of its own, so no line
   adds its descent beneath it. ON A PHONE THE ROW WRAPS: beside "Rights & permissions" the pill ran 44px past the
   card at 390px, so it takes a line of its own under the heading, at the right. */
.rcd-card > summary.card-head { align-items: center; flex-wrap: wrap; row-gap: 0.4rem; }
.rcd-card > summary > .card-summary { display: flex; align-items: center; }
.rcd-status { display: inline-block; font: 600 0.82rem var(--font-sans); padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; }
.rcd-status-ok { background: #dfe8f3; color: #2c4b73; }  /* Usage rights secured: blue, as the Secured badge */
.rcd-status-none { background: var(--status-published-bg); color: var(--status-published-fg); }
.rcd-status-out { background: #f6e3cf; color: #8a4b12; }
.rcd-status-unknown { background: #ece9e4; color: #5c564f; }  /* Date unknown: no one credited, nothing to date it from */
.rcd-reason { margin: 0.9rem 0; font-size: 0.98rem; color: var(--ink); }
.rcd-aside { font-size: 0.85rem; margin: -0.3rem 0 0.8rem; }
.rcd-chart { position: relative; display: flex; flex-direction: column; align-items: center; gap: 46px;
  background: var(--card-alt); border-radius: var(--radius); padding: 18px 16px; }
/* THIS box's row over the timeline's (z-index 3 over its 1): the panel of a "?" after one of its dates opens over the
   boxes beneath. */
.rcd-chart .rcd-top { width: 52%; position: relative; z-index: 3; }
.rcd-wires { position: absolute; left: 0; top: 0; pointer-events: none; }
/* THE TIMELINE UNDER THIS BOX (the user, 10/31/2026: "a timeline is simpler and more honest... show which version
   appeared when"; "leader lines from each box to its year"): one line in the panel's border colour with an arrowhead
   at its end, a dot per version at its first year - equal steps, never scaled by time - with the year and any
   revision, muted, after it. THIS work's dot larger and filled in the accent, with its year, no box in its column
   and no label: the box above names it (the user, 10/31: "this feels redundant"). A VERSION'S YEAR SITS ON THE SIDE OF THE LINE AWAY FROM ITS BOX (the user: "shouldn't the leader lines
   go all the way to the point on the line? if so, then shouldn't the year label on the line be on the opposite
   side?"), so each leader runs unbroken from the dot to its box: across, a piece's year above the line and its box
   below; THIS work's year below its dot, its box being the one above. rights-chain.js draws the leaders and the
   dashed join from the real positions.

   DOWN UNLESS IT FITS ACROSS: written for a phone - the line down the page, each piece's year to its left and its box
   to its right, THIS work's year in the box's place - and laid across (.rcd-tl-across) by rights-chain.js
   only where every box keeps 12rem and its pill stays on its label's row, so a crowded line (five versions at 1100px)
   runs down too. Down on a wide screen, it keeps to 40rem under THIS box. --k is a version's row down and its column
   across. */
/* --rcd-tl-years: the years' column down the page, as wide as "rev. 1984" and no wider - every rem it takes is the
   boxes' on a phone. */
.rcd-tl { --rcd-tl-years: 3.6rem; position: relative; z-index: 1; width: 100%; max-width: 40rem; display: grid;
  grid-template-columns: var(--rcd-tl-years) 18px minmax(0, 1fr); row-gap: 16px; padding-bottom: 22px; }
.rcd-tl-item { display: contents; }
.rcd-tl-item > * { grid-row: var(--k); }
/* The line through the middle of the dots' column, its arrowhead at the foot. */
.rcd-tl-line { position: absolute; left: calc(var(--rcd-tl-years) + 8px); top: 0; bottom: 10px; width: 2px;
  background: var(--border-strong); }
.rcd-tl-line::after { content: ''; position: absolute; left: -5px; bottom: -10px;
  border-top: 10px solid var(--border-strong); border-left: 6px solid transparent; border-right: 6px solid transparent; }
/* Each dot's centre 19px below its row's top, on the line; its year's first line beside it. */
.rcd-tl-dot { grid-column: 2; justify-self: center; align-self: start; margin-top: 12px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--card); border: 2px solid var(--border-strong); position: relative; z-index: 1; }
.rcd-tl-this .rcd-tl-dot { margin-top: 10px; width: 18px; height: 18px; background: var(--accent);
  border-color: var(--accent); }
.rcd-tl-text { grid-column: 1; align-self: start; margin-top: 10px; padding-right: 6px; display: flex;
  flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; min-width: 0; }
.rcd-tl-this .rcd-tl-text { grid-column: 3; align-items: flex-start; padding: 0 0 0 10px; text-align: left; }
.rcd-tl-item > .rcd-box { grid-column: 3; margin-left: 10px; }
/* A PILL THAT CANNOT SHARE ITS LABEL'S ROW, in a box down the page on a phone, sits under the label at the left, as a
   second line of the heading, rather than alone at the right of a row of its own. */
.rcd-tl:not(.rcd-tl-across) .rcd-head .rcd-badge { margin-left: 0; }
.rcd-tl-when { font: 600 0.82rem/1.35 var(--font-sans); color: var(--ink); }
/* A revision under the year where the year's column is narrow; after it, with its dot, where there is room. */
.rcd-tl-rev { display: block; font-weight: 400; color: var(--muted); white-space: nowrap; }
.rcd-tl-sep { display: none; }
.rcd-tl-this .rcd-tl-rev, .rcd-tl-across .rcd-tl-rev { display: inline; }
.rcd-tl-this .rcd-tl-sep, .rcd-tl-across .rcd-tl-sep { display: inline; }
.rcd-tl-this .rcd-tl-when { color: var(--accent); }
/* A version with no date at all, at the line's start: "Year unknown", quieter than a year (the user, 11/1). */
.rcd-tl-unknown .rcd-tl-when { font-style: italic; font-weight: 400; }
/* ACROSS: a column per version - a piece's year above the line, its dot on it, its box below; THIS work's year
   below its dot. */
.rcd-tl.rcd-tl-across { max-width: none; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 0; padding-bottom: 0; }
.rcd-tl-across .rcd-tl-line { position: relative; left: auto; top: auto; bottom: auto; width: auto; height: 2px;
  grid-row: 2; grid-column: 1 / -1; align-self: center; margin-right: 6px; }
.rcd-tl-across .rcd-tl-line::after { left: auto; right: -10px; top: -5px; bottom: auto; border: 6px solid transparent;
  border-right: 0; border-left: 10px solid var(--border-strong); }
.rcd-tl-across .rcd-tl-item > * { grid-column: var(--k); }
.rcd-tl-across .rcd-tl-dot { grid-row: 2; align-self: center; margin-top: 0; }
.rcd-tl-across .rcd-tl-text { grid-row: 1; align-self: end; align-items: center; margin: 0 0 6px; padding: 0;
  text-align: center; }
.rcd-tl-across .rcd-tl-this .rcd-tl-text { grid-row: 3; align-self: start; margin: 6px 0 0; }
.rcd-tl-across .rcd-tl-item > .rcd-box { grid-row: 3; margin: 28px 0 0; }
/* A SHARED DOT - an arrangement on its melody's, by the same people (the user, 10/31: "it feels like they should
   share a dot on the timeline") - is THIS work's, filled in the accent, with the melody's box where a piece's goes
   and its year where a piece's sits; across, the join from THIS box stops on the year (rights-chain.js). A line of
   one dot keeps to one box's width, under THIS box. */
.rcd-tl-shared .rcd-tl-text { grid-column: 1; align-items: flex-end; padding: 0 6px 0 0; text-align: right; }
.rcd-tl:not(.rcd-tl-across) .rcd-tl-shared .rcd-tl-rev { display: block; }
.rcd-tl:not(.rcd-tl-across) .rcd-tl-shared .rcd-tl-sep { display: none; }
.rcd-tl-across .rcd-tl-shared .rcd-tl-text { grid-column: var(--k); grid-row: 1; align-self: end;
  align-items: center; margin: 0 0 6px; padding: 0; text-align: center; }
.rcd-tl-across.rcd-tl-one { grid-template-columns: minmax(0, 24rem); justify-content: center; }
.rcd-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rcd-box.rcd-this { border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(43,38,32,0.08); }
.rcd-kind { font: 600 0.7rem var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rcd-head { display: flex; justify-content: space-between; align-items: center; gap: 0.3rem 0.6rem; flex-wrap: wrap; }
.rcd-head .rcd-kind { line-height: 1.2; }
.rcd-head .rcd-badge { flex: 0 0 auto; margin-left: auto; align-self: center; }
.rcd-this .rcd-kind { color: var(--accent); }
.rcd-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
a.rcd-title { color: var(--accent); text-decoration: none; }
a.rcd-title:hover { text-decoration: underline; }
.rcd-who { font-size: 0.86rem; color: var(--muted); white-space: pre-line; }
.rcd-badge { align-self: flex-start; font: 600 0.78rem var(--font-sans); padding: 2px 9px; border-radius: 999px;
  margin: 4px 0; cursor: help; }
/* Secured blue and LLC-owned lavender - the On record list's Permission granted and Work for hire pills - Public
   domain green, Outstanding amber (the user, 10/31). */
.rcd-badge-ok { background: #dfe8f3; color: #2c4b73; }
.rcd-badge-owned { background: #ece4f1; color: #553d6e; }
.rcd-badge-none { background: var(--status-published-bg); color: var(--status-published-fg); }
.rcd-badge-out { background: #f6e3cf; color: #8a4b12; }
.rcd-badge-unknown { background: #ece9e4; color: #5c564f; }
/* THIS box's buttons, with the badge they change: Permission granted..., Work for hire..., Unable to secure rights. */
.rcd-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 4px; }
.rcd-actions .btn { font-size: 0.8rem; }
/* A fact about the box, small and grey: written together, the renewal search. */
.rcd-fact { font-size: 0.8rem; color: var(--muted); cursor: help; }
.rcd-link { font-size: 0.8rem; }
.rcd-renewal-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.rcd-renewal-row .ico-pen { padding: 0.15rem; }
.rcd-renewal-row .rcd-renewal-record { font-size: 0.78rem; padding: 0.15rem 0.6rem; }
.rcd-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid #ece6dc; margin-top: 4px;
  padding-top: 7px; cursor: help; }
.rcd-strip.rcd-cols-1 { grid-template-columns: minmax(0, 1fr); }
.rcd-strip.rcd-cols-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.rcd-cell { display: flex; flex-direction: column; gap: 1px; padding-right: 8px; min-width: 0; }
.rcd-cell + .rcd-cell { border-left: 1px solid #ece6dc; padding-left: 10px; }
.rcd-country { font: 600 0.66rem var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.rcd-val { font-size: 0.86rem; }
.rcd-val.rcd-free { color: #2f6b42; }
.rcd-val.rcd-held { color: #8a4b12; }
.rcd-val.rcd-open { color: var(--muted); }
.rcd-us .rcd-country { color: var(--ink); }
.rcd-us .rcd-val { font-weight: 700; }
.rcd-note { font-size: 0.7rem; color: var(--muted); }
/* THE "?" AFTER A DATE (the user, 10/31/2026: "a little circle icon with a question mark in it that is clickable and
   throws a tooltip explaining the date as it relates to this work"; candidate DH3, approved): the drawn circled "?"
   (_edit_icons.html's qmark), muted until hovered or open, kept on the line of the date's last word (.rcd-dh-keep).
   ITS PANEL OPENS BELOW THE VALUE, so the date stays in sight, laid over the boxes beneath: THIS box's row is raised
   over the pieces' (above), and a piece's panel, z-index 20 in the pieces' row, over the boxes after it. About 19rem
   on the card's own surface, border and shadow, a pointer under the "?". rights-chain.js slides a panel that would
   run past the chart or the window back inside, the pointer staying under the "?"; with no script it opens here. */
.rcd-dh-keep { white-space: nowrap; }
.rcd-dh { position: relative; display: inline-block; margin-left: 5px; vertical-align: -0.34em; }
.rcd-dh > summary { display: block; list-style: none; cursor: pointer; color: var(--muted); line-height: 0;
  border-radius: 50%; }
.rcd-dh > summary::-webkit-details-marker { display: none; }
.rcd-dh > summary:hover, .rcd-dh[open] > summary { color: var(--accent); }
.rcd-dh > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rcd-dh .qmark { display: block; width: 1rem; height: 1rem; }
.rcd-dh-pop { position: absolute; z-index: 20; top: calc(100% + 9px); left: -1.1rem; width: 19rem;
  max-width: calc(100vw - 2rem); transform: translateX(var(--rcd-dh-x, 0px)); padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(43, 38, 32, 0.14); font: 400 0.84rem/1.45 var(--font-sans); color: var(--ink);
  white-space: normal; text-align: left; cursor: auto; }
/* The pointer: the "?"'s centre is 1.1rem and half its 1rem in from the panel's edge, less the panel's slide. */
.rcd-dh-pop::before { content: ''; position: absolute; top: -7px; left: calc(1.6rem - 6px - var(--rcd-dh-x, 0px));
  width: 11px; height: 11px; background: var(--card); border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong); transform: rotate(45deg); }
.rcd-dh-pop p { margin: 0 0 6px; }
.rcd-dh-pop p:last-child { margin-bottom: 0; }
.rcd-dh-head { font-weight: 700; }
.rcd-dh-note { color: var(--muted); }
.rcd-dh-pop .creator-hidden-note { font-style: normal; }
/* What is on record, folded: the agreements, each permission recorded by hand, anybody attached directly. */
.rcd-records { margin: 0.7rem 0 0; font-size: 0.85rem; }
.rcd-records > summary { cursor: pointer; color: var(--muted); }
.rcd-records > summary:hover { color: var(--accent); }
/* THE FOOTER: Attach a rightsholder, the provenance, Legal agreements as a plain link at the right. Attach's form,
   opened, takes a row of its own beneath. */
.rcd-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rcd-foot .rights-subform { margin-top: 0; }
.rcd-foot .rights-subform[open] { flex-basis: 100%; order: 10; }
.rcd-prov { font-size: 0.86rem; color: var(--muted); margin-left: 8px; }
.rcd-page-link { margin-left: auto; color: var(--accent); font-size: 0.9rem; text-decoration: none; }
.rcd-page-link:hover { text-decoration: underline; }
/* THE RENEWAL SEARCH'S DIALOG: the two answers as outlined choices (.outlined-choice, below) - then the day, the
   place, and the number where it was renewed. */
.rcd-renewal-dialog { max-width: 520px; }
.rcd-renewal-dialog .modal-head { align-items: flex-start; gap: 1rem; }
.rcd-renewal-dialog .modal-head h3 { line-height: 1.3; }
.rcd-choices { display: flex; gap: 0.6rem; margin: 0 0 0.9rem; flex-wrap: wrap; }
.rcd-choices .outlined-choice { flex: 1 1 10rem; }
.rcd-dialog-row { display: flex; gap: 0 1rem; flex-wrap: wrap; }
.rcd-dialog-row > label { flex: 1 1 11rem; }
.rcd-renewal-dialog [hidden] { display: none; }
@media (max-width: 760px) {
  .rcd-chart .rcd-top { width: 100%; }
  /* ON A PHONE the panel's sides give way to the boxes beside the timeline's years. */
  .rcd-chart { padding: 16px 10px; }
}
/* OUTLINED CHOICES: one of a few answers, each a box with its radio hidden inside it - a chosen one outlined in the
   accent on its tint (choices outlined, actions filled). Written for the renewal search's dialog and shared with the
   Written together question, so the app has one look for "pick one of these". The label also carries .checkbox-label,
   the app's mark for a label that wraps a radio rather than captioning a field, which keeps the stacked and guided
   forms' caption rules (block, upper case, muted, indented) off it; `label.` outranks .checkbox-label's own look. */
label.outlined-choice { position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.3rem; margin: 0; padding: 0.55rem 0.8rem; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font-size: 0.92rem; line-height: 1.3; text-transform: none;
  letter-spacing: normal; text-indent: 0; cursor: pointer; }
.outlined-choice input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
label.outlined-choice:hover { border-color: var(--accent); }
label.outlined-choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: #f7ebe6; color: var(--accent); font-weight: 600; }
label.outlined-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* WORDS AND MELODY WRITTEN TOGETHER, ASKED AS A QUESTION (the user, 10/31/2026: "more prominent and put in the form
   of a question"; Candidate Q2, approved). templates/_written_together.html draws it on Guided Intake's melody
   cards, the Edit form and Score intake: a band at the foot of the card or section, under a rule, the question in
   semibold, No and Yes (rare) as outlined choices, and Help me decide.

   HELP ME DECIDE OPENS IN THE FLOW, NOT OVER IT. The <details> is inline, so its summary sits on the choices' line;
   the panel inside it is a block, and a block inside an inline element takes a line of its own the full width of
   the row - so it opens under the choices, from the band's left edge, and pushes what follows down rather than
   covering fields that could not be reached again until it was closed. A container query takes the pointer off when
   the band is too narrow for the link to share the choices' line (a phone), where it would point at nothing. */
.wtq { margin: 1rem 0 0; padding: 0.85rem 0 0; border-top: 1px solid var(--border-strong); container-type: inline-size; }
.wtq[hidden] { display: none; }
.wtq-q { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
/* The gap before Help me decide is the choices' own trailing margin: where the link wraps under them (a phone) the
   margin stays at the end of the first line and the link starts flush at the left. */
.wtq-choices { display: inline-flex; gap: 0.6rem; margin-right: 0.9rem; vertical-align: middle; }
.wtq .outlined-choice { min-width: 7rem; }
.wtq-rare { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
label.outlined-choice:has(input:checked) .wtq-rare { color: inherit; }
.wtq-help { display: inline; }
.wtq-help > summary { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.35rem 0;
  vertical-align: middle; list-style: none; color: var(--accent); font-size: 0.9rem; cursor: pointer; }
.wtq-help > summary::-webkit-details-marker { display: none; }
/* Its "?" is drawn (_edit_icons.html's qmark, the rights card's too), so the mark sits at the ring's centre. */
.wtq-help > summary > .qmark { flex: 0 0 auto; display: block; width: 1.15rem; height: 1.15rem; }
.wtq-help > summary > span { text-decoration: underline; text-underline-offset: 3px; }
.wtq-help > summary:hover > span { text-decoration-thickness: 2px; }
.wtq-pop { position: relative; margin: 0.6rem 0 0.2rem; max-width: 34rem; padding: 0.75rem 1rem; background: var(--card);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(43, 38, 32, 0.14);
  font-size: 0.9rem; font-weight: 400; line-height: 1.45; color: var(--ink); }
/* The pointer, under the circled "?": two 7rem choices, their 0.6rem gap, the 0.9rem after them, half the circle. */
.wtq-pop::before { content: ''; position: absolute; top: -7px; left: calc(14.6rem + 0.9rem + 0.575rem - 6px); width: 11px;
  height: 11px; background: var(--card); border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong);
  transform: rotate(45deg); }
@container (max-width: 26rem) { .wtq-pop::before { display: none; } }
.wtq-defs { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.35rem 0.6rem; margin: 0 0 0.6rem; }
.wtq-defs dt { font-weight: 700; }
.wtq-defs dd { margin: 0; }
.wtq-more { margin: 0; padding: 0.6rem 0 0 1.2rem; border-top: 1px solid var(--border); color: var(--muted); }
.wtq-more li { margin: 0.2rem 0; }
.wtq-more strong { color: var(--ink); }
/* THE RIGHTS SECTION ON THE INTAKE FORMS (the user, 11/1/2026; templates/_rights_fields.html). On the one-page
   forms and on Guided Intake alike, Year first published, Country of first publication and Rights held by (the
   contact dialog's Rightsholder box) share one row. Then the US renewal, for
   every role that enters works: a band under a rule, as the Written together question is, its answers outlined
   choices. Its [hidden] wins over every display rule a label or a row brings. */
.rights-fields [hidden] { display: none !important; }
.rights-holder { margin-bottom: 0.85rem; }
.stacked-form .rights-holder > label.rights-holder-label { margin-bottom: 0; }
.guided-card .rights-holder > label.rights-holder-label { margin: 0; }
.guided-card .rights-holder .rh-pick-row { margin-top: 0; }
/* The box keeps a name's width; "+ New contact" goes under it rather than squeezing it (a phone). */
.rights-holder .rh-pick-row { flex-wrap: wrap; }
.rights-holder .rh-pick-row > input.rh-pick-input { flex: 1 1 12rem; }
.rights-renewal { margin: 0.15rem 0 0.85rem; padding: 0.85rem 0 0; border-top: 1px solid var(--border-strong); }
.rights-renewal-q { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.rights-renewal-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.85rem; }
.rights-renewal-choices .outlined-choice { min-width: 8.5rem; }
.rights-renewal-row { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.rights-renewal-row > label { flex: 2 1 14rem; min-width: 0; }
.rights-renewal-row > label.rights-renewal-on { flex: 0 1 11rem; }
.rights-renewal-row > label.rights-renewal-number { flex: 1 1 10rem; }
.guided-card .rights-renewal { margin-bottom: 0; }
.guided-card .rights-renewal-row > label { margin: 0 0 0.75rem; }
.guided-row.rights-row { row-gap: 0; }
/* ONE ROW ON THE ONE-PAGE FORMS TOO (the user, 11/1/2026: "can't these all go on one row?"): the year narrowest,
   Rights held by widest, tops aligned; one column on a phone, as every form grid. */
.form-grid.rights-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 5fr); align-items: start; }
@media (max-width: 700px) { .form-grid.rights-row { grid-template-columns: minmax(0, 1fr); } }
/* Tops aligned, not feet (an add box's rows align their feet): the line under Rights held by must not lift the year
   and the country off its box. */
.guided-addbox .guided-row.rights-row { align-items: start; }
/* GUIDED: the year a year's width, the country and the holder sharing the rest; one box per work, headed by it. */
.guided-row.rights-row > .rights-holder { flex: 2 1 18rem; min-width: 0; margin: 0.75rem 0; }
.rights-work .guided-way-title .rights-work-name { font-weight: 400; }
/* Rights held by, in free-text mode: one quiet line under the box - on record, or kept as typed - not the contact
   dialog's card. */
.rh-card.rh-card-free { margin-top: 0.3rem; padding: 0; background: none; border: 0; font-size: 0.85rem;
  color: var(--muted); }
/* THE LINE UNDER AN EMPTY COUNTRY BOX (11/1/2026): who decides American or foreign instead - quiet, in sentence
   case under an upper-case label. On Guided Intake the whole line starts where the box's text does, as the
   caption above it does: the caption's text-indent, inherited, moved its first line alone. */
.rights-country-why { display: block; margin-top: 0.3rem; font-size: 0.85rem; font-weight: 400; line-height: 1.35;
  letter-spacing: normal; text-transform: none; color: var(--muted); }
.guided-card .rights-country-why { padding-left: calc(0.55rem + 1px); text-indent: 0; }
@media (max-width: 700px) { .rights-renewal-choices .outlined-choice { flex: 1 1 auto; min-width: 7rem; } }
/* THE RIGHTS CARD'S RIGHTSHOLDER LINES (the rights holdings model, stage 2; drawing version 4, approved 11/1/2026):
   THIS box's shares - the part as its credit prints it, muted, and under it who holds it, the pen and, on the last
   line, the circled +. */
.rcd-shares { list-style: none; margin: 1px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.rcd-share { display: flex; flex-direction: column; gap: 1px; font-size: 0.86rem; line-height: 1.4; }
.rcd-share-who { color: var(--muted); }
.rcd-share-held { color: var(--ink); }
.rcd-share-held strong { font-weight: 600; }
.rcd-share-pd { color: #2f6b42; }
.rcd-share-gap { color: #8a4b12; font-weight: 600; }
.rcd-share-held .ico-pen { display: inline-block; vertical-align: -3px; margin-left: 5px; padding: 0.1rem; }
.rcd-share-held .ico-add { display: inline-block; vertical-align: -3px; margin-left: 2px; padding: 0.1rem; }
.ico-add:hover, .ico-add:focus-visible { color: var(--accent); opacity: 1; }
/* Its dialogs: Change rightsholder - CURRENT RIGHTSHOLDER beside NEW RIGHTSHOLDER, the change seen at a glance, Why
   and Source under both, one column on a phone - and Add another rightsholder, one column. */
.rcd-hold-dialog .rh-pick-label { display: block; font-size: 0.88rem; color: var(--muted); }
.rcd-hold-sub { margin: -0.35rem 0 0.9rem; font-size: 0.9rem; color: var(--muted); }
.rcd-hold-dialog:has(.rcd-hold-compare) { max-width: 760px; }
.rcd-hold-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); gap: 0.75rem;
  align-items: start; margin: 0 0 1rem; }
.rcd-hold-compare h4 { margin: 0 0 0.45rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); }
.rcd-hold-now { min-width: 0; }
.rcd-hold-now-name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.3em; min-height: 2.2rem;
  box-sizing: border-box; padding: 0.3rem 0.75rem; background: var(--card-alt); border: 1px solid transparent;
  border-radius: 6px; font-size: 0.95rem; }
.rcd-hold-arrow { align-self: start; padding-top: 1.6rem; color: var(--muted); font-size: 1.3rem; }
.rcd-hold-new .rh-pick-label { display: none; }
.rcd-hold-evidence { border-top: 1px solid var(--border); padding-top: 0.85rem; }
@media (max-width: 640px) { .rcd-hold-compare { grid-template-columns: minmax(0, 1fr); }
  .rcd-hold-arrow { padding: 0; justify-self: start; transform: rotate(90deg); } }
.rcd-hold-why .rh-pick-label { margin-bottom: 0.3rem; }
.rcd-hold-choices { flex-direction: column; gap: 0.4rem; }
.rcd-hold-choices .outlined-choice { flex: 0 0 auto; justify-content: flex-start; font-size: 0.86rem; padding: 0.45rem 0.8rem; }
.rcd-hold-dialog .modal-actions { align-items: center; }
.rcd-hold-dialog .modal-actions .rcd-hold-remove { margin-right: auto; font-size: 0.88rem; }
.rcd-dialog-row > label.rcd-hold-year { flex: 0 0 9rem; }
/* The picker's card: who administers the holder chosen. */
.rh-card-admin { color: var(--ink); }
/* Contact Info's Administered by box (stage 2): the record's own fact, under a rule, below the Deceased block. */
.rf-admin { border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem; }
/* Legal agreements (the rights holdings model, stage 2): an agreement's lines, one per share; a line whose party no
   longer holds it. */
.agr-share-who { color: var(--muted); }
.agr-share-moved { display: block; color: #8a4b12; font-weight: 600; font-size: 0.85rem; }
/* Legal agreements' To check list: the action line's look, a row per suggested rightsholder; on a phone each row a
   block, its Suggested and Now labelled. */
.agb-cta + .agk-cta { margin-top: -0.6rem; }
.agk-list td { vertical-align: baseline; font-size: 0.93rem; }
.agk-list th { white-space: nowrap; }
.agk-list .agk-ph { display: none; }
.agk-list .agk-work a { font-weight: 600; }
.agk-list .agk-work .type-label { margin-left: 0.3rem; vertical-align: 1px; }
.agk-list .agk-part { color: var(--muted); font-size: 0.88rem; }
.agk-list .agk-sugg strong { font-weight: 600; }
.agk-list .agk-sugg strong[title], .agk-list .agk-now span[title] { cursor: help; }
.agk-list td.agk-act { white-space: nowrap; text-align: right; }
.agk-list .agk-dismiss-form { display: inline; margin: 0; }
.agk-list .agk-dismiss { margin-left: 0.6rem; font-size: 0.88rem; color: var(--muted); text-decoration: underline; }
@media (max-width: 700px) {
  .agk-list thead { display: none; }
  .agk-list tr { display: block; padding: 0.55rem 0 0.6rem; border-bottom: 1px solid var(--border); }
  .agk-list tbody tr:last-child { border-bottom: 0; }
  .agk-list td { display: block; border: 0; padding: 0.08rem 0.3rem; }
  .agk-list td.agk-sugg, .agk-list td.agk-now { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: baseline; }
  .agk-list .agk-ph { display: block; color: var(--muted); font-size: 0.85rem; }
  .agk-list td.agk-act { text-align: left; padding-top: 0.4rem; }
}

/* ==== RECORDING PLANNING (the recording creation redesign, piece 1 - the user, 11/2/2026; drawn A1-A4, approved) ====
   templates/publications_list.html (the stage line) and templates/_recording_plan.html (the Planning card and its
   dialog). */
/* THE STAGE, said once, on a line of its own under the band's row, in place of the Draft pill: five stops on a rule,
   the one it is at in the Draft pill's colours, the sample review hung under In production. */
.pub-header-actions-row > .rc-stage { grid-column: 1 / -1; margin: 0.95rem 0 0.1rem; }
.rc-stage ol { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rc-stage li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 1.15rem; font-size: 0.84rem; line-height: 1.3; color: var(--muted); }
.rc-stage li::before { content: ""; position: absolute; top: 0.42rem; left: -50%; right: 50%;
  border-top: 1px solid var(--border-strong); }
.rc-stage li:first-child::before { display: none; }
.rc-stage li::after { content: ""; position: absolute; top: 0.12rem; left: 50%; width: 0.62rem; height: 0.62rem;
  margin-left: -0.31rem; box-sizing: border-box; border-radius: 50%; background: var(--paper);
  border: 1.5px solid var(--border-strong); }
.rc-stage li.is-now::after { background: var(--status-draft-fg); border-color: var(--status-draft-fg);
  box-shadow: 0 0 0 3px var(--status-draft-bg); }
.rc-stage li.is-now .status-pill { font-size: 0.74rem; padding: 0.16rem 0.7rem; letter-spacing: 0.07em; }
/* THE DOTS SIT ABOVE THE LINES (the user, 11/2: "the lines go into the dots"): a stop's line starts at the stop
   before it and is painted after that stop's dot, so it crossed the dot; each line now meets a dot at its edge. */
.rc-stage li::before { z-index: 0; }
.rc-stage li::after { z-index: 1; }
/* A DRAFT RECORDING'S STAGE on the Recordings page's Drafts card (the user, 11/2: "it'd be nice if somehow in the
   drafts section we could see what stage a recording is in"): the stage line's word under the name, in the accent
   as Home's In progress card shows a stage; a closed project muted. */
/* THE DRAFTS CARD GROUPED BY STAGE (a recording's, piece 3a): a quiet heading where a stage begins - its word in
   the accent, small capitals, its count muted, a rule under it. */
.sh-stage-h { display: flex; align-items: baseline; gap: 0.55rem; margin: 0.95rem 0 0; padding: 0 0 0.35rem 0.75rem;
  border-bottom: 1px solid var(--border-strong); font: 600 0.74rem/1.2 var(--font-sans); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); }
.sh-stage-h.first { margin-top: 0.55rem; }
.sh-stage-h .sh-stage-n { color: var(--muted); font-weight: 500; letter-spacing: 0; }
/* NOT APPROVED at the Recordings page's foot (the user, 11/3/2026: "a subtle link"): the link, and its dialog's list; a
   Manager's or an Admin's Reopen and bin at each line's end. */
.sh-closed-row { margin: 0.9rem 0 0; text-align: left; }
.link-btn.sh-closed-link { font-size: 0.82rem; color: var(--muted); }
.link-btn.sh-closed-link:hover, .link-btn.sh-closed-link:focus-visible { color: var(--accent); }
.sh-closed-dialog { width: 92vw; max-width: 38rem; }
.sh-closed-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.sh-closed-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.sh-closed-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 0.8rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.sh-closed-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sh-closed-n { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.sh-closed-acts { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.sh-closed-acts .inline-form { margin: 0; }
.sh-closed-bin { color: var(--muted); }
.sh-closed-bin:hover, .sh-closed-bin:focus-visible { color: var(--error); }
.rc-stage .rc-also { display: block; font-size: 0.72rem; color: var(--muted); }
/* A CLOSED PROJECT (piece 3a, Not approved): the Scope review stop reads Closed in the archived grey, "not approved"
   under it; the stops after it struck through. */
.rc-stage li.is-closed::after { background: var(--status-archived-fg); border-color: var(--status-archived-fg); }
.rc-stage li.is-closed .status-pill { font-size: 0.74rem; padding: 0.16rem 0.7rem; letter-spacing: 0.07em; }
.rc-stage li.is-off { text-decoration: line-through; opacity: 0.7; }
/* THE CURRENT STOP'S LINK to its round's review page while the round is open (a Manager's or an Admin's). */
.rc-stage .rc-stop-link { display: block; margin-top: 0.15rem; font-size: 0.74rem; white-space: nowrap; }
/* THE COMMITTEE'S DECISION AND NOTE under the stops, once a round is decided (piece 3a). */
.rc-stage .rc-decided { max-width: 46rem; margin: 0.6rem auto 0; text-align: center; font-size: 0.86rem; }
.rc-stage .rc-decided-note { font-style: italic; }
.rc-stage .rc-decided a { white-space: nowrap; margin-left: 0.3rem; }

/* THE ALBUM REVIEWS (piece 3a): a Recording reviewer's Recording Review list and the album's review page - the hymn
   review page's head and band, the scope document framed, one set of comments. */
.rr-table .rr-round { white-space: nowrap; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); }
.rr-table .rr-what { color: var(--muted); }
.rr-kicker { margin: 0 0 0.25rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); text-align: center; }
.rr-stage { margin: 0.6rem 0 0; text-align: center; }
.rr-stage .status-pill { font-size: 0.8rem; padding: 0.2rem 0.85rem; letter-spacing: 0.07em; }
.rr-decided p { margin: 0; }
.rr-note { margin: -0.6rem 0 1.2rem; }
.rr-scope-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rr-open { white-space: nowrap; }
.rr-frame { display: block; width: 100%; height: 72vh; min-height: 30rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: #e9e6e1; }
.rr-add textarea { flex: 1 1 auto; }
.rr-round-past { padding: 0.85rem 0; border-top: 1px solid var(--border); }
.rr-earlier .card-head + .rr-round-past { border-top: 0; padding-top: 0.35rem; }
/* A SAMPLE OR FINAL ROUND'S PLAIN ROW starts where a scope round's summary words do, after its marker. */
.rr-earlier .rr-round-row { padding-left: 1.05rem; }
.rr-round-past > summary { cursor: pointer; line-height: 1.5; }
/* BREATHING ROOM IN A PAST ROUND (the user, 11/2: "more breathing room here"): the summary, the committee's
   note and the comments each a step apart; the head band's pulled-up note margin is not for here. */
.rr-round-past[open] > summary { margin-bottom: 0.75rem; }
.rr-round-past .rr-note { margin: 0 0 1rem; padding-left: 1.05rem; }
/* THE DECIDED BAND'S LABEL sits over the right-aligned word, not centred past the column's edge. */
.rr-decided { align-items: flex-end; }
.rr-decided > .review-tool-label { left: auto; right: 0; transform: none; }
@media (max-width: 640px) {
  .rr-frame { height: 60vh; min-height: 22rem; }
}

/* A MINUTES:SECONDS BOX THAT IS NOT A LENGTH (duration-box.js): the short line under it. */
.duration-msg { display: block; margin-top: 0.2rem; font-size: 0.74rem; line-height: 1.25; color: var(--error);
  white-space: normal; }
input[data-duration][aria-invalid="true"] { border-color: var(--error); }

/* A PART NOT YET NAMED ON THE TRACK VIEW (piece 3a), read as the List View reads it. */
.fx-unnamed { font-style: italic; color: var(--muted); border-bottom: 1px dashed var(--border-strong); }

/* THE PLANNING CARD: the facts in three columns, the cost estimate beside them, its total in its heading. A
   disclosure in the About card's idiom: its pen while open, its summary line while shut. */
.rc-plan { padding: 1rem 1.25rem 1.05rem; margin-bottom: 0.9rem; }
.rc-plan-disc > summary { align-items: center; }
.rc-plan-disc > summary .rc-plan-right { margin-left: auto; }
.rc-plan-disc[open] > summary { padding-bottom: 0.6rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.card .rc-plan-disc h2 { font-size: 1.15rem; }
.rc-plan-disc .ico-pen { margin-left: -0.4rem; }
.rc-plan-disc:not([open]) > summary .ico-pen { display: none; }
.rc-plan-disc[open] > summary .rc-plan-sum { display: none; }
.rc-plan-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0 1.6rem; }
.rc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem 1.4rem; margin: 0;
  align-content: start; }
.rc-fact { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.rc-fact dt { font: 600 0.62rem/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rc-fact dd { margin: 0; font-size: 0.95rem; line-height: 1.35; color: var(--ink); }
.rc-fact.wide { grid-column: span 2; }
.rc-fact.full { grid-column: 1 / -1; }
.rc-fact .rc-desc { font-size: 0.9rem; line-height: 1.45; max-width: 52rem; }
.rc-fact .nw, .rc-plan-sum .nw, .rc-plan-costs .nw { white-space: nowrap; }
.rc-fact .rc-notes { white-space: pre-line; }
.rc-unset { color: var(--muted); }
.rc-costs { border-left: 1px solid var(--border); padding-left: 1.4rem; min-width: 0; }
.rc-costs-head { display: flex; align-items: baseline; gap: 0.55rem; margin-bottom: 0.25rem; }
.rc-costs-head .rc-k { font: 600 0.62rem/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rc-costs-head .rc-sum { font: 600 1.2rem/1.2 var(--font-serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-cost-none { margin: 0.1rem 0 0; font-size: 0.95rem; }
.rc-cost-list { margin: 0; padding: 0; list-style: none; }
.rc-cost-list li { display: grid; grid-template-columns: minmax(0, 1fr) 3.9rem 3.9rem; align-items: baseline; gap: 0.5rem;
  padding: 0.17rem 0; font-size: 0.86rem; border-bottom: 1px solid var(--card-alt); }
.rc-cost-list li:last-child { border-bottom: 0; }
.rc-cost-list .ck { min-width: 0; color: var(--ink); }
.rc-cost-list .cn { display: block; color: var(--muted); font-size: 0.8rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.rc-cost-list .ca { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-cost-list .rc-cost-heads { font-size: 0.72rem; color: var(--muted); }
.rc-cost-list .rc-cost-sum { font-weight: 600; }
@media (max-width: 899.98px) {
  .rc-plan-body { grid-template-columns: minmax(0, 1fr); }
  .rc-costs { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.9rem; }
}
@media (max-width: 599.98px) {
  .rc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
  .rc-stage li { font-size: 0.74rem; }
  .rc-stage li.is-now .status-pill { font-size: 0.64rem; padding: 0.12rem 0.45rem; letter-spacing: 0.04em; }
  .rc-stage .rc-also { font-size: 0.66rem; }
  .rc-plan-disc > summary { flex-wrap: wrap; }
}

/* EDIT PLANNING DETAILS: a label beside each field (above it on a phone), the cost lines under their own heading. */
.rc-plan-dialog { max-width: 50rem; }
.rc-dlg-for { margin: -0.45rem 0 0.9rem; font-size: 0.88rem; color: var(--muted); }
.rc-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 0.9rem; align-items: center; }
.rc-l { font-size: 0.88rem; color: var(--muted); }
.rc-l.top { align-self: start; padding-top: 0.45rem; }
.rc-v { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; min-width: 0; }
.rc-v > input[type="text"], .rc-v > textarea { flex: 1 1 12rem; min-width: 0; }
.rc-v > textarea { width: 100%; resize: vertical; }
.rc-v select { max-width: 100%; }
.rc-v .rc-place { flex: 1 1 12rem; }
.rc-v .rc-year { width: 5.6rem; }
.rc-v .rc-when { flex: 1 1 12rem; }
.rc-item { display: inline-flex; align-items: center; gap: 0.1rem; }
.rc-item input[type="date"] { width: 10.2rem; }
/* THE ONE-CLICK x: crossed bars, small, beside what it takes away - no question asked; Save keeps it. */
.rc-x { position: relative; flex: none; width: 1.6rem; height: 1.6rem; padding: 0; margin: 0; border: 0;
  border-radius: 999px; background: none; color: var(--muted); font-size: 0; cursor: pointer; }
.rc-x::before, .rc-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.72rem; height: 1.5px;
  margin: -0.75px 0 0 -0.36rem; border-radius: 1px; background: currentColor; }
.rc-x::before { transform: rotate(45deg); }
.rc-x::after { transform: rotate(-45deg); }
.rc-x:hover, .rc-x:focus-visible { color: var(--accent); background: rgba(122, 59, 46, 0.08); }
/* AN ACTION IS A PLAIN ACCENT TEXT LINK (a state and an action never share a look - the release types beside it are
   outlined choices), as + Add part is. */
.rc-addlink { border: 0; background: none; padding: 0.1rem 0; color: var(--accent); cursor: pointer;
  font: 500 0.85rem/1.4 var(--font-sans); }
.rc-addlink:hover, .rc-addlink:focus-visible { text-decoration: underline; }
.rc-addlink[hidden] { display: none; }
/* release type: several may be chosen - outlined choices, a tick on the chosen */
label.outlined-choice.rc-multi { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
.rc-multi input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
label.rc-multi:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: #f7ebe6; color: var(--accent); font-weight: 600; }
label.rc-multi:has(input:checked)::after { content: "\2713"; margin-left: 0.15rem; }
label.rc-multi:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-costs-edit { margin-top: 1.15rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.rc-costs-edit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin-bottom: 0.45rem; }
.rc-costs-edit-head h4 { margin: 0; font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rc-cost-cols, .rc-cost-row { display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) 6.6rem 6.6rem 1.6rem;
  grid-template-areas: "kind note amt act x"; gap: 0.4rem 0.45rem; align-items: center; }
.rc-cost-cols { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; }
.rc-cost-cols > span:nth-child(3), .rc-cost-cols > span:nth-child(4) { text-align: right; padding-right: calc(0.55rem + 1px); }
.rc-cost-row { margin-bottom: 0.35rem; }
.rc-cost-row > select { grid-area: kind; min-width: 0; width: 100%; }
.rc-cost-row > .rc-note { grid-area: note; min-width: 0; width: 100%; }
.rc-cost-row > .rc-amt { grid-area: amt; }
.rc-cost-row > .rc-amt.rc-act { grid-area: act; }
.rc-cost-row > .rc-x { grid-area: x; }
.rc-amt { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding-left: 0.55rem; color: var(--muted); font-size: 0.95rem; }
.rc-amt input { border: 0 !important; width: 100%; min-width: 0; text-align: right; background: none;
  padding-left: 0.2rem !important; padding-right: 0.55rem !important; box-shadow: none !important; }
.rc-cost-add { margin-top: 0.3rem; }
/* THE TOTALS, UNDER THEIR COLUMNS (the user, 11/3/2026: "these columns don't line up"): the lines' own grid. */
.rc-cost-foot { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) 6.6rem 6.6rem 1.6rem;
  grid-template-areas: "add lab amt act x"; gap: 0.4rem 0.45rem; align-items: baseline; margin-top: 0.35rem;
  padding-top: 0.45rem; border-top: 1px solid var(--border); }
.rc-cost-foot .rc-cost-add { grid-area: add; margin-top: 0; justify-self: start; }
.rc-foot-l { grid-area: lab; text-align: right; font-size: 0.82rem; color: var(--muted); }
.rc-foot-n { grid-area: amt; text-align: right; padding-right: calc(0.55rem + 1px); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-foot-n.rc-act { grid-area: act; }
.rc-plan-dialog .modal-actions { margin-top: 1.1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
@media (max-width: 599.98px) {
  .rc-fields { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .rc-fields > .rc-v { margin-bottom: 0.55rem; }
  .rc-l.top { padding-top: 0; }
  .rc-cost-cols { display: none; }
  /* A PHONE: the kind, the note, then the two figures side by side, each saying which it is - the column heads are gone. */
  .rc-cost-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.6rem;
    grid-template-areas: "kind kind x" "note note ." "amt act .";
    padding-bottom: 0.45rem; border-bottom: 1px solid var(--card-alt); }
  .rc-cost-row > .rc-amt { position: relative; margin-top: 0.95rem; }
  .rc-cost-row > .rc-amt::before { content: attr(data-col); position: absolute; left: 0; top: -1.05rem;
    font-size: 0.72rem; color: var(--muted); }
  .rc-cost-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1.6rem; grid-template-areas: "add add ." "amt act ."; }
  .rc-foot-l { display: none; }
  .rc-foot-n::before { content: attr(data-col) " "; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
  .rc-item input[type="date"] { width: 9.6rem; }
}

/* ==== THE TRACKS OF A PLANNED ALBUM (the recording creation redesign, piece 2 - the user, 11/2/2026; drawn as
   rec_draw/B_tracks v3, approved) ==== templates/publications_list.html (the rows, the number box, + Add part's box,
   the Add track dialog), static/js/recording-tracks.js. The Track view's stage line is piece 1's (.rc-stage). */
.rc-stage-ppv { margin: 0.35rem 0 0.95rem; }
/* ADD TRACKS BY NUMBER: one box under the Tracks heading; what the last Add did on the line under it. */
.trk-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0.35rem 0 0.4rem;
  padding: 0 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.trk-bulk label { margin: 0; font: 600 0.85rem/1.3 var(--font-sans); color: var(--ink); }
.trk-bulk-ctl { display: inline-flex; gap: 0.4rem; align-items: center; }
.trk-bulk input.trk-bulk-n { width: 16rem; font-size: 0.9rem; padding: 0.3rem 0.55rem; }
.trk-bulk .btn-sm { padding: 0.32rem 0.95rem; }
.trk-bulk-done { flex-basis: 100%; margin: 0.1rem 0 0; font: 400 0.82rem/1.35 var(--font-sans); color: var(--muted); }
.trk-bulk-done .trk-ask { font-size: 0.82rem; margin-left: 0.4rem; }
/* THE ONE-CLICK x: small and grey, joined to the item's last word (inline, no space before it), red on hover. */
.trk-x { display: inline; padding: 0 0.15rem 0 0.3rem; font: 400 1rem/1 var(--font-sans); color: var(--placeholder);
  cursor: pointer; text-indent: 0; white-space: nowrap; }
.trk-x:hover, .trk-x:focus-visible { color: var(--error); }
.trk-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 2px; }
.lv-title + .trk-x { font-size: 1.05rem; }
.lv-cred .trk-x, .lv-rperf .trk-x { font-size: 0.95rem; }
/* IT NEVER PUSHES A WORD DOWN (the user, 11/3/2026, of an x alone under a title: "What can be done about this?"): the
   x hangs into the column gap, so a line breaks as it would without it. A phone has no gap: it stays on the word.
   AND KEEPS CLEAR OF THE NEXT COLUMN (the user, 11/3/2026: "The x and 'add part' are too close"): a planned album's columns
   stand further apart. */
@media (min-width: 46.01rem) {
  .lv-tl .trk-x, .lv-cred .trk-x { margin-right: -0.65rem; }
  .lv-recording.trk-plan .lv-grid { column-gap: 1.3rem; }
  .lv-recording.trk-plan .lv-grid.open { grid-template-columns: 3.4rem minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 0.8fr) 3.2rem 2.6rem; }
}
.lv-rperf .trk-it { white-space: nowrap; }
.lv-rperf .trk-line { display: block; text-indent: 0; }
/* A PART NOT YET NAMED: the part stands; the name is a click away. */
.trk-unnamed { border: 0; background: none; padding: 0; font: italic 400 0.8rem/1.4 var(--font-sans); color: var(--muted);
  border-bottom: 1px dashed var(--border-strong); cursor: pointer; text-indent: 0; }
.trk-unnamed:hover, .trk-unnamed:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
/* + Add part: an ACTION - a plain accent text link at the foot of the performers; its small box under it. */
.lv-rperf > div.trk-addpart-wrap { position: relative; padding-left: 0; text-indent: 0; margin-top: 0.3rem; }
.lv-rperf > div.trk-addpart-wrap:first-child { margin-top: 0; }
.trk-addpart { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer;
  font: 500 0.78rem/1.4 var(--font-sans); }
.trk-addpart:hover, .trk-addpart:focus-visible, .trk-addpart[aria-expanded="true"] { text-decoration: underline; }
/* + ADD LYRICS, under the melody's name where a track has no words (the user, 11/3/2026): + Add part's look, its own class - recording-tracks.js listens on that one. */
.trk-add-lyrics-wrap { margin: 0.15rem 0 0; padding: 0; text-indent: 0; }
.trk-add-lyrics { border: 0; background: none; margin: 0; padding: 0; min-width: 0; color: var(--accent); cursor: pointer; font: 500 0.78rem/1.4 var(--font-sans); }
.trk-add-lyrics:hover, .trk-add-lyrics:focus-visible { text-decoration: underline; }
.lv-rmain .trk-add-lyrics { padding: 0; }
.trk-ap { position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 6; width: 18.5rem; text-align: left;
  text-indent: 0; white-space: normal; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 26px rgba(43, 38, 32, 0.18); padding: 0.65rem 0.8rem 0.8rem;
  color: var(--ink); }
.trk-ap[hidden] { display: none; }
.trk-ap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.trk-ap-head h4 { margin: 0; font: 700 0.95rem/1.3 var(--font-serif); color: var(--ink); }
.trk-ap-head .link-btn { font-size: 1.15rem; line-height: 1; text-decoration: none; color: var(--muted); }
.trk-ap-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 0.6rem; align-items: center; }
.trk-ap-grid label { margin: 0; font: 600 0.8rem/1.25 var(--font-sans); color: var(--ink); }
.trk-ap-grid label small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.trk-ap-grid label[hidden], .trk-ap-grid input[hidden] { display: none; }
.trk-ap-grid select, .trk-ap-grid input { width: 100%; min-width: 0; font-size: 0.85rem; padding: 0.25rem 0.45rem; }
.trk-ap-foot { display: flex; justify-content: flex-end; margin-top: 0.6rem; }
/* THE LENGTH ESTIMATE TYPED BY HAND: only where nothing is calculated - a small m:ss box in the length's place. */
.lv-rlen.trk-est-form { margin: 0; }
.lv-rlen input.trk-est { width: 3.4rem; height: 1.45rem; padding: 0 0.3rem; font: 600 0.85rem/1.2 var(--font-serif);
  text-align: right; border-radius: 4px; border: 1px solid var(--border-strong); font-variant-numeric: tabular-nums; }
.lv-rlen input.trk-est::placeholder { font: 400 0.72rem/1.2 var(--font-sans); color: var(--placeholder); }
.lv-rlen input.trk-est + .lv-rlen-c { margin-top: 0.1rem; }
/* + ADD TRACK ON A RECORDING: a hymn number, Add new, and at its foot the quiet way to a song already in Precentor. */
.trk-add-dialog { max-width: 31rem; }
.trk-add-pane[hidden], .trk-add-dialog .trk-due[hidden], .trk-add-say[hidden], .trk-find-none[hidden] { display: none; }
.trk-add-l { display: block; margin: 0 0 0.3rem; font: 600 0.88rem/1.3 var(--font-sans); color: var(--ink); }
.trk-add-row { display: flex; gap: 0.5rem; align-items: center; }
.trk-add-row input { flex: 1 1 auto; min-width: 0; }
.trk-add-say { list-style: none; margin: 0.55rem 0 0; padding: 0; font-size: 0.84rem; line-height: 1.4; }
.trk-add-say li + li { margin-top: 0.15rem; }
.trk-add-say li.is-ok { color: var(--ink); }
.trk-add-say li.is-ok b { margin-right: 0.3rem; }
.trk-add-say li.is-not { color: var(--muted); }
.trk-add-dialog .trk-due { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0.75rem 0 0;
  font: 600 0.85rem/1.3 var(--font-sans); }
.trk-add-dialog .trk-due .muted { flex-basis: 100%; font-weight: 400; font-size: 0.78rem; }
.trk-add-or { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; padding-top: 0.85rem;
  border-top: 1px solid var(--border); }
.trk-add-foot { margin: 1rem 0 0; text-align: left; }
.trk-add-foot .link-btn, .trk-add-back .link-btn { font-size: 0.82rem; color: var(--muted); }
.trk-add-foot .link-btn:hover, .trk-add-back .link-btn:hover { color: var(--accent); }
.trk-add-back { margin: -0.3rem 0 0.6rem; }
#trk-find-q { width: 100%; }
.trk-find-results { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.6rem 0 0; max-height: 18rem;
  overflow-y: auto; }
.trk-song { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 0.4rem 0.65rem;
  cursor: pointer; font: inherit; color: var(--ink); }
.trk-song:hover { border-color: var(--border-strong); }
.trk-song.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; }
.trk-song-t { font-weight: 600; font-size: 0.9rem; }
.trk-song-m { font-size: 0.76rem; color: var(--muted); }
.trk-find-none { margin: 0.6rem 0 0; font-size: 0.85rem; }
@media (max-width: 46rem) {
  .trk-bulk input.trk-bulk-n { width: 12.5rem; }
  .trk-bulk label { flex-basis: 100%; }
  .trk-ap { position: static; width: auto; margin-top: 0.4rem; box-shadow: 0 4px 14px rgba(43, 38, 32, 0.14); }
  .trk-ap-grid { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .trk-ap-grid label { margin-top: 0.3rem; }
  .trk-ap-grid label small { display: inline; margin-left: 0.3rem; }
  .lv-rmeta > .lv-rperf { flex-basis: 100%; }
}
/* ==== THE SAMPLE AND FINAL ROUNDS (the recording creation redesign, piece 3b; drawn as rec_draw/A_planning
   sample_card and rec_draw/C2_final, approved 11/2/2026) ==== */
/* THE STAGE LINE'S "+ sample review" in the accent while one is running; the Drafts card says it under the name. */
.rc-stage .rc-also.is-on { color: var(--accent); font-weight: 600; }
.sh-sub.sh-sample { color: var(--accent); font-weight: 600; font-size: 0.78rem; }

/* THE ALBUM PAGE'S RECORDING REVIEW DIALOG (approved 11/3/2026: one button, a two-way switch): the switch, then the
   chosen half - its state at the left and the review page's link at the right, a row a track (its number, title,
   "Mix N, uploaded M/D/YYYY", the upload arrow and, a sample, the bin), "+ Add a sample recording" a plain link, the
   foot note, and the filled Send to sample review at the half's foot, right. */
.modal-dialog.rr-audio-dialog { max-width: 640px; }
.sr-half[hidden] { display: none; }
.sr-half .sr-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 0.3rem 1rem; margin: 0 0 0.25rem; }
.sr-foot { display: flex; justify-content: flex-end; margin: 0.9rem 0 0; }
/* THE BULK UPLOAD (the user, 11/3/2026): the button beside + Add track, and its dialog, for final files and samples. */
.lv-head-acts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.rc-bulk-btn { display: inline-flex; align-items: center; gap: 0.35rem; }
.rc-bulk-btn svg { width: 0.95rem; height: 0.95rem; flex: none; }
.rc-bulk-dialog { width: 92vw; max-width: 44rem; }
.bu-drop { display: block; position: relative; margin: 0 0 0.8rem; padding: 0.55rem 0.8rem; border: 1px dashed var(--border-strong); border-radius: 8px;
  font-size: 0.85rem; color: var(--muted); text-align: center; cursor: pointer; }
.bu-drop b { color: var(--accent); font-weight: 600; }
.bu-drop.is-over { border-color: var(--accent); background: var(--accent-tint, rgba(122, 59, 46, 0.06)); }
.bu-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bu-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.2rem 0.8rem; align-items: center; padding: 0.32rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.bu-row select { width: 100%; font-size: 0.85rem; padding: 0.2rem 0.3rem; }
.bu-row.is-ask select { border-color: var(--error); }
.bu-file { overflow-wrap: anywhere; }
.bu-rep { grid-column: 2; font-size: 0.75rem; color: var(--muted); }
.bu-rep:empty { display: none; }
.bu-rep.is-bad { color: var(--error); }
.bu-left { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }
.bu-left ul { margin: 0.15rem 0 0; padding-left: 1.1rem; }
.bu-foot { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.9rem; }
@media (max-width: 46rem) { .bu-row { grid-template-columns: minmax(0, 1fr); } .bu-rep { grid-column: 1; } }
.sr-skip { display: block; margin: 0.45rem 0 0; }
.sr-skip .link-btn { font-size: 0.82rem; color: var(--muted); }
.sr-state { font-size: 0.88rem; color: var(--muted); }
.sr-state b { color: var(--ink); font-weight: 600; }
.sr-list { list-style: none; margin: 0.1rem 0 0; padding: 0; }
.sr-list li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; align-items: center;
  column-gap: 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.sr-no { color: var(--accent); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sr-t { font-weight: 600; min-width: 0; }
.sr-mix { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.sr-list li.is-none .sr-t { font-weight: 500; }
.sr-list li.is-none .sr-mix { font-style: italic; }
.sr-btns { display: inline-flex; align-items: center; min-width: 1.9rem; justify-content: flex-end; }
.sr-btns .inline-form { margin: 0; }
.bu-have { margin-top: 0.7rem; }
.sr-add { display: inline-block; margin-top: 0.65rem; border: 0; background: none; padding: 0; color: var(--accent);
  font: 500 0.88rem/1.4 var(--font-sans); cursor: pointer; }
.sr-add:hover { text-decoration: underline; }
.sr-empty { margin: 0.6rem 0 0; }
.sr-note { margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 599.98px) {
  .sr-list li { grid-template-columns: 1.8rem minmax(0, 1fr) auto; row-gap: 0.1rem; }
  .sr-list li .sr-mix { grid-column: 2; grid-row: 2; }
  .sr-list li .sr-btns { grid-column: 3; grid-row: 1 / span 2; }
}

/* THE REVIEW PAGE'S ROUNDS: a sample round's pill outlined (comments only, no decision); the note on an earlier
   round; a sample or final round in the list of the others, a line with its page's link. */
.status-pill.rr-pill-outline { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.rr-older { margin: 0.45rem 0 0; text-align: center; font-size: 0.86rem; color: var(--muted); }
.rr-round-row { line-height: 1.5; }
.rr-round-link { margin-left: 0.35rem; white-space: nowrap; font-size: 0.86rem; }
.rr-round-row .rr-note { margin: 0.4rem 0 0; padding-left: 0; }
.rr-earlier .card-head + .rr-round-past { border-top: 0; padding-top: 0.35rem; }
.rr-round-row { padding-left: 1.05rem; }

/* THE ROUND, ONE TRACK AT A TIME: the track list down the left, the chosen track at the right. */
.alb-review { display: grid; grid-template-columns: 23.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start;
  margin-bottom: 1.4rem; }
/* the list stays in view while the chosen track's comments scroll */
.card.alb-list { position: sticky; top: 1rem; margin: 0; padding: 0.8rem 0.55rem 0.6rem; }
.alb-progress { margin: 0 0.6rem 0.5rem; font-size: 0.84rem; color: var(--muted); }
.alb-progress b { color: var(--ink); font-weight: 600; }
.alb-tl { list-style: none; margin: 0; padding: 0; }
.alb-tl li { margin: 0; padding: 0; }
.alb-tl li.alb-tl-sep { border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; padding-bottom: 0.25rem; }
/* a row: the tick, the number, the title, its comments, its length */
.alb-tl a { display: grid; grid-template-columns: 1rem 1.3rem minmax(0, 1fr) 1.9rem 2.3rem; column-gap: 0.4rem;
  align-items: start; padding: 0.3rem 0.55rem; border-radius: 4px; font-size: 0.86rem; line-height: 1.3;
  color: var(--ink); text-decoration: none; }
.alb-tl a:hover { background: var(--card-alt); text-decoration: none; }
.alb-tl-mark { grid-column: 1; display: flex; align-items: center; justify-content: center; height: 1.12rem; }
.alb-tl-tick { display: inline-flex; color: var(--success); }
.alb-tl-tick svg { width: 0.85rem; height: 0.85rem; }
.alb-tl-ring { display: inline-block; width: 0.62rem; height: 0.62rem; box-sizing: border-box; border-radius: 50%;
  border: 1.6px solid var(--accent); }
.alb-tl-no { grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.alb-tl-title { grid-column: 3; min-width: 0; }
.alb-tl-short { display: none; }
.alb-tl-c, .alb-tl-len { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right;
  white-space: nowrap; padding-top: 0.08rem; }
.alb-tl-c { grid-column: 4; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.18rem; }
.alb-tl-c svg { width: 0.78rem; height: 0.78rem; flex: 0 0 auto; }
.alb-tl-len { grid-column: 5; }
.alb-tl a.alb-tl-whole .alb-tl-title { grid-column: 1 / 4; font-style: italic; }
/* HEARD reads quiet - done; NOT HEARD stands out: the title in full ink and bold, an open ring where the tick goes */
.alb-tl a.is-heard .alb-tl-title { color: var(--muted); }
.alb-tl a.not-heard .alb-tl-title, .alb-tl a.not-heard .alb-tl-no { color: var(--ink); font-weight: 600; }
/* the chosen one: outlined on its tint, as every chosen entry is */
.alb-tl a[aria-current] { background: #f7ebe6; box-shadow: inset 0 0 0 1px var(--accent); }
.alb-tl a[aria-current] .alb-tl-title, .alb-tl a[aria-current] .alb-tl-no { color: var(--accent); font-weight: 600; }

/* the chosen track: its name, its player, what has been said, the box, then the steps */
.card.alb-pane { margin: 0; padding: 1.05rem 1.35rem 0.95rem; min-width: 0; }
.alb-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem 1rem; }
.alb-track-name { display: flex; align-items: baseline; gap: 0.65rem; flex: 1 1 auto; min-width: 0; }
.alb-track-no { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; min-width: 1.3rem;
  text-align: right; flex: 0 0 auto; }
.alb-pane-title { min-width: 0; }
.card h2.alb-track-title { display: inline; margin: 0 0.55rem 0 0; padding: 0; border: 0; font-size: 1.32rem; }
.card h2.alb-whole-title { margin: 0; padding: 0; border: 0; font-size: 1.32rem; }
.alb-track-shz { color: var(--muted); font-size: 0.84rem; white-space: nowrap; }
.alb-listen { display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem; margin-top: 0.85rem; }
.alb-listen-row { display: flex; align-items: center; gap: 0.5rem; }
.midi-player.alb-player { width: auto; flex: 1 1 auto; min-width: 0; }
.alb-player .midi-time { color: var(--ink); }
.alb-player .midi-track-thumb { opacity: 1; }
.alb-version { align-self: flex-end; font-size: 0.76rem; color: var(--muted); }
.alb-version .alb-unchanged { color: var(--success); font-weight: 600; }
/* A PUBLISHED ALBUM'S REVIEWS (11/3/2026): one small muted line at the page's very foot, at the right. */
.rc-reviews-foot { margin: 0.9rem 0 0; text-align: right; font-size: 0.85rem; }
.rc-reviews-foot a { color: var(--muted); }
.rc-reviews-foot a:hover { color: var(--accent); }

/* THE LIST VIEW'S TILES (the user, 11/3/2026: "Tiles that open a dialog"; drawn as rec_build/draw_meta_tiles.py and
   draw_meta_tiles_reviews.py, "Yes, build it"): About, Rights and - an album not yet published - Planning and
   Recording review, two to a row (one on a phone), each its title and one muted line; a click opens its dialog. */
.lv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 0 0 0.9rem; }
.lv-tiles > .lv-tile { margin: 0; min-width: 0; }
/* THE TITLE IS WHAT OPENS IT (the user, 11/3/2026: "for the entire title row to be clickable"; "the brown color of links and also have an arrow at the end of it"): a tinted band
   across the top, the whole of it a button, the column heads' tint; the body is plain, so a link inside it is only that. */
.card.lv-tile { padding: 0 1.25rem 1.05rem; }
.card.lv-tile > .lv-tile-bar { margin: 0 -1.25rem 0.6rem; padding: 0; border: 0; font-size: 1.15rem; }
.lv-tile-bar button { display: flex; align-items: baseline; gap: 0.35rem; width: 100%; padding: 0.5rem 1.25rem; border: 0; border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0; background: var(--card-alt); color: var(--accent); font: inherit; text-align: left; cursor: pointer; }
.lv-tile-bar button:hover { background: #e2dbcc; }
.lv-tile-bar button:hover > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.lv-tile-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lv-tile-go { font-size: 1.15em; line-height: 1; }
.lv-tile-sum { margin: 0; font-size: 0.92rem; line-height: 1.4; color: var(--muted); }
.lv-tile-sum.is-out { color: var(--accent); font-weight: 600; }
.lv-tile-link { margin: 0.35rem 0 0; font-size: 0.9rem; }
/* The Planning tile's costs under its summary, and its two page links stacked at its right, each whole (the user, 11/3/2026: "I wonder
   if these two links should be stacked on the right side of this tile"). */
.rc-plan-tile .lv-tile-sum + .lv-tile-sum { margin-top: 0.2rem; }
.rc-plan-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; align-content: start; align-items: baseline; }
.rc-plan-tile > * { grid-column: 1; }
.rc-plan-tile > .lv-tile-bar { grid-column: 1 / -1; }
/* Each link on the row beside it (the user, 11/3/2026: "the top one is on the same row as 'elk river, mn'"): under the heading, on those lines' baselines. */
.rc-plan-tile > .lv-tile-link { display: contents; }
.rc-plan-tile > .lv-tile-link a { grid-column: 2; justify-self: end; }
.rc-plan-tile > .lv-tile-link a:nth-child(1) { grid-row: 2; }
.rc-plan-tile > .lv-tile-link a:nth-child(2) { grid-row: 3; }
.rc-plan-tile > .lv-tile-link a:nth-child(3) { grid-row: 4; }
@media (max-width: 46rem) {
  .rc-plan-tile { grid-template-columns: minmax(0, 1fr); }
  .rc-plan-tile > .lv-tile-link a { grid-column: 1; grid-row: auto; justify-self: start; }
  .rc-plan-tile > .lv-tile-link a:nth-child(1) { grid-row: auto; margin-top: 0.4rem; }
  .rc-plan-tile > .lv-tile-link a:nth-child(2) { grid-row: auto; }
  .rc-plan-tile > .lv-tile-link a:nth-child(3) { grid-row: auto; }
}
/* THE SAVED SCOPE DOCUMENT (the user, 11/4/2026): Generate under the tile's lines; the stale line, one quiet line whose link opens the
   change summary's dialog (the user: "without it taking up room on the page"). */
.rc-scope-gen { margin: 0.55rem 0 0; }
.rc-plan-tile .rc-scope-stale { grid-column: 1 / -1; margin-top: 0.35rem; font-size: 0.85rem; }
.link-btn.rc-scope-see { font-size: inherit; text-decoration: none; white-space: nowrap; }
.link-btn.rc-scope-see:hover, .link-btn.rc-scope-see:focus-visible { text-decoration: underline; }
.modal-dialog.sc-dialog { max-width: 620px; }
.sc-head { margin: 0.9rem 0 0.3rem; font-size: 0.92rem; }
.sc-head:first-of-type { margin-top: 0.2rem; }
.sc-lines { margin: 0; overflow-wrap: anywhere; }
.sc-foot { margin: 0.9rem 0 0; }
.rr-round-doc { margin: 0 0 0.75rem; }
/* THE ALBUM PANEL, first in a recording's About dialog: Edit planning details' own label-and-field grid, in a frame. */
.rc-album-panel .pub-about-panel-head { margin-bottom: 0.45rem; padding-left: 0; }
.rc-album-panel .pub-about-panel-head > .pub-about-heading { margin: 0; }
.rc-album-fields { grid-template-columns: max-content minmax(0, 1fr) max-content; }
.rc-album-fields .rc-a-cover { grid-column: 3; grid-row: 1 / span 2; align-self: start; margin-left: 0.5rem; }
.rc-a-line > .rc-l { margin-left: 0.5rem; }
.rc-album-panel .rc-v > input.rc-a-number { flex: 0 1 5.5rem; }
.rc-cover-frame { display: inline-flex; align-items: flex-start; gap: 0.4rem; }
.rc-album-panel .rc-cover-img { width: 5rem; height: 5rem; }
.rc-cover-acts { display: flex; flex-direction: column; gap: 0.15rem; }
.rc-cover-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.rc-cover-ico:hover, .rc-cover-ico:focus-visible { color: var(--accent); background: var(--card-alt); }
.rc-cover-ico svg { width: 0.95rem; height: 0.95rem; }
.rc-cover-dialog { width: 92vw; max-width: 28rem; }
.rc-album-form .sp-dialog-error { margin: 0.7rem 0 0; }
/* A BOOK'S COVER PANEL, first in its About dialog (_publication_cover_panel.html): the Album panel's cover, in a frame
   of its own. */
.pc-cover-panel .pub-about-panel-head { margin-bottom: 0.45rem; padding-left: 0; }
.pc-cover-panel .rc-cover-img { width: 5rem; height: 5rem; }
.pc-cover-panel .sp-dialog-error { margin: 0.7rem 0 0; }
@media (max-width: 599.98px) {
  .rc-album-fields { grid-template-columns: minmax(0, 1fr); }
  .rc-a-line > .rc-l { flex-basis: 100%; margin-left: 0; }
  .rc-album-fields .rc-a-cover { grid-column: auto; grid-row: auto; margin-left: 0; }
}
/* a tile's dialog: About wide and scrolling inside, Rights and the review narrower; the dialog's own head names it,
   so the content's own heading is not drawn twice */
.modal-dialog.lv-tile-dialog { max-height: 88vh; overflow-y: auto; }
.modal-dialog.lv-dlg-about, .modal-dialog.lv-dlg-plan { max-width: 900px; }
.modal-dialog.lv-dlg-rights { max-width: 640px; }
.lv-dlg-rights .lv-rights-card .card-head { display: none; }
.lv-dlg-plan .modal-head h3 { display: inline-flex; align-items: center; gap: 0.35rem; }
.lv-dlg-plan .rc-plan { padding: 0; margin: 0; }
.lv-dlg-plan .rc-plan-body { margin-top: 0.2rem; }
/* THE RECORDING REVIEW TILE'S TIMELINE: the three reviews as columns on a thin line, a dot each - filled when over,
   an accent ring for the one open, empty for one not sent; its name (a link once sent), its state under it */
.rr-tl { list-style: none; margin: 0.95rem 0 0; padding: 0; display: flex; position: relative; }
.rr-tl::before { content: ""; position: absolute; top: 0.85rem; left: 16.6%; right: 16.6%;
  border-top: 1px solid var(--border-strong); }
.rr-tl li { flex: 1 1 0; min-width: 0; position: relative; text-align: center; padding-top: 1.95rem; }
/* THE ACTION ICON IN THE CIRCLE (the user, 11/3/2026): filled, as an action is; the line stops short of it. */
.rr-act-form { display: contents; }
.rr-act { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.75rem; height: 1.75rem; border: 0;
  border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--card); }
.rr-act:hover { background: #63301f; }
.rr-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rr-tl-dot { position: absolute; top: 0.57rem; left: 50%; transform: translateX(-50%); width: 0.6rem; height: 0.6rem;
  box-sizing: border-box; border-radius: 50%; z-index: 1; background: var(--card); border: 1px solid var(--border-strong); }
.rr-tl li.is-done .rr-tl-dot { background: var(--muted); border: 2px solid var(--muted); }
.rr-tl li.is-now .rr-tl-dot { border: 2px solid var(--accent); }
.rr-tl-name { display: block; font-size: 0.9rem; line-height: 1.3; }
span.rr-tl-name { color: var(--ink); }
.rr-tl li.is-now .rr-tl-name { font-weight: 700; color: var(--accent); }
.rr-tl-state { display: block; font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.rr-kept-words { margin: 0 0 0.8rem; padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.rr-change-decision { margin: 0.2rem 0 0; font-size: 0.82rem; }
.rr-change-decision .link-btn { font-size: 0.82rem; }
/* the review dialog's first line - the open review's state and its page - and, before any audio, who is done */
.rr-dlg-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1rem;
  margin: 0 0 0.9rem; padding: 0 0 0.75rem; border-bottom: 1px solid var(--border); }
.rr-dlg-page { white-space: nowrap; }
.rr-dlg-names { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 0.9rem; margin: 0;
  font-size: 0.92rem; }
.rr-dlg-names dt { color: var(--muted); }
.rr-dlg-names dd { margin: 0; }
@media (max-width: 640px) {
  .lv-tiles { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .rr-tl-name, .rr-tl-state { font-size: 0.8rem; }
}
.alb-noaudio { margin: 0.85rem 0 0; }
.alb-pane .comment-list { margin: 0.75rem 0 0; }
.alb-where { margin: 0.8rem 0 0.3rem; font-weight: 600; font-size: 0.92rem; }
.alb-where button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.alb-earlier { font-style: normal; }
.alb-none { margin: 0.85rem 0 0; }
.alb-add { margin-top: 0.9rem; align-items: flex-start; flex-wrap: wrap; }
.alb-add textarea { flex: 1 1 14rem; min-width: 0; min-height: 2.1rem; resize: vertical; }
/* THE COMMENT LANE (the final round): a strip above the bar, inside the player; a pin a moment; "+" follows the
   pointer, and once dropped the remark box carries its moment as a chip */
.midi-player.alb-player.has-lane { padding-top: 2.05rem; border-radius: 14px; align-items: center; position: relative; }
.alb-lane { position: absolute; left: 0; right: 0; bottom: calc(50% + 0.55rem); height: 1.75rem; border-radius: 6px;
  background: rgba(43, 38, 32, 0.045); cursor: copy; }
.alb-pin { position: absolute; bottom: 0.08rem; width: 1.35rem; height: 1.35rem; margin-left: -0.675rem; padding: 0;
  border: 0; background: none; color: var(--accent); cursor: pointer; line-height: 0; }
.alb-pin-g { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.alb-pin b { position: absolute; left: 0; right: 0; top: 0.08rem; font: 700 0.6rem/1 var(--font-sans); color: #fff;
  text-align: center; }
.alb-pin.is-earlier .alb-pin-g { fill: var(--card); }
.alb-pin.is-earlier b { color: var(--accent); }
.alb-pin.is-ghost { color: var(--accent); cursor: copy; pointer-events: none; }
.alb-pin.is-ghost .alb-pin-g { fill: #fbf3ef; stroke-dasharray: 2.2 1.4; }
.alb-pin.is-ghost.is-dropped .alb-pin-g { stroke-dasharray: none; }
.alb-pin.is-ghost b { color: var(--accent); top: 0.02rem; font-size: 0.95rem; font-weight: 700; }
.alb-pin-time { position: absolute; left: 1.3rem; bottom: 0.15rem; font: 600 0.68rem/1 var(--font-sans);
  color: var(--muted); white-space: nowrap; }
.alb-pin::after { content: ""; position: absolute; left: 50%; bottom: -0.55rem; width: 1px; height: 0.5rem;
  background: currentColor; opacity: 0.45; }
.alb-where-pin { display: inline-block; width: 0.95rem; height: 0.95rem; margin-right: 0.3rem; vertical-align: -0.12rem;
  color: var(--accent); line-height: 0; }
.alb-where-pin svg { width: 100%; height: 100%; }
.alb-where-pin.is-earlier .alb-pin-g { fill: var(--card); }
.alb-moment.is-called-out { padding: 0.15rem 0.5rem 0.4rem; box-shadow: inset 0 0 0 1px var(--accent); }
.alb-at-chip { display: inline-flex; align-items: center; gap: 0.2rem; flex: 0 0 auto; align-self: center;
  padding: 0.12rem 0.2rem 0.12rem 0.45rem; border-radius: 999px; background: #f7ebe6; color: var(--accent);
  font-size: 0.82rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.alb-at-x { border: 0; background: none; padding: 0 0.25rem; color: var(--accent); font-size: 1rem; line-height: 1;
  cursor: pointer; }
/* PREVIOUS / NEXT at the pane's foot; the neighbour's number and title on hover */
.alb-steps { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 1rem;
  padding-top: 0.8rem; border-top: 1px solid var(--border); }
.alb-steps .is-next { margin-left: auto; }
.review-decisions .alb-unheard { font-size: 0.84rem; color: var(--muted); align-self: center; margin-right: 0.3rem; }
/* MANAGE RECORDINGS' album reviews setting */
.rr-setting-form { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.rr-setting-form input[type="number"] { width: 5rem; }
@media (max-width: 60rem) and (min-width: 40.01rem) {
  .alb-review { grid-template-columns: 17rem minmax(0, 1fr); }
  .alb-tl a { grid-template-columns: 1rem 1.3rem minmax(0, 1fr) 1.9rem; }
  .alb-tl-len { display: none; }
}
@media (max-width: 40rem) {
  .alb-listen-row { display: block; }
  .midi-player.alb-player { width: 100%; }
  .alb-pane .comment-meta { flex-wrap: wrap; row-gap: 0.1rem; }
  .alb-pane .comment-meta strong { white-space: nowrap; }
  .alb-pane .comment-score-changed { margin-left: 0; flex: 1 1 100%; white-space: normal; }
  .alb-add textarea { flex: 1 1 100%; }
  /* ON A PHONE THE LIST BECOMES A PICKER AT THE TOP: the progress line, then a box a track, six to a row - the
     number, under it the tick (or the open ring) and the comments; the chosen box outlined on its tint */
  .alb-review { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .card.alb-list { position: static; padding: 0.7rem 0.7rem 0.75rem; }
  .alb-progress { margin: 0 0 0.5rem; }
  .alb-tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.35rem; }
  .alb-tl li.alb-tl-sep { border: 0; margin: 0; padding: 0; }
  .alb-tl a { grid-template-columns: auto auto; grid-template-areas: "no no" "mk c"; justify-content: center;
    align-items: center; column-gap: 0.25rem; row-gap: 0.1rem; min-height: 2.9rem; padding: 0.3rem 0.1rem;
    border: 1px solid var(--border); background: var(--card); }
  .alb-tl a.not-heard { border-color: var(--border-strong); }
  .alb-tl-title, .alb-tl-len { display: none; }
  .alb-tl-no { grid-area: no; text-align: center; font-size: 1rem; }
  .alb-tl-mark { grid-area: mk; height: 0.9rem; }
  .alb-tl-c { grid-area: c; justify-content: flex-start; padding: 0; }
  .alb-tl-c:empty { display: none; }
  .alb-tl a.alb-tl-whole .alb-tl-short { display: block; grid-area: no; text-align: center; font-size: 0.86rem;
    font-weight: 600; color: var(--ink); }
  .alb-tl a.alb-tl-whole[aria-current] .alb-tl-short { color: var(--accent); }
  .alb-tl a[aria-current] { border-color: var(--accent); }
  .card.alb-pane { padding: 0.9rem 0.9rem 0.85rem; }
  .card h2.alb-track-title, .card h2.alb-whole-title { font-size: 1.15rem; }
  .alb-steps .btn { flex: 1 1 0; }
  .alb-steps .is-next { justify-content: flex-end; text-align: right; }
  .review-decisions .alb-unheard { flex: 1 1 100%; margin: 0 0 0.35rem; text-align: right; }
}

/* ---- PERFORMER AGREEMENTS (the recording creation redesign, piece 4; drawn d1 and d2b, approved 11/2/2026) ----
   To secure at a recording: a performer card is a rightsholder card - a row a track, its number before its title
   (right-aligned so the titles line up), a box saying what they do on it; a part with nobody named yet is a dashed
   row with no box. */
.agp-no { display: inline-block; min-width: 1.35rem; margin-right: 0.45rem; text-align: right; color: var(--muted);
  font-variant-numeric: tabular-nums; text-indent: 0; }
/* A long title wraps under itself, not under its number; the part's box never breaks. */
.agr-work-grid.agp-grid tbody th { width: 23rem; padding-left: 1.8rem; text-indent: -1.8rem; }
.agp-grid label.ags-pick { white-space: nowrap; }
.agp-unnamed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; margin: 0.6rem 0;
  padding: 0.55rem 0.85rem; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--muted); }
.agp-unnamed strong { color: var(--ink); font-weight: 600; }
.agp-unnamed .go-link { margin-left: auto; }
.agp-works-none { margin: 0.3rem 0 0.2rem; font-size: 0.9rem; }
/* The Generated tab: a performer's agreement counts tracks, said beside the figure; its dialog lists them. */
.agp-unit { font-size: 0.78rem; }
.agp-row-note { font-size: 0.85rem; }
.agr-works-list.agp-tracks { list-style: none; padding-left: 0; }
/* The Rights tab's performers secured otherwise (11/3/2026): a track to a line, the Tracks column wide. */
.agf-works.agp-held th:first-child { width: 24%; }
.agf-works.agp-held th:nth-child(2) { width: auto; }
.agf-works.agp-held th:nth-child(3) { width: 7rem; }
.agf-works.agp-held th:last-child { width: 6rem; }
.agp-held-track { display: block; font-size: 0.88rem; }
.agr-works-list .agp-no { min-width: 1.1rem; }
@media (max-width: 700px) {
  .agr-work-grid.agp-grid { margin-left: 0; }
  .agr-work-grid.agp-grid tbody th { width: auto; padding-left: 1.45rem; padding-right: 0.5rem; text-indent: -1.45rem; }
  .agp-no { min-width: 1.05rem; margin-right: 0.4rem; }
  .agp-grid label.agr-work-cell.ags-pick { padding: 0.2rem 0.45rem; }
  .agp-unnamed .go-link { margin-left: 0; }
}
/* A MINOR SIGNS THROUGH A PARENT OR GUARDIAN (Contact Info, a Person): a subtle grey link under the name (most
   performers are adults); set, the field set off as the rightsholder's are, a small grey "remove" by its label. */
.rf-guardian { margin: -0.35rem 0 0.85rem; }
.rf-guardian .rf-guardian-add { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.rf-guardian .rf-guardian-add:hover, .rf-guardian .rf-guardian-add:focus-visible { color: var(--accent);
  text-decoration: underline; }
.rf-guardian-field { margin-top: 0.5rem; }
.rf-guardian-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.25rem; }
.rf-guardian-label { font-size: 0.88rem; color: var(--muted); }
.rf-guardian .rf-guardian-remove { font-size: 0.76rem; color: var(--muted); text-decoration: none; }
.rf-guardian .rf-guardian-remove:hover, .rf-guardian .rf-guardian-remove:focus-visible { color: var(--accent);
  text-decoration: underline; }
.rf-guardian-field input { width: 100%; }
/* The template editor's two performance formats each take the row. */
.tpl-work-lines .tpl-line-wide { grid-column: 1 / -1; }

/* THE EDIT DIALOGS (queue item 11): two columns and a foot that stays on screen, so Save is never below the fold. The
   People Registry's Edit and Contact Info's Edit and New contact; .rd-narrow is one column (the registry's Add entry).
   The body scrolls, if it must; the head and the foot do not. On a phone, one column. */
.registry-dialog.rd-two { max-width: 940px; max-height: 90vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.registry-dialog.rd-two.rd-narrow { max-width: 620px; }
.rd-two > .registry-dialog-header { flex: none; margin: 0; padding: 1rem 3.1rem 0.75rem 1.5rem; border-bottom: 1px solid var(--border); }
.rd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem 1.5rem 0.4rem;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 1.75rem; align-items: start; }
.rd-narrow .rd-body { display: block; }
:is(.rd-body, .rd-page) > .rd-col + .rd-col { border-left: 1px solid var(--border); padding-left: 1.75rem; align-self: stretch; }
.rd-col { min-width: 0; }
.rd-col .rf-row { gap: 1rem; }
.rd-col .rf-row > label { flex: 1 1 8rem; }
.rd-col-head, .rd-col .rf-kind-head h3 { margin: 0; font-size: 0.95rem; color: var(--ink); }
.rd-col .rd-col-head { margin-bottom: 0.5rem; }
.rd-col > .registry-dialog-section:first-child, .rd-col > [hidden] + .registry-dialog-section { margin-top: 0; padding-top: 0; border-top: 0; }
.rd-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 1.5rem; border-top: 1px solid var(--border); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.rd-foot-save { display: inline-flex; gap: 0.6rem; margin-left: auto; }
.rd-foot .registry-actions-note { margin: 0; flex: 0 1 auto; }
.btn.rd-remove { color: var(--status-revision_needed-fg); border-color: transparent; padding-left: 0; padding-right: 0; background: none; }
.btn.rd-remove:hover { text-decoration: underline; background: none; }
/* What the entry is, and the row its dates and Public domain share. */
.rk-switch-row { margin: 0 0 0.85rem; }
.rk-switch-row .seg-switch { display: flex; width: max-content; max-width: 100%; }
.rd-years { align-items: flex-end; }
.rd-col .rd-years > label.rf-year { flex: 0 0 auto; }
.rd-years > label.rf-year input { width: 6.2rem; }
.rd-col .rd-years > label.rd-choice { flex: 0 0 auto; }
/* A DIALOG'S CHECKBOXES ARE OUTLINED CHOICES (the user, 11/1/2026: "the checkbox feels old fashioned"): Public domain and
   Member of, everywhere Member of is drawn. The checkbox is still the form's, hidden inside; chosen, the accent outline
   on the tint with a check, whose room is kept so a box never widens when chosen. */
.stacked-form label.rd-choice, .rf-members label.checkbox-label { position: relative; display: inline-flex; align-items: center; width: auto;
  margin: 0; padding: 0.24rem 0.5rem 0.24rem 0.7rem; border: 1px solid var(--line, #d8d2c8); border-radius: 999px; background: var(--card);
  font-size: 0.85rem; line-height: 1.5; font-weight: 400; color: var(--muted); cursor: pointer; white-space: nowrap; }
.stacked-form label.rd-choice { margin-bottom: 0.92rem; }
label.rd-choice input[type="checkbox"], .rf-members label.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
label.rd-choice::after, .rf-members label.checkbox-label::after { content: "\2713"; display: inline-block; width: 0.85em; margin-left: 0.3rem; text-align: center;
  color: var(--accent); font-weight: 600; visibility: hidden; }
label.rd-choice:has(input:checked), .rf-members label.checkbox-label:has(input:checked) { border-color: var(--accent); background: #f7ebe6; color: var(--accent); }
label.rd-choice:has(input:checked)::after, .rf-members label.checkbox-label:has(input:checked)::after { visibility: visible; }
label.rd-choice:has(input:focus-visible), .rf-members label.checkbox-label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.rf-members { gap: 0.4rem 0.45rem; }
.rf-members .rf-members-label { margin-right: 0.35rem; }
/* The right column's own blocks. */
.rd-col select[name="person_id"] { width: 100%; }
.rd-contact-links { margin: 0.3rem 0 0; font-size: 0.85rem; }
.rd-contact-links:has(> [hidden]) { display: none; }
.rd-col .registry-make-contact { margin-top: 0.45rem; }
.rd-col .registry-alias-field { border-top: 0; padding-top: 0.2rem; }
.rd-alias-add { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; margin-top: 0.55rem; }
.rd-alias-add .registry-alias-input { flex: 1 1 8rem; min-width: 0; width: auto; }
.rd-alias-add select { flex: 0 1 auto; width: auto; }
.rd-more > summary { cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.rd-more[open] > summary { margin-bottom: 0.55rem; }
.rd-more .registry-merge-dirs .checkbox-label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; padding-left: 1.35rem; text-indent: -1.35rem; }
.rd-more .registry-merge-dirs .checkbox-label input { margin: 0 0.35rem 0 0; }
.rd-merge-row { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.4rem; }
.rd-merge-row .registry-merge-input { flex: 1 1 auto; min-width: 0; }
.rd-notes { margin-top: 0.25rem; }
@media (max-width: 760px) {
  .registry-dialog.rd-two { max-height: 94vh; }
  .rd-body { display: block; }
  :is(.rd-body, .rd-page) > .rd-col + .rd-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.8rem; }
  .rk-switch-row .seg-switch { width: 100%; }
  .rk-switch-row .seg-opt { flex: 1 1 auto; text-align: center; padding-left: 0.4rem; padding-right: 0.4rem; }
}
/* THE FULL-PAGE CONTACT FORM TAKES THE SAME TWO COLUMNS (the user, 11/5/2026: "it feels really spaced out"), its Save and
   Cancel across the foot. AND THE FIELDS ARE CLOSER wherever these columns are drawn: labels nearer their boxes, boxes
   a little shorter, rows nearer each other. */
@media (min-width: 761px) { .rd-page { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 1.75rem; align-items: start; } }
.rd-head-actions { display: inline-flex; align-items: center; gap: 0.6rem; }
.stacked-form .rd-col label:not(.checkbox-label):not(.rd-choice) { margin-bottom: 0.55rem; }
.stacked-form .rd-col input:not([type="checkbox"]):not([type="radio"]), .stacked-form .rd-col select { margin-top: 0.12rem; }
.rd-col input:not([type="checkbox"]):not([type="radio"]), .rd-col select { padding-top: 0.32rem; padding-bottom: 0.32rem; }
.rd-col .rf-row { gap: 0.75rem; }
.rd-col .rh-pick, .rd-col .rk-switch-row { margin-bottom: 0.55rem; }
.rd-col .rf-kind-head { margin-bottom: 0.5rem; }
.rd-col .rf-guardian { margin: -0.15rem 0 0.4rem; }
.rd-col .rf-admin { margin-top: 0; padding-top: 0.55rem; }
.rd-col .rf-members { margin-bottom: 0.4rem; }
.stacked-form .rf-street input + input { margin-top: 0.3rem; }
.stacked-form label.rd-choice { margin-bottom: 1.039rem; } /* centered on the year boxes beside it */
.rd-col .rh-card { padding: 0.45rem 0.7rem; margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.4; }
/* The card's name, with the link to its record at the right of the same line. */
.rh-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 0.75rem; }
.rh-card-head .rh-card-name { min-width: 0; }
.rh-card-head .rh-card-link { margin-left: auto; white-space: nowrap; font-size: 0.85rem; }
/* The switch at the head of a column, smaller (the user, 11/5/2026: "a bit too big"): Person | Institution, and the registry's three. */
.rd-col .seg-switch .seg-opt { font-size: 0.8rem; line-height: 1.4; padding: 0.12rem 0.6rem; }
/* Public domain by date: drawn as chosen whatever the stored mark, and not to be turned off (registry-edit-dialog.js). */
.stacked-form label.rd-choice.is-by-date { border-color: var(--accent); background: #f7ebe6; color: var(--accent); cursor: default; }
label.rd-choice.is-by-date::after { visibility: visible; }
/* Living artists' row boxes (the user, 11/5/2026: "they're kind of hard to click"): the whole cell clicks its box, and
   the box is drawn as the Generated tab's is, a little larger. */
td.life-check-col { padding: 0; }
.life-check-hit { display: flex; align-items: center; justify-content: center; min-height: 3.2rem; margin: 0; cursor: pointer; }
.life-check-hit:hover input.life-row-check { border-color: var(--accent); }
input.life-row-check, input#life-select-all { width: 1.25rem; height: 1.25rem; margin: 0; }
input#life-select-all { margin-right: 0.35rem; }
/* The Reviews page's boxes, drawn as Living artists' are (the user, 11/5/2026: "update them"); the left edge of the row
   clicks its box. The two sizes the shared rule leaves are set here. */
input.rv-pick, input[data-rv-all] { width: 1.25rem; height: 1.25rem; }
.rv-pick-hit { display: flex; align-items: center; align-self: stretch; margin: -0.5rem -0.6rem -0.5rem -0.75rem; padding: 0.5rem 0.6rem 0.5rem 0.75rem; cursor: pointer; line-height: 0; }
.rv-pick-hit:hover input.rv-pick { border-color: var(--accent); }
/* WHAT A PAGE VIEW DRAWS, ONE CHOICE THREE TIMES (queue item 12; the user, 11/1/2026: "the UI for selecting
   melody/arrangement/transposition on a hymnal/recording page view is inconsistent"): the melody's letter, the role and the
   key are the same outlined box. The one drawn is outlined in the accent on the tint, as every chosen option is (10/25/2026);
   the rest are plain, and one that cannot be drawn has no box, or a letter with a dotted edge. Nothing changes size on
   choosing, so no row moves. */
.fx .fx-letter { border: 1px solid var(--border-strong); border-radius: 0.3rem; color: var(--muted); opacity: 1; }
.fx a.fx-letter { opacity: 1; }
.fx .fx-letter.is-still { opacity: 1; border-style: dotted; }
.fx a.fx-letter:hover, .fx a.fx-letter:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--card); }
.fx .fx-letter.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); }
.fx-roles a.ppv-k.fx-set-draw, .fx-roles .ppv-k.fx-on {
  display: inline-block; justify-self: start; padding: 0 0.45rem; border: 1px solid var(--border-strong); border-radius: 0.3rem;
  background: var(--card); color: var(--muted); font-size: 0.8rem; line-height: 1.45; text-decoration: none; -webkit-text-stroke: 0; }
.fx-roles a.ppv-k.fx-set-draw:hover, .fx-roles a.ppv-k.fx-set-draw:focus-visible {
  border-color: var(--accent); color: var(--accent); background: var(--card); text-decoration: none; }
.fx-roles .ppv-k.fx-on {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); }
.fx-key-choice { align-items: stretch; gap: 0.2rem; }
.fx-key-pick { padding: 0 0.5rem; border: 1px solid var(--border-strong); border-radius: 0.3rem; background: var(--card); color: var(--muted);
  font-size: 0.95rem; line-height: 1.4; text-align: center; }
.fx-key-pick::before, .fx-key-pick.is-on::before, a.fx-key-pick:hover::before, a.fx-key-pick:focus-visible::before { content: none; }
a.fx-key-pick:hover, a.fx-key-pick:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--card); }
.fx-key-pick.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); -webkit-text-stroke: 0; }
.fx-key-pick.fx-key-change, .fx-key-pick.fx-key-change.is-on { padding: 0; border: 0; box-shadow: none; background: none; }

/* BROWSE > CREATORS (the user, 11/6/2026; the two drawn pages approved): the name list (.cc-) and a person's page (.pp-).
   Every lifespan sits on one axis (CREATOR_AXIS_LINES in app.py): its lines evenly spaced, ruled below by --cc-cells, which the page sets.
   Nothing here can push a phone sideways: every grid column is minmax(0, ...) or a fixed width, long words break,
   and a lifespan's years stay inside the track's own padding. */
.cc-top { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-bottom: 1rem; }
.cc-switch { flex: 0 0 auto; font-size: 1rem; }
.cc-kind { flex: 0 1 auto; }
.cc-kind .seg-opt { padding: 0.2rem 0.6rem; font-size: 0.8rem; }
.cc-search { flex: 1 1 18rem; min-width: 0; margin: 0; }
.cc-search input[type="search"] { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0.5rem 0.9rem; border: 1px solid var(--border-strong); border-radius: 2rem; background: var(--card); color: var(--ink); font: inherit; }
.cc-ways { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1.1rem; }
.cc-ways.is-one { grid-template-columns: minmax(0, 1fr); }
.cc-card { padding: 0.8rem 1rem 0.7rem; margin: 0; }
.cc-card h2 { font-size: 1.02rem; margin: 0 0 0.55rem; }
.cc-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-items: end; }
.cc-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-decoration: none; color: var(--muted); text-align: center; min-width: 0; }
.cc-c { display: block; background: #c9a297; border-radius: 4px 4px 0 0; min-height: 3px; }
.cc-v { font-size: 0.8rem; margin-bottom: 0.15rem; color: var(--ink); }
.cc-l { font-size: 0.74rem; margin-top: 0.25rem; line-height: 1.15; min-height: 1.9em; }
.cc-col:hover .cc-c, .cc-col.is-on .cc-c { background: var(--accent); }
.cc-col.is-on .cc-l, .cc-col.is-on .cc-v { color: var(--accent); font-weight: 600; }
.cc-note { font-size: 0.8rem; margin-top: 0.45rem; }
.cc-landnote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.cc-allnat summary { cursor: pointer; color: var(--accent); list-style: none; }
.cc-allnat summary::-webkit-details-marker { display: none; }
.cc-allnat[open] { flex: 1 0 100%; }
.cc-allnat[open] > div { margin-top: 0.25rem; }
.cc-land { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) 2.1rem; gap: 0.5rem; align-items: center; padding: 0.13rem 0; text-decoration: none; color: inherit; font-size: 0.88rem; }
.cc-lname { min-width: 0; overflow-wrap: anywhere; }
.cc-ltrack { display: block; height: 0.62rem; }
.cc-lbar { display: block; height: 100%; background: #c9a297; border-radius: 0 4px 4px 0; }
.cc-land:hover .cc-lbar, .cc-land.is-on .cc-lbar { background: var(--accent); }
.cc-land.is-on .cc-lname, .cc-land.is-on .cc-lv { color: var(--accent); font-weight: 600; }
.cc-lv { text-align: right; color: var(--muted); font-size: 0.82rem; }
.cc-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.2rem; margin-bottom: 0.65rem; font-size: 0.85rem; }
.cc-did, .cc-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem; }
.cc-sort > .muted { margin-right: 0.25rem; }
.cc-did a, .cc-sort a { padding: 0.1rem 0.5rem; border: 1px solid var(--border-strong); border-radius: 0.3rem; background: var(--card); color: var(--muted); text-decoration: none; font-weight: 400; }
/* A chosen option is outlined and tinted (the user's standing rule), never filled. */
.cc-did a.is-on, .cc-sort a.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); }
.cc-letters { display: flex; flex-wrap: wrap; gap: 0.15rem 0.45rem; margin: 0 0 0.65rem; font-size: 0.88rem; }
.cc-letters a { padding: 0 0.25rem; text-decoration: none; border-radius: 0.2rem; }
.cc-letters a.is-on { box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); font-weight: 600; }
.cc-letters span { padding: 0 0.25rem; color: var(--border-strong); }
.cc-chosen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; margin: 0 0 0.7rem; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.cc-chip { display: inline-flex; gap: 0.35rem; align-items: baseline; padding: 0.05rem 0.5rem; border: 1px solid var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); border-radius: 0.3rem; font-size: 0.92rem; text-decoration: none; }
.cc-chip b { font-weight: 400; opacity: 0.75; }
.cc-list { padding: 0; }
.cc-axisrow, .cc-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 3.6rem 4.7rem; gap: 0.2rem 0.8rem; padding: 0.55rem 1rem; }
.cc-axisrow.cc-plain, .cc-row.cc-plain { grid-template-columns: minmax(0, 1fr) 3.6rem 4.7rem; }
.cc-n.is-none { color: var(--muted); }
.cc-axisrow { padding: 0.45rem 1rem 0.35rem; font-size: 0.74rem; border-bottom: 1px solid var(--border); align-items: end; }
.cc-row { border-bottom: 1px solid var(--border); align-items: start; scroll-margin-top: 0.5rem; }
.cc-row:not(.cc-plain) { min-height: 3.2rem; }
.cc-row:last-child { border-bottom: 0; }
.cc-who { min-width: 0; overflow-wrap: anywhere; }
.cc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 0.9rem; }
.cc-name { font-weight: 600; }
.cc-facts { font-size: 0.84rem; margin-left: 0.45rem; }
.cc-nat { color: var(--muted); text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px; }
.cc-nat:hover { color: var(--accent); }
.cc-kinds { font-size: 0.8rem; color: var(--muted); }
.cc-kinds a { color: var(--muted); text-decoration: none; }
.cc-kinds a:hover { color: var(--accent); text-decoration: underline; }
.cc-kinds a.cc-also { font-style: italic; }
.cc-titles { font-size: 0.9rem; margin-top: 0.1rem; line-height: 1.3; }
.cc-melody { font-family: Georgia, 'Times New Roman', serif; font-size: 0.78rem; letter-spacing: 0.02em; font-weight: 600; }
.cc-nb { white-space: nowrap; }
.cc-life { align-self: stretch; min-width: 0; overflow: hidden; margin: -0.55rem 0; padding: 0 2.3rem; display: flex; align-items: center;
  background-image: repeating-linear-gradient(to right, #f0ece6 0, #f0ece6 1px, transparent 1px, transparent calc(100% / var(--cc-cells)));
  background-origin: content-box; background-clip: content-box; }
.cc-band .cc-life { background-image: repeating-linear-gradient(to right, #f0ece6 0, #f0ece6 1px, transparent 1px, transparent calc(100% / var(--cc-cells))), linear-gradient(to right, transparent var(--cc-a), #f7ebe6 var(--cc-a), #f7ebe6 var(--cc-b), transparent var(--cc-b)); }
.cc-axishead { margin: -0.45rem 0 -0.35rem; padding-top: 0.45rem; padding-bottom: 0.35rem; background-clip: border-box; align-items: flex-end; background-image: none; }
.cc-band .cc-axishead { background-image: linear-gradient(to right, transparent var(--cc-a), #f7ebe6 var(--cc-a), #f7ebe6 var(--cc-b), transparent var(--cc-b)); background-clip: content-box; }
.cc-axis { flex: 1 1 auto; position: relative; height: 1rem; }
.cc-axis span { position: absolute; transform: translateX(-50%); color: var(--muted); }
@media (max-width: 960px) { .cc-axisrow .cc-axis span:nth-child(even) { visibility: hidden; } }
.cc-axisn { text-align: right; line-height: 1.15; }
.cc-track { flex: 1 1 auto; position: relative; height: 1rem; }
.cc-row .cc-life { align-items: flex-start; }
.cc-row .cc-track { margin-top: 0.77rem; }
.cc-bar { position: absolute; top: 50%; margin-top: -0.3rem; height: 0.6rem; background: #c9a297; }
.cc-bar::before, .cc-bar::after { content: ''; position: absolute; top: 50%; width: 2px; height: 1.1rem; transform: translateY(-50%); background: var(--accent); }
.cc-bar::before { left: 0; }
.cc-bar::after { right: 0; }
.cc-cut::before, .cc-open::after { content: none; }
.cc-dot { position: absolute; top: 50%; margin-top: -0.55rem; margin-left: -1px; width: 2px; height: 1.1rem; background: var(--accent); }
.cc-y { position: absolute; top: calc(50% + 1.03rem); font-size: 0.72rem; line-height: 1.1; white-space: nowrap; color: var(--muted); background: var(--card); border-radius: 2px; }
.cc-band .cc-y { background: rgba(251, 245, 241, 0.92); }
.cc-nodate, .cc-before { position: absolute; top: 50%; transform: translateY(-50%); left: 0; font-size: 0.74rem; line-height: 1.1; color: var(--muted); background: var(--card); padding-right: 0.4rem; white-space: nowrap; }
.cc-n { text-align: right; font-variant-numeric: tabular-nums; font-size: 1.02rem; align-self: start; }
.cc-more { padding: 0.55rem 1rem; }

.pp-back { margin-bottom: 0.4rem; }
.pp-head { justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; margin-bottom: 0.15rem; }
.pp-head h1 { margin: 0; }
.pp-facts { margin-bottom: 0.8rem; font-size: 0.95rem; }
.pp-sum { display: grid; grid-template-columns: minmax(0, 1fr) 5.2rem 6rem; gap: 0.5rem 1rem; align-items: center; padding: 0.55rem 1rem 0.6rem; margin: 0 0 0.75rem; }
.pp-sum-plain { grid-template-columns: auto auto; justify-content: start; gap: 0.5rem 2.5rem; }
.pp-sum-plain .pp-fig { align-items: flex-start; text-align: left; }
.pp-time { min-width: 0; }
/* The list's rows pull a lifespan to the row's whole height; on this card it stands by itself, a little larger. */
.pp-sum .cc-life { margin: 0; }
.pp-sum .cc-axishead { padding-top: 0; padding-bottom: 0.15rem; }
.pp-sum .pp-life { min-height: 2.9rem; }
.pp-sum .cc-track { transform: translateY(-0.5rem); }
.pp-sum .cc-axis { font-size: 0.74rem; }
.pp-sum .cc-bar { margin-top: -0.36rem; height: 0.72rem; }
.pp-sum .cc-bar::before, .pp-sum .cc-bar::after { height: 1.35rem; }
.pp-sum .cc-dot { margin-top: -0.675rem; height: 1.35rem; }
.pp-sum .cc-y { top: calc(50% + 0.82rem); font-size: 0.8rem; }
.pp-sum .cc-nodate, .pp-sum .cc-before { top: calc(50% + 0.5rem); font-size: 0.8rem; }
.pp-fig { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pp-fl { font-size: 0.74rem; }
.pp-fn { font-size: 1.35rem; line-height: 1.2; }
.pp-together { margin: 0 0 0.75rem; font-size: 0.92rem; }
.pp-together > .muted:first-child { margin-right: 0.35rem; }
.pp-chips { font-size: 0.85rem; margin-bottom: 0.4rem; }
.pp-block { padding: 0; margin: 1.5rem 0 0; overflow: hidden; }
.pp-band { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; background: var(--accent); color: #fff; padding: 0.5rem 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; font-weight: 700; }
.pp-band-n { font-family: inherit; font-size: 0.85rem; font-weight: 400; opacity: 0.9; }
.pp-kind, .pp-work { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.15rem 1.2rem; padding: 0.45rem 1rem; }
.pp-work > div { min-width: 0; overflow-wrap: anywhere; }
.pp-work > div:first-child { padding-left: 0.6rem; }
.pp-kind { padding: 0.5rem 1rem; align-items: baseline; background: #e8d3c9; border-bottom: 2px solid var(--accent); scroll-margin-top: 0.5rem; }
.pp-kind h3 { font-size: 1.1rem; margin: 0; color: var(--accent); }
.pp-kind h3 .pp-kind-n { font-weight: 400; font-size: 0.9rem; color: var(--accent); }
.pp-ch { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.pp-work { border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.pp-work:last-child { border-bottom: 0; }
.pp-sub { color: var(--muted); font-size: 0.84rem; }
.pp-where { font-size: 0.88rem; line-height: 1.35; }
.pp-other, .pp-other a { color: var(--muted); }
@media (max-width: 760px) {
  .cc-ways { grid-template-columns: minmax(0, 1fr); }
  .cc-axisrow { display: none; }
  .cc-row, .cc-row.cc-plain { grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 1rem; }
  .cc-who, .cc-life { grid-column: 1 / -1; }
  .cc-life { margin: 0; padding: 0 2.1rem; }
  .cc-row .cc-life { min-height: 2.4rem; }
  .cc-row .cc-track { margin-top: 0.25rem; }
  .cc-y { top: calc(50% + 0.7rem); }
  .cc-n { text-align: left; font-size: 0.82rem; }
  .cc-n::before { content: attr(data-l) " "; color: var(--muted); }
  .cc-search { flex-basis: 100%; }
  .cc-kind { max-width: 100%; flex-wrap: wrap; border-radius: 0.8rem; }
  .pp-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-sum-plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-time { grid-column: 1 / -1; }
  .pp-fig { align-items: flex-start; text-align: left; }
  .pp-sum .cc-life { padding: 0 1.9rem; }
  .pp-ch { display: none; }
  .pp-kind { grid-template-columns: minmax(0, 1fr); }
  .pp-work { grid-template-columns: minmax(0, 1fr); padding-left: 1rem; }
  .pp-where:empty { display: none; }
  .pp-where::before { content: attr(data-l); display: block; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
}
.cc-total { color: var(--muted); font-weight: 400; font-size: 1rem; }

/* WHAT STILL NEEDS PERMISSION, AND A WORK FOR HIRE'S LINE (the user, 11/6/2026): To secure's row and the rights card. */
.rcd-share-owned { color: var(--muted); }
.agr-part-needed { display: block; color: var(--accent); }
.agr-part-nn { display: block; margin-top: 0.1rem; font-size: 0.92em; text-align: left; }

/* THE WELCOME AND THE DEDICATION (the user, 11/10/2026; templates/_welcome.html, static/js/welcome.js): the app's
   message box, a little wider and roomier for reading. Quiet: its words in the serif the hymns are set in, the
   dedication set apart under a fine rule, and one button, at the right, where the
   guided tour's welcome box that follows it has its own. A short screen scrolls the box, never the page. */
.name-check-dialog.welcome-dialog {
  max-width: 31rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.6rem 1.75rem 1.3rem;
}
.name-check-dialog.welcome-dialog h3 { margin: 0 0 0.9rem; font-size: 1.3rem; line-height: 1.3; }
.name-check-dialog.welcome-dialog p {
  margin: 0 0 0.8rem; font-family: var(--font-serif); font-size: 1rem; line-height: 1.6;
}
.welcome-memory { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
/* THE SIGNATURE (the user, 11/10/2026): the name in a hand, larger, right-aligned and set in from the edge;
   under it, small, who signed. The hand is a drawing (static/img/welcome-signature.svg, made once from a script
   face's outlines), the same on every screen. */
.name-check-dialog.welcome-dialog .welcome-signature { margin: 0.1rem 1.5rem 0 0; text-align: right; }
.name-check-dialog.welcome-dialog .welcome-sign { display: inline-block; width: min(18rem, 100%); height: auto; margin: 0; }
.name-check-dialog.welcome-dialog .welcome-sign-who {
  margin: 0.1rem 0 0; font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.4; color: var(--muted);
}
.name-check-dialog.welcome-dialog .welcome-memory p:last-child { margin-bottom: 0; }
.welcome-years { white-space: nowrap; }
.welcome-dialog .welcome-actions { margin-top: 1.4rem; }
@media (max-width: 480px) {
  .name-check-dialog.welcome-dialog { padding: 1.25rem 1.2rem 1.1rem; }
  .name-check-dialog.welcome-dialog h3 { font-size: 1.2rem; }
}
/* FEEDBACK & SUGGESTIONS (the user, 11/12/2026; retitled 11/13; templates/_hymn_feedback.html, hymn_feedback.html).
   THE CARD, shut until opened - and shut, its heading line alone: no rule and no strip under it (11/13). Each note a
   block under a hairline - what it is about as small outlined tags (another work's tag a link), its outcome a pill
   at the right (the waiting one, New, on the accent's tint; the others quiet - the words are a list an Admin keeps,
   so no color is guessed for each, spec 82), a Manager's pen and bin beside it; then where, the words as typed, the
   month it was added, and NEXT STEPS (the user, 11/13) in a quiet panel under its label, the accent's rule at its left.
   + Add feedback or a suggestion is the outlined pill adding is, beside the list's link. THE TICK BOXES (Add on a
   Page view, Edit note) are outlined choices in ONE ROW, as the outcome's are (the user, 11/13/2026: "this takes
   up a lot of real estate for only four choices"): each the part's name, its work's name in a hover and beside the
   name too where two would read alike, outlined and tinted with a check when ticked (.outlined-choice); the
   outcome the same, one of the list's. */
.hfb-notes { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.hfb-note { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.hfb-note:first-child { border-top: 0; padding-top: 0.25rem; }
.hfb-note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.hfb-parts { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1 1 14rem; min-width: 0; }
/* WHEN, BESIDE WHAT IT IS ABOUT (the user, 11/13/2026: "The location of this date mark makes it unclear whether
   it applies to the text above or the decision below"): the month it was entered, next to its parts at the
   head of the note - never between its words and its Next steps. */
.hfb-note-about { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; flex: 1 1 14rem;
  min-width: 0; }
.hfb-note-about > .hfb-parts { flex: 0 1 auto; }
.hfb-added { font-size: 0.8rem; color: var(--muted); }
.hfb-part { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0.08rem 0.6rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--card);
  color: var(--ink); font-size: 0.8rem; line-height: 1.5; }
a.hfb-part { color: var(--accent); text-decoration: none; }
a.hfb-part:hover, a.hfb-part:focus-visible { border-color: var(--accent); text-decoration: underline; }
.hfb-outcome { display: inline-block; padding: 0.08rem 0.65rem; border-radius: 999px; background: var(--card-alt);
  color: var(--ink); font-size: 0.78rem; line-height: 1.5; white-space: nowrap; }
.hfb-outcome.is-new { background: #f7ebe6; color: var(--accent); font-weight: 600; }
.hfb-tools { display: inline-flex; align-items: center; gap: 0.15rem; }
.hfb-tools .inline-form { display: inline-flex; margin: 0; }
.hfb-where { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); }
.hfb-text { margin: 0.25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hfb-next { margin: 0.5rem 0 0; padding: 0.35rem 0.75rem 0.45rem; border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; background: #f7f2ea; }
.hfb-next-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); }
.hfb-next-text { margin: 0.1rem 0 0; font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.hfb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  margin-top: 0.6rem; }
.hfb-card .hfb-notes + .hfb-foot { padding-top: 0.7rem; border-top: 1px solid var(--border); }
.hfb-card > summary > .card-summary { white-space: nowrap; }
.hfb-card:not([open]) > summary.card-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.modal-dialog.hfb-dialog { max-width: 34rem; }
.hfb-lead { margin: -0.3rem 0 0.9rem; font-size: 0.88rem; color: var(--muted); }
.hfb-hint { color: var(--muted); font-weight: 400; }
.hfb-about, .hfb-outcomes { min-width: 0; margin: 0 0 0.9rem; padding: 0; border: 0; }
.hfb-about legend, .hfb-outcomes legend { margin: 0 0 0.45rem; padding: 0; font-size: 0.9rem; font-weight: 600;
  color: var(--ink); }
.hfb-outcome-row, .hfb-about-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hfb-outcome-row label.outlined-choice, .hfb-about-row label.outlined-choice { flex: 1 1 auto; }
/* The list's dialog shows only the outcomes its note may be given (static/js/hymn-feedback.js hides the rest). */
.hfb-outcome-row label[hidden] { display: none; }
.hfb-choice input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
label.hfb-choice:has(input:checked)::before { content: "\2713"; }
.hfb-choice-meta { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
/* EDIT NOTE'S REVIEW PART (the user, 11/13/2026, with Edit note in view: "It feels like outcome should be on the
   bottom after the 'what is it about' and feedback/suggestion fields. also, It feels like the two sections need to be
   more differentiated so they don't run together"): the outcome and the Next steps come last, in a panel of their
   own - tinted, the accent's rule at its left, as a note's own Next steps is on the page (.hfb-next) - under a small
   heading, Review, set as .hfb-next-label is. The outlined choices and the box keep their own white on the tint. */
.hfb-review-part { margin: 1rem 0 0.9rem; padding: 0.7rem 0.85rem 0.15rem; border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; background: #f7f2ea; }
.hfb-review-head { margin: 0 0 0.5rem; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* THE LIST PAGE: the Number box as narrow as a number, and each cell read from its top. */
.hfb-page-head { align-items: flex-start; }
.hfb-filters .hfb-number { width: 5.5rem; }
.hfb-filters .hfb-download { margin-left: auto; }
.hfb-table td { vertical-align: top; }
.hfb-table .hfb-when, .hfb-table .hfb-hymn { white-space: nowrap; }
.hfb-table .hfb-about-cell { min-width: 14rem; }
.hfb-table .hfb-feedback-cell { min-width: 18rem; }
.hfb-table .hfb-feedback-cell p:first-child { margin-top: 0; }
/* THE LIST'S OUTCOME AND NEXT STEPS (RULED 11/13): the dialog says what the note is about, then its words in a quiet
   frame to read while choosing - a long note scrolls in it. Newest first's Outcome column holds the pill and a
   Manager's pen on one line, the Next steps under them. A line or row a save comes back to stands clear of the top
   bar. */
.hfb-review-quote { margin: 0 0 1rem; padding: 0.5rem 0.75rem; max-height: 9.5rem; overflow: auto;
  border-left: 3px solid var(--border-strong); background: var(--card-alt); font-size: 0.9rem; white-space: pre-wrap;
  overflow-wrap: anywhere; }
.hfb-review-quote:empty { display: none; }
.hfb-table .hfb-outcome-cell { min-width: 12rem; }
.hfb-outcome-line { display: inline-flex; align-items: center; gap: 0.3rem; }
.hfb-line, .hfb-table tbody tr { scroll-margin-top: 4.5rem; }
/* AT SCALE (the user, 11/13/2026: "Feedback may be received on hundreds of hymns. What would this page look like in
   that case?"). THE TWO VIEWS, By hymn | Newest first: one switch, its halves joined, the chosen one outlined and
   tinted as the app's choices are (#f7ebe6, the accent's outline and words), the other white and muted. FIND IN
   FEEDBACK leads the filter row and takes the room the row leaves. BY HYMN: a heading for each book, and under it a
   card of lines, a line a number, each shut until opened - its arrow, the number, the words' title with the tune's
   name small beside it, then how many notes are about each part and at each outcome (Open in the accent, as its pill
   is), each count a column of its own so the lines read down; opened, the line tinted, its notes as the cards draw
   them (.hfb-note) and a link to its Page view. NOTHING PUSHES A PHONE SIDEWAYS: below 56rem the counts go under the
   title, and below 640px Newest first's table stacks each note - its date and its outcome, then the hymn, what it is
   about and the words. */
.hfb-views { display: inline-flex; margin: 0 0 0.9rem; }
.hfb-views > * { padding: 0.32rem 1rem; border: 1px solid var(--border-strong); background: var(--card);
  color: var(--muted); font-size: 0.88rem; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.hfb-views > * + * { margin-left: -1px; }
.hfb-views > :first-child { border-radius: 999px 0 0 999px; padding-left: 1.15rem; }
.hfb-views > :last-child { border-radius: 0 999px 999px 0; padding-right: 1.15rem; }
.hfb-views > a:hover, .hfb-views > a:focus-visible { background: var(--card-alt); color: var(--ink);
  text-decoration: none; }
.hfb-views > .is-on { position: relative; z-index: 1; border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent); background: #f7ebe6; color: var(--accent); font-weight: 600; }
.hfb-filters input[name="q"] { flex: 1 1 13rem; width: auto; min-width: 10rem; }
.list-pager-count.hfb-total { margin: -0.6rem 0 1rem; }
.hfb-book + .hfb-book { margin-top: 1.6rem; }
.hfb-book-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; margin: 0 0 0.5rem;
  font-size: 1.08rem; }
.hfb-book-n { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.card.hfb-lines { margin: 0; padding: 0; overflow: hidden; }
.hfb-line + .hfb-line { border-top: 1px solid var(--border); }
.hfb-line > summary { display: grid; grid-template-columns: 0.8rem 3.4rem minmax(0, 1fr) 13rem 13rem;
  gap: 0.2rem 0.8rem; align-items: baseline; padding: 0.62rem 1rem; cursor: pointer; list-style: none; }
.hfb-line > summary::-webkit-details-marker { display: none; }
.hfb-line > summary::before { content: "\25B8"; color: var(--muted); text-align: center; }
.hfb-line[open] > summary::before { transform: rotate(90deg); }
.hfb-line > summary:hover, .hfb-line[open] > summary { background: #f7f2ea; }
.hfb-line > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hfb-line-no { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hfb-line-name { min-width: 0; overflow-wrap: anywhere; }
.hfb-line-tune { margin-left: 0.4rem; font-family: var(--font-serif); font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--muted); }
.hfb-line-counts { display: contents; }
.hfb-line-parts, .hfb-line-outs { font-size: 0.82rem; color: var(--muted); }
.hfb-line-outs .is-new { color: var(--accent); font-weight: 600; }
.hfb-line > .hfb-notes { margin: 0; padding: 0.2rem 1rem 0 2.6rem; }
.hfb-line-foot { margin: 0; padding: 0.3rem 1rem 0.85rem 2.6rem; }
@media (max-width: 56rem) {
  .hfb-line > summary { grid-template-columns: 0.8rem auto minmax(0, 1fr); gap: 0.2rem 0.6rem; }
  .hfb-line-counts { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; grid-column: 3; }
}
@media (max-width: 640px) {
  .hfb-part { white-space: normal; }
  .hfb-line > summary { padding: 0.6rem 0.75rem; }
  .hfb-line > .hfb-notes { padding: 0.2rem 0.75rem 0; }
  .hfb-line-foot { padding: 0.3rem 0.75rem 0.85rem; }
  .hfb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; }
  .hfb-table, .hfb-table tbody { display: block; }
  .hfb-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.7rem;
    padding: 0.75rem 0.85rem; border-top: 1px solid var(--border); }
  .hfb-table tbody tr:first-child { border-top: 0; }
  .hfb-table tbody td { display: block; min-width: 0; padding: 0; border: 0; }
  .hfb-table .hfb-when { grid-row: 1; grid-column: 1; }
  .hfb-table .hfb-outcome-cell { display: contents; }
  .hfb-table .hfb-outcome-line { grid-row: 1; grid-column: 2; }
  .hfb-table .hfb-outcome-cell .hfb-next { grid-column: 1 / -1; margin-top: 0.2rem; }
  .hfb-table .hfb-hymn, .hfb-table .hfb-about-cell, .hfb-table .hfb-feedback-cell { grid-column: 1 / -1;
    min-width: 0; white-space: normal; }
}

/* ---- THE SIGN-IN BATCH, PIECE 1 (11/14/2026): the Users list, and Edit user's inactive look - drawn and approved
   with the batch (version 31), built with piece 1, which needs no email. ------------------------------------------ */
/* THE USERS LIST (version 18, the user: the username, name and email "all in one column with each value occupying
   its own sub-row", and the roles "cluttered"): ONE COLUMN FOR THE PERSON - the name, the username and the email
   under it, muted - and ONE PILL FOR THE MAIN ROLE, "+N more" beside it. */
.su-person a.su-name, .su-person span { display: block; }
.su-person a.su-name { font-weight: 600; }
.su-person .su-username, .su-person .su-email { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.su-person .su-email { overflow-wrap: anywhere; }
/* (version 21, the user: "I'd like to be able to click on this to reveal the other pills") "+N MORE" OPENS IN
   PLACE: a fold whose other pills follow the main one in the row, the words then "hide" (version 22) - after them. */
.su-roles details.su-more { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.25rem;
  vertical-align: middle; }
.su-more > summary { display: inline; list-style: none; margin-left: 0.45rem; color: var(--muted); font-size: 0.82rem;
  white-space: nowrap; cursor: pointer; }
.su-more > summary::-webkit-details-marker { display: none; }
.su-more > summary:hover, .su-more > summary:focus-visible { color: var(--accent); text-decoration: underline; }
.su-more[open] > summary { order: 2; }
.su-more .su-more-less, .su-more[open] .su-more-n { display: none; }
.su-more[open] .su-more-less { display: inline; }
/* (version 22) THE WIDE TABLE KEEPS ITS COLUMNS: opening one row's roles widened the Role column for every row,
   and addresses broke mid-word again. Fixed widths; the opened pills wrap inside the Role column. On a phone each
   account is a block: its name, username and address, its roles, then Active and its last sign-in. */
@media (min-width: 701px) {
  .users-list { table-layout: fixed; width: 100%; }
  .users-list col.su-c-name { width: 36%; }
  .users-list col.su-c-roles { width: 32%; }
  .users-list col.su-c-active { width: 10%; }
  .users-list col.su-c-last { width: 22%; }
  .users-list col.su-c-files { width: 18%; }
  .users-list td.su-roles .role-badge { white-space: nowrap; }
}
@media (max-width: 700px) {
  .users-list thead { display: none; }
  .users-list, .users-list tbody { display: block; width: 100%; }
  .users-list tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.65rem;
    padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); }
  .users-list tr:last-child { border-bottom: 0; }
  .users-list td { display: block; padding: 0; border: 0; font-size: 0.86rem; min-width: 0; }
  .users-list td.su-person { order: 1; flex-basis: 100%; font-size: 0.95rem; }
  .users-list td.su-roles { order: 4; flex-basis: 100%; }
  .users-list td.su-active { order: 6; color: var(--muted); }
  .users-list td.su-active::before { content: "Active: "; }
  .users-list td.su-last { order: 7; color: var(--muted); }
  .users-list td.su-last::before { content: "Last sign-in "; }
  .users-list td.su-files { order: 8; flex-basis: 100%; }
}
/* NEW USER: THE USERNAME'S RULE UNDER ITS BOX (the sign-in batch, decision 13). */
.stacked-form .user-form-hint { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }
/* (version 23, the user: "flipping the switch to 'inactive' should gray out the roles card to make it really clear
   that the user is inactive... something much more obvious than just the switch?") AN INACTIVE ACCOUNT, PLAIN TO
   SEE: while the switch is off - turned off before Save, or an account already inactive - a line in the Account
   card says what it means, and the Roles card is greyed and still (user-active.js makes it inert). */
.user-off-note { display: none; margin: 0 0 1rem; padding: 0.6rem 0.85rem; border-left: 3px solid var(--muted);
  background: var(--card-alt); color: var(--ink); font-size: 0.9rem; border-radius: 0 var(--radius) var(--radius) 0; }
body:has(#user-form input[name="active"]:not(:checked)) .user-off-note { display: block; }
body:has(#user-form input[name="active"]:not(:checked)) .user-roles-card {
  opacity: 0.45; filter: grayscale(1); pointer-events: none; user-select: none; }

/* ---- THE SIGN-IN BATCH, PIECE 2 (11/15/2026): the new sign-in's look, carried from the approved drawing (version 31)
   in one block, in the drawing's own order - Set up your sign-in and a link that no longer works, the Users list's
   Sign-in column, New user's invitation and Edit user's Sign-in card (step 2, built with this block), and the rules
   the later steps' pages use: Sign in's passkey button and password fold, Your code, My settings, "Use your passkey
   to continue?" and the passkey offer. Chosen options outlined on the #f7ebe6 tint, actions filled; no grid track is
   a bare 1fr. The drawing's approval banner, its drawn marks and its index of drawings are not carried. ---------- */
/* SIGN IN, YOUR CODE, SET UP YOUR SIGN-IN, A LINK THAT NO LONGER WORKS: the auth card, a passkey first. */
.auth-card.si-login { max-width: 400px; }
.auth-card.si-setup-wide { max-width: 560px; }
.btn.si-passkey-btn { display: flex; align-items: center; justify-content: center; gap: 0.55rem; width: 100%;
  margin-top: 0.2rem; padding-top: 0.72rem; padding-bottom: 0.72rem; font-size: 0.98rem; }
.si-passkey-btn svg { flex: none; }
.btn.si-password-btn { display: block; width: 100%; margin-top: 0.3rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.si-help { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
/* (the user's look at gate 2, 11/15/2026: the two notices "kind of run together and almost blend in with the 'sign in
   with a password' link") THE HELP AT SIGN IN'S FOOT: a band of the quieter surface across the card's foot, under a
   rule, apart from the ways in above it - its side and bottom margins the card's own padding (.auth-card, 2.5rem), so
   it reaches the card's edges; each question in the text's color and weight, its answer quiet. */
.si-help-foot { margin: 1.25rem -2.5rem -2.5rem; padding: 1.05rem 2.5rem 1.3rem; background: var(--card-alt);
  border-top: 1px solid var(--border); border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.si-help-foot .si-help { margin: 0; }
.si-help-foot .si-help + .si-help { margin-top: 0.7rem; }
.si-help-q { color: var(--ink); font-weight: 600; }
.si-points { margin: 0 0 1.1rem; padding-left: 1.15rem; font-size: 0.9rem; }
.si-points li { margin-bottom: 0.3rem; }
.si-links { margin: 1rem 0 0; }
/* (the user's look at gate 2, 11/15/2026) THE SET-UP'S LAST STEP, A BUTTON: "Get started" on You're set up, the
   card's width, as every set-up step's Continue; and the tick above the title centred with it. */
.auth-card a.btn.si-go-btn { display: block; text-align: center; }
.si-subtle { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }
.si-center { text-align: center; margin: 0.9rem 0 0; font-size: 0.9rem; }
.si-lead { margin: 0 0 1.1rem; font-size: 0.92rem; }
.si-hint, .name-check-dialog .si-hint { margin: -0.2rem 0 0.85rem; font-size: 0.82rem; color: var(--muted); }
.si-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.7rem; margin: 0.1rem 0 1.15rem; }
.si-who strong { font-family: var(--font-serif); font-size: 1.08rem; }
.si-who span { color: var(--muted); font-size: 0.86rem; }
.stacked-form input.si-code-input { max-width: 12rem; font: 600 1.35rem/1.2 Consolas, "Courier New", monospace;
  letter-spacing: 0.28em; }
.stacked-form input.si-refused { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.si-done-mark { margin: 0 auto 0.5rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #dcefe0;
  color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  font-weight: 700; }
.si-h2 { font-size: 1rem; margin: 0.4rem 0 0.5rem; }
.si-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .si-pair { grid-template-columns: minmax(0, 1fr); } }
/* THE STEPS OF AN ADMIN'S SET-UP: the step you're on outlined and tinted, a step done ticked. */
.si-steps { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 1.1rem; padding: 0; }
.si-steps li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.65rem 0.22rem 0.28rem;
  border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem; color: var(--muted); background: var(--card); }
.si-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: var(--card-alt); font-weight: 600; font-size: 0.72rem; }
.si-steps li.is-on { border-color: var(--accent); background: #f7ebe6; color: var(--accent); font-weight: 600; }
.si-steps li.is-on span { background: var(--accent); color: #fff; }
.si-steps li.is-done { color: var(--ink); }
.si-steps li.is-done span { background: #dcefe0; color: var(--success); font-size: 0; }
.si-steps li.is-done span::before { content: "\2713"; font-size: 0.72rem; }
/* BACKUP CODES, shown once: two columns, one on a phone. */
.si-codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.3rem 2rem; margin: 0 0 0.9rem;
  padding-left: 1.7rem; font-size: 0.86rem; }
.si-codes code { font: 0.92rem/1.45 Consolas, "Courier New", monospace; letter-spacing: 0.04em; }
@media (max-width: 620px) { .si-codes { grid-template-columns: max-content; } }
.si-code-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.9rem; }
/* (version 16, the user: "should the 'done' button be smaller and on the same row as the tick box?") THE TICK AND
   ITS BUTTON ON ONE ROW: the button its own size at the row's end - under the tick box, at the right, when the row
   is too narrow for both; greyed until ticked (tick-gate.js, .btn:disabled). */
.si-kept-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.si-kept-row label.si-choice, .stacked-form .si-kept-row > label.si-choice:not(.checkbox-label) { margin: 0; }
/* (version 17, the user: "Shouldn't the box and button be aligned vertically on the centerline?") the weight
   above outranks .si-box .stacked-form label:not(.checkbox-label), whose bottom margin had lifted the tick box
   5.6 px off the button's middle. */
.si-kept-row .btn, .auth-card .si-kept-row .btn-primary { width: auto; margin: 0 0 0 auto; padding-left: 1.4rem;
  padding-right: 1.4rem; }
/* AN AUTHENTICATOR APP: the QR code beside the key and the code. */
.si-totp { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: flex-start; margin: 0 0 0.6rem; }
.si-totp > div:last-child { flex: 1 1 14rem; min-width: 0; }
.si-totp p, .name-check-dialog .si-totp p { margin: 0 0 0.6rem; font-size: 0.9rem; }
.si-qr { flex: none; width: 9.5rem; padding: 0.35rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.si-qr-svg { display: block; width: 100%; height: auto; }
code.si-key { font: 600 0.95rem/1.5 Consolas, "Courier New", monospace; letter-spacing: 0.06em; background: var(--card-alt);
  padding: 0.15rem 0.45rem; border-radius: 4px; overflow-wrap: anywhere;
  /* (the user's look at gate 2, 11/15/2026) TWO EVEN ROWS OF FOUR GROUPS, in one shaded block: as wide as four groups
     of four and their spaces, not five - a soft wrap, so a copy is still one line. */
  display: inline-block; max-width: calc(23ch + 0.9rem); }
/* AN OUTLINED CHOICE - Shared computer, I've kept them, the second step: chosen, outlined on the tint with a check; the
   box itself still the form's, hidden inside. */
.si-choice, .stacked-form label.si-choice { position: relative; display: flex; align-items: center; gap: 0.5rem;
  margin: 0.2rem 0 0.95rem; padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font-size: 0.9rem; cursor: pointer; }
.si-choice input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.si-choice::after { content: "\2713"; margin-left: auto; padding-left: 0.6rem; color: var(--accent); font-weight: 600;
  visibility: hidden; }
.si-choice:has(input:checked), .si-choice.is-chosen { border-color: var(--accent); background: #f7ebe6; }
.si-choice:has(input:checked)::after, .si-choice.is-chosen::after { visibility: visible; }
.si-choice:has(input:checked) .si-choice-name, .si-choice.is-chosen .si-choice-name { color: var(--accent); font-weight: 600; }
.si-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.si-choice[title] { cursor: help; }
.si-choices { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.2rem 0 0.4rem; }
.si-choices .si-choice { margin: 0; flex-wrap: wrap; cursor: default; padding: 0.7rem 0.9rem; }
.si-choices .si-choice::after { display: none; }
.si-choices .si-choice.is-chosen .si-choice-name::after { content: " \2713"; }
.si-choice-name { font-weight: 600; }
.si-choice-what { flex: 1 1 15rem; min-width: 0; color: var(--muted); font-size: 0.85rem; }
.si-choice-act { margin: 0 0 0 auto; }
.si-login .si-choices { margin-bottom: 1rem; }
.si-login .si-choices .si-choice { display: block; }
.si-login .si-choices .si-choice-what { display: block; margin-top: 0.15rem; }

/* MY SETTINGS, AND EDIT USER'S SIGN-IN CARD. */
.si-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap;
  margin: 0 0 0.85rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.card .si-card-head h2 { margin: 0; padding: 0; border: 0; font-size: 1.15rem; display: flex; align-items: center;
  gap: 0.6rem; flex-wrap: wrap; }
.si-card-head form { margin: 0; }
.si-facts { margin: 0; display: grid; gap: 0.6rem 1.5rem; }
.si-facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .si-facts-3 { grid-template-columns: minmax(0, 1fr); } }
.si-facts dt { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.1rem; }
.si-facts dd { margin: 0; overflow-wrap: anywhere; }
.si-facts dd[title] { cursor: help; text-decoration: underline dotted var(--border-strong); text-underline-offset: 3px; }
.si-facts-rows { gap: 0; }
.si-facts-rows > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.15rem 1rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border); }
.si-facts-rows > div:last-child { border-bottom: 0; }
.si-facts-rows dt { font-size: 0.88rem; margin: 0; }
@media (max-width: 560px) { .si-facts-rows > div { grid-template-columns: minmax(0, 1fr); } }
.si-fact-item { display: block; }
.si-table td.si-strong { font-weight: 600; }
.si-row-actions { white-space: nowrap; text-align: right; }
.si-row-actions .link-btn { font-size: 0.86rem; margin-left: 0.7rem; }
.si-row-actions form { display: inline; }
.si-line { margin: 0; font-size: 0.92rem; }
.si-sub { font-family: var(--font-sans); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 1.2rem 0 0.45rem; }
.si-card-head + .si-sub { margin-top: 0; }
.si-reminder { margin: 0.9rem 0 0; padding: 0.55rem 0.8rem; border-radius: var(--radius); background: #fbf3ef;
  box-shadow: inset 3px 0 0 var(--accent); font-size: 0.88rem; }
#sign-in.card { margin-top: 2.5rem; }
/* (version 28, the user: "I wonder if this message should be emphasized somehow - maybe in the app brown color")
   THE OFFER'S WARNING in the reminder's style, its words in the accent: a caution, not an error. */
.si-offer-warn { margin: 0.2rem 0 0.9rem; color: var(--accent); font-weight: 600; }
.si-signin-card + #sign-ins.card { margin-top: 0; }
/* THE SIGN-IN STATE: the Users list's column and the card's heading - the state alone, its dates on hover. */
.si-state { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font: 600 0.75rem/1.5 var(--font-sans);
  white-space: nowrap; letter-spacing: 0.01em; cursor: help; }
.si-state-passkey { background: #dcefe0; color: #2f6b42; }
.si-state-password { background: #e1e6ec; color: #46586b; }
.si-state-invited { background: #e6eef5; color: #35618a; }
.si-state-expired { background: #f7e8c8; color: #8a6414; }
.si-state-unsent { background: #f6dede; color: var(--error); }
.si-state-not_set_up { background: #ece8e2; color: var(--muted); }
.si-warn { color: #8a6414; }
.si-bad { color: var(--error); }
.si-not-offered { font-size: 0.8rem; color: var(--muted); cursor: help; text-decoration: underline dotted var(--border-strong);
  text-underline-offset: 3px; }

/* THE BOXES: the confirm box (titled by what it is for), the passkey offer, and My settings' boxes with fields. */
.name-check-dialog .si-stepup-lead { margin: 0 0 0.75rem; font-size: 0.95rem; }
.name-check-dialog .si-stepup-refused { margin: 0 0 0.8rem; padding: 0.5rem 0.7rem; border-radius: 6px; background: #f6dede;
  color: var(--error); font-size: 0.86rem; }
.name-check-dialog .si-stepup-sent { margin: 0 0 0.75rem; font-size: 0.95rem; }
.si-stepup .impact-list .link-btn { font-size: inherit; text-align: left; }
.si-stepup .stacked-form, .si-box .stacked-form { margin: 0; }
.si-stepup .stacked-form label:not(.checkbox-label), .si-box .stacked-form label:not(.checkbox-label) { margin-bottom: 0.7rem; }
.si-stepup .impact-list, .si-box .impact-list, .si-offer .impact-list { max-height: none; }
.name-check-dialog.si-box-wide { max-width: 540px; }
.si-box .si-codes { margin-top: 0.2rem; }

/* (the drawing, after its first look) A TICK BOX THAT READS AS ONE: the outlined choice, as wide as its words, its box
   drawn at the left - empty, or filled with a check when chosen; the choice outlined on the tint. */
.stacked-form label.si-choice, label.si-choice { display: inline-flex; width: auto; max-width: 100%; padding: 0.45rem 0.85rem 0.45rem 0.6rem; }
label.si-choice::after { display: none; }
label.si-choice::before { content: ""; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.1rem; height: 1.1rem; box-sizing: border-box; border: 1.5px solid var(--border-strong); border-radius: 4px;
  background: #fff; color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1; }
label.si-choice:has(input:checked)::before { content: "\2713"; background: var(--accent); border-color: var(--accent); }
.si-login form > label.si-choice { margin-top: 0.1rem; }
/* (version 2, the user of the Log in page: "there should be a note here saying passkey is the preferred and more secure
   sign-in method") THE LINE UNDER THE PASSKEY BUTTON, its What's a passkey? a link-styled button; and the dialog's
   three lines in full, never cut short. */
.si-passkey-note { margin: 0.5rem 0 0; text-align: center; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.si-passkey-note .link-btn { font-size: inherit; white-space: nowrap; }
/* (version 29, the user: "Shouldn't the note and question 'what's a passkey' each be on their own line?") the line,
   then What's a passkey? under it - wherever the partial stands (Sign in, Set up your sign-in, the offer). */
.si-passkey-note .link-btn[data-passkey-help] { display: block; margin: 0.2rem auto 0; }
.name-check-dialog .si-passkey-help { max-height: none; }
/* (version 2, the user: "This should be more clear for a non-technical first-time user"; version 3, above the passkey
   button, ticked before either way in) THIS IS A SHARED COMPUTER: the card's width, its tick box at the left beside the
   first line, the situation over what ticking it does; the rest on hover. A label, so a press anywhere on it ticks it. */
.si-login label.si-shared { display: flex; align-items: flex-start; width: 100%; box-sizing: border-box;
  gap: 0.65rem; margin: 0.35rem 0 1rem; padding: 0.65rem 0.85rem 0.7rem 0.75rem; cursor: pointer; }
.si-login label.si-shared::before { margin-top: 0.12rem; }
.si-shared .si-choice-text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.si-shared .si-choice-name { font-weight: 600; }
.si-shared .si-choice-what { flex: none; color: var(--muted); font-size: 0.85rem; font-weight: 400; line-height: 1.35; }
/* (version 3, the user: "should username and password be collapsed by default?" - "yes") THE PASSWORD, FOLDED: the
   app's fold, its boxed marker (as the files card and the cross-reference tables draw it), under a rule that parts
   the two ways in; open, the username and password under it as before. */
.si-password-fold { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.si-password-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.55rem;
  color: var(--ink); font-size: 0.95rem; }
.si-password-fold > summary::-webkit-details-marker { display: none; }
.si-password-fold > summary::before { content: "\25B8"; display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; flex: none; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--muted); font-size: 0.8rem; line-height: 1; transition: transform 0.12s ease; }
.si-password-fold[open] > summary::before { transform: rotate(90deg); }
.si-password-fold > summary:hover::before { color: var(--ink); border-color: var(--ink); }
.si-password-fold[open] > summary { margin-bottom: 0.9rem; }
.si-nowrap { white-space: nowrap; }
/* THE ADMIN ROW, NOT OFFERED: as quiet as a role not given. */
.role-table tbody tr:has(.si-not-offered) > td.role-table-name { color: var(--muted); font-weight: 500; }
.role-table tbody tr:has(.si-not-offered) > td.role-table-what { opacity: 0.8; }
.name-check-dialog.si-box, .name-check-dialog.si-stepup { max-height: calc(100vh - 2rem); overflow-y: auto; }
/* (version 23) EDIT USER'S SIGN-IN CARD, INACTIVE: greyed and still with the Roles card while the Active switch is
   off (user-active.js makes both inert). */
body:has(#user-form input[name="active"]:not(:checked)) .si-signin-card {
  opacity: 0.45; filter: grayscale(1); pointer-events: none; user-select: none; }
/* (version 22) THE USERS LIST WITH ITS SIGN-IN COLUMN: five fixed widths, the opened pills wrapping inside Role; on a
   phone, each account's sign-in after its roles and before Active. */
@media (min-width: 701px) {
  .users-list.si-users col.su-c-name { width: 31%; }
  .users-list.si-users col.su-c-roles { width: 27%; }
  .users-list.si-users col.su-c-active { width: 8%; }
  .users-list.si-users col.su-c-signin { width: 15%; }
  .users-list.si-users col.su-c-last { width: 19%; }
}
@media (max-width: 700px) {
  .users-list td.su-signin { order: 5; }
}
/* (the drawing, round three) THE ADMIN ROW'S "On Edit user" AND "After set-up" ON A PHONE: free to wrap, narrow, so
   the Roles table still fits its card. */
@media (max-width: 560px) {
  .user-form .role-table .si-not-offered { white-space: normal; display: inline-block; max-width: 4.2rem; line-height: 1.25; }
}
/* THE BOUNCE DISPLAY (drawn 11/15/2026, version 1, for the user's approval): where Amazon has stopped sending to an
   account's address. The Users list's pill right after the address - the Sign-in column's pill shape in "Couldn't be
   sent"'s colours, a class of its own, why on hover; the account page's line under Email, which stays in view, with
   Try this address again beside it; and the Users list's muted line where Amazon couldn't be asked, why on hover. */
.email-stopped { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font: 600 0.75rem/1.5 var(--font-sans);
  white-space: nowrap; letter-spacing: 0.01em; cursor: help; background: #f6dede; color: var(--error); }
.su-person .email-stopped { display: inline-block; margin-left: 0.3rem; }
.email-stopped-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.45rem 1rem; margin: 0; padding: 0.55rem 0.85rem; border-left: 3px solid var(--error); background: #fbeeee;
  font-size: 0.9rem; line-height: 1.5; border-radius: 0 var(--radius) var(--radius) 0; }
.email-stopped-line .btn { flex: none; }
/* Switch role's Admin-only choice (switch_role.html): the app's question box, on the page, centred. */
.name-check-dialog.switch-ask { margin: 2.5rem auto 0; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.switch-ask .name-check-buttons a.btn { text-align: center; justify-content: center; }
.email-stopped-failed { cursor: help; }
