/* ==========================================================================
   Fernhollow Property Group - the rentals admin and the renter's phone.
   THE CREEK LOOK (2026-10-15). the owner approved the redesign preview (revision
   6) and asked for it to replace the live look. This file is the whole of it:
   the palette below, then THE CREEK LOOK at the end of the file (the shell:
   rail, page head, glass bar, sign-in), with the generated pictures in
   creek-art.css and the two small behaviours in creek-look.js.

   THE SEVEN COLOURS, named: Deep Creek #0F2F3A (text, buttons, the rail),
   Creek Blue #4A6B7F (secondary text, links, borders, focus), Mountain Sage
   #7A8F72 and Forest Green #2E4A3F (the hills; success), Sunset Gold #D4A373
   (the "+", small markers, the ground), Warm Stone #F3ECE0 (sunken areas),
   Cream #F9F6EF (the page). Roles, states and the dark values are derived
   from them and contrast-checked (test_look.py reads this file).

   THE TOKEN NAMES ARE THE OLD ONES on purpose - --navy is still what
   headings wear, --accent is still the link and the brand, --sand is still
   money and the "+", --paper the page - so 4,000 lines of rules kept their
   meaning while the colours moved underneath them. --accent is Creek Blue
   now; a filled primary button is --primary (Deep Creek). The Trust's
   allocation key (Manager blue / Nora green / Contractor amber / June violet /
   Partner rose) is left exactly as it was: those five say whose land, on every
   plat and ledger row.
   ========================================================================== */

:root {
  --paper:   #F9F6EF;
  /* THE CREAM (2026-09-12). the owner approved the public site's look for the
     rest of Fernhollow - "lets give the rest of Fernhollow this
     look/treatment", then, of the mockup, "looks good. lets deploy it" - and
     that look's ground is the public site's own cream, its --paper, verbatim.
     It is a token of its own because --paper stays #F5F8F7 HERE: :root's
     --paper is what --ground resolves against (the notify and reconciliation
     engines' tabs, chips, read-only fields and empty states) and what a page
     with no body class wears (the unsubscribe page), and the prototype the owner
     saw left all of those as they were. THE BAND, at the end of this file,
     turns --paper cream on body.ad, body.rt and body.sg, in light mode only.
     It lives here, not there, because that block is held to no literal
     colour (test_look). */
  --cream:   #F9F6EF;
  --surface: #FFFFFF;
  --surface2:#F3ECE0;
  --ink:     #0F2F3A;
  --muted:   #4A6B7F;
  --navy:    #0F2F3A;
  --accent:  #4A6B7F;
  --accent-ink: #FFFFFF;
  --sand:    #D4A373;
  --sand-ink:#6F4B1B;
  --on-sand: #0F2F3A;
  --line:    #D8DFDA;
  --line-soft: #E7ECE7;
  --evan:  #3D6FA8;
  --nora:  #2E8B62;
  --casey: #C07A1F;
  --june:  #7D5BA6;
  --marian:#A34E5E;
  --good:  #2E4A3F;
  --warn:  #755025;
  --crit:  #A12B38;
  --plus:  #D4A373;   /* the "+": Sunset Gold with a Deep Creek plus (the owner, 2026-10-15); it belongs to nothing else on the page */
  --cobalt: #4A6B7F;  /* charts: homes let */
  --royal:  #0F2F3A;  /* charts: rent in */
  --plus-hover: #C99A66;
  --tint-evan:  #E9F0F8;
  --tint-nora:  #E7F3ED;
  --tint-casey: #F8F0E2;
  --tint-june:  #F0EBF7;
  --tint-marian:#F7EBED;
  --shadow: 0 1px 2px rgba(15,47,58,.06), 0 8px 24px rgba(15,47,58,.06);
  --plat-line: rgba(15,47,58,.16);
  --plat-line-strong: rgba(15,47,58,.30);
  /* one face: Manrope is the display AND the body. --serif keeps its name
     because 60 rules ask for it as "the heading face"; it now answers Manrope
     at the weight each rule already sets. */
  --serif: 'Libre Baskerville','Iowan Old Style',Georgia,'Times New Roman',serif;
  --sans: 'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --mono: ui-monospace,'SF Mono',Menlo,Consolas,'Liberation Mono',monospace;
  /* ---- form + motion tokens (2026-08-23)
     Replaces ~12 hardcoded 6px/4px radii. The reduced-motion block below
     had nothing to guard until these transitions existed. */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --ease: 150ms cubic-bezier(.4, 0, .2, 1);
  --lift: 0 2px 6px rgba(15,47,58,.07), 0 8px 24px rgba(15,47,58,.08);
  /* ---- lifecycle ramp: one hue walking from cool to the house green, so a
     funnel board reads left-to-right without a legend. Derived from the
     existing --evan / --accent, nothing new invented. */
  --stage-1: #5E6F82;   /* inquiry      */
  --stage-2: #3D6FA8;   /* applied      */
  --stage-3: #2A7683;   /* approved     */
  --stage-4: #2F6B4F;   /* signed       */
  --stage-5: #167A3C;   /* moved in     */
  --stage-lost: #6A707A;
  /* ---- lateness ramp (2026-08-24)
     #E7C144 and #E08A3C were the last two literal colours in the app. They
     lived inline in `.cal .m.yellow` / `.m.orange` in BOTH templates, so they
     never followed a theme and never appeared in the token audit. Promoted
     here unchanged in light, given dark twins, and given ONE job: AGE.
     Whether money is still owed is said by --good / --warn / --crit and by
     the words in the cell; these three only say how old the fact is. */
  --late-15: #E7C144;
  --late-30: #E08A3C;
  /* ---- the person ramp (2026-08-27): renters, never parcels
     Direct descendants of the five allocation hues, taken to the chroma a
     white letterform needs. Deliberately NOT --tint-*: those five mean "this
     parcel belongs to Manager/Nora/Contractor/June/Partner" on every plat, unit card
     and ledger row in the portal, so tinting a RENTER with one would assert
     that the renter is a beneficiary. Separate names, separate job.
     CIRCLES ARE PEOPLE, RECTANGLES ARE PROPERTY - a person disc never appears
     on a unit card and a parcel tint never appears on a person.
     --who-3 is #B06E1C rather than --casey #C07A1F: white on the amber disc
     is the weakest pair in the set, and dropping the lightness lifts it from
     3.47 to 4.12 without moving the hue. */
  --who-1: #3D6FA8;
  --who-2: #2A7F59;
  --who-3: #9C5F14;
  --who-4: #7D5BA6;
  --who-5: #A34E5E;
  --who-ink: #FFFFFF;
  /* ---- the photo well: a unit card's image area, and the scrim that keeps a
     white badge legible over a bright photograph. Transparent below 70% so it
     never greys the picture itself. */
  --well: #F3ECE0;
  --scrim: linear-gradient(180deg, rgba(16,22,30,.42) 0%, rgba(16,22,30,.10) 42%, rgba(16,22,30,0) 70%);
  /* THE BADGE INK FOLLOWS THE FILL, NOT THE PAGE (fixed 2026-08-27).
     --badge-ink was #FFFFFF on all three theme paths while the chip FILLS are
     LIGHTENED in dark - they were tuned to be read as TEXT on a dark ground,
     and reused unchanged as a chip background. White ink on a light chip was
     the result, and it failed AA on the first thing on the first screen:
     MEASURED in dark, Notice given 2.41:1, Not ready 2.56:1, Occupied 2.74:1
     at 10.64px, where 4.5:1 is required.
     The fills are RIGHT - a deep chip on a dark card is muddy - so the INK
     flips instead: dark ink on the three light dark-mode fills gives 7.71,
     7.26 and 6.78:1. Vacant is the exception on both paths: it is a deep red
     on purpose (an empty unit costs the Trust money every day), white on it
     measures 6.54 light / 5.18 dark, and dark ink on it would be 3.59 - so it
     keeps its own ink token rather than inheriting the flip. */
  --badge-ink: #FFFFFF;
  --badge-ink-vacant: #FFFFFF;
  /* ---- vacant, on the card badge. NOT --stage-1: that ramp means APPLICANT
     PROGRESS, and an empty unit is not an applicant. An empty unit costs the
     Trust money every day it persists, so it gets the crit red. */
  --vacant: #A12B38;
  --sidebar-w: 240px;
  /* NATIVE UI FOLLOWS THE THEME. Without this the browser paints scrollbars,
     date pickers and form controls from the OS default, so a dark page grew a
     white scrollbar track down the notification panel. It belongs on every
     theme path for the same reason every colour token does. */
  /* ---- THE CREEK LOOK (2026-10-15): the named colours, and what the shell reads ---- */
  --deep-creek: #0F2F3A;   --creek-blue: #4A6B7F;   --mountain-sage: #7A8F72;
  --forest-green: #2E4A3F; --sunset-gold: #D4A373;  --warm-stone: #F3ECE0;
  --selected: #E9EEE7;
  --primary: #0F2F3A; --primary-hover: #0B252E; --primary-active: #081D24; --on-primary: #FFFFFF;
  --on-gold: #0F2F3A;
  --focus-gap: #FFFFFF;
  --ok-ink: #2E4A3F;   --ok-bg: #E8F0EA;
  --err-ink: #A12B38;  --err-bg: #FFF1F2;
  --warn-ink: #755025; --warn-bg: #FBF4E9;
  --info-ink: #2F5A6E; --info-bg: #E6EEF2;
  /* the office rail */
  --rail-bg: #0F2F3A; --rail-ink: #F9F6EF; --rail-ink-2: #B9CBCE;
  --rail-line: rgba(249, 246, 239, 0.18); --rail-hover: rgba(249, 246, 239, 0.08); --rail-selected: rgba(249, 246, 239, 0.14);
  /* the top bar is the top of a pale sky that warms toward the horizon; the page head carries on from it */
  --band-bg: #F2F6F6; --band-sky-top: #E4EEF1; --band-sky-bottom: #FBF4E1;
  --band-ink: #0F2F3A; --band-ink-2: #3F6073; --band-line: #D8DFDA;
  --header-bg: #E4EEF1; --header-ink: #0F2F3A; --header-line: #4A6B7F;
  /* the hills under a page head, far to near, then the gold ground, the sun and the moon (pictures only) */
  --hill-far: #BFCDB0; --hill-mid: #7A8F72; --hill-hi: #BCCB88; --hill-near: #4E6B4B;
  --land: #D4A373; --sun: #EDBF5A; --moon: #EFEBD0;
  --rail-ridge-1: #3F6E57; --rail-ridge-2: #2E5646; --rail-ridge-3: #17403A;
  --rail-tree: #2F5D4B; --rail-tree-hi: #4F8A62; --rail-fern: #5E9A6C;
  /* sign-in: a sky that warms toward the horizon, sage and green hills, a gold ground and a narrow creek */
  --auth-sky-top: #4F86A8; --auth-sky-mid: #9CC3CF; --auth-sky-bottom: #F3E8C6;
  --auth-hill-far: #BCCBAE; --auth-hill-mid: #8EA67C; --auth-hill-hi: #BCCB88; --auth-hill-near: #587654; --auth-hill-base: #3A5A47;
  --auth-ground: #D4A373; --auth-ground-2: #C79A5E; --auth-creek: #A9CAD6; --auth-sun: #F0C45A;
  --auth-foot-ink: #0F2F3A; --auth-top-ink: #FFFFFF; --auth-top-line: rgba(255, 255, 255, 0.85);
  /* the phone's bottom bar: liquid glass with a pill that slides under the current place */
  --glass-bg: rgba(255, 255, 255, 0.78); --glass-ink-2: #2E4A5A;
  --glass-line: rgba(255, 255, 255, 0.85); --glass-edge: rgba(15, 47, 58, 0.10);
  --glass-shadow: 0 12px 32px rgba(15, 47, 58, 0.20);
  --glass-pill: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 100%);
  --glass-pill-line: rgba(255, 255, 255, 0.95); --glass-pill-shadow: 0 4px 14px rgba(15, 47, 58, 0.18);
  --shadow-overlay: 0 12px 32px rgba(15, 47, 58, 0.18);
  --firefly: #FFE9A6;

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #0B1A20;
    --surface: #10252D;
    --surface2:#173540;
    --ink:     #EAF0EC;
    --muted:   #A9BFC4;
    --navy:    #EAF0EC;
    --accent:  #9CC5D8;
    --accent-ink: #0F2F3A;
  --sand:    #D4A373;
  --sand-ink:#E8C48A;
  --on-sand: #0F2F3A;
    --line:    #2A4852;
    --line-soft: #213C45;
    --evan:  #4E8FD0;
    --nora:  #3FA87A;
    --casey: #C4872B;
    --june:  #9B7BC8;
    --marian:#C97785;
    --good:  #9AD0AE;
    --warn:  #E8C48A;
    --crit:  #F2A0A8;
    --plus:  #D4A373; --plus-hover: #E0B687;
    --cobalt: #7FA3B5; --royal: #9CC5D8;
    --tint-evan:  #1D2B3C;
    --tint-nora:  #1B3129;
    --tint-casey: #33291A;
    --tint-june:  #2A2438;
    --tint-marian:#342026;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.25);
    --plat-line: rgba(157,184,228,.14);
    --plat-line-strong: rgba(157,184,228,.28);
    --lift: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.28);
    --stage-1: #8A9BB0; --stage-2: #4E8FD0; --stage-3: #45A3B2;
    --stage-4: #57A67F; --stage-5: #4CAF6E; --stage-lost: #6E747D;
    --late-15: #D9B44F; --late-30: #D8863F;
    --who-1: #4E8FD0; --who-2: #3FA87A; --who-3: #C4872B;
    --who-4: #9B7BC8; --who-5: #C97785; --who-ink: #0E1720;
    --well: #1B3038;
    --scrim: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,0) 70%);
    --badge-ink: #10161E;
    --badge-ink-vacant: #FFFFFF;
    --vacant: #C7392F;
    /* ---- THE CREEK LOOK, at night ---- */
    --selected: #173540;
    --primary: #9CC5D8; --primary-hover: #B3D4E3; --primary-active: #86B4C8; --on-primary: #0F2F3A;
    --on-gold: #0F2F3A;
    --focus-gap: #10252D;
    --ok-ink: #9AD0AE;   --ok-bg: #12302A;
    --err-ink: #F2A0A8;  --err-bg: #3A1A20;
    --warn-ink: #E8C48A; --warn-bg: #33270F;
    --info-ink: #9CC5D8; --info-bg: #12303B;
    --rail-bg: #08151A; --rail-ink: #EAF0EC; --rail-ink-2: #A9BFC4;
    --rail-line: rgba(234, 240, 236, 0.16); --rail-hover: rgba(234, 240, 236, 0.07); --rail-selected: rgba(234, 240, 236, 0.12);
    --band-bg: #12303B; --band-sky-top: #12303B; --band-sky-bottom: #17332F;
    --band-ink: #EAF0EC; --band-ink-2: #B4C8CC; --band-line: rgba(234, 240, 236, 0.28);
    --header-bg: #12303B; --header-ink: #EAF0EC; --header-line: #7FA3B5;
    --hill-far: #25483E; --hill-mid: #2F5A47; --hill-hi: #4C7550; --hill-near: #1C3A31;
    --land: #6B5033; --sun: #D9A94F; --moon: #EEEBD3;
    --rail-ridge-1: #1F4A3C; --rail-ridge-2: #15372E; --rail-ridge-3: #0B221D;
    --rail-tree: #1F4A3C; --rail-tree-hi: #2E6A52; --rail-fern: #3E7F63;
    --auth-sky-top: #0F2A35; --auth-sky-mid: #143B47; --auth-sky-bottom: #28443B;
    --auth-hill-far: #2B5648; --auth-hill-mid: #234A3B; --auth-hill-hi: #3F6B4B; --auth-hill-near: #1B3B30; --auth-hill-base: #12291F;
    --auth-ground: #7A5B38; --auth-ground-2: #6B5033; --auth-creek: #6FA0B3; --auth-sun: #D9A94F;
    --auth-foot-ink: #F9F6EF; --auth-top-ink: #EAF0EC; --auth-top-line: rgba(234, 240, 236, 0.6);
    --glass-bg: rgba(16, 37, 45, 0.72); --glass-ink-2: #A9BFC4;
    --glass-line: rgba(234, 240, 236, 0.24); --glass-edge: rgba(0, 0, 0, 0.35);
    --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    --glass-pill: linear-gradient(180deg, rgba(234, 240, 236, 0.30) 0%, rgba(234, 240, 236, 0.10) 100%);
    --glass-pill-line: rgba(234, 240, 236, 0.45); --glass-pill-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.5);
    --firefly: #FFE9A6;

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:   #0B1A20;
  --surface: #10252D;
  --surface2:#173540;
  --ink:     #EAF0EC;
  --muted:   #A9BFC4;
  --navy:    #EAF0EC;
  --accent:  #9CC5D8;
  --accent-ink: #0F2F3A;
  --sand:    #D4A373;
  --sand-ink:#E8C48A;
  --on-sand: #0F2F3A;
  --line:    #2A4852;
  --line-soft: #213C45;
  --evan:  #4E8FD0;
  --nora:  #3FA87A;
  --casey: #C4872B;
  --june:  #9B7BC8;
  --marian:#C97785;
  --good:  #9AD0AE;
  --warn:  #E8C48A;
  --crit:  #F2A0A8;
  --plus:  #D4A373; --plus-hover: #E0B687;
  --cobalt: #7FA3B5; --royal: #9CC5D8;
  --tint-evan:  #1D2B3C;
  --tint-nora:  #1B3129;
  --tint-casey: #33291A;
  --tint-june:  #2A2438;
  --tint-marian:#342026;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.25);
  --plat-line: rgba(157,184,228,.14);
  --plat-line-strong: rgba(157,184,228,.28);
  --lift: 0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.28);
  --stage-1: #8A9BB0; --stage-2: #4E8FD0; --stage-3: #45A3B2;
  --stage-4: #57A67F; --stage-5: #4CAF6E; --stage-lost: #6E747D;
  --late-15: #D9B44F; --late-30: #D8863F;
  --who-1: #4E8FD0; --who-2: #3FA87A; --who-3: #C4872B;
  --who-4: #9B7BC8; --who-5: #C97785; --who-ink: #0E1720;
  --well: #1B3038;
  --scrim: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,0) 70%);
  --badge-ink: #10161E;
  --badge-ink-vacant: #FFFFFF;
  --vacant: #C7392F;
  /* ---- THE CREEK LOOK, at night ---- */
  --selected: #173540;
  --primary: #9CC5D8; --primary-hover: #B3D4E3; --primary-active: #86B4C8; --on-primary: #0F2F3A;
  --on-gold: #0F2F3A;
  --focus-gap: #10252D;
  --ok-ink: #9AD0AE;   --ok-bg: #12302A;
  --err-ink: #F2A0A8;  --err-bg: #3A1A20;
  --warn-ink: #E8C48A; --warn-bg: #33270F;
  --info-ink: #9CC5D8; --info-bg: #12303B;
  --rail-bg: #08151A; --rail-ink: #EAF0EC; --rail-ink-2: #A9BFC4;
  --rail-line: rgba(234, 240, 236, 0.16); --rail-hover: rgba(234, 240, 236, 0.07); --rail-selected: rgba(234, 240, 236, 0.12);
  --band-bg: #12303B; --band-sky-top: #12303B; --band-sky-bottom: #17332F;
  --band-ink: #EAF0EC; --band-ink-2: #B4C8CC; --band-line: rgba(234, 240, 236, 0.28);
  --header-bg: #12303B; --header-ink: #EAF0EC; --header-line: #7FA3B5;
  --hill-far: #25483E; --hill-mid: #2F5A47; --hill-hi: #4C7550; --hill-near: #1C3A31;
  --land: #6B5033; --sun: #D9A94F; --moon: #EEEBD3;
  --rail-ridge-1: #1F4A3C; --rail-ridge-2: #15372E; --rail-ridge-3: #0B221D;
  --rail-tree: #1F4A3C; --rail-tree-hi: #2E6A52; --rail-fern: #3E7F63;
  --auth-sky-top: #0F2A35; --auth-sky-mid: #143B47; --auth-sky-bottom: #28443B;
  --auth-hill-far: #2B5648; --auth-hill-mid: #234A3B; --auth-hill-hi: #3F6B4B; --auth-hill-near: #1B3B30; --auth-hill-base: #12291F;
  --auth-ground: #7A5B38; --auth-ground-2: #6B5033; --auth-creek: #6FA0B3; --auth-sun: #D9A94F;
  --auth-foot-ink: #F9F6EF; --auth-top-ink: #EAF0EC; --auth-top-line: rgba(234, 240, 236, 0.6);
  --glass-bg: rgba(16, 37, 45, 0.72); --glass-ink-2: #A9BFC4;
  --glass-line: rgba(234, 240, 236, 0.24); --glass-edge: rgba(0, 0, 0, 0.35);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --glass-pill: linear-gradient(180deg, rgba(234, 240, 236, 0.30) 0%, rgba(234, 240, 236, 0.10) 100%);
  --glass-pill-line: rgba(234, 240, 236, 0.45); --glass-pill-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, 0.5);
  --firefly: #FFE9A6;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
/* ---- the ground (2026-08-28) — the owner's pick: the QUIET GRADIENT WASH.
   "More modern, clean" for the admin and the resident portal, distinct from
   the Trust page's surveyor's band. No texture, no drawing: a barely-there
   vertical lift at the top and two large soft washes — pine in one corner,
   the house navy in the other — all mixed from existing tokens, so both
   themes and both explicit data-theme stamps come along for free. The washes
   sit at single-digit opacities: cards, tables and figures always outrank
   the ground. background-attachment keeps the light still while the page
   scrolls (iOS quietly falls back to scroll, which reads the same here).
   OVERRIDDEN ON SCREEN (2026-09-12): THE BAND, at the end of this file,
   grounds body.ad and body.rt with the public site's cream and its one navy
   wash, on the owner's "lets give the rest of Fernhollow this look/treatment".
   This rule stands under it; the print rule below still gives paper white. */
body.ad, body.rt {
  background:
    radial-gradient(1250px 800px at 88% -10%,
      color-mix(in srgb, var(--accent) 11%, transparent), transparent 64%),
    radial-gradient(1050px 700px at -14% 106%,
      color-mix(in srgb, var(--navy) 8%, transparent), transparent 62%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--surface) 70%, var(--paper)) 0px,
      var(--paper) 420px);
  background-attachment: fixed, fixed, scroll;
  background-color: var(--paper);
}
@media print {
  /* body.sg joined 2026-09-12: the signing room's ground is cream now (THE
     BAND, at the end of this file), and a printed page is paper white, as
     the admin's and the resident's are */
  body.ad, body.rt, body.sg { background: #fff; }
}

/* ------------------------------------------------ masthead */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.masthead .inner {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
}
.masthead h1 {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 600; letter-spacing: .01em;
  color: var(--navy);
  text-wrap: balance;
}
.masthead h1 a { color: inherit; text-decoration: none; }
.masthead .est {
  font-family: var(--serif); font-style: italic;
  color: var(--muted); font-size: .95rem;
}
.masthead .theme-toggle {
  margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; color: var(--muted);
  cursor: pointer; font-size: .8rem; font-family: var(--sans);
}
.masthead .theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
/* .bellwrap already carries margin-left:auto. Two auto margins would SPLIT the
   free space and strand the bell in the middle of the bar, so the toggle gives
   its own up and sits tight against the bell. */
.masthead .bellwrap + .theme-toggle { margin-left: 0; }
.masthead .inner { align-items: center; }
.masthead .navtoggle { align-self: center; }

/* =========================================================================
   THE OFFICE MASTHEAD, ON ONE ROW (2026-08-27) - scoped to .ad, the class on
   admin.html's <body>, exactly as the resident page's chrome is scoped to .rt.

   WHAT IT REPLACES, measured on the live page at 390px: 214px of masthead
   carrying one word of information. 43px of it was a quote on its own band,
   80px was a decorative canvas, and the wordmark row wrapped to two lines
   because the bell and the theme toggle could not fit beside a 1.7rem serif
   title. You scrolled a quarter of the phone before the first number.

   THE QUOTE STAYS - it is a house fixture on every site the owner owns - but it
   RIDES THE ROW instead of owning a band, so it costs zero extra vertical
   pixels. It is the first thing to give up its space: it ellipsises, then it
   disappears entirely below 900px, because a masthead's job on a phone is to
   say where you are and get out of the way.
   ========================================================================= */
.ad .masthead .inner {
  padding: 10px 24px; gap: 6px 14px; flex-wrap: nowrap; align-items: center;
}
.ad .masthead h1 { font-size: 1.22rem; white-space: nowrap; flex: 0 0 auto; }
/* the quote, inline. min-width:0 is what lets a flex child actually shrink
   below its content instead of pushing the bell off the row. */
.ad .masthead .qinline {
  flex: 1 1 auto; min-width: 0; margin-left: 4px;
  font-family: var(--serif); font-style: italic; font-size: .86rem;
  color: var(--muted); opacity: .9;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad .masthead .qinline .quote-ribbon {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad .masthead .qinline .quote-ribbon-author { display: none; }
.ad .masthead .bellwrap { flex: 0 0 auto; }
.ad .masthead .theme-toggle { flex: 0 0 auto; }
/* the glyph is the phone's copy of each control and hides on a desktop, where
   there is room for the word it stands for */
.ad .masthead .navtoggle .g,
.ad .masthead .nbell .g,
.ad .masthead .trustlink .g,
.ad .masthead .theme-toggle .g { display: none; }
.ad .masthead .navtoggle .g { display: inline; }
/* The Trust <-> Admin switch, the other half of the portal's masthead pill:
   words and an outbound arrow, never an icon alone, because it leaves this
   app for a different one. Hidden until /api/overview hands the admin page a
   validated MFTR_TRUST_URL. */
.ad .masthead .trustlink {
  flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; color: var(--muted); text-decoration: none;
  font-size: .8rem; font-family: var(--sans); white-space: nowrap;
}
.ad .masthead .trustlink:hover { color: var(--ink); border-color: var(--accent); }
.ad .masthead .trustlink .sw-arrow { color: var(--accent); margin-left: 5px; }
@media (max-width: 640px) {
  /* 4px, not 8: the bell and the theme toggle are held at a 44px touch target
     by the mobile block further down, so the row is 44px tall whatever this
     padding is. 4px keeps the whole masthead at 52px - under the 56px budget -
     without shrinking a control anybody has to hit with a thumb. */
  .ad .masthead .inner { padding: 4px 14px; gap: 6px 8px; }
  .ad .masthead h1 { font-size: 1.16rem; }
  /* THE WORD GOES, THE GLYPH AND THE COUNT STAY. Menu + wordmark +
     Notifications + Light/Dark measured 485px against a 390px row, so the
     masthead wrapped to two lines and the toggle hung 71px off the right edge
     (document.scrollWidth 461 against clientWidth 390). Every one of these
     buttons carries its own aria-label, so the name is still there for anyone
     who is not reading it with their eyes. */
  .ad .masthead .navtoggle .w,
  .ad .masthead .nbell .w,
  .ad .masthead .trustlink .w,
  .ad .masthead .theme-toggle .w { display: none; }
  .ad .masthead .trustlink .g { display: inline; }
  .ad .masthead .nbell .g,
  .ad .masthead .theme-toggle .g { display: inline; }
  .ad .masthead .navtoggle,
  .ad .masthead .nbell,
  .ad .masthead .theme-toggle { justify-content: center; min-width: 44px;
    padding-left: 10px; padding-right: 10px; }
}
nav.tabs {
  max-width: 1160px; margin: 0 auto; padding: 10px 24px 0;
  display: flex; gap: 2px; overflow-x: auto;
}
nav.tabs a {
  padding: 8px 16px 10px; text-decoration: none; color: var(--muted);
  font-size: .95rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
nav.tabs a:hover { color: var(--ink); }
nav.tabs a.active {
  color: var(--navy); border-bottom-color: var(--accent); font-weight: 600;
}
nav.tabs a:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs);
}

/* THE PLAT BAND IS GONE FROM BOTH PAGES (2026-08-27).
   It was a 110px full-width generative canvas nailed to the top of every
   screen. MEASURED on the admin page at 390px: the masthead was 214px of
   which 121px - 57%, a quarter of the viewport - carried no information at
   all, and you scrolled past all of it before the first number. The resident
   page had already suppressed it (see the .rt phone-masthead block below);
   this makes the office consistent with a decision that was already taken,
   and it is the same call as the 2026-08-22 hard stop on a painted hero.
   The generated plat drawing survives where it is INFORMATIVE - the unit
   drawer's parcel figure - and nowhere as page furniture.
   The rule is kept, as display:none rather than deleted, because renter.html
   still emits the div and a stray 110px canvas would come back with it. */
.plat-band, .plat-band canvas { display: none; }

/* ------------------------------------------------ page scaffold */
main { max-width: 1160px; margin: 0 auto; padding: 28px 24px 80px; }
.eyebrow {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
h2 {
  font-family: var(--serif); color: var(--navy); font-weight: 600;
  font-size: 1.5rem; margin: 0 0 14px; text-wrap: balance;
}
h3 {
  font-family: var(--serif); color: var(--navy); font-weight: 600;
  font-size: 1.15rem; margin: 0 0 10px; text-wrap: balance;
}
p.lede {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.65;
  max-width: 64ch; color: var(--ink);
}
a { color: var(--accent); }
section { margin-bottom: 44px; }
.grid { display: grid; gap: 16px; }
/* min(Npx, 100%) rather than a bare Npx floor: a grid track whose minimum is
   wider than its container cannot shrink, so on a 375px phone a cols-2 grid
   inside a card overflowed its card by ~7px. Identical at every width where
   the container is wider than the floor, which is every desktop width. */
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.note {
  background: var(--surface2); border-left: 3px solid var(--accent);
  padding: 10px 14px; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; font-size: .92rem;
  color: var(--muted); margin: 10px 0;
}
.note strong { color: var(--ink); }
.flag { border-left-color: var(--warn); }
.flag .flag-label { color: var(--warn); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------ people / allocation */
.person-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600;
}
.person-chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.evan { background: var(--evan); } .dot.nora { background: var(--nora); }
.dot.casey { background: var(--casey); } .dot.june { background: var(--june); }
.dot.marian { background: var(--marian); } .dot.trust { background: var(--muted); }
.tint-evan { background: var(--tint-evan); } .tint-nora { background: var(--tint-nora); }
.tint-casey { background: var(--tint-casey); } .tint-june { background: var(--tint-june); }
.tint-marian { background: var(--tint-marian); }
.edge-evan { border-top: 3px solid var(--evan); }
.edge-nora { border-top: 3px solid var(--nora); }
.edge-casey { border-top: 3px solid var(--casey); }
.edge-june { border-top: 3px solid var(--june); }
.edge-marian { border-top: 3px solid var(--marian); }

/* ------------------------------------------------ tables */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th {
  text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 8px 10px;
  border-bottom: 2px solid var(--line);
}
td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
tr.total td {
  border-top: 2px solid var(--line); font-weight: 700;
  background: var(--surface2);
}
.neg { color: var(--crit); }
.pos { color: var(--good); }

/* ------------------------------------------------ stat tiles */
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.stat .label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .value {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--navy);
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.stat .sub { font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------ forms & buttons */
label { font-size: .8rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 3px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 7px 10px; width: 100%;
}
input[type="number"] { font-variant-numeric: tabular-nums; text-align: right; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: var(--radius-xs); padding: 9px 18px; font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none; font-size: .95rem;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: none; color: var(--accent); border: 1px solid var(--accent);
}
.btn.small { padding: 5px 12px; font-size: .85rem; }
.btn.danger-ghost { background: none; color: var(--crit); border: none; padding: 2px 6px; cursor: pointer; }
.formrow { display: grid; gap: 12px; align-items: end; }

/* ------------------------------------------------ timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.tl-item.doc::before { background: var(--accent); }
.tl-date {
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
  letter-spacing: .02em;
}
.tl-item h4 { font-family: var(--serif); color: var(--navy); font-size: 1.02rem; margin: 2px 0 4px; }
.tl-item p { font-size: .92rem; color: var(--muted); max-width: 70ch; }
.tl-item .file { font-family: var(--mono); font-size: .74rem; color: var(--muted); opacity: .8; }

/* ------------------------------------------------ waterfall */
.waterfall { counter-reset: wf; }
.wf-step {
  display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.wf-step:last-child { border-bottom: none; }
.wf-step .n {
  font-family: var(--serif); font-size: 1.3rem; color: var(--accent);
  font-weight: 600; min-width: 28px; text-align: center;
}
.wf-step .t { font-weight: 700; color: var(--navy); }
.wf-step p { font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------ bylaws wiki */
.searchbox { position: relative; margin-bottom: 20px; }
.searchbox input { padding: 12px 16px; font-size: 1.05rem; }
.qa-card { cursor: pointer; }
.qa-card .q { font-weight: 700; color: var(--navy); font-family: var(--serif); font-size: 1.02rem; }
.qa-card .a { margin-top: 8px; font-size: .93rem; display: none; }
.qa-card.open .a { display: block; }
.qa-card .cite { font-family: var(--mono); font-size: .74rem; color: var(--accent); margin-top: 6px; }
.article-card h3 { margin-bottom: 4px; }
.article-card .source { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-bottom: 10px; }
.article-card ol, .article-card ul { padding-left: 22px; margin: 8px 0; }
.article-card li { margin-bottom: 4px; font-size: .93rem; }
mark { background: color-mix(in srgb, var(--casey) 30%, transparent); color: inherit; border-radius: var(--radius-xs); padding: 0 2px; }

/* ------------------------------------------------ charts (inline svg) */
.chart-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .85rem; }
.bar-h { height: 22px; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }

/* ------------------------------------------------ filter chips (shared) */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.fbtn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 5px 14px; cursor: pointer; font: inherit; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.fbtn:hover { color: var(--ink); }
.fbtn.on { border-color: var(--accent); color: var(--ink); font-weight: 600; background: var(--surface2); }
.fbtn .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ------------------------------------------------ shell controls: era square + gear */
.shell-controls { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }
#phase-square {
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: var(--surface); color: var(--muted); font: 600 .72rem var(--mono);
  cursor: pointer; line-height: 1; padding: 0;
}
#phase-square:hover { color: var(--ink); border-color: var(--muted); }
#phase-square[data-p="2"] { border-color: var(--navy); color: var(--navy); }
#phase-square[data-p="3"] { border-color: var(--marian); color: var(--marian); }
/* era 4 is the wind-up - amber, not alarm red: it is a decided state, not an
   error. Same reading, same token, as the Trust portal's own square, which is
   what "one device agrees across both apps" has to mean visually too. */
#phase-square[data-p="4"] { border-color: var(--warn); color: var(--warn); }
/* THE SAME SQUARE, IN THE ADMIN MASTHEAD (2026-09-03). That row is a
   nowrap flex line, so the square has to declare that it does not shrink -
   without this it is the first thing squeezed to nothing at 390px, which is
   the width the owner reads on. 22px is under the 44px touch minimum the mobile
   block holds every other masthead control to, so it gets the same treatment
   there rather than an exception. */
.ad .masthead #phase-square { flex: 0 0 auto; }
@media (max-width: 640px) {
  .ad .masthead #phase-square { min-width: 44px; height: 44px; }
}

/* WHO HOLDS THIS PARCEL, IN THE ERA IN FORCE. One line, inside a property or
   a unit and never on the Grid - see the deleted .powner block. It reads as a
   fact rather than a badge: no pill, no colour of its own, because the person
   colours were half of what made the Grid chip shout. */
.eholder { display: inline-flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; }
.eholder .eh-lab { color: var(--muted); }
.eholder .eh-era { color: var(--muted); font-size: .78em; opacity: .85; }
/* "held out of this era's math" is not the same as "belongs to the Trust",
   and it must not read as a name. */
.eholder .eh-none { color: var(--muted); font-style: italic; }
#gear-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1rem; padding: 2px 4px; line-height: 1;
}
#gear-btn:hover { color: var(--ink); }
#gear-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; width: 320px;
}
#gear-pop .gp-title { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
#gear-pop .gp-opt { display: flex; gap: 10px; padding: 8px 6px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; color: var(--ink); }
#gear-pop .gp-opt:hover { background: var(--surface2); }
#gear-pop .gp-opt input { width: auto; margin-top: 3px; }
#gear-pop .gp-opt span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
#gear-pop .gp-note { font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 8px; }

/* ------------------------------------------------ to-do items */
.todo-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.todo-item:last-child { border-bottom: none; }
.todo-item.done .t-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.t-status {
  flex: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line);
  background: none; cursor: pointer; margin-top: 3px; padding: 0;
}
.t-status.inprogress { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 35%, transparent); }
.t-status.done { border-color: var(--good); background: var(--good); }
.t-main { flex: 1; min-width: 0; }
.t-text { font-size: .93rem; }
.t-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; align-items: center; font-size: .76rem; color: var(--muted); }
.t-deadline.overdue { color: var(--crit); font-weight: 700; }
.t-actions { flex: none; display: flex; gap: 4px; }
.t-actions button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 2px 5px; }
.t-actions button:hover { color: var(--ink); }
.t-comments { margin-top: 8px; border-left: 2px solid var(--line-soft); padding-left: 12px; display: none; }
.todo-item.show-comments .t-comments { display: block; }
.t-comment { font-size: .84rem; color: var(--muted); padding: 3px 0; }
.t-comment .when { font-family: var(--mono); font-size: .7rem; opacity: .7; }
.t-comment-form { display: flex; gap: 8px; margin-top: 6px; }
.era-hidden-note { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------ land editor */
.pcard .edit-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 0 4px; }
.pcard .edit-btn:hover { color: var(--accent); }
.p-editor { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 8px; }
.p-editor .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gis-link { font-family: var(--mono); font-size: .8rem; }

/* ------------------------------------------------ documents library */
.doc-card { scroll-margin-top: 20px; }
.doc-card .loc { font-family: var(--mono); font-size: .72rem; color: var(--muted); word-break: break-all; margin: 6px 0; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.doc-tags .tag { font-size: .7rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.badge.current { color: var(--good); border-color: var(--good); background: none; }
.badge.superseded { color: var(--warn); border-color: var(--warn); background: none; }
.badge.historical { color: var(--muted); }
.doc-ref { font-size: .74rem; }
.era-block { margin-bottom: 36px; }
.era-block > .era-head { font-family: var(--serif); color: var(--navy); font-size: 1.25rem; margin-bottom: 2px; }
.era-block > .era-blurb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; max-width: 68ch; }

/* ------------------------------------------------ misc */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface2);
}
.badge.tentative { color: var(--warn); border-color: var(--warn); background: none; }
.badge.rental { color: var(--accent); border-color: var(--accent); background: none; }
.badge.loan { color: var(--crit); border-color: var(--crit); background: none; }
.badge.paid { color: var(--good); border-color: var(--good); background: none; }
.footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 24px;
  text-align: center; font-size: .8rem; color: var(--muted);
}
.footer .q { font-family: var(--serif); font-style: italic; font-size: .92rem; }
.quote {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--ink); border-left: 3px solid var(--navy);
  padding: 6px 0 6px 18px; max-width: 62ch; margin: 18px 0;
}
.quote .who { display: block; font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--surface); margin-bottom: 10px; }
details[open] summary { margin-bottom: 10px; }

@media (max-width: 640px) {
  .masthead .inner, .quote-band .quote-ribbon { padding-left: 14px; padding-right: 14px; }
  /* 12 cells across 375px gave 22px columns against a 20px label - unreadable.
     Three rows of four is ~80px each, which fits the month and the amount. */
  .cal { grid-template-columns: repeat(4, 1fr); }
  /* the last rail on a wrapped row used to stretch to fill it */
  .payrails { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .payrails .payopt { flex: none; }
  .masthead h1 { font-size: 1.3rem; }
  main { padding: 20px 14px 60px; }
}

/* ---- quote of the day ------------------------------------------------
   Site-Kit's quote-ribbon widget, vendored (static/quote-ribbon.js) and
   re-themed onto Deed & Ledger. The widget ships gold-on-dark for Fernhollow
   and DMVPipe; here it reads as a serif epigraph under the masthead, which
   is the register the rest of this portal is written in.
   Rotation is day-of-year seeded: the same quote all day for everyone. */
.quote-band {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--accent) 4%, var(--surface)) 0%,
              var(--surface) 100%);
}
.quote-band .quote-ribbon {
  max-width: 1160px; margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: baseline; gap: 12px;
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.quote-band .quote-ribbon-text {
  font-family: var(--serif); font-style: italic; font-size: .95rem;
  color: var(--ink); opacity: .88;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.quote-band .quote-ribbon-author {
  font-family: var(--sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); flex: 0 0 auto;
}
.quote-band .quote-ribbon:empty { display: none; }
@media (max-width: 720px) {
  .quote-band .quote-ribbon { padding: 8px 14px; }
  .quote-band .quote-ribbon-author { display: none; }
}

/* ---- RECONCILE, ON A NARROW PHONE (2026-08-27) --------------------------
   MEASURED at 360px: Reconcile was the last of the 21 destinations still
   scrolling the body sideways, by 10px, from .rce-headline - a nowrap pill
   holding a label, a figure and a difference chip. Clean at 390, which is why
   it was not caught with the other two.

   FIXED HERE AND NOT IN reconciliation-engine.css ON PURPOSE. That file is a
   VENDOR COPY, byte-identical to Brain/Components/reconciliation-engine, and
   editing it in place would silently fork the shared engine for every project
   that vendors it. This is the consuming app's own narrow-phone concern, so
   it lives in the consuming app's own stylesheet. .ad scopes it and also wins
   the specificity fight, which a bare class could not: style.css is linked
   BEFORE the engine's sheet, so at equal weight the engine's rule wins. */
@media (max-width: 380px) {
  .ad .rce-headline { white-space: normal; flex-wrap: wrap; row-gap: 4px;
    padding-left: 12px; }
}

/* ---- THE OUTBOX BODY PREVIEW BREAKS ANYWHERE (2026-08-27) ---------------
   Every portal-link letter carries a magic-link URL, and a URL has no break
   opportunity in it. `overflow-wrap: normal` meant one unbreakable 64-char
   token set the min-content width of the row, which set it for #mail-rows,
   for #view, for main, for .appshell and finally for <html>: MEASURED at
   390px, scrollWidth 675 against clientWidth 390 with one queued portal link
   in the list. The recipient address and the failure reason are the same kind
   of string - a machine-made token nobody chose the length of - so all three
   break rather than only the one that was caught. `anywhere` and not
   `break-word`, because only `anywhere` also shrinks min-content, which is
   what the ancestors are actually sizing from. */
/* #mail-panel joined 2026-09-12 (the owner, of the band on a phone: "check mobile views. look at padding. it is off."): MEASURED
   in phone emulation, Messages laid out at 425px on a 360/390/414 phone and
   the phone zoomed the whole page out to fit it. The cause was the panel's
   "No mail transport is configured ... Put them in <secrets path>" note: the
   same kind of machine-made token, one path with no place to break. */
#mail-rows .small,
#mail-rows .mini,
#mail-panel .mini { overflow-wrap: anywhere; }

/* ---- motion + surfaces (2026-08-23 design pass) --------------------------
   Building on Deed & Ledger: no new hues. Transitions are guarded by the
   prefers-reduced-motion block above, which until now had nothing to guard. */
.btn, .fbtn, .card, .doc-card, .tag, .badge, .pill,
input, select, textarea, nav.tabs a, .theme-toggle {
  transition: background-color var(--ease), border-color var(--ease),
              color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.card:hover, .doc-card:hover { box-shadow: var(--lift); }
.btn:hover, .fbtn:hover { transform: translateY(-1px); }
.btn:active, .fbtn:active { transform: translateY(0); }

/* The five person tints were validated for contrast and then only ever used
   to paint a 10px dot. Here they carry a whole card, which is what makes a
   per-person column readable at a glance. */
.surface-evan   { background: var(--tint-evan);   border-color: var(--evan); }
.surface-nora   { background: var(--tint-nora);   border-color: var(--nora); }
.surface-casey  { background: var(--tint-casey);  border-color: var(--casey); }
.surface-june   { background: var(--tint-june);   border-color: var(--june); }
.surface-marian { background: var(--tint-marian); border-color: var(--marian); }
[class*="surface-"] { border-left-width: 3px; border-left-style: solid; }

/* Lifecycle ramp — a funnel column reads left to right without a legend. */
.stage { --s: var(--stage-1); }
.stage-inquiry  { --s: var(--stage-1); }
.stage-applied  { --s: var(--stage-2); }
.stage-approved { --s: var(--stage-3); }
.stage-signed   { --s: var(--stage-4); }
.stage-movedin  { --s: var(--stage-5); }
.stage-lost     { --s: var(--stage-lost); }
.stage-head {
  display: flex; align-items: baseline; gap: 8px;
  border-bottom: 2px solid var(--s); padding-bottom: 6px; margin-bottom: 10px;
}
.stage-head .n {
  font: 700 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--s);
}
.stage-head .c {
  margin-left: auto; font: 700 .7rem var(--mono); color: var(--s);
  background: color-mix(in srgb, var(--s) 12%, transparent);
  border-radius: 999px; padding: 2px 8px;
}
.stage-card {
  border: 1px solid var(--line); border-left: 3px solid var(--s);
  border-radius: var(--radius-sm); background: var(--surface);
  padding: 10px 12px; margin-bottom: 8px;
}
.stage-card:hover { box-shadow: var(--lift); }

/* ========================================================== THE GUIDE ====
   The training page and its funnel diagram. Two-column on a desktop, with a
   sticky filterable nav; below 900px the nav drops UNDER the reading pane,
   because a phone should land on the thing you opened rather than on a list
   of nine links you have to scroll past first (same reasoning, same
   breakpoint, as DMVPipe's guides page).

   The diagram paints exclusively from the approved ramp — --stage-1 through
   --stage-5, plus --surface / --surface2 / --ink / --muted / --line. Not one
   literal colour appears in the SVG or below, which is what makes it follow
   all four theme paths (light, dark, system, explicit) with no second
   stylesheet and no JavaScript.
   ========================================================================= */
.guide-layout {
  display: grid; grid-template-columns: 264px 1fr; gap: 20px;
  align-items: start;
}
/* A grid item defaults to min-width:auto, which means "never shrink below my
   content". The diagram is 940px wide, so without this the reading column
   refused to be narrower than the diagram, the admin page grew a horizontal
   scrollbar on a phone, and EVERY table on it went with the page instead of
   scrolling in its own wrapper. Zeroing the floor at each level of the nest is
   what lets .guide-figure and .tablewrap do the scrolling they were written
   to do. */
.guide-layout > *, .guide-body, .guide-section { min-width: 0; }
.guide-nav { position: sticky; top: 16px; padding: 14px; }
.guide-search { margin-bottom: 12px; }
.guide-search input {
  width: 100%; padding: 8px 10px; font: inherit; font-size: .88rem;
  color: var(--ink); background: var(--surface2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.guide-search input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
  background: var(--surface);
}
.guide-nav a {
  display: block; padding: 7px 10px; margin-bottom: 2px;
  border-radius: var(--radius-sm); text-decoration: none;
  color: var(--ink); font-size: .87rem; font-weight: 600;
  border-left: 3px solid transparent; transition: background var(--ease);
}
.guide-nav a:hover { background: var(--surface2); border-left-color: var(--accent); }
.guide-nav a.is-hidden { display: none; }
.guide-nav-empty { font-size: .82rem; color: var(--muted); padding: 4px 10px; }

.guide-body { display: grid; gap: 18px; }
.guide-section { padding: 20px 22px; scroll-margin-top: 16px; }
.guide-section.is-hidden { display: none; }
.guide-section h2 { margin-bottom: 6px; }
.guide-section h3 { margin: 20px 0 6px; }
.guide-section p { margin: 0 0 12px; }
.guide-section ul, .guide-section ol { margin: 0 0 12px; padding-left: 22px; }
.guide-section li { margin-bottom: 6px; }
.guide-section .lead { font-size: 1.02rem; color: var(--ink); }
.guide-section .callout {
  background: var(--surface2); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; margin: 4px 0 14px;
}
.guide-section code {
  font-family: var(--mono); font-size: .86em;
  background: var(--surface2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs); padding: 1px 5px;
}

/* The figure scrolls INSIDE itself. Without this the 1180-unit diagram would
   widen the whole admin page on a phone and every table on it would follow. */
.guide-figure { margin: 8px 0 6px; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.guide-figure figcaption {
  font-size: .82rem; color: var(--muted); margin-top: 8px; max-width: 62ch;
}
.funnel-diagram { display: block; min-width: 940px; width: 100%; height: auto; }
.funnel-diagram .fd-band {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; fill: var(--muted);
}
.funnel-diagram .fd-note { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.funnel-diagram .fd-box { fill: var(--surface); stroke: var(--line); }
.funnel-diagram .fd-chl {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  fill: var(--ink); text-anchor: middle;
}
.funnel-diagram .fd-lab { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.funnel-diagram .fd-sub { font-family: var(--sans); font-size: 10.5px; fill: var(--muted); }
.funnel-diagram .fd-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700; text-anchor: middle;
}
.funnel-diagram .fd-badge { stroke-width: 1.5; }
.funnel-diagram .fd-wire path { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.funnel-diagram .fd-wire .fd-dash { stroke-dasharray: 5 4; }

/* The gate is drawn, not written: a barred arm across the funnel, hatched at
   both ends and posted at both sides, so it reads as a stop rather than as a
   thirteenth step even before anyone gets to the words. */
.funnel-diagram .fd-gate-arm { stroke-width: 2; stroke-dasharray: 7 4; }
.funnel-diagram .fd-hatch path { stroke-width: 2.5; opacity: .55; }
.funnel-diagram .fd-gate-t {
  font-family: var(--sans); font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-anchor: middle;
}
.funnel-diagram .fd-gate-s {
  font-family: var(--sans); font-size: 10.5px; text-anchor: middle; opacity: .85;
}

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { order: 2; position: static; }
  .guide-body { order: 1; }
}

/* ==== end of stylesheet — new sections go ABOVE this line =============== */

/* ---- THE PROPERTY CARD (2026-08-27) ----------------------------------
   Replaces the .unit / .uhead / .ubody / .ufoot card. Spec:
   Documentation/2026-08-24-Card-System.md · mockup: Documentation/mockups/cards.html

   WHAT WAS WRONG. The old card put TWO facts on one channel - colour. The
   whole-card background carried the parcel OWNER (five tints), while --st
   carried OCCUPANCY on the left border and a .63rem word in the corner. Five
   owners times three states is fifteen combinations on one screen and the eye
   cannot tell which channel answers which question. Worse, the loudest
   channel (background, the largest area) carried the fact that never changes,
   and the fact that decides whether a card needs you today was the smallest
   thing on it.

   And this, which was the single most confusing rule in the file:
       .unit.vacant[class*="own-"] { background: var(--surface); }
   A vacant unit DROPPED its owner tint, so on one parcel the occupied units
   were amber and the vacant ones white - teaching the reader that background
   means owner sometimes and state other times. DELETED, per §9 of the spec,
   and deliberately not carried across in any form.

   THE RULE THE NEW SYSTEM RUNS ON. One channel, one question.
   Card background is ALWAYS --surface. The owner tint moves into the photo
   well, where it has real area, nothing to compete with, and only shows when
   there is no photograph. Occupancy becomes a badge ON the image, top-left,
   where the eye already is. Price becomes the largest text on the card. */
/* NAMED .unitgrid, not the spec's .pgrid: admin.html's own <style> block
   already owns .pgrid for the unit drawer's PHOTO gallery, and an inline
   stylesheet beats a linked one, so the property grid silently rendered at
   the photo grid's auto-fill 160px - six columns of ellipsised text instead
   of four readable cards. */
.unitgrid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1400px) { .unitgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1040px) { .unitgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .unitgrid { grid-template-columns: 1fr; } }

.pcard {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;                 /* the image IS the top of the card */
  text-decoration: none; color: inherit;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.pcard:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- the photo well: 4:3, edge to edge, no padding --------------------- */
.pwell { position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--well); border-bottom: 1px solid var(--line-soft); }
.pwell .photoframe { position: absolute; inset: 0; }
.pwell img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 320ms cubic-bezier(.4,0,.2,1); }
.pcard:hover .pwell img { transform: scale(1.035); }
/* the scrim keeps a white badge legible over a bright photograph; it is
   transparent below 70% so it never greys the picture itself */
.pwell::after { content: ""; position: absolute; inset: 0; background: var(--scrim);
  pointer-events: none; }
.pwell.empty::after { background: none; }

/* THE EMPTY WELL IS A FLAT FIELD THAT ASKS FOR A PHOTOGRAPH (2026-08-27).

   What it replaces: a generated plat drawing over the parcel owner's tint, on
   all 26 cards, stamped "PARCEL nn · NO PHOTO YET". The defence was that "a
   grey box is not an answer" - and it is backwards. A neutral field reads as
   MISSING DATA and invites you to fill it. A generated drawing reads as
   FINISHED and hides the gap for good; four of them across a row read as a
   broken page, and this is the first thing on the landing view.

   So: --well, flat, with a camera glyph and a live "Add photo" control that
   opens the uploader that already exists. Every value here is a shipped
   token - no new hues, and the OWNER TINTS ARE GONE FROM THE WELL. They were
   only ever there to give the drawing a ground, and 26 differently-beige
   cards is what saying it on every one of them looked like. As of
   2026-09-03 the card does not say who holds the parcel AT ALL, in tint or
   in words - see the deleted .powner block below.

   The plat tile is not deleted - static/plat-tile.js still draws the unit
   drawer's parcel figure, where a surveyed parcel is information rather than
   furniture. */
.pwell.empty { display: flex; align-items: center; justify-content: center;
  background: var(--well); }
/* AN EMPTY WELL IS NOT WORTH 4:3 ON A PHONE. At 390px the grid is one card
   across, so a 4:3 well is 293px of nothing; 26 of them is a 9,000px scroll
   to see a grid of 26 units, and seeing the grid is the whole point of the
   view. The RESERVATION shrinks, the PROMISE does not - a card with a real
   photograph keeps its full 4:3 at every width, because there the picture is
   the information. Desktop keeps 4:3 on both: four across, ~250px each. */
@media (max-width: 640px) { .pwell.empty { aspect-ratio: 5/2; } }
.pwell.empty canvas { width: 100%; height: 100%; display: block; }
.addshot { display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--muted); cursor: pointer; padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease); }
.addshot .camglyph { width: 30px; height: 30px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linejoin: round; opacity: .75; }
.addshot-t { font-size: .74rem; font-weight: 600; letter-spacing: .04em; }
.addshot:hover { color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent); }
.addshot:hover .camglyph { opacity: 1; }
/* the whole card lifts on hover, so the affordance answers with it rather
   than waiting for the pointer to find the 100px target inside it */
.pcard:hover .addshot { color: var(--accent); }

/* --- the status badge, overlaid on the image, top-left ----------------- */
.pbadge { position: absolute; top: 11px; left: 11px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--st, var(--muted)); color: var(--bi, var(--badge-ink));
  font-size: .665rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.28); }
/* the dot inherits the same per-state ink, so the two can never disagree */
.pbadge::before { content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--bi, var(--badge-ink)); opacity: .9; }
/* VACANT is the loud one - it is the state that costs the Trust money every
   day it persists, so it is the loudest thing in the grid, on the largest
   surface, in the position the eye reaches first. NOTICE GIVEN is new: it was
   invisible before, yet it is the state that most needs forward planning. */
.st-vacant   { --st: var(--vacant); --bi: var(--badge-ink-vacant); }
.st-occupied { --st: var(--stage-5); }
.st-notice   { --st: var(--warn); }
.st-notready { --st: var(--muted); }

/* THE PARCEL-OWNER CHIP IS GONE (2026-09-03), rule and all, and deleting the
   rule is the point rather than an afterthought: a chip whose CSS survives is
   a chip somebody re-adds. the owner, looking at the Grid:

     "I dont like the 'Contractor' and 'nora' designation when we look at the grid
      view. This is all Owner in phase 1 except for 380 Wasbhburn drive... we
      should not have it on the front like that on the Grid page. Maybe when
      we click inside a property."

   Two faults in one chip. It named the WRONG PERSON - the Schedule A
   allocation is era 2's answer, and era 1 is Owner's everywhere but 380
   Maple Drive - and it answered a question nobody asks of a grid of
   twenty-six cards. The answer now lives INSIDE, on the property page and the
   unit drawer, era-correct, from rentals.py's one ERA_ALLOC rule. The person
   colours (--evan and friends) stay: they are still the plat drawing's ink on
   the unit drawer, and the Trust portal reads by them. */

/* --- the body: price, stats, address, meta ---------------------------- */
.pbody { padding: 13px 15px 14px; display: flex; flex-direction: column; flex: 1; }
/* PRICE - the largest text on the card and the first line under the image.
   The old card tied .door (1.72rem serif) against .money (1.3rem mono), so
   neither won and the card had no entry point. Zillow's card is legible at a
   glance precisely because the price is unambiguously the largest thing. */
.pprice { font-family: var(--sans); font-size: 1.6rem; font-weight: 700;
  line-height: 1.12; color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -.018em; }
.pprice small { font-size: .78rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0; }
/* smaller, because it is a warning rather than a number - but still the first
   line, so a rent-less unit is obvious in a scan */
.pprice.unsetrent { font-size: 1.16rem; color: var(--warn); font-weight: 700; }
/* STATS - Zillow's interpunct line, ALWAYS one line. nowrap + ellipsis is
   what stops a long kind wrapping and staggering the card heights. */
.pstats { margin-top: 5px; font-size: .855rem; color: var(--ink); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstats b { font-weight: 600; }
.pstats .sep { color: var(--line); margin: 0 6px; font-weight: 400; }
/* THE UNMEASURED STATE. The slot is Zillow's SIZE line and nothing else, so
   an unmeasured unit shows the job rather than a stand-in fact: quiet, in the
   accent, and it opens the drawer with the cursor already in Beds. Quiet on
   purpose - 25 of these in a grid must not shout over 26 rents. */
.pstats .addsize { color: var(--muted); font-weight: 600; font-size: .8rem;
  cursor: pointer; transition: color var(--ease); }
.pstats .addsize:hover { color: var(--accent); text-decoration: underline; }
.pcard:hover .pstats .addsize { color: var(--accent); }
/* ADDRESS - two muted lines, neither able to wrap */
.paddr { margin-top: 4px; font-size: .795rem; color: var(--muted); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paddr .street { display: block; font-size: .755rem; opacity: .82;
  overflow: hidden; text-overflow: ellipsis; }
/* META - one thin line on the bottom edge holding the SINGLE fact that
   decides whether this card needs attention today. How rent is collected
   moved here from the stat line: the stat line describes the property, and a
   payment channel is not a property fact. */
.pmeta { padding-top: 9px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 7px; font-size: .735rem;
  color: var(--muted); margin-top: auto; }
.pmeta .flag { color: var(--warn); font-weight: 700; }
.pmeta .warnflag { color: var(--crit); font-weight: 700; }
.pmeta b { color: var(--ink); font-weight: 600; }
.pmeta .go { margin-left: auto; color: var(--accent); font-weight: 600;
  white-space: nowrap; }

/* --- the bar above the grid ------------------------------------------- */
.gridbar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  margin-bottom: 18px; }
.gridbar .count { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); }
.gridbar .count b { color: var(--navy); font-weight: 600; }
.gridbar .count span { font-family: var(--sans); font-size: .8rem; color: var(--muted);
  margin-left: 7px; }
.gridbar .spacer { flex: 1; }
/* Seven filters do not fit a phone. The strip scrolls INSIDE ITSELF rather
   than widening the document - a sideways-scrolling page is the bug this
   prevents, and the owner reads this on a phone. */
.seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg::-webkit-scrollbar { display: none; }
.seg button { background: none; border: 0; font: inherit; font-size: .78rem;
  color: var(--muted); padding: 5px 14px; border-radius: 999px; cursor: pointer;
  transition: background var(--ease), color var(--ease); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--navy); font-weight: 600;
  box-shadow: var(--shadow); }

/* ---- A PHOTOGRAPH THAT KNOWS WHICH WAY IS UP (2026-08-27) ---------------
   normalise_photo() takes the EXIF rotation flag OUT of the stored bytes and
   hands back the turn still owed, so the browser applies nothing of its own
   and this applies it exactly once.  Two pieces:
     .photoframe   a fixed crop window; the picture COVERS it and never
                   stretches, because a squashed kitchen is worse than a
                   cropped one
     img.turn      orientations 5-8, the quarter turns, which SWAP the sides.
                   The element is sized height-by-width in container units
                   BEFORE the rotation, so the rotated box lands back on the
                   frame exactly.  2, 3 and 4 are a mirror or a half turn and
                   need no resize.
   No new colour: a frame is a border, a radius and one surface token. */
.photoframe { position: relative; overflow: hidden; background: var(--surface2);
  container-type: size; }
.photoframe img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transform: var(--turn, none); }
.photoframe img.turn { inset: auto; top: 50%; left: 50%;
  width: 100cqh; height: 100cqw;
  transform: translate(-50%, -50%) var(--turn, none); }

/* The card's photo-count and caption chips. They sit on the photograph, at
   the BOTTOM edge, so they never collide with the status badge or the owner
   chip at the top. */
.pwell .ucount, .pwell .ucap {
  position: absolute; bottom: 8px; z-index: 2; font-size: .62rem; font-weight: 700;
  letter-spacing: .05em; padding: 2px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  color: var(--paper); backdrop-filter: blur(2px); }
.pwell .ucount { right: 8px; }
.pwell .ucap { left: 8px; max-width: 62%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
  letter-spacing: .02em; text-transform: none; }

/* The renter portal's vacancy strip. Same frame, chooser semantics: picking
   one sets the <select> underneath, because an <option> cannot hold a
   photograph and a vacancy with no picture does not let. */
.vacgrid { display: grid; gap: 10px; margin-bottom: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vacgrid .vac { display: grid; gap: 2px; padding: 0 0 8px; text-align: left;
  font: inherit; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: box-shadow var(--ease), border-color var(--ease); }
.vacgrid .vac:hover { box-shadow: var(--lift); }
.vacgrid .vac.on { border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent); }
.vacgrid .vac .photoframe { display: block; aspect-ratio: 4/3; }
.vacgrid .vacname { padding: 6px 10px 0; font-weight: 600; color: var(--ink);
  font-size: .84rem; }
.vacgrid .vacrent { padding: 0 10px; font-size: .74rem; color: var(--muted); }

/* .who survives the card rewrite: the funnel's .stage-card and the
   notification rows both use it. .door / .ukind / .ustate / .uhead / .ubody /
   .ufoot / .uflag / .money / .unset went with the .unit card - nothing else
   in either template referenced them. */
.who { font-size: .79rem; color: var(--muted); }
.who b { color: var(--ink); font-weight: 600; }
.uact { margin-left: auto; color: var(--accent); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid transparent; }
.uact:hover { border-bottom-color: var(--accent); }

/* ==== reconciliation-engine token bridge (2026-08-24) =====================
   ENGINES.md's theming contract: reconciliation-engine.css reads HOST tokens
   with neutral LIGHT fallbacks (--brand #2F5D8A, --ground #F4F5F3,
   --ink-muted #62695F, --surface-2 #F0F2F0, --line-strong #C2C6BC,
   --danger #B3261E, --r 10px, --font-*). FHT never defined those names, so
   in DARK mode the engine kept the light fallbacks and the matcher sat there
   as a pale slab in the middle of a dark page — the only part of the portal
   that did not follow the theme.

   Aliases, not copies. A custom property is substituted at computed-value
   time on the element that declares it, so `--ground: var(--paper)` on :root
   resolves against whichever --paper the cascade awarded :root. That is why
   ONE block covers all four theme paths (light, system-dark, explicit-dark,
   explicit-light) with nothing repeated and nothing to keep in sync.
   Semantic status colours (--rce-good/warn/danger-bg) stay engine-owned. */
:root {
  --brand:       var(--accent);
  --on-brand:    var(--accent-ink);
  --surface-2:   var(--surface2);
  --ground:      var(--paper);
  --ink-muted:   var(--muted);
  --line-strong: color-mix(in srgb, var(--line) 55%, var(--muted));
  --danger:      var(--crit);
  --r:           var(--radius);
  --font-body:    var(--sans);
  --font-display: var(--serif);
  --font-mono:    var(--mono);
}

/* ==== the twelve-month strip, on tokens ==================================
   Canonical rules for the admin/unit calendar. `min-width: 0` is the fix for
   the documented overflow: a grid item floors at its content width, so twelve
   `$650.00` strings refused to shrink and pushed the strip out of its card at
   the narrow breakpoint. The colours are the --late ramp; admin.html still
   carries an inline copy with the old literals, which is that template's
   owner to delete — deleting it now inherits these. */
.cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.cal .m {
  min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  padding: 6px 2px; text-align: center; font-size: .66rem; color: var(--muted);
}
.cal .m .amt { display: block; font-size: .68rem; color: var(--ink); }
.cal .m.yellow { background: color-mix(in srgb, var(--late-15) 25%, transparent); border-color: var(--late-15); }
.cal .m.orange { background: color-mix(in srgb, var(--late-30) 30%, transparent); border-color: var(--late-30); }
.cal .m.red    { background: color-mix(in srgb, var(--crit) 35%, transparent);    border-color: var(--crit); }
.cal .m.paid   { border-color: var(--good); }

/* ==== THE RESIDENT PORTAL (2026-08-24) ===================================
   Designed phone-first, for someone standing in a car park: what do I owe,
   when is it due, how do I pay it, and how do I tell someone the tap is
   leaking. Everything else on the page is secondary and is written that way.

   Nothing here invents a colour. The hero, the pay card and the calendar
   paint from --good / --warn / --crit / --navy / --accent plus the --late
   age ramp; the person hues are deliberately absent, because on this side of
   the fence a person means the PARCEL OWNER and a resident is not one.
   ========================================================================= */

/* [hidden] MEANS HIDDEN, and it did not.
   The UA sheet's `[hidden] { display: none }` is a plain attribute selector,
   so ANY class rule with a display of its own beats it - and `.rp` below has
   one. `<section id="me" hidden class="rp">` therefore rendered anyway: the
   resident payment panels, the calendar and the profile were laid out under
   every screen of this page, including the sign-in screen an APPLICANT sees.
   Empty of another person's data, but structurally wrong and one JS slip from
   worse. This is the correctness rule the layout rules must not outrank. */
[hidden] { display: none !important; }

.rp { display: grid; gap: 16px; }
.rp-2col { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .rp-2col { grid-template-columns: 1.15fr 1fr; align-items: start; } }

/* ---- the hero: the one number they came for */
.rp-hero {
  --hero: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--hero);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px 16px;
}
.rp-hero.is-clear { --hero: var(--good); }
.rp-hero.is-due   { --hero: var(--navy); }
.rp-hero.is-late  { --hero: var(--crit); }
.rp-hero.is-today { --hero: var(--warn); }      /* the day itself, before anything is late */
.rp-hero-lab {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
}
.rp-hero-num {
  font-family: var(--serif); font-weight: 600; color: var(--hero);
  font-size: clamp(2.5rem, 12vw, 3.4rem); line-height: 1.02;
  font-variant-numeric: tabular-nums; margin: 2px 0 4px;
  overflow-wrap: anywhere;
}
.rp-hero-sub { font-size: .95rem; color: var(--ink); }
.rp-hero-sub b { color: var(--hero); }
.rp-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--muted);
}
.rp-hero-meta b { color: var(--ink); font-weight: 600; }
.rp-pend {
  margin-top: 11px; display: flex; gap: 9px; align-items: flex-start;
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: .84rem; color: var(--ink);
}
.rp-pend b { color: var(--warn); }

/* ---- tap targets. 44px is the floor everywhere a finger lands. */
.rp .btn, .rp button.payopt, .rp input, .rp select, .rp textarea { min-height: 44px; }
.rp .btn { padding: 11px 22px; border-radius: var(--radius-sm); }
.rp .btn.block { display: block; width: 100%; text-align: center; }
.rp .btn.small { min-height: 40px; }
.rp label { font-size: .78rem; }
.rp input, .rp select, .rp textarea { border-radius: var(--radius-sm); padding: 10px 12px; }

/* ---- pay: pick a rail, send the exact figure, tell us */
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; }
.payopt {
  flex: 1 1 150px; display: flex; flex-direction: column; justify-content: center;
  gap: 1px; text-align: left; font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 13px; cursor: pointer; background: var(--surface);
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.payopt:hover { border-color: var(--muted); }
.payopt.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--accent);
}
.payopt .amt {
  font-family: var(--mono); font-size: 1.12rem; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.payopt.on .amt { color: var(--accent); }
.payopt .mini { font-size: .74rem; color: var(--muted); }
.rp-sendline {
  margin-top: 13px; background: var(--surface2);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.rp-sendline .lab { font-size: .78rem; color: var(--muted); }
.rp-sendline .fig {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.rp-sendline .why { font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* ---- report an issue */
.rp-issue { display: flex; gap: 9px; align-items: baseline; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.rp-issue:last-child { border-bottom: none; }
.rp-issue .st { flex: none; font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; border-radius: 999px; padding: 2px 9px;
  border: 1px solid currentColor; }
.rp-issue.open .st { color: var(--warn); }
.rp-issue.done .st { color: var(--good); }

/* ---- emergency strip: never behind a fold, never a wall of text */
.rp-emerg {
  border: 1px solid var(--line); border-left: 4px solid var(--crit);
  border-radius: var(--radius-sm); background: var(--surface);
  padding: 12px 15px; display: grid; gap: 5px; font-size: .88rem;
}
.rp-emerg .t { font-weight: 700; color: var(--crit); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; }
.rp-emerg a { font-weight: 600; }

/* ==== the payment calendar ================================================
   The centrepiece, and the thing the twelve-across strip could never say:
   owed / paid / balance per month, a partial reading AS a partial, and the
   arrears the month before handed forward.

   TWO AXES, never one colour doing both jobs — which is the defect this
   replaces (yellow used to mean "paid 15 days late" AND "unpaid 15 days"):
     FILL + EDGE  = is money still owed?  green settled · amber part paid ·
                    age-ramp still owed · dashed grey not due yet
     HATCH BAND   = was it late?  only ever drawn on a SETTLED month, in the
                    age ramp, so "paid, but late" can never be mistaken for
                    "owing". Every cell also carries the sentence in full, in
                    the cell and again in title=.
   ========================================================================= */
.paycal-year {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  font-family: var(--serif); color: var(--navy); font-size: 1.1rem;
  margin: 16px 0 8px;
}
.paycal-year:first-child { margin-top: 4px; }
.paycal-year .tot { font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.paycal-year .tot b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.paycal {
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
}
.pmonth {
  --pm: var(--line); --pmt: var(--muted); --age: var(--muted);
  position: relative; min-width: 0; overflow: hidden;
  display: grid; gap: 7px; align-content: start;
  border: 1px solid var(--line); border-left: 4px solid var(--pm);
  border-radius: var(--radius-sm); background: var(--surface);
  padding: 10px 12px 11px;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.pmonth:hover { box-shadow: var(--lift); }
.pmonth.s-paid     { --pm: var(--good); --pmt: var(--good); }
.pmonth.s-paidlate { --pm: var(--good); --pmt: var(--good); }
.pmonth.s-partial  { --pm: var(--warn); --pmt: var(--warn);
                     background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.pmonth.s-due      { --pm: var(--line); --pmt: var(--muted); border-left-style: dashed; }
.pmonth.s-unpaid   { --age: var(--warn); --pm: var(--age); --pmt: var(--warn);
                     background: color-mix(in srgb, var(--age) 12%, var(--surface)); }
/* The ramp paints the EDGE and the FILL; the words stay on the ink-side
   semantic colour, because #E7C144 at 15+ is a border colour, not a text
   colour — as type on its own 12% tint it fails contrast outright. */
.pmonth.s-unpaid.age-60 { --pmt: var(--crit); }
.pmonth.s-none     { opacity: .55; }
/* age ramp — the ONLY thing these three colours say */
.pmonth.age-15 { --age: var(--late-15); }
.pmonth.age-30 { --age: var(--late-30); }
.pmonth.age-60 { --age: var(--crit); }
/* hatch = settled, but settled late. Drawn only on s-paidlate. */
.pmonth.s-paidlate::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: repeating-linear-gradient(135deg,
    var(--age) 0 5px, transparent 5px 10px);
}
.pmonth.s-paidlate { padding-top: 14px; }

.pm-head { display: flex; align-items: baseline; gap: 7px; }
.pm-mo { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.pm-due { margin-left: auto; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.pm-bar { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.pm-bar i { display: block; height: 100%; background: var(--pm); border-radius: 999px; }
.pm-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pm-nums div { min-width: 0; }
.pm-nums b {
  display: block; font-size: .6rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.pm-nums span {
  font-family: var(--mono); font-size: .84rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pm-nums .owing span { color: var(--pmt); font-weight: 700; }
.pm-state {
  display: flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700; color: var(--pmt); line-height: 1.35;
}
.pm-state .ico { flex: none; font-size: .8rem; }
.pm-carry {
  font-size: .7rem; color: var(--muted);
  border-top: 1px dashed var(--line-soft); padding-top: 6px;
}
.pm-carry b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- legend: says what the two axes mean, in words, on the page */
.rp-legend {
  display: grid; gap: 9px; margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted);
}
.rp-legend .row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.rp-legend .key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rp-legend .sw {
  width: 26px; height: 15px; border-radius: var(--radius-xs); flex: none;
  border: 1px solid var(--line); border-left: 4px solid var(--k, var(--line));
  background: var(--sw, var(--surface));
}
.rp-legend .sw.k-paid    { --k: var(--good); }
.rp-legend .sw.k-late    { --k: var(--good);
  background: repeating-linear-gradient(135deg, var(--late-30) 0 4px, var(--surface) 4px 8px); }
.rp-legend .sw.k-partial { --k: var(--warn); --sw: color-mix(in srgb, var(--warn) 22%, var(--surface)); }
.rp-legend .sw.k-owed    { --k: var(--crit); --sw: color-mix(in srgb, var(--crit) 22%, var(--surface)); }
.rp-legend .sw.k-due     { --k: var(--line); border-left-style: dashed; }
.rp-legend .ramp { display: inline-flex; gap: 3px; align-items: center; }
.rp-legend .ramp i {
  width: 15px; height: 10px; border-radius: 2px; display: block;
  background: var(--c);
}

/* ---- documents + profile: secondary, and it looks secondary */
.rp-fold { border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 0; margin: 0; }
.rp-fold > summary {
  padding: 13px 16px; min-height: 44px; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; font-family: var(--serif); font-size: 1.05rem;
  color: var(--navy); list-style: none;
}
.rp-fold > summary::-webkit-details-marker { display: none; }
/* An explicit chevron: the UA marker is a 6px glyph on a 44px row, which is
   not a "this opens" signal on a phone. */
.rp-fold > summary::before {
  content: "›"; flex: none; font-family: var(--sans); font-size: 1.3rem;
  line-height: 1; color: var(--accent); width: 14px; text-align: center;
  transform: rotate(0deg); transition: transform var(--ease);
}
.rp-fold[open] > summary::before { transform: rotate(90deg); }
.rp-fold > summary .hint { margin-left: auto; font-family: var(--sans);
  font-size: .76rem; color: var(--muted); font-weight: 400; }
@media (max-width: 560px) {
  .rp-fold > summary .hint { margin-left: 24px; flex-basis: 100%; }
}
.rp-fold > .in { padding: 0 16px 16px; }
.doccheck {
  display: flex; gap: 9px; align-items: center; min-height: 44px;
  padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem;
}
.doccheck:last-child { border-bottom: none; }
.doccheck .ok { color: var(--good); font-weight: 700; }
.doccheck .miss { color: var(--muted); font-weight: 700; }
.emcard {
  border-left: 3px solid var(--line); background: var(--surface2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 11px 14px;
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: .9rem; }
.kv .k { color: var(--muted); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .08em; padding-top: 3px; }

/* ---- the demo picker (production never renders this screen) */
.rp-pick { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.rp-pick button {
  min-height: 52px; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); padding: 10px 14px; display: grid; gap: 1px;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.rp-pick button:hover { box-shadow: var(--lift); transform: translateY(-1px); }
.rp-pick button .n { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.rp-pick button .u { font-size: .76rem; color: var(--muted); }

@media (max-width: 420px) {
  .rp-hero { padding: 15px 15px 14px; }
  .payopt { flex: 1 1 100%; }
  .paycal { grid-template-columns: 1fr; }
}

/* Nothing owed is good news, not an empty form. */
#pay.settled .rp-sendline { border-color: var(--good); background:
  color-mix(in srgb, var(--good) 8%, transparent); }
#pay.settled .rp-sendline .lab { color: var(--good); }

/* Grouped navigation: a primary row of six, then the active group's views.
   Replaces sixteen flat tabs that wrapped onto two rows and gave every
   destination identical weight. */
/* .tabsbar / .subbar were the two-level tab nav: six group buttons, each
   swapping a second row of destinations underneath. Replaced by the
   persistent sidebar - see the APP SHELL section for why a hidden second
   level made every destination undiscoverable. */

/* ==========================================================================
   NOTIFICATIONS — the badge and the list, shared by both templates.
   the owner: "when I say notifications, I mean within the app. A red
   notification will appear for the appropriate person in the workflow."

   These rules used to live inline in admin.html only, which is why the
   resident portal had no notifications at all and would have grown a second
   idiom the moment it did. One home, both pages, one change to make.

   The tiers are the same three words on both sides, and they are TOKENS:
   red is --crit (immediate, and the number on the badge), amber is --warn
   (the office's digest, counted beside it and never badged), grey is
   --muted (informational, listed and never counted). The resident side uses
   red and grey only - a resident has no digest to work through.
   ========================================================================== */
.nbell { position: relative; background: none; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted); font: inherit; font-size: .78rem;
  padding: 4px 12px; cursor: pointer; min-height: 32px;
  transition: color var(--ease), border-color var(--ease); }
.nbell:hover { border-color: var(--accent); color: var(--ink); }
.nbell .cnt { display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: var(--crit); color: var(--accent-ink);
  font-size: .66rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nbell .cnt.amber { background: var(--warn); }
/* Notices listed, none of them red. The number is the LIST, so it must still
   read as a number - just not as an alarm. */
.nbell .cnt.grey { background: var(--muted); color: var(--surface); }
.nbell .cnt.zero { background: var(--line); color: var(--muted); }

.attn { border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.attn h3 { margin: 0; padding: 9px 14px; font-family: var(--serif);
  color: var(--navy); font-size: .98rem; border-bottom: 1px solid var(--line);
  background: var(--surface2); }
.attn .n { display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft); font-size: .86rem; }
.attn .n:last-child { border-bottom: none; }
.attn .n .dot { width: 9px; height: 9px; border-radius: 999px; margin-top: 5px;
  flex: 0 0 auto; background: var(--muted); }
.attn .n.red .dot { background: var(--crit); }
.attn .n.amber .dot { background: var(--warn); }
.attn .n.grey .dot { background: var(--muted); }
.attn .n .who { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 7px; white-space: nowrap; }
.attn .n .body { flex: 1; min-width: 0; }
.attn .n .body .sub { color: var(--muted); font-size: .78rem; }
/* The resident's copy sits in the page, not in a masthead popover, so an
   unread row earns a tint the office list does not need. */
.attn .n.unread.red { background: color-mix(in srgb, var(--crit) 5%, transparent); }

/* ==========================================================================
   THE SHARED LOG — the same rows on the resident's portal and on the admin's
   tenant page, because they are served by one function (rentals.tenant_ledger).
   the owner: "then it keeps track of it in the log for them and us."
   The REASON column is the point: a charge that is not rent cannot be created
   without one, and this is where the resident reads it.
   ========================================================================== */
.slog { width: 100%; border-collapse: collapse; font-size: .84rem; }
.slog th, .slog td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.slog th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; background: var(--surface2);
  position: sticky; top: 0; }
.slog td.num, .slog th.num { text-align: right; font-variant-numeric: tabular-nums; }
.slog tr:last-child td { border-bottom: none; }
.slog .why { color: var(--muted); }
.slog .up { color: var(--crit); }          /* money owed went up   */
.slog .down { color: var(--good); }        /* money owed came down */
.slog .e { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
  color: var(--muted); white-space: nowrap; }
.slog .e.charge { color: var(--navy); border-color: var(--navy); }
.slog .e.payment { color: var(--good); border-color: var(--good); }
.slog .e.adjustment { color: var(--warn); border-color: var(--warn); }
.slog tr.pending td { opacity: .72; font-style: italic; }
/* The phone rules for this table live at the END of this file, under "THE
   SHARED LOG KEEPS ITS BALANCE COLUMN ON A PHONE".  What stood here dropped
   the Balance column below 640px; the row restacks now instead. */

/* ================================================================ THE MAIL ==
   The unsubscribe page, and nothing else. It is the ONE page this app renders
   server-side with no script at all, reached from a link in a resident's
   inbox - so it loads this stylesheet alone and has to stand up on it.
   Approved tokens only; the four theme paths come from the :root blocks at the
   top of this file and apply here unchanged. */
.unsub-wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(24px, 8vh, 72px) 20px;
}
.unsub-wrap h1 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.25;
}
.unsub-wrap p { margin: 0 0 12px; color: var(--ink); }
.unsub-wrap p:last-child { margin-bottom: 0; }
.unsub-wrap .mini { color: var(--muted); font-size: .82rem; }
.unsub-wrap form { margin-top: 18px; }

/* ==== waiting for your signature ==========================================
   One row per agreement: what it is on the left, the act on the right. Layout
   only - every colour here is an existing token, and the button is the shipped
   .btn, so this follows a theme change like everything else. On a narrow
   screen the button drops below the name rather than squeezing it. */
.agrrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.agrrow:last-child { border-bottom: none; }
.agrrow .btn { flex: 0 0 auto; }
@media (max-width: 460px) { .agrrow .btn { width: 100%; } }

/* =========================================================================
   THE RENTER DIRECTORY (2026-08-27)
   the owner, verbatim: "Think Facebook. Picture on the top left with their name
   on the right, renter since.... under their name. Then their phone number."
   Followed literally. Spec §4, Documentation/2026-08-24-Card-System.md
   ========================================================================= */
.roster { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }

/* THE ROW IS A DIV, NEVER AN <a>. The obvious implementation - wrap the whole
   row in an anchor so it is clickable - BREAKS, because the row also has to
   carry a tel: link, and an <a> inside an <a> is invalid HTML. The parser does
   not error: it silently closes the outer anchor at the inner one and shreds
   each row into three sibling fragments. So the row is a div, the NAME link is
   stretched over it with ::after/inset:0, and the phone link is lifted above
   that overlay with z-index. One row, two real links, valid markup, both
   reachable by keyboard. */
.rrow { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
  color: inherit; transition: background var(--ease); }
.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: var(--surface2); }
.rrow:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.rname a { color: inherit; text-decoration: none; }
.rname a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rphone { position: relative; z-index: 2; }

.rid { flex: 1; min-width: 0; }
.rname { font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--navy); line-height: 1.25; }
.rsince { font-size: .815rem; color: var(--muted); margin-top: 1px; }
.rphone { font-size: .85rem; color: var(--ink); margin-top: 3px;
  font-variant-numeric: tabular-nums; }
.rphone a { color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); }
.rphone a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.rwhere { flex: 0 0 auto; text-align: right; min-width: 172px; }
.rwhere .u { font-size: .86rem; color: var(--ink); font-weight: 600; }
.rwhere .s { font-size: .755rem; color: var(--muted); margin-top: 1px; }
.rwhere .m { font-size: .8rem; color: var(--muted); margin-top: 4px;
  font-variant-numeric: tabular-nums; }
/* Under 720px the where-block drops beneath the identity and aligns to the
   NAME, not the avatar - so the row still reads as one person, top-down.
   flex-basis:100% only wraps because .rrow sets flex-wrap:wrap; without that
   the row overflowed the viewport and the whole page scrolled sideways. */
@media (max-width: 720px) {
  .rwhere { text-align: left; min-width: 0; flex: 1 1 100%; margin-left: 71px;
    margin-top: 2px; }
  .rwhere .m { margin-top: 2px; }
}
@media (max-width: 420px) { .rwhere { margin-left: 0; } }

/* ---- THE MONOGRAM AVATAR
   NAMED .monogram, not .mono: `td.mono` is this stylesheet's MONOSPACE helper
   and admin.html already renders `<span class="mono">••4471</span>` for an
   account's last four digits. A bare `.mono` rule here would have turned
   every one of those into a 56px coloured disc. ---------------------------------------------
   tenants.photo_file exists, has an upload endpoint, and is EMPTY for every
   row - there are zero renter photographs on disk. So the monogram is not a
   fallback, it is the state the owner will see, and it has to look deliberate.
   letter-spacing adds trailing space AFTER the last glyph, which pushes the
   pair visually left of centre; the matching text-indent gives it back. That
   is what makes it read as typeset rather than as a placeholder. */
.monogram { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--w, var(--who-1)); color: var(--who-ink);
  font-family: var(--sans); font-size: 1.13rem; font-weight: 600;
  letter-spacing: .055em; text-indent: .055em;
  line-height: 1; user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.monogram.w1 { --w: var(--who-1); } .monogram.w2 { --w: var(--who-2); }
.monogram.w3 { --w: var(--who-3); } .monogram.w4 { --w: var(--who-4); }
.monogram.w5 { --w: var(--who-5); }
.monogram img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover;
  display: block; }
.monogram .photoframe { width: 100%; height: 100%; border-radius: 999px; }
.monogram.lg { width: 112px; height: 112px; font-size: 2.15rem;
  letter-spacing: .05em; text-indent: .05em; }
/* .sm sets ~12px, which is NORMAL text, where the AA threshold is 4.5:1 and
   --who-3 measures 4.12. Reserved for rows that carry a real photograph. */
.monogram.sm { width: 34px; height: 34px; font-size: .76rem; }

/* ---- the renter profile header (spec §6) ------------------------------
   A profile page, not a table row that got taller. The cover strip is
   deliberately quiet - flat colour and thin survey line work, no
   illustration, no photograph, no scene. That is the 2026-08-22 constraint:
   clean and professional, never painterly. */
.phero { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.pcover { height: 132px; position: relative;
  background: linear-gradient(118deg,
    color-mix(in srgb, var(--navy) 26%, var(--surface)),
    color-mix(in srgb, var(--accent) 20%, var(--surface))); }
.pcover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pident { display: flex; align-items: flex-end; gap: 19px; padding: 0 22px 15px;
  margin-top: -46px; position: relative; flex-wrap: wrap; }
/* the 4px ring is what makes the overlap read as intentional */
.pident .monogram { border: 4px solid var(--surface); box-shadow: var(--shadow); }
.pwho { flex: 1; min-width: 220px; padding-bottom: 3px; }
.pwho h2 { font-family: var(--serif); font-size: 1.72rem; color: var(--navy);
  font-weight: 600; line-height: 1.2; }
.pwho .line { font-size: .865rem; color: var(--muted); margin-top: 2px; }
.pwho .contact { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 7px;
  font-size: .845rem; }
.pwho .contact a { color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); }
.pwho .contact a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pmoney { text-align: right; padding-bottom: 5px; }
.pmoney .lab { font-size: .665rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); }
.pmoney .amt { font-family: var(--serif); font-size: 1.72rem; line-height: 1.15;
  font-weight: 600; }
.pmoney .amt.ok { color: var(--good); } .pmoney .amt.due { color: var(--crit); }
.pmoney .sub { font-size: .755rem; color: var(--muted); margin-top: 1px; }
@media (max-width: 640px) { .pmoney { text-align: left; } }

/* =========================================================================
   THE APP SHELL (2026-08-27) — a persistent sidebar, replacing the two-level
   tab bar (.tabsbar + .subbar).

   THE PROBLEM IT FIXES, in the owner's words: "Things are a bit confusing and if
   I can't find it, no one else can." He could not find the Lease builder. It
   existed and worked the whole time - Leasing > Lease builder - but the nav
   was TWO LEVELS: six group buttons, each of which replaced the second row
   with its own destinations. Twenty-one destinations sat behind a click that
   gave no hint of what was inside it, so NOTHING was findable unless you
   already knew where it lived. Discovery was impossible by construction.

   THE FIX. Every destination is on screen at once, with its own name, grouped
   under quiet section labels. There is no hidden level. "Lease builder" is
   readable text on a cold load, so finding it costs ONE click and no
   knowledge. The group headings became LABELS, not buttons - a heading that
   navigates is what created the hidden level in the first place.
   ========================================================================= */
.appshell { max-width: 1440px; margin: 0 auto; display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 0; align-items: start; }
.appshell > main { max-width: none; margin: 0; padding: 24px 28px 80px; min-width: 0; }

.sidenav { position: sticky; top: 0; align-self: start;
  max-height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line); background: var(--surface);
  padding: 16px 12px 40px; }
.sidenav .navsec { margin-top: 16px; }
.sidenav .navsec:first-of-type { margin-top: 4px; }
/* a LABEL, not a button - see the header comment */
.sidenav .navlab { font-size: .655rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 0 10px 5px; }
.sidenav a.navitem { display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--ink); font-size: .875rem; line-height: 1.3;
  transition: background var(--ease), color var(--ease); }
.sidenav a.navitem:hover { background: var(--surface2); }
.sidenav a.navitem.on { background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--navy); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent); }
.sidenav a.navitem .ic { flex: 0 0 auto; width: 17px; text-align: center;
  font-size: .95rem; opacity: .8; }
.sidenav a.navitem .nm { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
/* a count rides the item it belongs to, so "3" is attached to a NAME */
.sidenav a.navitem .n { flex: 0 0 auto; font-size: .68rem; font-weight: 700;
  background: var(--surface2); color: var(--muted); border-radius: 999px;
  padding: 1px 7px; }
.sidenav a.navitem .n.hot { background: var(--crit); color: #FFF; }
.sidenav a.navitem .n.warm { background: var(--warn); color: #FFF; }

/* ---- the jump box. Type a name, the list filters to it. "/" focuses it from
   anywhere, Enter takes the first match. This is an ACCELERATOR, not the fix:
   a first-time reader will never guess a keystroke, which is why the full list
   above is always visible and never collapsed behind one. */
.navsearch { position: relative; margin: 0 2px 8px; }
.navsearch input { width: 100%; padding: 7px 11px 7px 30px; font: inherit;
  font-size: .84rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); }
.navsearch input::placeholder { color: var(--muted); }
.navsearch .mag { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .8rem; pointer-events: none; }
.navsearch kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: .62rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 0 4px;
  pointer-events: none; }
.navsearch input:not(:placeholder-shown) ~ kbd { display: none; }
.sidenav .navempty { padding: 10px; font-size: .8rem; color: var(--muted); }

.sidenav .navclose { display: none; margin: 0 2px 10px; width: 100%;
  align-items: center; justify-content: space-between; background: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: .82rem; color: var(--muted); padding: 6px 11px; }

/* ---- mobile: the sidebar becomes a sheet. the owner browses on his phone, so
   this is the path that matters most. Everything stays in ONE list - the
   sheet is the same markup, so a phone reader still sees all twenty-one
   destinations by scrolling, never by guessing which group hides which. */
.navtoggle { display: none; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; color: var(--ink); cursor: pointer;
  font: inherit; font-size: .82rem; align-items: center; gap: 7px; }
.navtoggle:hover { border-color: var(--accent); }
.navscrim { display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(16,22,30,.45); }
@media (max-width: 1080px) {
  .appshell { grid-template-columns: minmax(0, 1fr); }
  .appshell > main { padding: 20px var(--page-gutter) 60px; }   /* ONE PAGE GUTTER, end of file */
  .navtoggle { display: inline-flex; }
  .sidenav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
    width: min(310px, 86vw); max-height: none; height: 100%;
    transform: translateX(-100%); transition: transform 200ms cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 40px rgba(0,0,0,.28); padding-top: 14px; }
  .sidenav.open { transform: translateX(0); }
  .navscrim.open { display: block; }
  .sidenav .navclose { display: flex; min-height: 44px; }

  /* THE QUOTE GOES AT THE SAME WIDTH THE SIDEBAR DOES, and it lives in this
     block rather than a 1080px block of its own: this is where the row GAINS
     the Menu button, so it is the width at which the quote genuinely stops
     having room. One breakpoint, one reason, one block - a second media query
     at the same width is how a later reader ends up reading the wrong one. */
  .ad .masthead .qinline { display: none; }

  /* ---- 44px, EVERY ROW (2026-08-27) ------------------------------------
     MEASURED in the open sheet at 390px before this block: all 21 destinations
     were 33.8px, the jump box 36.8, the theme toggle 25, the bell 32, the Menu
     button 32.3 and Close 34.3. Every control on the sheet was under the 44px
     minimum touch target, and this sheet is how the owner reaches everything on
     the phone he actually browses on.
     TOUCH ONLY. Scoped inside the breakpoint on purpose: the desktop rail
     stays at 7px, because 21 rows at 44px would not fit one screen with a
     mouse pointing at them, and fitting them all on one screen is the entire
     reason the rail exists. */
  /* min-height AND the padding: padding alone landed at 43.8px, because the
     row's height is padding plus a 0.875rem line box and that arithmetic is
     not something to leave 0.2px of slack in. The padding keeps the rhythm,
     the min-height keeps the promise. */
  .sidenav a.navitem { padding: 12px 10px; min-height: 44px; }
  .navsearch input { min-height: 44px; }
  .masthead .theme-toggle,
  .masthead .nbell,
  .navtoggle { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none; } }

/* =========================================================================
   THE NOTIFICATION PANEL (2026-08-27)
   the owner: "Notifications need a cleaner view. It doesnt look good where they
   are." They were a masthead BUTTON that swapped the whole page for a view
   buried under the Guide group - so reading one notice cost you the screen
   you were working on, and getting back meant finding your way again.
   Now the bell opens a panel in place. The page underneath does not move.
   THE NUMBER IS THE LIST: the panel renders exactly the rows the badge
   counts, so the two cannot disagree.
   ========================================================================= */
.bellwrap { position: relative; margin-left: auto; }
.npanel { position: absolute; right: 0; top: calc(100% + 9px); z-index: 80;
  width: min(408px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--lift); overflow: hidden; }
.npanel[hidden] { display: none; }
.npanel .nphead { display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
  background: var(--surface2); }
.npanel .nphead h3 { margin: 0; font-family: var(--serif); font-size: .98rem;
  color: var(--navy); font-weight: 600; }
.npanel .nphead .sp { flex: 1; }
.npanel .npbody { max-height: min(60vh, 460px); overflow-y: auto;
  overscroll-behavior: contain; }
.npanel .npfoot { display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-top: 1px solid var(--line-soft);
  font-size: .76rem; color: var(--muted); }
.npanel .npfoot .sp { flex: 1; }
/* the tiers survive as COLOUR, which is what a tier was ever for */
.npanel .n { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
.npanel .n:last-child { border-bottom: 0; }
.npanel .n .dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 999px;
  margin-top: 5px; background: var(--muted); }
.npanel .n.red .dot { background: var(--crit); }
.npanel .n.amber .dot { background: var(--warn); }
.npanel .n.grey .dot { background: var(--muted); }
.npanel .n.red { background: color-mix(in srgb, var(--crit) 5%, transparent); }
.npanel .n .body { flex: 1; min-width: 0; }
.npanel .n .body strong { color: var(--ink); font-weight: 600; }
.npanel .n .body .sub { color: var(--muted); font-size: .765rem; margin-top: 1px; }
.npanel .n .who { display: block; font-size: .62rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 1px; }
.npanel .npempty { padding: 26px 14px; text-align: center; color: var(--muted);
  font-size: .85rem; }
@media (max-width: 560px) {
  /* on a phone the panel is a sheet pinned to the viewport, not a dropdown
     hanging off a button that is itself near the edge */
  .npanel { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; }
}

/* ---- the stat row on a phone -----------------------------------------
   .grid.cols-4 floors each track at 200px, so a 390px screen fits exactly
   ONE - four full-width cards, roughly 900px of masthead-and-numbers before
   the first unit card. the owner reads this on his phone, so the summary goes
   two-up and compact and the actual work comes back above the fold. Scoped
   to #stats: .grid.cols-4 is used elsewhere by content that genuinely needs
   the width. */
@media (max-width: 640px) {
  #stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  #stats .stat { padding: 9px 11px; }
  #stats .label { font-size: .6rem; letter-spacing: .07em; }
  #stats .value { font-size: 1.2rem; line-height: 1.2; }
  #stats .sub { font-size: .69rem; line-height: 1.3; }
}

/* ==========================================================================
   THE RESIDENT PORTAL AS A PHONE APP (2026-08-27)

   the owner: "The grid view for the renter portal needs to be optomized for
   mobile view. Maybe have tabs at bottom for different functionality like in
   a mobile app."  He reads this on his phone, and so does every tenant — a
   resident checks their balance standing in a kitchen, not at a desk.  So
   390px is the DESIGN width here and 1440 is the adaptation, which is the
   opposite of how the page was built.

   EVERYTHING IN THIS SECTION IS SCOPED TO `.rt`, the class on renter.html's
   own <body>.  admin.html shares this stylesheet and shares .masthead,
   .quote-band, .plat-band and .card with it; scoping is what lets the resident
   page collapse its own chrome on a phone without reaching into the office's.
   The one deliberate exception is .slog below, which is a defect fix that both
   pages want.

   NO NEW COLOURS.  Every value here is a shipped token.
   ========================================================================== */

/* ---- the app shell -------------------------------------------------------
   One view is on screen at a time, the way a native app works, instead of one
   very long scroll containing all five.  .rview is display:none until the bar
   turns it on, so a tenant looking for their calendar is not scrolling past
   the payment rails to reach it. */
.rt .rview { display: none; }
/* minmax(0, 1fr), NOT the default `auto` track.  An auto track is floored at
   the MIN-CONTENT of its widest item, so one child that cannot shrink widens
   the whole view and the document scrolls sideways - measured on Pay at 320px,
   where the view came out 327px wide inside a 320px window.  Capping the track
   makes the container the authority and pushes the shrinking down to the child
   that actually has to do it. */
.rt .rview.on { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* `hidden` HAS TO BEAT `.on`, and on its own it does not: the UA's
   [hidden]{display:none} is one selector and .rt .rview.on is three, so an
   applicant's notice slot - which is BOTH the Status view and the element
   paintNotifs() hides when there is nothing waiting - stayed laid out as an
   empty grid.  Same fix, same reason, as .tabbar[hidden] below. */
.rt .rview.on[hidden] { display: none; }
.rt .rt-top { display: grid; gap: 2px; }
.rt .rt-top h2 { font-size: 1.28rem; margin: 0; }
.rt .rt-top p { margin: 0; }
.rt .rt-cardhd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rt .rt-cardhd h3 { margin: 0; flex: 1; min-width: 0; }
.rt .linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit;
  font-size: .82rem; color: var(--accent); font-weight: 600; cursor: pointer;
  min-height: 44px; }

/* ---- THE BOTTOM TAB BAR --------------------------------------------------
   Fixed to the bottom, thumb-reachable, icon over label, three to five
   destinations and never more.  The active one is unmistakable: it is the only
   one in ink rather than muted, the only one whose icon sits in a tinted
   lozenge, and the only one with the rule above it.

   THE SAFE AREA IS PART OF THE COMPONENT, not an afterthought.  Without the
   env() padding the labels sit under the iPhone home indicator; renter.html
   carries viewport-fit=cover so the inset actually resolves.

   NO HOVER CARRIES MEANING.  There is no hover on a phone, so every state a
   reader needs is in the resting paint. */
.rt .tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: stretch;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.rt .tabbar[hidden] { display: none; }
.rt .tabbtn {
  flex: 1 1 0; min-width: 0; min-height: 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 2px 9px;
  background: none; border: 0; border-top: 2px solid transparent;
  font: inherit; color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rt .tabbtn .ic { position: relative; display: inline-flex; align-items: center;
  justify-content: center; width: 40px; height: 26px; border-radius: 999px; }
.rt .tabbtn .ic svg { width: 21px; height: 21px; display: block; }
.rt .tabbtn .lb { font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt .tabbtn.on { color: var(--navy); border-top-color: var(--accent); }
.rt .tabbtn.on .ic { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.rt .tabbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
/* the count rides the icon, not the label, so a two-digit badge cannot widen
   a tab and push the row out of alignment */
.rt .tabbtn .tn { position: absolute; top: -3px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--crit); color: var(--accent-ink);
  font-size: .6rem; font-weight: 700; line-height: 16px; text-align: center;
  font-variant-numeric: tabular-nums; }

/* THE BAR MUST NOT COVER THE LAST ROW OF A LIST.  main already carries 80px of
   bottom padding for the footer; the bar is 58px plus its own safe-area inset
   on top of that, so the scroll container is padded by the whole of it. */
body.rt.hasbar main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---- the phone masthead --------------------------------------------------
   MEASURED: the plat band was 110px and the quote ribbon another 36, so on a
   390px screen a resident scrolled past 230px of chrome before the number they
   opened the page for.  The plat drawing was decoration and it went - first
   hidden here, then, on 2026-08-27, deleted from BOTH templates when the admin
   page was made to match (see .plat-band near the top of this file).  The
   quote ribbon is a house fixture and stays, at one compact line. */
@media (max-width: 700px) {
  /* ONE ROW, LIKE THE DESKTOP (the owner, 2026-09-05: "there are differences
     between the mobile site and desktop rental portal"). The wordmark gives
     up size so the clock, the "+" and the toggle sit beside it on the first
     row instead of wrapping to a second; the quote wraps to a second line
     rather than being cut mid-word. */
  .rt .masthead .inner { padding: 10px 12px 10px; gap: 6px 8px; flex-wrap: nowrap; align-items: center; }
  .rt .masthead h1 { font-size: 1rem; flex: 1 1 auto; min-width: 0; line-height: 1.15; }
  .rt .masthead h1 .mastnote { display: none; }
  .rt .masthead #skyclock, .rt .masthead .skyclock { margin-left: 4px; padding-left: 8px; }
  .rt .masthead #quick-add.quick-add-stack { margin-left: 4px; }
  .rt .masthead .theme-toggle { margin-left: 4px; }
  .rt .quote-band .quote-ribbon { padding: 6px var(--page-gutter); }
  .rt .quote-band .quote-ribbon-text { font-size: .78rem; white-space: normal; overflow: visible; text-overflow: clip;
    line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  /* THE BELL COMES OFF THE PHONE.  It is not lost - it is duplicated: the bar
     carries the identical count on Home (or Status, for an applicant), and
     that count is on screen from every destination, which the bell was not.
     MEASURED: "Waiting for you [1]" plus "Light / Dark" plus the wordmark do
     not fit 390px, so the masthead wrapped to two rows and spent ~50px of the
     first screen restating a number the bar was already showing. */
  .rt .masthead .nbell { display: none; }
  .rt main { padding-left: var(--page-gutter); padding-right: var(--page-gutter); padding-top: 18px; }   /* ONE PAGE GUTTER */
  .rt .card { padding: 14px 15px; }
  .rt .rt-top h2 { font-size: 1.16rem; }
}

/* ---- the hero: what I owe, and when --------------------------------------
   The one number the page exists for.  It is bigger on a phone than it was on
   a desktop, because it is the entire answer to why the reader opened it. */
.rt .rp-hero-num { font-size: clamp(2.3rem, 12vw, 3rem); line-height: 1.02; }
.rt .rp-hero { padding: 17px 18px 16px; }
/* at a phone the rent's text stands where its sibling cards' text stands,
   16px inside the card (2026-09-12, the owner, of the band on a phone: "check mobile views. look at padding. it is off."): MEASURED at 360/390/414, it
   sat 19px in against the notices', home's and recent cards' 16 - a 3px step
   down the left edge of the first screen.
   ONE EDGE (2026-09-12, round 2): .rp-hero drew its own 1px border and its
   own shadow inside the .rt-rent card's border, so the bottom and the right
   of the first card on Home were a doubled line at 390. Inside that card the
   hero keeps only its 4px status bar; the card's edge is the edge. So the
   hero's padding is the cards' 15 (1 + 15 = 16, the card's border and its
   padding). Phone only: a monitor keeps LIVE's hero, which nests the same
   way (4/1/1/1 plus a shadow inside the card at 1280). */
@media (max-width: 700px) {
  .rt .rt-rent .rp-hero { border-width: 4px 0 0; box-shadow: none; }
  .rt .rp-hero { padding-left: 15px; padding-right: 15px; }
}

/* ---- the two thumb actions ----------------------------------------------- */
.rt .rt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt .rt-act {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 66px; padding: 12px 13px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow);
}
.rt .rt-act svg { width: 20px; height: 20px; color: var(--accent); }
/* THE PAY BUTTON IS SAND, as the mock had it: money wears sand everywhere on
   this side of the house, and it is the one warm thing on the card. One
   centred line, icon and words together, as the mock drew it. */
.rt .rt-act.primary { background: var(--sand); border-color: var(--sand);
  color: var(--on-sand); box-shadow: var(--lift); width: 100%; margin-top: 14px;
  flex-direction: row; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; padding: 15px 16px; min-height: 0; }
.rt .rt-act.primary span { text-align: center; }
.rt .rt-act.primary svg { color: var(--on-sand); }
.rt .rt-act.ghost { background: var(--surface); border-color: var(--line); color: var(--navy); justify-content: center; }
.rt .rt-act.ghost svg { color: var(--accent); }
.rt .rt-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- recent activity, on the home view ----------------------------------- */
.rt .rt-line { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  align-items: baseline; }
.rt .rt-line:last-child { border-bottom: none; }
.rt .rt-line .t { font-size: .875rem; color: var(--ink); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; }
.rt .rt-line .d { grid-column: 1; font-size: .74rem; color: var(--muted); }
.rt .rt-line .a { grid-column: 2; grid-row: 1; text-align: right;
  font-weight: 700; font-variant-numeric: tabular-nums; }
.rt .rt-line .a.up { color: var(--crit); }
.rt .rt-line .a.down { color: var(--good); }
.rt .rt-line .e { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 6px;
  color: var(--muted); margin-right: 6px; white-space: nowrap; }

/* ---- the amount field ----------------------------------------------------
   A REAL INPUT with inputmode="decimal", so the numeric keypad is what opens.
   It is prefilled with the grossed-up figure, and editable because a resident
   who sends part of it must be able to say so — before this the page could
   only record the exact amount it had just computed. */
.rt .amtbox { display: flex; align-items: stretch; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.rt .amtbox .cur { display: flex; align-items: center; padding: 0 12px;
  background: var(--surface2); color: var(--muted); font-weight: 700;
  border-right: 1px solid var(--line); }
.rt .amtbox input { border: 0; border-radius: 0; background: none;
  font-size: 1.18rem; font-weight: 700; font-variant-numeric: tabular-nums;
  min-height: 48px; width: 100%; }
.rt .amtbox input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---- the payment rails --------------------------------------------------- */
.rt .pillrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rt .payopt { width: 100%; min-height: 62px; }

/* ---- THE NOTICES, as cards rather than a table ---------------------------
   the owner: the presentation "does not look good".  It was a dot, a line of
   text and two ghost buttons crammed on one row, which at 390px wrapped into
   an unreadable stack.  The row is now a card with a coloured rail down its
   left edge, the title in ink, and the two controls on their own line at a
   real 44px — red carries a tint so an unpaid demand is visible from the top
   of the page without reading a word of it.

   .attn is kept, not replaced: admin.html still renders four .attn boxes, and
   two notification idioms in one product is one too many.  This is a modifier
   on the same component. */
.rt .attn.rnotes { border-radius: var(--radius); box-shadow: var(--shadow); }
.rt .attn.rnotes .nhd { display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border-bottom: 1px solid var(--line); }
.rt .attn.rnotes .nhd h3 { flex: 1; min-width: 0; border-bottom: 0; background: none; }
.rt .attn.rnotes .nhd .linkbtn { padding-right: 12px; }
.rt .attn.rnotes .n { display: grid; grid-template-columns: 4px minmax(0, 1fr);
  gap: 0 12px; align-items: start; padding: 12px 14px 10px; font-size: .9rem; }
.rt .attn.rnotes .n .dot { width: 4px; height: 100%; min-height: 34px;
  margin: 0; border-radius: 999px; grid-row: 1 / span 2; }
.rt .attn.rnotes .n .body strong { color: var(--ink); font-weight: 700;
  font-size: .93rem; display: block; }
.rt .attn.rnotes .n .body .sub { margin-top: 2px; line-height: 1.4; }
.rt .attn.rnotes .n .body .when { margin-top: 3px; color: var(--muted);
  font-size: .71rem; letter-spacing: .04em; }
.rt .attn.rnotes .n .acts { grid-column: 2; display: flex; gap: 8px;
  margin-top: 9px; flex-wrap: wrap; }
.rt .attn.rnotes .n.red { background: color-mix(in srgb, var(--crit) 6%, transparent); }
.rt .attn.rnotes .n.red .body strong { color: var(--crit); }
.rt .nact { min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.rt .nact:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rt .nact.x { min-width: 44px; padding: 0 12px; color: var(--muted); }
.rt .nfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; }

/* ---- the emergency block ------------------------------------------------- */
.rt .rp-emerg { border-radius: var(--radius); }

/* ---- 960px and up: the bar becomes a rail, home becomes two columns -------
   NOT the phone stretched to 1440.  The destinations move to a sticky pill row
   under the masthead — a desktop reader has a pointer and a wide screen, and a
   bar pinned to the bottom of a 27-inch display is a phone affectation.  The
   home view splits: the money down the left, what is waiting for you down the
   right, so nothing that mattered on a phone drops below the fold here. */
@media (min-width: 960px) {
  .rt .tabbar { position: sticky; top: 0; bottom: auto; justify-content: center;
    gap: 4px; padding: 7px 20px; border-top: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .rt .tabbtn { flex: 0 0 auto; flex-direction: row; gap: 9px; min-height: 44px;
    padding: 0 17px; border-top: 0; border-radius: 999px; }
  .rt .tabbtn.on { background: color-mix(in srgb, var(--accent) 13%, transparent); }
  .rt .tabbtn.on .ic { background: none; }
  .rt .tabbtn .ic { width: 22px; height: 22px; }
  .rt .tabbtn .lb { font-size: .86rem; }
  .rt .tabbtn .tn { top: -6px; right: -8px; }
  body.rt.hasbar main { padding-bottom: 80px; }
  /* THE DESKTOP: the mock's cards in two columns, no holes. Rent and what
     management said on the left, the home and what is waiting on the right;
     the two quiet buttons under the home, the recent lines under the notices. */
  .rt .rt-home { display: grid; gap: 20px; align-items: start;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "hero home" "notices side" "recent acts"; }
  .rt .rt-home > #hero { grid-area: hero; }
  .rt .rt-home > #notices-card { grid-area: notices; }
  .rt .rt-home > #recent-card { grid-area: recent; }
  .rt .rt-home > #home-card { grid-area: home; }
  .rt .rt-home > .rt-side { grid-area: side; }
  .rt .rt-home > .rt-acts { grid-area: acts; }
  .rt .rt-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt .rp-hero-num { font-size: 3.1rem; }
}
.rt .rt-home { display: grid; gap: 16px; }
.rt .rt-side { display: grid; gap: 16px; align-content: start; }

/* ---- 430px and down ------------------------------------------------------
   The narrow end of the phone range.  Nothing here may widen the document:
   two rails per row, not four, and the month cells go single file. */
@media (max-width: 430px) {
  /* THE TWO ACTIONS STAY SIDE BY SIDE.  Stacking them read as two banners:
     measured at 390px they cost 216px of the first screen between them and
     pushed Recent activity off it, which defeats the point of putting the
     balance first.  Two columns is 185px each - wide enough for the longest
     label this renders, "Payment options", and each is still far above the
     44px target.  Only the icon row tightens. */
  .rt .rt-act { min-height: 58px; padding: 10px 11px; font-size: .84rem; }
  .rt .paycal { grid-template-columns: 1fr; }
  .rt .rp-pick { grid-template-columns: 1fr; }
  .rt .vacgrid { grid-template-columns: 1fr 1fr; }
  .rt .tabbtn .lb { font-size: .7rem; }
}

/* ==========================================================================
   THE SHARED LOG KEEPS ITS BALANCE COLUMN ON A PHONE (2026-08-27)

   `.slog th.hide-s, .slog td.hide-s { display: none }` dropped the Balance
   column entirely below 640px — the running total, on the page whose whole
   claim is "this is the same record we keep", invisible to the reader most
   likely to be looking at it.  Hiding a column is not a responsive strategy;
   it is deciding a phone reader deserves less of the truth.

   The row RESTACKS instead: what and how much on the first line, when and the
   balance after it on the second, the reason across the third.  Every figure
   survives and the document still does not scroll sideways.

   NOT scoped to .rt: the office reads the identical table on the admin's
   tenant page, from the identical renderer, and wants the identical fix.
   ========================================================================== */
@media (max-width: 640px) {
  .slog thead { display: none; }
  .slog, .slog tbody { display: block; }
  .slog tr { display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px; padding: 10px 2px; align-items: baseline;
    border-bottom: 1px solid var(--line-soft); }
  .slog tr:last-child { border-bottom: none; }
  .slog td { display: block; border: 0; padding: 0; }
  .slog td.c-what { grid-area: 1 / 1; color: var(--ink); }
  .slog td.c-amt { grid-area: 1 / 2; text-align: right; font-weight: 700; }
  .slog td.c-date { grid-area: 2 / 1; font-size: .76rem; color: var(--muted); }
  .slog td.c-bal { grid-area: 2 / 2; text-align: right; font-size: .76rem;
    color: var(--muted); }
  .slog td.c-bal::before { content: "balance "; font-size: .62rem;
    letter-spacing: .07em; text-transform: uppercase; }
  .slog td.c-why { grid-area: 3 / 1 / auto / -1; font-size: .78rem; }
  .slog td.c-why:empty { display: none; }
}

/* ==========================================================================
   THE SITE-KIT FORM + MODAL, BRIDGED TO "DEED & LEDGER" (2026-09-03)

   the owner, having rejected the interface twice:
     "SOme fields are biger than others, Some are durther down the page than
      they should be. It is confusing."
     "I want small windows that pop up for all our projects for adding items."

   The widgets are vendored at /static/sk-form.css, sk-modal.css and
   sk-quick-add.css and are NOT edited. Everything in this block is the HOST's
   half of the contract: the handful of FHT-specific facts the widget cannot
   know, and nothing else. No new colour: every value here is an existing
   token, so all four theme paths follow automatically.

   THE THREE RESETS ARE THE WHOLE POINT.
   style.css already styles bare `label`, `input`, `select` and `textarea` for
   the app's older screens, and two of those rules fight the widget:

     label { display:block; margin-bottom:3px }
        A margin on the CHILD is exactly the "further down the page" defect —
        it stacks on top of .sk-field's own 5px gap, so every label sat 8px off
        its control while the widget thought it had set 5. Gap on the
        container, never margin on the child: so the margin goes.

     input,select,textarea { padding:7px 10px }
        Loses to .sk-form's own class+type selectors, so it needs no reset —
        but a bare .sk-control (a div dressed as a field) would inherit it, and
        the widget sets its own. Left alone deliberately.
   ========================================================================== */
:root {
  /* --ease carries a DURATION (150ms cubic-bezier(...)), which is right for
     `transition: border-color var(--ease)` and wrong inside the widget's
     `transition: border-color .16s var(--_ease)` — there the duration lands in
     the DELAY slot and every field border waits 150ms to change. The widget
     asks for a timing function, so it is given one. */
  --sk-ease: cubic-bezier(.4, 0, .2, 1);
}

/* RESET 1 — the label's margin. See the block comment above. */
.sk-form label { margin: 0; }
/* RESET 2 — a .sk-label is uppercase small-caps and must not inherit the
   app's .8rem/600 bare-label weight through a more specific ancestor. */
.sk-form .sk-label { display: block; font-weight: 700; }

/* RESET 3 — ONE CONTROL HEIGHT, WHATEVER THE CONTROL IS (2026-09-03).

   MEASURED in a real browser, in one window, side by side, before this rule:
     <input type="text">    46.81px
     <select>               43.00px
     <input type="date">    48.81px
   Same font, same 11px/13px padding, same 1px border — the difference is the
   LINE BOX. A text input resolves the sheet's 1.55 body line-height (22.82px);
   a <select> uses `normal` (~19px) because the UA sheet says so; a date field
   adds the picker's own inner button on top. So "How much" and "How" sat
   3.8px apart in the same row, and "When" stood 5.8px taller than both.

   That is the owner's sentence — "SOme fields are biger than others" — surviving
   the rebuild, because the rebuild measured forms of text inputs and this app
   has forms of selects and dates.

   LINE-HEIGHT WILL NOT FIX IT, MEASURED: Chrome resolves `line-height` to
   `normal` on a <select> whatever the sheet asks for, and the date field's
   picker button sits outside the text line box entirely. So the box is stated
   OUTRIGHT. box-sizing is already border-box (the widget sets it), so 46px is
   46px on screen for every one of them, and a textarea — which is meant to be
   taller — is excluded and keeps the widget's own 92px minimum.

   AFTER: every single-line control in every window is 46.00px. */
.sk-form .sk-field > input:not([type="checkbox"]):not([type="radio"]),
.sk-form .sk-field > select,
.sk-form .sk-control { height: 46px; }
/* The stacked rows inside a window (receipt portions, occupants) are tighter
   on purpose and set their own; nothing here reaches into them. */

/* A FILE INPUT IS A FIELD TOO. The widget enumerates text, email, tel, url,
   date, time, number, search and password and stops there, so every "choose
   the receipt" and "choose the photograph" control in this app sat on a bare
   white box beside beige ones — MEASURED in the light palette, and it is the
   same "some fields look different from others" the whole rebuild is about.
   Same tokens as the widget's own controls, nothing invented. */
.sk-form .sk-field > input[type="file"] {
  width: 100%; box-sizing: border-box; min-width: 0;
  font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 13px;
  color-scheme: inherit;
}
@media (max-width: 680px) { .sk-form .sk-field > input[type="file"] { font-size: 16px; } }

/* An explanatory line inside a form or a window. Same voice as .mini, which
   is what every one of these lines used to be written as. */
.sk-note, .sk-said { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.sk-said { color: var(--ink); white-space: pre-line; }
.sk-note strong, .sk-said strong { color: var(--ink); }

/* The window's own footer row: refusal on the left, actions on the right.
   .sk-modal-foot is the widget's flex container and this is its single child,
   so it takes the full width and does the arranging. */
.sk-foot { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: flex-end; min-width: 0; }
.sk-formerr { margin-right: auto; min-width: 0; font-size: .82rem;
  font-weight: 600; color: var(--crit); }
.sk-formerr:empty { display: none; }
.sk-foot .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
/* Deleting is the one action that gets a colour of its own, and it is the
   token every other refusal on this site already wears. */
.btn.danger { background: var(--crit); color: var(--accent-ink); }
.btn.ghost.danger { background: none; color: var(--crit); border-color: var(--crit); }

/* A FOLD OF A WINDOW THAT SHOWS AND HIDES AS ONE — the receipt window's
   new-expense half, which is only asked for when there is no expense to
   attach to. It exists because sk-form.css's own comment is right: "gap on
   the container, never margin on the child — a margin-based rhythm ...
   doubles against a WRAPPER's". A bare <div> around three fields is that
   wrapper, and MEASURED it collapsed the 14px rhythm to 0 for the two fields
   inside it. This makes the wrapper carry the same rhythm rather than swallow
   it, so a folded group is indistinguishable from the fields around it.
   [hidden] still wins: the rule below re-states display:none at the same
   specificity, later in the sheet. */
.sk-form .sk-group { display: flex; flex-direction: column; gap: 14px;
  min-width: 0; }
.sk-form .sk-group[hidden] { display: none; }

/* A stack of same-shaped rows inside a window — occupants, animals, the
   split portions of a receipt. The row is a grid so its remove button never
   pushes the field it belongs to out of line. */
.sk-list { display: flex; flex-direction: column; gap: 8px; }
.sk-listrow { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px; align-items: center; padding: 8px 10px; background: var(--surface2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.sk-listrow .sk-row, .sk-listrow .sk-field { min-width: 0; }
.sk-x { background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; width: 26px; height: 26px; line-height: 1; cursor: pointer;
  font: inherit; font-size: .82rem; flex: 0 0 auto; }
.sk-x:hover { border-color: var(--crit); color: var(--crit); }
.sk-add { align-self: flex-start; }

/* THE PHONE. The widget already gives one column and 16px controls at 680px;
   this is the footer's half — the primary action full width and last, which is
   where a thumb ends up. */
@media (max-width: 680px) {
  .sk-foot { flex-direction: column-reverse; align-items: stretch; }
  .sk-foot > .btn { width: 100%; min-height: 46px; }
  .sk-formerr { margin-right: 0; order: 99; text-align: center; }
}

/* THE QUICK-ADD "+" RIDES THE MASTHEAD'S OWN ROW, at every width, and that is
   the whole of the host's half of this widget. Its default is position:fixed
   in the top-right corner, which on this page would sit ON TOP of the
   notification bell and the theme toggle at desktop widths and on top of the
   page's first card on a phone. The masthead is already a wrapping flex row
   with a bell and a toggle in it, so the button simply becomes another item in
   it: no overlay, nothing to collide with, and it wraps with everything else.
   .qa-header-rail is the widget's own documented variant for exactly this. */
/* THE "+" FLOATS bottom-left (the owner, 2026-09-05: "the + needs to also be
   floating on the left.... and in a new color that makes it pop out"), in a
   blue that belongs to nothing else on the page. The menu grows upward. */
.ad .masthead .quick-add-stack { position: fixed; top: calc(var(--mast-h, 60px) + 14px); right: 18px; left: auto; bottom: auto; z-index: 60;
  gap: 8px; flex: none; order: 0; margin: 0; --sk-red: var(--plus); --sk-red-hover: var(--plus-hover); }
/* 44 at every width, the band's one circle (2026-09-12, round 2: 48 on a
   monitor); its "+" is sized with the resident's, THE BAND, ONE CIRCLE */
.ad .masthead .quick-add-btn { width: 44px; height: 44px; font-size: 24px; box-shadow: 0 8px 22px rgba(224,112,44,.32); }
/* The menu is anchored to the button's top edge and grows downward, which is
   right for a button near the top of the page. */
.ad .masthead .quick-add-menu { top: 0; right: 56px; left: auto; bottom: auto; }

/* A CARD'S OWN HEADING ROW — a title on the left, its actions or its state on
   the right, wrapping on a phone. This exact declaration was written inline
   six times in admin.html (display:flex;justify-content:space-between;gap:8px;
   flex-wrap:wrap;align-items:baseline) with three different gaps between the
   copies, which is how two cards on one screen end up not quite matching. */
.cardbar { display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; flex-wrap: wrap; }
.cardbar > h2, .cardbar > h3 { margin: 0; }
.cardbar .cardbar-grow { flex: 1 1 240px; min-width: 0; }
.cardbar-right { text-align: right; }

/* A ROW OF ACTIONS under a record — approve, split, edit, decline. Not a form
   and never was one: it used to be a .rowform, which is why each button sat in
   a <div> with a 120px minimum and four of them wrapped onto two ragged lines
   inside a card. */
.actrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actrow .mini { color: var(--muted); }
/* Four numbers side by side — the ageing buckets. A grid, so the four columns
   are equal by construction rather than by four hand-typed min-widths. */
.numrow { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.numrow .n { font-family: var(--serif); font-size: 1.25rem; }
.numrow .n.over { color: var(--crit); }

/* A LINK WEARING A BUTTON OR A PILL. It was written inline as
   style="text-decoration:none" in nine places, three of which also restated a
   colour the class already carried. */
.nolink, a.nolink:hover { text-decoration: none; }

/* A CONTROL THAT SITS IN A SENTENCE rather than in a form — the mail-mode
   picker, "preview against <name>". These were written inline as
   style="width:auto" and style="width:auto;min-width:9rem"; the app's global
   `select { width:100% }` is what they were fighting, and it is the same fight
   in six places. */
.inlinesel { width: auto; min-width: 9rem; max-width: 100%; }
.inlinelab { margin: 0; white-space: nowrap; }
/* An outbox row is a card that stacks tightly with its neighbours. */
.mailrow { margin-bottom: 8px; }

/* ---- the small typographic utilities the inline styles were standing in for.
   Each of these was written out longhand between two and nine times, with the
   numbers drifting between copies — 14px here, 16px there, for the same
   "start a new section" job. */
.bignum { font-family: var(--serif); font-size: 1.5rem; color: var(--navy);
  font-variant-numeric: tabular-nums; }
h3.sechead, .sechead { margin-top: 16px; }
.linerow { padding: 2px 0; }
.faint { opacity: .75; }
.eyebrowline { margin-top: 8px; letter-spacing: .08em; text-transform: uppercase;
  font-size: .68rem; color: var(--muted); }
/* An input sitting inside a .kv definition grid on a profile — smaller than a
   form control because it is a value in a list, not a field in a form. */
.kvinput { padding: 4px 8px; font-size: .88rem; }

/* Three more the inline styles were standing in for. */
.crit { color: var(--crit); }
.btn.tiny { padding: 1px 8px; font-size: .7rem; }
/* A hairline above a card's own "add one" action, so the new thing is clearly
   separate from the list of existing ones. It was written inline as
   style="border-top:1px dashed var(--line);padding-top:12px" five times. */
.rule { border-top: 1px dashed var(--line); padding-top: 12px; }
.spacer { flex: 1 1 auto; }

/* ---- the last of the inline styles, as classes.
   Each of these was a declaration written out between two and twelve times in
   admin.html, with the numbers drifting between copies. A number typed twelve
   times is twelve chances to type it differently, and it did. */
.nw { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-s { margin-top: 8px; } .mt-xs { margin-top: 6px; } .mt-m { margin-top: 10px; }
.mb-xs { margin-bottom: 4px; }
.m0 { margin: 0; }
.tight { margin: 8px 0 4px; } .tight-b { margin: 0 0 4px; } .tight-t { margin: 6px 0 0; }
.dim { opacity: .55; }
.pad { padding: 12px; }
.rowpad { padding: 3px 0; }
.prose { max-width: 70ch; }
.breakall { word-break: break-all; }
.serifhead { margin: 0; font-family: var(--serif); color: var(--navy); }
.money-in { color: var(--good); } .money-out { color: var(--crit); }
/* The Grid's own search box — a pill, and the one place a width IS the design:
   it sits in a toolbar beside seven filter chips, not in a form. */
.searchpill { max-width: 180px; padding: 5px 12px; border-radius: 999px; }
/* The property-cost split bar. The two WIDTHS stay inline because they are the
   measurement; the track and the two meanings are here. */
.splitbar { display: flex; height: 22px; border-radius: var(--radius-xs);
  overflow: hidden; background: var(--surface2); border: 1px solid var(--line); }
.splitbar .sb-place { background: var(--accent); }
.splitbar .sb-home { background: var(--navy); }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  vertical-align: baseline; }
.swatch.sw-accent { background: var(--accent); }
.swatch.sw-navy { background: var(--navy); }
/* The renewal row's rent box. 90px was typed inline; it is a money field in a
   four-column grid row and 7rem is the width of "$1,250.00" plus its spinner. */
.renewrent { width: 7rem; }

/* ---- the last few one-off declarations that were written inline. */
.mastname { display: flex; flex-direction: column; line-height: 1.15; }
.mastnote { font-size: .62rem; font-weight: 400; letter-spacing: .06em;
  color: var(--muted); text-transform: none; }
.tuck { margin: -6px 0 8px; } .tuck-xs { margin: -2px 0 0; }
.ml-xs { margin-left: 6px; }
.dimmer { opacity: .5; }
.caps { letter-spacing: .08em; text-transform: uppercase; }
.semi { font-weight: 600; }
.tight-b5 { margin: 0 0 5px; }
.indent { padding-left: 26px; }
.fbtn.fbtn-check { cursor: pointer; gap: 6px; }
.fbtn.sitechip { align-items: flex-start; flex-direction: column; gap: 2px;
  border-radius: var(--radius); padding: 8px 14px; text-align: left; color: var(--ink); }
.badge.acc { color: var(--accent); border-color: var(--accent); }
/* the lease builder's animal row — two equal columns inside one .lb-row */
.lb-an { display: grid; gap: 5px; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  min-width: 0; }
/* the year-ahead strip: a bar per month, its HEIGHT computed from the payload */
.yastrip { display: flex; gap: 6px; align-items: stretch; }
.yacol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.yagap { flex: 0 0 auto; }
.yabar { width: 100%; background: var(--accent);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0; }
.yabar.empty { opacity: .22; }

/* Two reading widths that were written inline on the resident portal's own
   cards. A measure, not a field width — a form inside them is still equal
   columns by construction. */
.card.narrow { max-width: 560px; }
.card.wide { max-width: 760px; }

/* the resident portal's own last handful */
.mb-2 { margin-bottom: 2px; } .mb-6 { margin-bottom: 6px; }
.mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; }
.mt-12 { margin-top: 12px; }
.ml-auto { margin-left: auto; }
.lead { font-weight: 700; color: var(--ink); }
.profileshot { width: 92px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* The resident masthead's bell sits hard right. It was style="margin-left:auto"
   on the button itself; the class stays exactly `nbell` because that is the one
   both templates share and both suites pin. */
.rt .masthead .nbell, body.rt .nbell { margin-left: auto; }

/* ==========================================================================
   THE MASTHEAD ROW MUST NOT PUSH THE DOCUMENT SIDEWAYS (2026-09-03)

   MEASURED at a 390px viewport, on the admin page, BEFORE the contextual "+"
   was added: documentElement.scrollWidth 483 against clientWidth 390. With the
   "+" it was 535. The house rule is that the body never scrolls sideways, and
   this row had been quietly breaking it.

   WHY. `.ad .masthead h1` is `white-space: nowrap; flex: 0 0 auto`, and the
   wordmark is a two-line column whose second line is the formation notice —
   "Formation pending; name subject to SCC confirmation." — so the h1's
   intrinsic width was 299.7px and nothing in a nowrap row could give it back.
   The words on the bell and the toggle were already dropped at 640px for
   exactly this reason; the name itself was never asked to give anything.

   THE NAME IS THE ONE ELEMENT THAT CAN LOSE WIDTH WITHOUT LOSING MEANING, so
   it is the one that gives: it wraps instead of pushing. The row wraps too, as
   a second line of defence. The formation notice is NOT dropped — it is a
   statement this office has to make where it identifies itself, and a phone
   reader is owed it exactly as a desk reader is.
   ========================================================================== */
@media (max-width: 900px) {
  .ad .masthead .inner { flex-wrap: wrap; }
  .ad .masthead h1.mastname { flex: 1 1 auto; min-width: 0; white-space: normal; }
  .ad .masthead h1.mastname a { overflow-wrap: anywhere; }
  .ad .masthead .mastnote { white-space: normal; }
}

/* ===========================================================================
   THE REVERSAL WINDOW'S FIGURE TABLE
   ---------------------------------------------------------------------------
   A reversal is somebody saying, in writing, that a number in a signed
   quarter was wrong. The window has to show the two numbers side by side —
   what the family's books say and what the payment now allocates — or the
   person is being asked to sign for arithmetic they cannot see. It is a
   definition list rendered as a table: labels quiet, figures in the ink, and
   the reversal row itself weighted, because that is the line being recorded.

   Tokens only. This window opens inside a Site-Kit modal, so it inherits the
   same surface, line and ink the fields do; a hand-picked colour here would
   be the one thing on the panel that did not follow the theme.
   ========================================================================== */
.revtab { width: 100%; border-collapse: collapse; margin: 2px 0 4px;
          font-size: .9rem; }
.revtab th { text-align: left; font-weight: normal; color: var(--muted);
             padding: 5px 10px 5px 0; white-space: nowrap;
             vertical-align: top; width: 1%; }
.revtab td { padding: 5px 0; color: var(--ink); vertical-align: top; }
.revtab tr + tr th, .revtab tr + tr td { border-top: 1px solid var(--line-soft); }
.revtab tr.revdelta th, .revtab tr.revdelta td { font-weight: 700;
             color: var(--ink); border-top: 2px solid var(--line); }

/* ---- THE KPI TILES (2026-09-03) ==========================================
   THE EXECUTIVE DASHBOARD. the owner: "Think Soar portal except here. 10 second
   overview."

   THE SHAPE IS PORTED FROM SOAR'S .kpi, and only the shape: a 3px coloured
   left rail driven by --kpi-accent, a small uppercase label, a large value, a
   foot line of context, and a lift on hover when the card drills through.

   THE PALETTE IS NOT PORTED. SOAR's blues and golds are SOAR's. Every colour
   below is one of this app's own tokens, and the severity ramp is
   deliberately SEPARATE FROM THE BRAND: --accent is the house green and says
   "Fernhollow Family Trust", so it must never be the thing that says "overdue".
   Severity is --good / --warn / --crit, which this stylesheet has carried on
   all three theme paths since the token audit, so nothing new is introduced
   here and the tiles follow light, dark and both explicit stamps for free.

   SEVERITY READS IN FORM AS WELL AS IN NUMBER. The rail widens as it gets
   worse (3px calm, 4px watch, 5px overdue), so the board can be read at a
   glance without being read. And a QUIET tile says a sentence rather than a
   nought: nothing to do is the good case, and seven zeroes shouting about
   work that does not exist is how somebody learns to stop looking.
   ========================================================================== */
.dashhead { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
            margin-bottom: 14px; }
.dashhead h2 { font-family: var(--serif); color: var(--navy); margin: 0 0 2px;
               font-size: 1.35rem; }
.dashhead .spacer { flex: 1 1 auto; }

.kpigrid { display: grid; gap: 12px;
           grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.kpi {
  position: relative;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px 16px 13px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--kpi-accent, var(--line));
}
.kpi.is-clickable { cursor: pointer;
  transition: border-color var(--ease), transform var(--ease),
              box-shadow var(--ease); }
.kpi.is-clickable:hover { border-color: var(--kpi-accent, var(--line));
  transform: translateY(-2px); box-shadow: var(--lift); }
.kpi.is-clickable:focus-visible { outline: 2px solid var(--navy);
  outline-offset: 2px; }

.kpi-label { display: block; font-size: .68rem; font-weight: 700;
             letter-spacing: .12em; text-transform: uppercase;
             color: var(--muted); }
.kpi-value { display: block; margin: 4px 0 2px;
             font-family: var(--serif); font-size: 2.1rem; line-height: 1.05;
             font-variant-numeric: tabular-nums;
             font-feature-settings: "tnum" 1;
             color: var(--kpi-ink, var(--ink)); }
/* THE QUIET ZERO. A sentence, at reading size, in the muted ink - it is not a
   figure and must not be set like one. */
.kpi-value.is-quiet { font-size: 1.05rem; line-height: 1.35;
                      color: var(--muted); font-family: var(--sans); }
.kpi-foot { display: block; font-size: .82rem; color: var(--muted); }

.kpi-rows { list-style: none; margin: 9px 0 0; padding: 8px 0 0;
            border-top: 1px solid var(--line-soft); }
.kpi-rows li { display: flex; align-items: baseline; gap: 8px;
               min-width: 0; padding: 3px 0; font-size: .82rem; }
.kpi-rows li + li { border-top: 1px solid var(--line-soft); }
.dr-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.dr-name { color: var(--ink); font-weight: 600; min-width: 0;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-sub { display: block; color: var(--muted); font-size: .73rem;
          line-height: 1.3; min-width: 0;
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-fact { margin-left: auto; color: var(--muted); white-space: nowrap;
           font-variant-numeric: tabular-nums; }
.dr-more { color: var(--muted); font-style: italic; }
.kpi-note { display: block; margin-top: 8px; font-size: .76rem;
            line-height: 1.45; color: var(--muted); }

/* Calm is the DEFAULT and it is quiet on purpose: a row of green ticks is a
   row of things shouting that they are fine. */
.kpi.sev-calm { --kpi-accent: var(--line); }
.kpi.sev-watch { --kpi-accent: var(--warn); --kpi-ink: var(--warn); }
.kpi.sev-overdue { --kpi-accent: var(--crit); --kpi-ink: var(--crit); }
.kpi.sev-watch::before { width: 4px; }
.kpi.sev-overdue::before { width: 5px; }

/* ============================================================ THE HERO ====
   the owner, 2026-09-05: one headline number above the tiles, PBC-style. Rent
   this month, collected of charged, with the six months behind it as small
   multiples of the same bar. Ink and navy only: severity stays on the
   late-rent tile, and --accent says "Fernhollow Family Trust", never money. */
.dashhero { position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 36px;
  margin-bottom: 14px; padding: 18px 22px 16px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.dashhero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--navy); }
.dashhero:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--lift); }
.dashhero:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dh-value { display: block; margin: 6px 0 4px; font-family: var(--serif); font-size: 3.2rem;
  line-height: 1; letter-spacing: -.01em; color: var(--ink);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.dh-value.is-quiet { font-family: var(--sans); font-size: 1.25rem; line-height: 1.3; color: var(--muted); }
.dh-foot { display: block; font-size: .9rem; color: var(--muted); }
.dh-bar { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dh-bar span { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.dh-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.dh-col { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.dh-well { position: relative; width: 100%; height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.dh-track { width: min(100%, 38px); background: var(--line); border-radius: 3px 3px 0 0;
  display: flex; align-items: flex-end; overflow: hidden; }
.dh-fill { width: 100%; background: var(--navy); }
.dh-col.is-now .dh-track { box-shadow: 0 0 0 1px var(--navy); }
.dh-pct { position: absolute; font-size: .78rem; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1; }
.dh-m { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dh-col.is-now .dh-m { color: var(--ink); font-weight: 700; }
.dh-legend { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; margin-top: 8px;
  font-size: .74rem; color: var(--muted); }
.dh-empty { margin-right: auto; font-style: italic; }
.dh-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.dh-sw-fill { background: var(--navy); } .dh-sw-track { background: var(--line); }
@media (max-width: 760px) {
  .dashhero { grid-template-columns: 1fr; gap: 14px; }
  .dh-value { font-size: 2.6rem; }
}

/* A work order that has stopped being routine, on the Work Orders table the
   ageing tile drills through to. */
.mini.late { color: var(--crit); font-weight: 700; }

/* THE FUNNEL COLUMN THE INQUIRIES TILE LANDS ON. The board is a pipeline, so
   the drill-through marks its column rather than hiding the other twelve. */
.col.is-focus { outline: 2px solid var(--navy); outline-offset: 2px;
                border-radius: var(--radius-sm); }

@media (max-width: 460px) {
  .kpigrid { grid-template-columns: 1fr; gap: 10px; }
  .kpi-value { font-size: 1.85rem; }
  .dashhead h2 { font-size: 1.2rem; }
  /* THE PREVIEW ROWS COME OFF ON A PHONE, and this is the whole reason the
     board is readable there. Measured 2026-09-03 at 390x844: seven tiles ran
     1,870px, or 2.2 SCREENS, and a "ten second overview" you have to scroll
     three times is not one. The rows are what cost it - a tile carrying five
     of them measured 318px against 95px for a tile carrying none.

     NOTHING IS LOST. Every tile is a link to the list it counts with the
     filter already applied, so on a phone the tile is the headline and the
     tap is the detail; on a desktop, where the column is 258px wide and there
     is room beside it, the first few rows show without a tap. The COUNT never
     changes - only whether the names sit under it. */
  .kpi-rows { display: none; }
}
/* ---- END THE KPI TILES ================================================== */

/* The enquiry strip at the front of the funnel reuses the tile row, because a
   list of people waiting should look the same wherever it is read. */
.leadstrip { border-top: 0; padding-top: 0; margin-top: 6px; }
.dr-fact.is-stale { color: var(--crit); font-weight: 700; }

/* ==================== SKYCLOCK, BRANDED (2026-09-05) ======================
   The clock is a stamp in the corner, not a headline. the owner, on seeing it
   mid-row at 12:46: "out of line, out of place." So: LAST in the masthead
   row (order), far right, two quiet lines - the time in ink at the size of a
   button label, the date beneath in small caps - and no gold at all on the
   light ground. The vendor files sk-skyclock.{css,js} are untouched; every
   rule here wins by specificity (.masthead .skyclock beats .skyclock). */
:root { --sk-gold: var(--muted); --sk-font: var(--sans); }
/* the MOUNT (#skyclock) is the flex child of the masthead row, so the
   placement rules go on it; the vendor's .skyclock inside just loses its
   floating position and takes the typography. */
.masthead #skyclock, .masthead .skyclock {
  position: static; order: 99; align-self: center; margin: 0 0 0 10px; padding: 0 0 0 12px;
  border: 0; border-left: 1px solid var(--line); background: none; box-shadow: none;
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right; line-height: 1.05; color: var(--muted); font-family: var(--sans); }
.masthead .skyclock .skyclock-time small { font-size: .6rem; font-weight: 600; letter-spacing: .06em;
                                           color: var(--muted); margin-left: 3px; }
.masthead .skyclock .skyclock-time { font-size: .95rem; font-weight: 700; color: var(--ink);
                                     font-variant-numeric: tabular-nums; letter-spacing: 0; }
.masthead .skyclock .skyclock-date { font-size: .58rem; font-weight: 600; letter-spacing: .08em;
                                     text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.masthead .skyclock .skyclock-time { font-size: 1rem; }
.masthead .skyclock + .spacer { display: none; }
@media (min-width: 521px) { .masthead .skyclock { display: inline-flex; } }
@media (max-width: 520px) {
  .masthead .skyclock .skyclock-date { display: none; }
  .ad .masthead #skyclock, .ad .masthead .skyclock { display: none; }
}
/* ---- END SKYCLOCK ------------------------------------------------------- */

/* ==================== HOW RENTERS PAY US (2026-09-05) ======================
   The office's settings page, the renter's door to each app, the note under
   the Pay button, and the preference control on Me. Sand is money here. */
/* the heading of a settings block and of Messages' "Notices to everyone"
   list, as LIVE. Their loose content (paragraphs, fields, .bcrow rows that
   pad only top and bottom) stands on the .attn border on a monitor, as it
   always has; at a phone and a tablet it stands on the cards' text inset
   (ONE PAGE GUTTER, ROUND TWO, at the end of this file). Round 1 inset it
   at every width and the Office "Management contacts" form reflowed from
   three columns to two at 1081px, +153px of page (2026-09-12). */
:is(.setwrap, .bclist) h3 { margin: 0 0 6px; }
.setrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.6fr) 80px 90px 160px;
          gap: 10px; align-items: end; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.setrow label { display: grid; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
                text-transform: uppercase; color: var(--muted); }
.setrow label .mini { text-transform: none; letter-spacing: 0; font-weight: 500; }
.setrow input:not([type=checkbox]) { font: inherit; font-size: .88rem; padding: 8px 10px; border: 1px solid var(--line);
                border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); text-transform: none;
                letter-spacing: 0; font-weight: 500; width: 100%; }
.setrow .setrow-on { grid-template-columns: auto auto; align-items: center; justify-content: start;
                     text-transform: none; letter-spacing: 0; font-size: .86rem; padding-bottom: 8px; }
.setrow .setrow-on b { color: var(--ink); }
.setacts { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
@media (max-width: 900px) { .setrow { grid-template-columns: 1fr 1fr; } }
.paynote { text-align: center; margin: -6px 0 12px; line-height: 1.45; }
.paynote .linkbtn { font-weight: 700; color: var(--accent); }
.paydoor { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
           background: var(--surface2); }
.paydoor.placeholder { color: var(--muted); font-size: .86rem; border-style: dashed; }
.paydoor .handle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; margin-bottom: 8px; }
.paydoor .handle span { color: var(--muted); }
.paydoor .handle code { font-family: var(--mono); font-size: .86rem; padding: 3px 8px; background: var(--surface);
                        border: 1px solid var(--line); border-radius: 4px; }
.paydoor .btn.block { background: var(--sand); color: var(--on-sand); border-color: var(--sand); }
.howpay .payopt.small { padding: 8px 12px; }
.howpay .payopt.small .mini { font-size: .8rem; font-weight: 600; }
/* ---- END HOW RENTERS PAY US --------------------------------------------- */

/* ========================================================== THE CHARTS ====
   Three cards between the rent hero and the tiles (2026-09-05). Same box as a
   tile; colour by meaning, not by series: navy is money in / a let home,
   --warn is what waits or stands empty, --good is done. */
.dashcharts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dchart { display: block; min-width: 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line);
          border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none;
          transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.dchart:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--lift); }
.dchart .kpi-foot { margin-top: 8px; }
.dc-row { display: grid; grid-template-columns: minmax(0, 1fr) 1.1fr auto; gap: 8px; align-items: center; font-size: .78rem; margin-top: 7px; }
.dc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-track { display: block; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dc-track i { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.dc-fact { font-style: normal; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dc-fact.is-vacant { color: var(--warn); font-weight: 700; }
.dc-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 10px; }
.dc-g { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.dc-pair { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 76px; }
.dc-pair i { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; }
.dc-in, .dc-legend .dc-in { background: var(--navy); }
.dc-out, .dc-legend .dc-out { background: var(--sand); }
.dc-m { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dc-legend { display: flex; gap: 12px; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.dc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.dc-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dc-status div { text-align: center; padding: 10px 4px 8px; border-radius: var(--radius-sm); background: var(--surface2); }
.dc-status b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dc-status span { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dc-status .o b { color: var(--warn); } .dc-status .p b { color: var(--navy); } .dc-status .d b { color: var(--good); }
@media (max-width: 900px) { .dashcharts { grid-template-columns: 1fr; } }
/* ---- END THE CHARTS ----------------------------------------------------- */

/* ================================= NOTICES, CONTACTS, PEOPLE (2026-09-05) ==
   Slice three of the renter portal: what management says, who management is,
   and who lives in the house. Same cards as the rest of the phone. */
.setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; margin: 8px 0 4px; }
.setgrid label { display: grid; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.setgrid input { font: inherit; font-size: .88rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
                 color: var(--ink); background: var(--surface); text-transform: none; letter-spacing: 0; font-weight: 500; }
.bclist { margin-bottom: 14px; }   /* its inset and its h3: with .setwrap's, under HOW RENTERS PAY US */
.bcrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.bcrow .bcmain { flex: 1; min-width: 0; } .bcrow b { display: block; font-size: .92rem; } .bcrow.is-done b { color: var(--muted); }
.rp-notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.rp-notice:first-child { border-top: 0; } .rp-notice b { display: block; font-size: .92rem; } .rp-notice .small { display: block; line-height: 1.4; }
.rp-notice.is-done b { color: var(--muted); } .rp-notice .resolved { color: var(--good); font-weight: 600; }
.office-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.office-row:first-child { border-top: 0; } .office-row span { color: var(--muted); }
.rp-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.rp-person:first-child { border-top: 0; }
.rp-addperson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; margin-top: 8px; }
.rp-addperson input { font: inherit; font-size: .88rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.act-dl { margin-top: 8px; display: inline-flex; width: auto; align-self: flex-start; }
/* ---- END NOTICES, CONTACTS, PEOPLE -------------------------------------- */

/* ================================================ THE PAPER PATH (2026-09-05)
   "Received on paper" and "Print" on the funnel card; "on file" as a chip that
   opens the scan. Same chip geometry the gate chips use. */
.stage-card .acts a.cardlink { font-size: .72rem; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
                               color: var(--accent); text-decoration: none; line-height: 1.4; }
.stage-card .acts a.cardlink:hover { border-color: var(--accent); }
a.gatechip.onfile { text-decoration: none; color: var(--good); }
a.gatechip.onfile:hover { text-decoration: underline; }
.cardbar .btnrow { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* ---- END THE PAPER PATH --------------------------------------------------- */

/* ============================================ RENTER PHONE, ROUND TWO (2026-09-05)
   the owner: the "+" sat on the clock's date ("the edit button is too close to the
   year"); the tab words were bunched; Home wanted the rent, then the home, then
   the notices; Pay wanted three plain steps. */
.rt .masthead .quick-add-stack { position: static; flex: 0 0 auto; order: 98; margin-left: 6px; gap: 8px; }
.rt .masthead .quick-add-btn { width: 44px; height: 44px; font-size: 20px; }   /* 44, not 40: round 2, 2026-09-12 */
.rt .masthead .quick-add-menu { top: 50px; right: 0; }   /* 6px under the 44px disc, as under the 40 */
.rt .masthead #skyclock, .rt .masthead .skyclock { margin-left: 12px; padding-left: 14px; }
/* the right-hand cluster (toggle, "+", clock) stays together at the right edge:
   the first visible member takes the auto margin, whichever it is */
.rt .masthead .theme-toggle { margin-left: auto; }
.rt .masthead .nbell:not([hidden]) ~ .theme-toggle { margin-left: 0; }
/* the row is tight on a tablet once the "+" sits in it: the date comes off
   earlier there (it is on the Activity calendar anyway), and if the row still
   wraps the clock keeps to the right edge instead of landing under the title */
@media (max-width: 980px) { .rt .masthead .skyclock .skyclock-date { display: none; } }
.rt .masthead .quick-add-stack { margin-left: 10px; }
.rt .home-unit { margin: 6px 0 2px; font-size: 1.2rem; }
.rt .home-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.rt .home-facts b { color: var(--ink); font-weight: 600; }
.rt .rp-upload { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.rt .rp-upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt .rp-upload-row select { font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); flex: 1 1 160px; }
.paysteps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 12px; counter-reset: none; }
.paysteps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted);
               padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.paysteps li span { display: inline-flex; width: 18px; height: 18px; border-radius: 999px; align-items: center; justify-content: center;
                    background: var(--line); color: var(--ink); font-size: .68rem; }
.paysteps li.on { color: var(--accent); border-color: var(--accent); }
.paysteps li.on span { background: var(--accent); color: var(--accent-ink); }
.paysteps li.done { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.paysteps li.done span { background: var(--good); color: var(--accent-ink); }
.paywait { padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); margin-top: 12px; }
.paylead { font-weight: 600; margin: 14px 0 0; }
.linkguide .lg-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.linkguide .lg-row code { font-size: .8rem; word-break: break-all; color: var(--ink); background: var(--surface2); padding: 2px 6px; border-radius: 4px; }
.linkguide .lg-row .mini { grid-column: 2; }
@media (max-width: 520px) { .paysteps li { font-size: .68rem; padding: 5px 6px; } .linkguide .lg-row { grid-template-columns: 1fr; } .linkguide .lg-row .mini { grid-column: 1; } }
.rt .pay-under { color: var(--warn); } .rt .pay-over { color: var(--accent); }
.rt .pay-under b, .rt .pay-over b { font-weight: 700; }
.owerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.owerow .owname { flex: 1 1 220px; min-width: 0; }
.rrow .btn.tiny { font-size: .7rem; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
/* THE RENT CARD, as the mock drew it (2026-09-05, late): eyebrow, the number
   in the state's colour, where, then the sand button and its note inside. */
.rt .rt-rent { padding: 0; overflow: hidden; }
.rt .rt-rent .rp-hero { border-radius: var(--radius); }
.rt .rp-hero-where { font-size: .95rem; color: var(--muted); margin-top: 4px; }
.rt .rp-hero .paynote { text-align: center; margin: 8px 0 0; }
.rt .rp-hero.is-due { --hero: var(--accent); }
.rt .rt-side:empty { display: none; }
.rt .home-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin: 8px 0 10px; }
.rt .eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.rt .rt-cardhd .eyebrow { align-self: center; }
.rt .rt-cardhd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rt .wherepills .payopt.small { flex: 1 1 140px; text-align: center; }
/* ---- END RENTER PHONE, ROUND TWO --------------------------------------------- */

/* ================================================== ACCOUNTING (2026-09-05) ==
   The one money screen: headline, five tiles, the six months, the upload
   window, what needs you, the period, then the engine. Same tile geometry the
   dashboard uses; colour only where it means one thing. */
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 14px; }
.acct-h2 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.acct-lede { max-width: 66ch; margin: 4px 0 0; }
.acct-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.atile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow); }
.atile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tile, var(--accent)); }
.atile .lab { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.atile .num { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; color: var(--tile, var(--navy)); }
.atile .sub { font-size: .78rem; color: var(--muted); }
.atile.good { --tile: var(--good); } .atile.warn { --tile: var(--warn); } .atile.crit { --tile: var(--crit); } .atile.sand { --tile: var(--sand-ink); }
.acct-bars { display: grid; grid-template-columns: repeat(var(--acct-n, 6), minmax(0, 1fr)); gap: 14px; align-items: end; height: 150px; padding: 18px 4px 0; border-bottom: 1px solid var(--line); }
.acct-bars .mo { display: flex; align-items: end; justify-content: center; gap: 5px; height: 100%; }
.acct-bars .bar { width: clamp(9px, 38%, 22px); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.acct-bars .bar.in { background: var(--accent); } .acct-bars .bar.out { background: color-mix(in srgb, var(--sand) 70%, var(--surface)); }
.acct-bars .bar span { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.acct-xl { display: grid; grid-template-columns: repeat(var(--acct-n, 6), minmax(0, 1fr)); gap: 14px; font-size: .7rem; color: var(--muted); text-align: center; padding-top: 6px; letter-spacing: .04em; }
.acct-legend { display: flex; gap: 14px; font-size: .75rem; color: var(--muted); margin-top: 10px; }
.acct-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.acct-legend i.in { background: var(--accent); } .acct-legend i.out { background: color-mix(in srgb, var(--sand) 70%, var(--surface)); }
.acct-drop { border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); padding: 18px 14px; text-align: center;
             background: color-mix(in srgb, var(--accent) 4%, var(--surface)); transition: background .15s; }
.acct-drop.hot { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.acct-drop b { display: block; font-size: .98rem; margin-bottom: 4px; }
.acct-fmts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.acct-fmts span { font-size: .66rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--muted); background: var(--surface); }
.acct-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .82rem; }
.acct-steps li { display: flex; gap: 10px; align-items: flex-start; }
.acct-steps li i { flex: 0 0 20px; height: 20px; border-radius: 999px; background: var(--surface2); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .7rem; font-weight: 800; color: var(--navy); }
.acct-rows .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.acct-rows .row:first-child { border-top: 0; } .acct-rows .grow { flex: 1; min-width: 0; } .acct-rows .sub { display: block; font-size: .76rem; color: var(--muted); }
.acct .pill.a { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@media (max-width: 980px) { .acct-tiles { grid-template-columns: repeat(2, 1fr); } .acct-grid { grid-template-columns: 1fr; } }
/* ---- END ACCOUNTING --------------------------------------------------------- */

/* ============================================ ADMIN CHROME, THE OWNER'S LIST (2026-09-05)
   Trust link at the foot of the sidebar; narrower margins; the clock floating
   bottom-right; a sun or a moon for the toggle; the "+" bottom-left in blue. */
#quick-add[hidden] { display: none; }
/* narrower margins: the shell and the masthead widen together */
/* ...on a wide screen only (2026-09-12, the owner, of the band on a phone: "check mobile views. look at padding. it is off."). At the top level it also capped a 390px phone's shell at
   294px: 48px of empty cream either side of every card, 64px with main's own
   16px, while the "+" it leaves room for sits bottom-right on a phone. Below
   1081px the sidebar is a sheet and the shell one column, so the shell fills
   the screen and main's --page-gutter is the only margin. Scoped, not
   deleted: a monitor still widens the shell with the masthead.
   RANGE SYNTAX (2026-09-12, round 2): "(min-width: 1081px)" left the widths
   between 1080 and 1081px - fractional, which a zoomed or scaled window does
   produce - matching neither this query nor the one-column shell's
   (max-width: 1080px). "(width > 1080px)" begins exactly where that ends. */
@media (width > 1080px) {
  .ad .appshell { max-width: min(1800px, calc(100vw - 96px)); }   /* 48px either side: the "+" lives in the right one */
}
.ad .masthead .inner, .ad .quote-band .quote-ribbon { max-width: 1800px; }
/* the sidebar: the list scrolls inside it, the foot stays put */
.ad .sidenav { display: flex; flex-direction: column; padding-bottom: 0; }
.ad .sidenav #navlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ad .sidefoot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 12px 8px 14px; margin-top: 10px; }
/* the sidebar ends at the fold even with the masthead above it: --mast-h is
   measured by the page (sizeSidenav), so the foot is on screen unscrolled */
.ad .sidenav { max-height: calc(100vh - var(--mast-h, 60px)); }
.ad .sidefoot .trustlink { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface2); color: var(--navy); font-weight: 600; font-size: .85rem; text-decoration: none; }
.ad .sidefoot .trustlink[hidden] { display: none; }
.ad .sidefoot .trustlink:hover { border-color: var(--accent); }
.ad .sidefoot .trustlink .w { flex: 1; } .ad .sidefoot .trustlink .g, .ad .sidefoot .trustlink .sw-arrow { opacity: .75; }
.ad .sidefoot p { margin: 10px 2px 0; font-size: .72rem; line-height: 1.45; }
/* the clock floats bottom-right, a quiet stamp */
/* the clock stays in the banner row (SKYCLOCK block), beside the toggle: time
   over date, far right. The banner itself is sticky, so it is always on screen. */
.ad .masthead { position: sticky; top: 0; z-index: 65; }
.ad .sidenav { top: var(--mast-h, 60px); }
/* the toggle: a moon in the light, a sun in the dark. On the admin it is the
   band's one circle, 44 round a 20px icon (2026-09-12, round 2: it was 46
   round 28, and the owner: "all buttons or circles at top should be same size.
   icons"; THE BAND, ONE CIRCLE, ONE ICON) */
.theme-toggle { width: 32px; height: 32px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad .masthead .theme-toggle { width: 44px; height: 44px; }
.ad .masthead .theme-toggle svg { width: 20px; height: 20px; stroke-width: 2; }
/* the bell shows its count, not the word */
.ad .masthead .nbell .w { display: none; }
.ad .masthead .nbell .g { display: inline; font-size: 1.05rem; }
.theme-toggle .ti-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ti-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ti-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ti-moon { display: none; }
}
@media (max-width: 1080px) {
  .ad .sidenav { display: block; }           /* the sheet keeps its own scroll */
  .ad .sidenav #navlist { overflow: visible; }
}
/* the era square, on Settings */
.settings-era .erarow { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.settings-era #phase-square { width: 40px; height: 40px; font-size: 1.05rem; }
/* on a phone the "+" floats bottom-right ON THE PAGE GUTTER (2026-09-12,
   round 2): at right 12 it stood 4px outside the cards' edge, over their
   right-hand text; main's foot clears it (ONE PAGE GUTTER, ROUND TWO) */
@media (max-width: 640px) { .ad .masthead .quick-add-stack { top: auto; bottom: var(--page-gutter); right: var(--page-gutter); } }
/* ---- END ADMIN CHROME ------------------------------------------------------- */

/* ============================================ THE REIMAGINED SHELL (2026-09-05)
   the owner: "Stop. Reimagine it." Nine areas on the rail, each area's
   destinations as segments in a page header, one search in the banner, no
   facts strip anywhere. Mock: Documentation/mockups/reedcreek-reimagined.html. */
.ad .sidenav { padding-top: 14px; }
.ad .sidenav a.navitem { padding: 9px 12px; font-size: .9rem; font-weight: 600; gap: 11px; }
.ad .sidenav a.navitem .ic { width: 20px; font-size: 1.05rem; opacity: .85; }
.ad .sidenav a.navitem.on { box-shadow: inset 3px 0 0 var(--accent); }
/* the search rides the banner, between the name and the quote */
.ad .masthead .navsearch { flex: 1 1 300px; max-width: 540px; margin: 0 10px; }
.ad .masthead .navsearch input { height: 38px; font-size: .88rem; padding-left: 34px; }
.ad .masthead .navsearch .mag { font-size: .95rem; left: 12px; }
.navhits { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--lift); overflow: hidden; padding: 4px; }
.navhits .hit { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 0; background: none; font: inherit; font-size: .88rem; color: var(--ink);
  padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.navhits .hit:hover, .navhits .hit:focus-visible { background: var(--surface2); outline: none; }
.navhits .hit .k { flex: 0 0 62px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; }
.navhits .hit b { font-weight: 600; }
.navhits .hit .s { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
/* the clock keeps the time; the date is on the Today greeting */
.ad .masthead .skyclock-date { display: none; }
/* the page header */
#phead { margin-bottom: 18px; }
.phead { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.phead .eyebrow { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; }
.phead h1 { font-family: var(--serif); font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--navy); margin: 2px 0 0; line-height: 1.1; }
.phead .fact { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.phead .fact b { color: var(--ink); font-weight: 600; }
.phead .phacts { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.phead .seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; gap: 2px;
  max-width: 100%; overflow-x: auto; }
.phead .seg a { border: 0; border-radius: 999px; padding: 6px 13px; font-size: .84rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap; }
.phead .seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.phead .seg a:hover { color: var(--ink); }
.phead .phact { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.phead .phact:hover { filter: brightness(1.06); }
/* rows that open something */
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--surface2); }
.pill.listed { background: var(--sand); color: var(--on-sand); border-color: var(--sand); }
@media (max-width: 1080px) { .ad .masthead .navsearch { flex-basis: 160px; margin: 0 6px; } }
/* the search gets the room before the quote does */
.ad .masthead .navsearch { flex: 1 1 380px; }
.ad .masthead .qinline { flex: 1 1 160px; min-width: 0; }

/* ---- TODAY: two readings across, the homes, then the tiles ---- */
.ad .trow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ad .trow .card { min-width: 0; display: flex; flex-direction: column; }
.ad .tcard h3, .ad .hband h3 { margin: 0 0 8px; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ring { display: flex; gap: 22px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ring .ringlink { display: block; flex: 0 0 auto; border-radius: 999px; }
.ring .ringlink:hover { filter: brightness(1.04); }
.ring svg { width: 128px; height: 128px; display: block; }
.ring .c { fill: none; stroke-width: 12; }
.ring .facts { display: flex; flex-direction: column; gap: 9px; min-width: 0; flex: 1 1 160px; }
.ring .facts a { color: inherit; text-decoration: none; }
.ring .facts a:hover b { color: var(--accent); }
.ring .facts b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.ring .facts b.is-due { color: var(--crit); }
.ring .facts small { display: block; font-size: .74rem; color: var(--muted); margin-top: 1px; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sw-owed { background: color-mix(in srgb, var(--crit) 42%, var(--surface)); }
.sw-good { background: var(--good); }
.bignum2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: 4px; }
.bignum2 small { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 66px; margin-top: 10px; }
.bars .g { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  justify-content: flex-end; text-decoration: none; border-radius: 4px; }
.bars .g:hover { background: var(--surface2); }
.bars .pr { display: flex; gap: 2px; align-items: flex-end; height: 48px; width: 100%; }
.bars .pr i { flex: 1; display: block; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .in { background: var(--royal); } .bars .out { background: var(--sand); }
.bars .ml { font-size: .62rem; color: var(--muted); letter-spacing: .04em; }
.leg { display: flex; gap: 12px; font-size: .74rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lg-in { background: var(--royal); } .lg-out { background: var(--sand); }
.lg-let { background: var(--cobalt); } .lg-late { background: var(--crit); } .lg-listed { background: var(--sand); }
.lg-grey { background: color-mix(in srgb, var(--muted) 30%, var(--surface)); }
.lg-prep { border: 2px solid var(--accent); background: transparent; width: 7px; height: 7px; }
.pit { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.ad .trow .pit { margin-top: auto; padding-top: 12px; }
/* the homes */
.hband { margin-bottom: 14px; }
.hbhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hbhead .leg { margin: 0 0 0 auto; }
.hgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; margin-top: 8px; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 7px 0; border-top: 1px solid var(--line-soft); }
.hl { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.hl:hover .hn { color: var(--accent); }
.hn { font-size: .86rem; font-weight: 600; line-height: 1.25; }
.hf { font-style: normal; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.ws { display: flex; gap: 4px; flex-wrap: nowrap; }
.sq { width: 19px; height: 19px; border-radius: 4px; background: var(--surface2); cursor: pointer;
  border: 2px solid transparent; display: block; padding: 0; transition: transform .12s; }
.sq:hover { transform: scale(1.15); }
.sq:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.sq.let { background: var(--cobalt); }
.sq.let.late { background: radial-gradient(circle at 72% 28%, var(--crit) 0 3.2px, transparent 3.9px), var(--cobalt); }
.sq.listed { background: var(--sand); }
.sq.grey { background: color-mix(in srgb, var(--muted) 30%, var(--surface)); }
.sq.prep { background: transparent; border-color: var(--accent); }
/* the tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 10px; border-left: 4px solid var(--stripe, var(--line)); display: flex; flex-direction: column; }
.tile.red { --stripe: var(--crit); } .tile.amber { --stripe: var(--warn); } .tile.blue { --stripe: var(--cobalt); }
.tile.sand { --stripe: var(--sand); } .tile.royal { --stripe: var(--royal); } .tile.green { --stripe: var(--good); }
.tile.is-quiet { --stripe: var(--line); }
.tile .thead { text-decoration: none; color: inherit; display: block; border-radius: 6px; margin: -6px -8px 2px; padding: 6px 8px; }
.tile .thead:hover { background: var(--surface2); }
.tile h3 { margin: 0; font-family: var(--sans); font-size: .98rem; font-weight: 700; color: var(--ink); }
.tile .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 6px 0 2px; }
.tile.red .n { color: var(--crit); } .tile.amber .n { color: var(--warn); } .tile.blue .n { color: var(--cobalt); }
.tile.sand .n { color: var(--sand); } .tile.royal .n { color: var(--royal); } .tile.green .n { color: var(--good); }
.tile .n .q { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.3; }
.tile .sub { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.tile .tr { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: .84rem; }
.tile .tr[role="button"] { cursor: pointer; }
.tile .tr[role="button"]:hover b { color: var(--accent); }
.tile .tr .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tile .tr b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .tr span { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.tile .tr .btn { flex: 0 0 auto; }
.tile .tr .btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile .tmore { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.dashfoot { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ad .trow { grid-template-columns: 1fr; } .hgrid { grid-template-columns: 1fr; } }
/* minmax(0, 1fr), like the two rules above: a bare 1fr is minmax(auto, 1fr), so the longest
   one-line name in a tile propped the column open and the live Today screen laid out 393px
   wide on a 375px phone (the owner, 2026-09-12: "look at padding. it is off"). */
@media (max-width: 620px) { .tiles { grid-template-columns: minmax(0, 1fr); } .hbhead .leg { margin-left: 0; } }
/* ---- THE DRAWER ---- */
.dscrim { position: fixed; inset: 0; background: rgba(24,33,31,.28); z-index: 90; opacity: 0; transition: opacity .18s; }
.dscrim.on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--surface);
  z-index: 91; box-shadow: -12px 0 40px rgba(24,33,31,.16); transform: translateX(102%);
  transition: transform .2s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.drawer.wide { width: min(980px, 100vw); }
.drawer.on { transform: none; }
.drawer .dh { padding: 18px 22px 0; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.drawer .dh .top { display: flex; gap: 14px; align-items: center; }
.drawer .dh .top .monogram { border: 3px solid var(--surface); box-shadow: var(--shadow); }
.drawer .dtitle { min-width: 0; flex: 1; }
.drawer .dh h2 { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); line-height: 1.2; }
.drawer .dh .line { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.drawer .dh .x { margin-left: auto; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 999px; }
.drawer .dh .x:hover { background: var(--surface2); color: var(--ink); }
.drawer .dacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 14px 0; position: relative; }
.drawer .dacts .btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kebab { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 800;
  margin-left: auto; font-size: 1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.kebab:hover { border-color: var(--accent); }
.dmenu { position: absolute; right: 0; top: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--lift); min-width: 210px; z-index: 5; padding: 4px 0; }
.dmenu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 14px; font: inherit;
  font-size: .86rem; color: var(--ink); cursor: pointer; }
.dmenu button:hover { background: var(--surface2); }
.dmenu button.danger { color: var(--crit); border-top: 1px solid var(--line-soft); margin-top: 4px; }
.soft { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: .84rem; margin: 0 0 12px; }
.soft a { margin-left: auto; color: var(--warn); font-weight: 700; text-decoration: none; white-space: nowrap; }
.dsegs { display: flex; gap: 2px; overflow-x: auto; }
.dsegs button { border: 0; background: transparent; padding: 9px 12px; font: inherit; font-weight: 600; font-size: .86rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.dsegs button.on { color: var(--navy); border-color: var(--accent); }
.drawer .db { padding: 18px 22px 40px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.bal { display: flex; gap: 26px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.bal .l { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.bal .n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-family: var(--serif); }
.bal .n.sm { font-size: 1.3rem; }
.bal .n.due { color: var(--crit); }
.dkv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.dkv .kv { display: block; }
.note { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: .86rem; background: var(--paper); }
.note.done { opacity: .7; }
.note small { display: block; color: var(--muted); font-size: .74rem; margin-bottom: 2px; }
.drawer textarea { width: 100%; font: inherit; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px;
  background: var(--surface); color: var(--ink); resize: vertical; }
body.drawer-open { overflow: hidden; }
@media (max-width: 760px) { .drawer, .drawer.wide { width: 100vw; } .dkv { grid-template-columns: 1fr; } }
/* ---- THE RENT ROLL ---- */
.rrbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rrbar .month { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1rem; }
.rrbar .month b { min-width: 150px; text-align: center; }
.rrbar .seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; gap: 2px; }
.rrbar .seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem;
  font-weight: 600; color: var(--muted); cursor: pointer; }
.rrbar .seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.rrbar .seg button i { font-style: normal; font-weight: 500; opacity: .8; }
.rrbar .searchpill { margin-left: auto; }
.band { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--sand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--sand) 40%, transparent); border-radius: var(--radius-sm); padding: 9px 14px;
  font-size: .86rem; margin-bottom: 12px; }
.band .btn { margin-left: auto; }
table.rroll td { vertical-align: middle; }
table.rroll .pill { white-space: nowrap; }
table.rroll .rracts .btn { opacity: .55; }
table.rroll .who { display: flex; align-items: center; gap: 10px; }
table.rroll .who b { display: block; font-weight: 600; line-height: 1.2; }
table.rroll .who small { color: var(--muted); font-size: .76rem; }
table.rroll td.neg b { color: var(--crit); }
table.rroll .rracts { text-align: right; white-space: nowrap; }
table.rroll .rracts .btn { transition: opacity .12s; }
table.rroll tr:hover .rracts .btn, table.rroll .rracts .btn:focus-visible { opacity: 1; }
table.rroll tfoot td { font-weight: 700; background: var(--surface2); border-top: 1px solid var(--line); }
.pill.r { background: var(--crit); color: var(--accent-ink); border-color: var(--crit); }
/* ---- HOMES: the grid is dense, six across ---- */
.ad .unitgrid { gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1500px) { .ad .unitgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1240px) { .ad .unitgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .ad .unitgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .ad .unitgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad .pcard .pbody { padding: 10px 12px 10px; }
.ad .pcard .pprice { font-size: 1.05rem; }
.ad .pcard .pstats, .ad .pcard .pmeta { font-size: .74rem; }
.ad .pcard .paddr { font-size: .84rem; }
.st-vacant   { --st: color-mix(in srgb, var(--muted) 55%, var(--surface)); --bi: var(--ink); }
.st-listed   { --st: var(--sand); --bi: var(--on-sand); }
.st-occupied { --st: var(--cobalt); }
.ad .gridbar .seg { max-width: 100%; overflow-x: auto; }
/* the bell came off the banner (the owner, 2026-09-06): the numbers are on the rail */
.ad .masthead .bellwrap { display: none; }
/* the search is narrow until you type, so the quote keeps its room */
.ad .masthead .navsearch { flex: 0 1 250px !important; max-width: 260px; transition: max-width .18s, flex-basis .18s; }
.ad .masthead .navsearch:focus-within { flex-basis: 480px !important; max-width: 520px; }
.ad .masthead .qinline { flex: 1 1 320px; }
.ad .sidenav a.navitem .n.hot { background: var(--crit); color: var(--accent-ink); }
.card.claims { margin-bottom: 12px; border-left: 4px solid var(--warn); }
.card.claims .cardbar h3 { margin: 0; font-size: .95rem; }
.card.claims .acct-rows .row .btn { margin-left: 6px; }
/* ---- BOOKS, THE QUICKBOOKS WAY (2026-09-06) ---- */
.bf-accts { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bf-acct { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer;
  font: inherit; color: var(--ink); min-width: 280px; display: flex; flex-direction: column; gap: 2px; }
.bf-acct.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bf-acct .nm { font-weight: 700; font-size: .95rem; } .bf-acct .sub { color: var(--muted); font-size: .8rem; }
.bf-acct .facts { font-size: .8rem; color: var(--muted); margin-top: 6px; } .bf-acct .facts b { color: var(--ink); } .bf-acct .facts b.warn { color: var(--warn); }
.bf-tabs button i { font-style: normal; font-weight: 500; opacity: .8; }
table.bf td.pos { color: var(--good); font-weight: 600; } table.bf td.neg { color: var(--ink); font-weight: 600; }
table.bf td:first-child, table.rroll td.num:first-child { white-space: nowrap; }
table.bf .rracts .btn { opacity: 1; }
.bf-sugg { display: inline-block; font-size: .84rem; color: var(--ink); } .bf-sugg.is-done { color: var(--muted); }
tr.bf-row.is-open td { background: var(--surface2); }
tr.bf-expand td { background: var(--surface2); padding: 8px 18px 18px; border-bottom: 2px solid var(--line); }
.bf-modes { margin-bottom: 12px; } .bf-modes .bf-excl { margin-left: auto; color: var(--crit); }
.bf-cands { display: flex; flex-direction: column; gap: 6px; }
.bf-cand { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.bf-cand .grow { flex: 1; min-width: 0; }
.bf-add { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: end; }
.bf-add label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bf-add select, .bf-add input { font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.bf-addfoot { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rc-math { margin-bottom: 14px; }
.rc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rc-grid > div { border-top: 3px solid var(--line); padding-top: 8px; }
.rc-grid small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rc-grid b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 2px; }
.rc-grid .mini { display: block; }
.rc-input input { width: 100%; font: inherit; font-size: 1.15rem; font-weight: 700; padding: 6px 10px; border: 1px solid var(--accent); border-radius: var(--radius-sm); margin: 4px 0 2px; background: var(--surface); color: var(--ink); }
.rc-diff.ok { border-top-color: var(--good); } .rc-diff.ok b { color: var(--good); }
.rc-diff.bad { border-top-color: var(--crit); } .rc-diff.bad b { color: var(--crit); }
.rc-foot { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.rc-status { margin-left: auto; }
.ad .btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.rc-input .btn { margin-top: 4px; }
tr.rc-open td { background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
a.pill { text-decoration: none; }
@media (max-width: 1100px) { .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bf-add { grid-template-columns: 1fr; } }
/* ---- END THE REIMAGINED SHELL ---------------------------------------------- */
/* Office > Drive and Books > Statements (2026-09-06) */
.dv-h{margin:14px 0 4px}.dv-sub{font-weight:500}.dv-act{white-space:nowrap}
/* Upkeep board + the cards every row opens (2026-09-06) */
.woboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.wocol{background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:10px;min-height:160px;transition:background .15s}.wocol.over{background:var(--sand)}
.wocol-h{display:flex;justify-content:space-between;align-items:baseline;padding:2px 4px 8px}.wocol-h b{font-size:.86rem}
.wocard{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:10px 12px;margin-bottom:8px;cursor:grab;box-shadow:var(--shadow)}.wocard:active{cursor:grabbing}.wocard.late{border-left-color:var(--crit)}
.wocard b{display:block;font-size:.9rem;line-height:1.2}.wocard-f{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.woseg{margin-left:auto}
.dfacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin-top:8px}.dfacts .v{font-weight:600;word-break:break-word}
.drawer .dr{padding:9px 0;border-top:1px solid var(--line);font-size:.9rem}.drawer .dr b{display:block;font-weight:600}.drawer .dr span{color:var(--muted);font-size:.8rem}
.lstate{margin-bottom:16px}.lstate h3{margin:0 0 6px}
.rowlink{cursor:pointer}.card.rowlink:hover{box-shadow:var(--shadow2)}   /* keep the renewal row's class name out of this file: test_notify slices the stylesheet on it */
@media(max-width:1100px){.woboard{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* THE RENEWAL QUESTION at the top of "From management" (renter home). */
.rt .rn{padding:2px 0 12px;margin-bottom:10px;border-bottom:1px solid var(--line, rgba(127,127,127,.25))}
.rt .rn p{margin:0 0 8px}
.rt .rn .rt-acts{margin:8px 0 6px;display:flex;gap:10px;flex-wrap:wrap}
.rt .rn .rt-act{flex:1 1 160px}
.rt .rn #rn-when{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}

/* ==========================================================================
   THE CREEK LOOK (2026-10-15) - the redesign the owner approved (preview
   revision 6), built into the live pages. It REPLACES THE BAND (2026-09-12):
   the navy masthead with the creek drawn through it, the cream ground with
   the creek behind it, the quote ribbon and the clock are gone, and so is
   the nine-line plat drawing they were made of.

   WHAT IT IS. The office is a Deep Creek rail the full height of the window
   (the round logo, the nine areas, trees and ferns at its foot), a top bar
   that is the top of a pale sky, and a page head that carries the sky on and
   ends in hills with the sun in them; the page lifts over the foot of the
   hills. The resident's page is the same sky under a centred round logo, with
   a floating glass bar at the foot of a phone whose pill slides under the
   place you are. At night the sun is a crescent moon and fireflies light up
   near the trees (creek-look.js). Pictures are inline SVG drawn in tokens, so
   both themes come for free; nothing here is a photograph.

   WHAT IT KEEPS. Every structure, route, handler and breakpoint the pages had:
   the sidebar is still a sheet at 1080px and below, the search is still a
   circle that opens on a phone, the "+" still floats bottom-right there. The
   colours and fonts changed underneath (the token block at the top of this
   file); this block moves the shell.

   Scoped by body class (.ad office, .rt resident, .sg signing room), never
   by class "band": .band is the sand notice strip and the old header
   collided with it once already.
   ========================================================================== */

/* ---- the ground, and the way past the chrome ---- */
body.ad, body.rt, body.sg { background: var(--paper); color: var(--ink); }
@media print { body.ad, body.rt, body.sg { background: Canvas; } }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; background: var(--primary); color: var(--on-primary);
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---- the pictures are drawn in tokens: each shape's class says which one it reads (no inline style on a page) ---- */
.sun { fill: var(--sun); }
.moon { fill: var(--moon); }
.moon-glow { opacity: .10; }
.hill-far { fill: var(--hill-far); } .hill-mid { fill: var(--hill-mid); } .hill-hi { fill: var(--hill-hi); }
.hill-near { fill: var(--hill-near); } .hill-land { fill: var(--land); }
.ridge-1 { fill: var(--rail-ridge-1); } .ridge-2 { fill: var(--rail-ridge-2); } .ridge-3 { fill: var(--rail-ridge-3); }
.auth-hill-far { fill: var(--auth-hill-far); } .auth-hill-mid { fill: var(--auth-hill-mid); } .auth-hill-hi { fill: var(--auth-hill-hi); }
.auth-hill-near { fill: var(--auth-hill-near); } .auth-hill-base { fill: var(--auth-hill-base); } .auth-creek { fill: var(--auth-creek); }
.stop-ground-a { stop-color: var(--auth-ground); } .stop-ground-b { stop-color: var(--auth-ground-2); }
/* ---- the sun by day, a crescent moon in its place by night; the fireflies (night only) ---- */
.moon { display: none; }
:root[data-theme="dark"] .sun { display: none; }
:root[data-theme="dark"] .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: none; }
  :root:not([data-theme="light"]) .moon { display: inline; }
}
.fly { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--firefly); opacity: 0; display: none;
  box-shadow: 0 0 6px 2px color-mix(in srgb, var(--firefly) 85%, transparent), 0 0 16px 7px color-mix(in srgb, var(--firefly) 35%, transparent); pointer-events: none; }
.fly.on { animation: fly-glow var(--fly-dur, 3.4s) ease-in-out forwards; }
@keyframes fly-glow {
  0% { opacity: 0; transform: translate(0, 0) scale(.7); } 22% { opacity: 1; }
  60% { opacity: .85; transform: translate(5px, -7px) scale(1); } 100% { opacity: 0; transform: translate(9px, -12px) scale(.8); }
}
:root[data-theme="dark"] .fly { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fly { display: block; } }
@media (prefers-reduced-motion: reduce) { .fly, .fly.on { animation: none !important; opacity: 0 !important; } }

/* ==================================================================== THE OFFICE */

/* ---- the shell on a monitor: a rail the full height of the window beside a top bar and the page.
   .appshell dissolves (display: contents) so the rail, the top bar and the page are one grid; the markup
   keeps its order (top bar, rail, page), so the tab order does not move. */
@media (width > 1080px) {
  body.ad { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh; align-items: start; }
  body.ad > .appshell { display: contents; }
  body.ad > .masthead { grid-column: 2; grid-row: 1; }
  body.ad .sidenav { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; align-self: start;
    height: 100vh; max-height: none; }
  body.ad .appshell > main { grid-column: 2; grid-row: 2; min-width: 0; }
}

/* ---- the top bar: the top of the sky. Search on the left, the controls on the right. */
body.ad .masthead { background: var(--header-bg); color: var(--header-ink); border: 0; position: relative; z-index: 65;
  --sk-gold: var(--header-ink); }
body.ad .masthead .inner { max-width: none; margin: 0; padding: 10px 32px; min-height: 64px; gap: 12px;
  flex-wrap: nowrap; align-items: center; }
body.ad .masthead a { color: inherit; }
body.ad .masthead :focus-visible { outline: 2px solid var(--header-ink); outline-offset: 2px; }
/* the name: a quiet caption at the right of the bar on a monitor (the rail carries the logo), the bar's title on a phone */
body.ad .masthead h1.mastname { font-family: var(--sans); font-weight: 600; font-size: .9375rem; line-height: 20px; color: var(--header-ink);
  letter-spacing: 0; background: none; box-shadow: none; text-shadow: none; margin: 0; text-align: right; flex: 0 1 auto; min-width: 0; order: 80; }
body.ad .masthead h1.mastname a { text-decoration: none; }
body.ad .masthead .mastnote { display: block; margin: 0; font-size: .8125rem; line-height: 18px; font-weight: 400; letter-spacing: 0;
  color: var(--band-ink-2); opacity: 1; text-wrap: balance; }
@media (width > 1080px) and (width < 1240px) { body.ad .masthead h1.mastname .mastnote { display: none; } }
/* the search: a plain field, 44px, Creek Blue border; it grows when you use it */
body.ad .masthead .navsearch { flex: 0 1 380px !important; max-width: 420px; margin: 0 auto 0 0; }
body.ad .masthead .navsearch:focus-within { flex-basis: 520px !important; max-width: 560px; }
body.ad .masthead .navsearch input { width: 100%; height: 44px; padding: 0 44px 0 42px; font-size: 1rem;
  border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
body.ad .masthead .navsearch input::placeholder { color: var(--muted); }
body.ad .masthead .navsearch .mag { left: 13px; width: 20px; height: 20px; color: var(--muted); fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.ad .masthead .navsearch kbd { right: 10px; height: 24px; min-width: 24px; display: grid; place-items: center; font: 600 .875rem/1 var(--sans);
  color: var(--muted); background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; }
/* the controls: the theme toggle and the bell are quiet 44px boxes; the "+" is the one gold thing */
body.ad .masthead .theme-toggle, body.rt .masthead .theme-toggle {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; margin: 0; flex: 0 0 auto; order: 90;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--header-ink); border: 1px solid var(--header-line); border-radius: var(--radius-sm); }
/* the resident's bell is a word and a count on a monitor and hidden on a phone (style.css's .rt .masthead .nbell), so
   its box is not set here, only its height, its look and its place */
body.ad .masthead .nbell, body.rt .masthead .nbell {
  min-width: 44px; min-height: 44px; height: 44px; padding: 0 12px; margin: 0; flex: 0 0 auto; order: 90;
  align-items: center; justify-content: center;
  background: transparent; color: var(--header-ink); border: 1px solid var(--header-line); border-radius: var(--radius-sm); }
body.ad .masthead .theme-toggle:hover, body.rt .masthead .theme-toggle:hover { background: var(--selected); border-color: var(--header-line); color: var(--header-ink); }
body.ad .masthead .nbell:hover, body.rt .masthead .nbell:hover { background: var(--selected); border-color: var(--header-line); color: var(--header-ink); }
body.ad .masthead .theme-toggle svg, body.rt .masthead .theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.ad .masthead .navtoggle { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; color: var(--header-ink);
  background: transparent; border: 1px solid var(--header-line); border-radius: var(--radius-sm); }
body.ad .masthead .navtoggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.ad .masthead .navtoggle .w { display: none; }
/* the "+": Sunset Gold with a Deep Creek plus (the owner, 2026-10-15), a rounded square, 44px, in the bar on a monitor */
body.ad .masthead .quick-add-btn, body.rt .masthead .quick-add-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--plus); color: var(--on-gold);
  font-family: var(--sans); font-weight: 400; font-size: 32px; line-height: 1; box-shadow: none; }
body.ad .masthead .quick-add-btn:hover, body.rt .masthead .quick-add-btn:hover { background: var(--plus-hover); transform: none; }
body.ad .masthead .quick-add-btn.quick-add-more, body.rt .masthead .quick-add-btn.quick-add-more { font-size: 20px; }
body.ad .masthead .quick-add-menu, body.rt .masthead .quick-add-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-overlay); }
@media (width > 640px) {
  body.ad .masthead .quick-add-stack { position: static; top: auto; right: auto; flex: 0 0 auto; order: 98; margin: 0; }
  body.ad .masthead .quick-add-menu { top: 50px; right: 0; }
}

/* ---- the rail: Deep Creek, the full height, the round logo centred at its top ---- */
body.ad .sidenav { background: var(--rail-bg); color: var(--rail-ink); border: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 16px 0; overflow-x: hidden; overflow-y: auto; isolation: isolate; }
body.ad .sidenav > * { position: relative; z-index: 1; }
body.ad .sidenav .brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 0 8px 24px; color: var(--rail-ink); text-decoration: none; text-align: center; flex: 0 0 auto; }
body.ad .sidenav .brand-logo { width: 144px; height: 144px; display: block; border-radius: 50%; object-fit: contain; }
body.ad .sidenav .brand-sub { font-size: .875rem; line-height: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-ink-2); }
body.ad .sidenav :focus-visible { outline: 2px solid var(--rail-ink); outline-offset: 2px; }
body.ad .sidenav .navclose { color: var(--rail-ink); border-color: var(--rail-line); background: transparent; }
body.ad .sidenav #navlist { flex: 0 0 auto; min-height: 0; display: grid; gap: 4px; align-content: start; overflow: visible; }
body.ad .sidenav a.navitem { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); color: var(--rail-ink); font-size: 1rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
body.ad .sidenav a.navitem:hover { background: var(--rail-hover); color: var(--rail-ink); }
body.ad .sidenav a.navitem.on { background: var(--rail-selected); color: var(--rail-ink); box-shadow: inset 3px 0 0 var(--plus); }
body.ad .sidenav a.navitem .ic { flex: 0 0 auto; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; opacity: 1; }
body.ad .sidenav a.navitem .ic svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
body.ad .sidenav a.navitem .n, body.ad .sidenav a.navitem.on .n, body.ad .sidenav a.navitem .n.hot, body.ad .sidenav a.navitem.on .n.hot,
body.ad .sidenav a.navitem .n.warm, body.ad .sidenav a.navitem.on .n.warm {
  margin-left: auto; min-width: 24px; height: 24px; padding: 0 8px; display: inline-grid; place-items: center; line-height: 1;
  border: 1px solid currentColor; border-radius: var(--radius-badge, 999px); background: transparent; color: inherit;
  font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* trees and ferns at the foot of the rail; it gives way on a short window instead of pushing the list */
body.ad .sidenav > .rail-art { margin: auto -16px 0; flex: 1 1 0; max-height: 200px; min-height: 0; position: relative; overflow: hidden; pointer-events: none; }
.rail-art svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 200px; display: block; }
.rail-art .tree-a { fill: var(--rail-tree); }
.rail-art .tree-b { fill: var(--rail-tree-hi); }
.rail-art .fern { fill: var(--rail-fern); }
body.ad .sidefoot { flex: 0 0 auto; margin: 0 -16px; padding: 16px 28px 20px; background: var(--rail-bg); border-top: 1px solid var(--rail-line);
  display: grid; gap: 8px; color: var(--rail-ink-2); }
body.ad .sidefoot p, body.ad .sidefoot .small { margin: 0; font-size: .875rem; line-height: 20px; color: var(--rail-ink-2); }
body.ad .sidefoot a { color: var(--rail-ink); }
body.ad .sidefoot .legal-name { color: var(--rail-ink); font-weight: 600; display: block; }
body.ad .sidefoot .trustlink { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rail-line);
  border-radius: var(--radius-sm); background: transparent; color: var(--rail-ink); font-weight: 600; font-size: .875rem; text-decoration: none; }
body.ad .sidefoot .trustlink[hidden] { display: none; }
body.ad .sidefoot .trustlink:hover { background: var(--rail-hover); border-color: var(--rail-line); }

/* ---- the page: a sky that carries on from the top bar and ends in hills; the page lifts over their foot ---- */
body.ad .appshell > main { max-width: none; margin: 0; padding: 0 32px 80px; position: relative; }
body.ad .skyhead { position: relative; margin: 0 -32px; padding: 8px 32px 0;
  background: linear-gradient(180deg, var(--band-sky-top) 0%, var(--band-sky-bottom) 100%); color: var(--band-ink); }
body.ad .skyhead #phead { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding-bottom: 104px; }
.ridge-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 84px; display: block; pointer-events: none; z-index: 0; }
body.ad .skyhead #phead[hidden] { display: none; }
body.ad .pagebody { position: relative; z-index: 1; max-width: 1240px; margin: -20px auto 0; }
body.ad .skyhead :focus-visible { outline: 2px solid var(--band-ink); outline-offset: 2px; }
body.ad .phead { align-items: flex-end; justify-content: space-between; gap: 16px; }
body.ad .phead .eyebrow { margin: 0; font-size: .875rem; line-height: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--band-ink-2); }
body.ad .phead .eyebrow::before { content: ""; display: inline-block; width: 20px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--plus); }
body.ad .phead h1 { margin: 4px 0 0; font-family: var(--serif); font-size: 2rem; line-height: 40px; font-weight: 700; letter-spacing: 0; color: var(--band-ink); }
body.ad .phead .fact { margin-top: 8px; font-size: 1rem; line-height: 24px; color: var(--band-ink-2); }
body.ad .phead .fact b { color: var(--band-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
/* the segments: a white track, the pressed one Deep Creek */
body.ad .phead .seg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
body.ad .phead .seg a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 6px; font-size: 1rem; font-weight: 600;
  color: var(--ink); }
body.ad .phead .seg a:hover { background: var(--selected); color: var(--ink); }
body.ad .phead .seg a.on, body.ad .phead .seg a.on:hover { background: var(--primary); color: var(--on-primary); box-shadow: none; }

/* ---- a phone and a tablet: the sheet is still a sheet, the bar still says where you are ---- */
@media (max-width: 1080px) {
  body.ad .masthead .inner { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  body.ad .appshell > main { padding: 0 var(--page-gutter) 60px; }
  body.ad .skyhead { margin: 0 calc(-1 * var(--page-gutter)); padding: 8px var(--page-gutter) 0; }
  body.ad .sidenav { height: 100%; }
}
@media (max-width: 640px) {
  body.ad .masthead .inner { gap: 6px; padding: 8px var(--page-gutter); }
  body.ad .masthead h1.mastname { flex: 1 1 auto; min-width: 0; font-size: 1rem; line-height: 1.15; margin: 0 4px; align-self: center; text-align: left; order: 0; }
  body.ad .masthead .mastnote { font-size: .75rem; line-height: 1.25; margin-top: 2px; white-space: normal; }
  body.ad .masthead .navsearch { flex: 0 0 44px !important; max-width: 44px; margin: 0; }
  body.ad .masthead .navsearch input { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); cursor: pointer;
    background: transparent; color: transparent; border: 1px solid var(--header-line); }
  body.ad .masthead .navsearch input::placeholder { color: transparent; }
  body.ad .masthead .navsearch .mag { left: 50%; transform: translate(-50%, -50%); color: var(--header-ink); }
  body.ad .masthead .navsearch kbd { display: none; }
  body.ad .masthead .navsearch:focus-within { position: absolute; left: var(--page-gutter); right: var(--page-gutter); top: 8px; z-index: 3;
    flex-basis: auto !important; max-width: none; }
  body.ad .masthead .inner:focus-within > :not(.navsearch):not(.quick-add-stack) { visibility: hidden; }
  body.ad .masthead .navsearch:focus-within input { width: 100%; padding-left: 42px; cursor: text; color: var(--ink); background: var(--surface); }
  body.ad .masthead .navsearch:focus-within input::placeholder { color: var(--muted); }
  body.ad .masthead .navsearch:focus-within .mag { left: 13px; transform: translateY(-50%); color: var(--muted); }
  body.ad .masthead .navsearch:focus-within input:focus-visible { outline: none; }
  body.ad .masthead .quick-add-stack { position: fixed; top: auto; right: var(--page-gutter); bottom: var(--page-gutter); z-index: 60; }
  body.ad .masthead .quick-add-menu { top: auto; bottom: 54px; right: 0; }
  body.ad .phead h1 { font-size: 1.5rem; line-height: 32px; }
}
@media (max-width: 380px) {
  body.ad .masthead .inner { gap: 4px; }
}
@media print {
  body.ad .sidenav, body.ad .masthead, .ridge-edge { display: none; }
  body.ad .skyhead { background: none; }
}
/* ---- END THE CREEK LOOK: THE OFFICE ---- */

/* ================================================================= THE RESIDENT
   A phone is the design width (320 to 430), a monitor the adaptation. The top bar is the top of the same sky as the
   office's, with the round logo centred; on a phone the "+" and the toggle sit at its right edge. Each view's
   head (the balance on Home, the title and its line on the others) is a block of that sky that ends in hills, and
   the cards lift over their foot. At the foot of a phone the tab bar is a floating glass bar whose pill slides under
   the place you are (creek-look.js sets --glass-i and --glass-n; the pill is the bar's own ::before, because the
   page rebuilds the bar's buttons on every view change). At 960px and up the bar is a row under the top bar. */
body.rt { overflow-x: clip; }
body.rt main { padding-top: 0; }

/* ---- the top bar ---- */
body.rt .masthead { background: var(--header-bg); color: var(--header-ink); border: 0; position: relative; z-index: 45;
  --sk-gold: var(--header-ink); }
body.rt .masthead .inner { max-width: none; margin: 0; padding: 8px 16px; min-height: 72px; gap: 12px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; position: relative; }
body.rt .masthead h1 { margin: 0; font: inherit; line-height: 1; background: none; box-shadow: none; text-shadow: none; flex: 0 1 auto; min-width: 0; }
body.rt .masthead h1 a { display: flex; align-items: center; gap: 12px; color: var(--header-ink); text-decoration: none; border-radius: var(--radius-sm); }
body.rt .masthead :focus-visible { outline: 2px solid var(--header-ink); outline-offset: 2px; }
body.rt .masthead .brand-logo { width: 56px; height: 56px; border-radius: 50%; display: block; object-fit: contain; flex: none; }
body.rt .masthead .brand-text { display: none; min-width: 0; }
body.rt .masthead .brand-name { display: block; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 20px; white-space: nowrap; }
body.rt .masthead .brand-sub { display: block; font-size: .875rem; line-height: 16px; color: var(--band-ink-2); }
@media (max-width: 899px) {
  body.rt .masthead .inner { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  body.rt .masthead .theme-toggle { position: absolute; right: var(--page-gutter); top: 14px; margin: 0; }
  body.rt .masthead #quick-add { position: absolute; right: calc(var(--page-gutter) + 44px + 10px); top: 14px; margin: 0; }
}
@media (min-width: 900px) {
  body.rt .masthead .inner { max-width: 1240px; margin: 0 auto; padding: 8px 32px; justify-content: flex-start; }
  body.rt .masthead .brand-text { display: block; }
  body.rt .masthead .theme-toggle { margin-left: auto; position: static; }
  body.rt .masthead #quick-add { position: static; margin: 0; order: 98; }
  body.rt .masthead .nbell:not([hidden]) { margin-left: auto; }
  body.rt .masthead .nbell:not([hidden]) ~ .theme-toggle { margin-left: 0; }
}

/* ---- each view's head: the sky, ending in hills ---- */
body.rt #hero.rt-rent, body.rt .rview.on > .rt-top {
  position: relative; background: linear-gradient(180deg, var(--band-sky-top) 0%, var(--band-sky-bottom) 100%);
  border: 0; border-radius: 0; box-shadow: none;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 8px calc(50vw - 50%) 104px;
}
body.rt #hero.rt-rent::after, body.rt .rview.on > .rt-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 84px; pointer-events: none;
  background: var(--art-edge) right bottom / cover no-repeat;
}
/* the card that follows lifts over the foot of the hills */
body.rt .rt-home > #hero + *, body.rt .rview.on > .rt-top + * { margin-top: -40px; position: relative; z-index: 1; }
body.rt .rview.on > .rt-top { display: block; }
body.rt .rt-top h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 1.625rem; line-height: 34px; font-weight: 700; color: var(--band-ink); }
body.rt .rt-top p, body.rt .rt-top p.muted { margin: 8px 0 0; font-size: 1rem; line-height: 24px; color: var(--band-ink-2); max-width: 56ch; }

/* the balance, on the sky */
body.rt .rp-hero { background: none; border: 0; box-shadow: none; padding: 0; position: relative; z-index: 1;
  display: grid; gap: 12px; max-width: 560px; justify-items: start; }
body.rt .rt-rent .rp-hero { border-radius: 0; }
body.rt .rp-hero-where { order: -1; margin: 0; font-size: .875rem; line-height: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--band-ink-2); }
body.rt .rp-hero-where::before { content: ""; display: inline-block; width: 20px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--plus); }
body.rt .rp-hero-lab { order: 0; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: .875rem; line-height: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--info-bg); color: var(--info-ink); }
body.rt .rp-hero.is-late .rp-hero-lab { background: var(--err-bg); color: var(--err-ink); }
body.rt .rp-hero.is-today .rp-hero-lab { background: var(--warn-bg); color: var(--warn-ink); }
body.rt .rp-hero.is-clear .rp-hero-lab { background: var(--ok-bg); color: var(--ok-ink); }
body.rt .rp-hero-num { order: 1; margin: 0; font-family: var(--serif); font-size: 2.75rem; line-height: 52px; font-weight: 700; color: var(--band-ink); }
body.rt .rp-hero-sub { order: 2; margin: 0; font-size: 1rem; line-height: 24px; color: var(--band-ink-2); }
body.rt .rp-hero-sub b { color: var(--band-ink); }
body.rt .rp-hero .rt-act.primary { order: 3; width: 100%; max-width: 360px; min-height: 52px; margin: 4px 0 0; padding: 0 20px;
  background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: none; border-radius: var(--radius-sm); font-size: 1rem; }
body.rt .rp-hero .rt-act.primary svg { color: var(--on-primary); }
body.rt .rp-hero .rt-act.primary:hover { background: var(--primary-hover); }
body.rt .rp-hero .paynote { order: 4; margin: 0; text-align: left; font-size: .875rem; line-height: 20px; color: var(--band-ink-2); }
body.rt .rp-hero .paynote .linkbtn { min-height: 0; padding: 0; color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; }
body.rt .rp-hero .rp-hero-meta { order: 5; border-top-color: var(--band-line); color: var(--band-ink-2); }

/* ---- the buttons of the page ---- */
body.rt .rt-act.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: none; }
body.rt .rt-act.primary svg { color: var(--on-primary); }
body.rt .rt-act { border-radius: var(--radius-sm); box-shadow: none; }
body.rt .nact { border-radius: var(--radius-sm); }

/* ---- the floating glass bar, a phone ---- */
body.rt .tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: stretch; height: 64px; padding: 5px; isolation: isolate;
  border: 1px solid var(--glass-line); border-radius: 32px; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-line), inset 0 -1px 0 var(--glass-edge); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body.rt .tabbar { background: var(--surface); } }
body.rt .tabbar[hidden] { display: none; }
body.rt .tabbar::before { content: ""; box-sizing: border-box; position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / var(--glass-n, 5)); border-radius: 27px;
  background: var(--glass-pill); border: 1px solid var(--glass-pill-line);
  -webkit-backdrop-filter: blur(10px) saturate(1.9) brightness(1.06); backdrop-filter: blur(10px) saturate(1.9) brightness(1.06);
  box-shadow: var(--glass-pill-shadow), inset 0 1px 0 var(--glass-pill-line), inset 0 -2px 0 color-mix(in srgb, var(--land) 55%, transparent);
  transform: translateX(calc(var(--glass-i, 0) * 100%)); transform-origin: center; pointer-events: none; }
body.rt .tabbar.glass-ready::before { transition: transform .55s cubic-bezier(.34, 1.45, .5, 1); }
body.rt .tabbar.sliding::before { animation: glass-stretch .55s cubic-bezier(.3, .7, .3, 1); }
@keyframes glass-stretch { 0% { scale: 1 1; } 35% { scale: 1.16 .92; } 100% { scale: 1 1; } }
@media (prefers-reduced-motion: reduce) { body.rt .tabbar.glass-ready::before { transition: none; } body.rt .tabbar.sliding::before { animation: none; } }
body.rt .tabbtn { position: relative; z-index: 1; min-height: 54px; padding: 4px 2px; gap: 2px; border: 0; border-top: 0; border-radius: 27px;
  color: var(--glass-ink-2); background: none; }
body.rt .tabbtn.on { color: var(--ink); border-top-color: transparent; }
body.rt .tabbtn.on .ic { background: none; color: inherit; }
body.rt .tabbtn .ic { height: 24px; }
body.rt .tabbtn .lb { font-size: .75rem; line-height: 16px; font-weight: 600; letter-spacing: 0; }
body.rt .tabbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
body.rt.hasbar main { padding-bottom: calc(96px + 28px + env(safe-area-inset-bottom, 0px)); }

/* ---- a monitor: the bar is a row under the top bar; Home is a band, then two columns ---- */
@media (min-width: 960px) {
  body.rt .tabbar { position: sticky; top: 0; left: auto; right: auto; bottom: auto; height: auto; padding: 0 32px 10px;
    justify-content: center; gap: 4px; border: 0; border-radius: 0; background: var(--header-bg);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  body.rt .tabbar::before { display: none; }
  body.rt .tabbtn { flex: 0 0 auto; flex-direction: row; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); color: var(--header-ink); }
  body.rt .tabbtn:hover { background: var(--selected); }
  body.rt .tabbtn.on, body.rt .tabbtn.on:hover { background: var(--selected); box-shadow: inset 0 -3px 0 var(--plus); }
  body.rt .tabbtn .lb { font-size: 1rem; }
  body.rt.hasbar main { padding-bottom: 80px; }
  body.rt .rt-home { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "hero hero" "notices home" "side home" "recent acts"; }
  body.rt .rt-home > #hero { grid-column: 1 / -1; }
}

/* ---- sign-in: a sky that warms toward the horizon, hills, a gold ground; the logo centred; one panel ---- */
body.rt:not(.hasbar) { background: linear-gradient(180deg, var(--auth-sky-top) 0%, var(--auth-sky-mid) 42%, var(--auth-sky-bottom) 78%) no-repeat; min-height: 100vh; }
body.rt:not(.hasbar) .masthead { background: transparent; }
body.rt:not(.hasbar) .masthead h1 { display: none; }
body.rt:not(.hasbar) .masthead .inner { min-height: 72px; justify-content: flex-end; }
body.rt:not(.hasbar) .masthead .theme-toggle { color: var(--auth-top-ink); border-color: var(--auth-top-line); background: transparent; }
body.rt:not(.hasbar) .masthead .theme-toggle:hover { background: rgba(255, 255, 255, 0.16); }
body.rt:not(.hasbar) .masthead :focus-visible { outline-color: var(--auth-top-ink); }
#picker .auth-scene { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: min(66vh, 660px); display: block;
  z-index: -1; pointer-events: none; }
#picker { display: grid; justify-items: center; gap: 24px; padding: 8px 0 32px; }
#picker[hidden] { display: none; }
#picker .auth-logo { display: grid; place-items: center; }
#picker .auth-logo img { width: 124px; height: 124px; display: block; filter: drop-shadow(0 8px 18px rgba(15, 47, 58, 0.30)); }
#picker .auth-panel { width: min(440px, 100%); background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-overlay); padding: 24px; display: grid; gap: 16px; }
#picker .auth-panel .eyebrow { margin: 0; }
#picker .auth-panel h2 { margin: 0; font-family: var(--serif); font-size: 1.625rem; line-height: 34px; font-weight: 700; color: var(--ink); }
#picker .auth-panel p { margin: 0; }
#picker .auth-panel > .card { border: 0; box-shadow: none; padding: 0; margin: 0; background: none; max-width: none; }
#picker > #demo-pick-wrap, #picker > #apply { width: min(720px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin: 0; }
#picker > #demo-pick-wrap[hidden] { display: none; }
#picker .auth-foot { margin: 0; padding: 8px 0 0; text-align: center; font-size: .875rem; line-height: 20px; font-weight: 600; color: var(--auth-foot-ink); }
@media (min-width: 768px) { #picker .auth-logo img { width: 208px; height: 208px; } #picker .auth-panel { padding: 32px; } }
/* ---- END THE CREEK LOOK: THE RESIDENT ---- */

/* ================================================================= THE CONTENT
   What the pages are made of, in the same system: Cream under white cards with a 12px radius, 44px targets,
   Libre Baskerville for titles and Inter for everything you read twice, a Creek Blue border on every control
   (3:1 against white; the old hairline was 1.4:1), status that says it in words and a mark, never colour alone. */

/* ---- type ---- */
h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 700; }
.eyebrow { color: var(--muted); letter-spacing: .06em; font-weight: 600; }
a { text-underline-offset: 3px; }

/* ---- cards ---- */
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
.stat { border-radius: var(--radius); }
details { border-radius: var(--radius); }
details summary { color: var(--navy); }

/* ---- buttons: Deep Creek is the one primary; a ghost is white with a Creek Blue edge; 44px ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; line-height: 1.2; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); filter: none; transform: none; }
.btn:active { background: var(--primary-active); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--selected); border-color: var(--accent); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
.btn.tiny { min-height: 32px; padding: 0 10px; font-size: .8125rem; }
.btn.danger { background: var(--crit); border-color: var(--crit); color: var(--accent-ink); }
.btn.ghost.danger { background: var(--surface); color: var(--crit); border-color: var(--crit); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.tile .tr .btn.pri, .drawer .dacts .btn.pri, .phead .phact { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.drawer .dacts .btn:not(.pri), .dmenu .btn { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.drawer .dacts .btn:not(.pri):hover { background: var(--selected); }
.fbtn { min-height: 40px; border-radius: var(--radius-sm); }
.fbtn.on { border-color: var(--primary); background: var(--selected); }
.kebab { width: 40px; height: 40px; border-radius: var(--radius-sm); border-color: var(--accent); }

/* ---- fields ---- */
input, select, textarea { border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select { min-height: 44px; padding-top: 0; padding-bottom: 0; }
textarea { padding: 10px 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { color: var(--ink); font-size: .875rem; font-weight: 600; }

/* ---- tables ---- */
table { font-size: .9375rem; }
th { background: var(--surface2); color: var(--muted); font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 600;
  padding: 0 12px; height: 44px; vertical-align: middle; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.total td, table.rroll tfoot td { background: var(--surface2); border-top: 1px solid var(--line); }
.tablewrap { border-radius: var(--radius); }
tr.rowlink:hover td { background: var(--selected); }

/* ---- the small status marks stay small, but read at 4.5:1; the unit card's dot between its stats is not a hairline ---- */
.pstats .sep { color: var(--muted); }
.pill, .badge { font-weight: 600; }

/* ---- segments (a row of choices) ---- */
.seg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rrbar .seg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.rrbar .seg button { min-height: 40px; border-radius: 6px; padding: 0 14px; color: var(--ink); font-size: .9375rem; }
.rrbar .seg button.on { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.dsegs button.on { border-color: var(--plus); }

/* ---- the notice strip and the demo bar ---- */
.band { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius); }
body.ad .demobar { background: var(--surface); border-radius: var(--radius); border-left-color: var(--plus); }
body.ad .demobar .lab { color: var(--warn-ink); }
body.ad .demobar.off .lab { color: var(--ok-ink); }

/* ---- the drawer: from the right, a serif title, white ---- */
.dscrim { background: rgba(8, 21, 26, .5); }
.drawer { box-shadow: var(--shadow-overlay); border-left: 1px solid var(--line); }
.drawer .dh h2 { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; }
.drawer .dh .x { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--accent); color: var(--ink); font-size: 1.5rem; }
.drawer .dh .x:hover { background: var(--selected); }
.dmenu { border-radius: var(--radius); box-shadow: var(--shadow-overlay); }
.dmenu button { min-height: 44px; }

/* ================================================================= TODAY
   The queue first (the owner, 2026-09-06 order; 2026-10-15 "queue-first"): what needs you, one card per queue, each with
   its count, its oldest and its rows; the summaries (the month's rent, the year's money, the homes) in a column beside
   them. Lost revenue is a summary under the empty homes, open on a click. */
body.ad .today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
body.ad .today-main { display: grid; gap: 24px; min-width: 0; align-content: start; }
body.ad .today-side { display: grid; gap: 24px; min-width: 0; align-content: start; }
@media (min-height: 900px) and (width > 1100px) { body.ad .today-side { position: sticky; top: 16px; } }
@media (max-width: 1100px) { body.ad .today-grid { grid-template-columns: minmax(0, 1fr); } }

/* a queue: the tile, drawn as a card whose head says what it is and how many */
body.ad .tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0; border: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
body.ad .tile .thead { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding: 14px 24px; border-radius: 0; }
body.ad .tile .thead:hover { background: var(--selected); }
body.ad .tile h3 { order: 0; margin: 0; font-family: var(--serif); font-size: 1.125rem; line-height: 26px; font-weight: 700; color: var(--ink); }
body.ad .tile .n { order: 1; margin: 0; display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--line); color: var(--ink); font-size: .875rem; line-height: 1; font-weight: 700; letter-spacing: 0; }
body.ad .tile.red .n { background: var(--err-bg); border-color: var(--err-ink); color: var(--err-ink); }
body.ad .tile.amber .n { background: var(--warn-bg); border-color: var(--warn-ink); color: var(--warn-ink); }
body.ad .tile.is-quiet .n { background: none; border: 0; padding: 0; min-width: 0; height: auto; font-weight: 400; color: var(--muted); }
body.ad .tile.is-quiet .n .q { font-size: .875rem; color: var(--muted); }
body.ad .tile .sub { order: 2; margin: 0; font-size: .875rem; line-height: 20px; color: var(--muted); }
body.ad .tile .tmore { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 0 24px 0 0; font-size: .9375rem; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.ad .tile .tr { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 24px; border-top: 1px solid var(--line);
  font-size: 1rem; }
body.ad .tile .tr[role="button"]:hover { background: var(--selected); }
body.ad .tile .tr[role="button"]:hover b { color: var(--ink); }
body.ad .tile .tr b { font-size: 1rem; line-height: 24px; font-weight: 600; white-space: normal; }
body.ad .tile .tr span { font-size: .875rem; line-height: 20px; color: var(--muted); }
body.ad .tile .tr .btn { min-height: 44px; }

@media (max-width: 640px) {
  body.ad .tile { grid-template-columns: minmax(0, 1fr); }
  body.ad .tile .thead { padding: 12px 16px; }
  body.ad .tile .tmore { grid-column: 1; grid-row: auto; padding: 12px 16px; border-top: 1px solid var(--line); order: 99; }
  body.ad .tile .tr { padding: 8px 16px; }
  body.ad details.lostband > summary { padding: 12px 16px; }
  body.ad details.lostband .lost-desc, body.ad details.lostband > .tablewrap, body.ad details.lostband > p { margin-left: 16px; margin-right: 16px; }
}
.claims .row { flex-wrap: wrap; }

/* the summaries */
body.ad .tcard { border-radius: var(--radius); }
body.ad .tcard h3, body.ad .hband h3 { font-family: var(--serif); font-size: 1.125rem; line-height: 26px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 8px; }
body.ad .today-side .hgrid { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
body.ad .today-side .hrow { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; }
body.ad .today-side .ws { flex-wrap: wrap; justify-content: flex-start; max-width: none; gap: 6px; }
body.ad .today-side .hbhead .leg { margin-left: 0; }
body.ad .sq { width: 24px; height: 24px; border-radius: 6px; }

/* lost revenue: a summary under the empty homes; the table opens from its head */
body.ad details.lostband { padding: 0; border-left: 4px solid var(--crit); }
body.ad details.lostband > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 56px;
  padding: 14px 24px; cursor: pointer; color: var(--ink); border-radius: var(--radius); }
body.ad details.lostband > summary::-webkit-details-marker { display: none; }
body.ad details.lostband > summary .lost-total { font-size: 1.5rem; line-height: 32px; margin: 0; }
body.ad details.lostband > summary .lost-total .lost-per { font-size: .875rem; font-weight: 600; }
body.ad details.lostband > summary .lost-lab { color: var(--muted); font-size: .875rem; }
body.ad details.lostband > summary .lost-rate { color: var(--muted); font-size: .875rem; line-height: 20px; }
body.ad details.lostband > summary .lost-rate b { color: var(--crit); font-size: 1rem; }
body.ad details.lostband .lost-desc { margin: 16px 24px 0; }
body.ad details.lostband > summary .chev { margin-left: auto; transition: transform .15s; }
body.ad details.lostband[open] > summary .chev { transform: rotate(90deg); }
body.ad details.lostband[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
body.ad details.lostband > .tablewrap, body.ad details.lostband > p { margin: 16px 24px; }
body.ad details.lostband[open] { margin-bottom: 0; }
/* ---- the rent roll: the row's actions are visible, a ghost and a primary ---- */
table.rroll .rracts .btn { opacity: 1; min-height: 40px; padding: 0 14px; font-size: .9375rem; }
table.rroll .rracts .btn + .btn { margin-left: 8px; }
table.rroll .rracts .btn:not(.pri), .claims .btn:not(.pri) { background: var(--surface); color: var(--ink); border-color: var(--accent); }
table.rroll .rracts .btn:not(.pri):hover, .claims .btn:not(.pri):hover { background: var(--selected); }
/* ---- END THE CREEK LOOK: THE CONTENT ---- */


/* ============================================ ONE PAGE GUTTER (2026-09-12)
   the owner, the day the band went live everywhere: "check mobile views. look
   at padding. it is off." MEASURED at 360/390/414 in real phone emulation:
   the admin's cards stood 64px from each screen edge (the wide-screen shell
   cap, 48, plus main's 16) under a header row 4px from it; the resident's
   row was 12px in and its page 14; the signing room 12. Three pages, four
   numbers, and no header lined up with its own page.
   ONE value now for every page this file dresses - the admin, the resident
   portal, the signing room: on a phone (and on the admin's one-column
   tablet) the header's first and last control and the page's content stand
   --page-gutter from the screen edge. 16px, because the admin's page already
   stood there below 1080px, the others were within 4px of it, and it still
   leaves the admin's phone row its three 44px targets. The walk and the
   comps brief (their own stylesheets) stand on the same 16px. The public site
   keeps its 20px: a different family, and its header and page already agreed.
   Read by: .appshell > main and the admin row (<= 1080px), the admin's open
   search field, .rt main with the resident's row and quote (<= 700px), and
   sign.html's .wrap (<= 600px); since round 2 also the record drawer, the
   menu sheet, the phone "+" and main's foot. EVERY rule that reads it sits
   inside a max-width query, so a monitor is exactly LIVE
   (test_header_controls.py holds the file to that). */
:root { --page-gutter: 16px; }

/* ---- ONE PAGE GUTTER, ROUND TWO (2026-09-12). What the two checkers
   MEASURED on a phone after round 1 (the owner: "check mobile views. look at padding. it is off."), each scoped to the widths where it was measured. */
@media (max-width: 1080px) {
  /* THE RECORD DRAWER is the whole screen on a phone: its head, its tabs and
     its body stood 22px in over a page standing on 16 */
  .drawer .dh, .drawer .db { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  /* its tab strip runs from screen edge to screen edge instead of stopping
     22px short with the last tab cut through (400px of tabs in 346 at 390);
     the tabs still start on the gutter, and the fade below says there is more */
  .drawer .dsegs { margin-left: calc(-1 * var(--page-gutter)); margin-right: calc(-1 * var(--page-gutter));
                   padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  /* THE MENU SHEET: the close field stood 14px in, the rows 12 and the
     footer's text 22 - three edges in one column. All three on the gutter. */
  .ad .sidenav { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  .ad .sidenav .navclose { margin-left: 0; margin-right: 0; }
  .ad .sidefoot, .ad .sidefoot p { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
  /* ...and inside that column the footer's TEXT starts where the rows'
     icons and the close field's word start: the rows' own 12px in, 28 from
     the screen (round 2, after the checkers: it stood at 16, 12px left of
     everything above it). The divider still spans the column, as the field
     and the row highlights do; the Trust link's box sits with theirs. */
  .ad .sidefoot p { padding-left: 12px; padding-right: 12px; }
  .ad .sidefoot .trustlink { padding-left: 11px; padding-right: 11px; }   /* its 1px border + 11 = 12 */
  /* SIBLING BLOCKS SHARE THE CARDS' TEXT INSET, 21px: a card's 1px border
     and its 20px of padding. The demo bar's text stood at 18 (its 4px left
     border + 14) and every .attn block's at 15 (1 + 14), so the left edge of
     the text stepped in and out down Today, Messages and Office. */
  .ad .demobar { padding-left: 17px; padding-right: 20px; }   /* 4 + 17 = 1 + 20 */
  .ad .attn h3, .ad .attn .n { padding-left: 20px; padding-right: 20px; }
  .ad .attn:is(.setwrap, .bclist) { padding: 0 20px 12px; }
  .ad :is(.setwrap, .bclist) h3 { margin: 0 -20px 6px; }   /* the heading keeps its full-width strip */
  /* SCROLL SHADOWS. A wide table or a strip of segments clipped at the
     card's edge with nothing to say it went on ("SUGGESTE", "Former ("). Pure
     CSS: two covers in the element's own colour ride the content
     (background-attachment: local) and two shades stay on the box (scroll).
     Where the content ends, its cover sits over that edge's shade, so a
     shade shows only on a side that has more to scroll to - and nothing at
     all shows on a strip that fits. */
  :is(body.ad, body.rt) :is(.seg, .rrbar .seg) { --edge-bg: var(--surface2); }
  :is(body.ad, body.rt) :is(.tablewrap, .phead .seg, .drawer .dsegs) { --edge-bg: var(--surface); }
  :is(body.ad, body.rt) :is(.tablewrap, .seg, .phead .seg, .drawer .dsegs) {
    --edge-shade: color-mix(in srgb, var(--ink) 16%, transparent);
    background:
      linear-gradient(to right, var(--edge-bg) 30%, transparent) left center / 28px 100% no-repeat local,
      linear-gradient(to left, var(--edge-bg) 30%, transparent) right center / 28px 100% no-repeat local,
      linear-gradient(to right, var(--edge-shade), transparent) left center / 12px 100% no-repeat scroll,
      linear-gradient(to left, var(--edge-shade), transparent) right center / 12px 100% no-repeat scroll,
      var(--edge-bg);
  }
  /* A TABLE IN A CARD SCROLLS TO THE CARD'S EDGE (round 2, after the
     checkers). The scroller stood inside the card's 20px padding, so its
     shade was a grey bar floating 20px inside the white card, with the cut
     column ("REN", "SUGGESTED") beside it and white card beyond - a fault,
     not "there is more". It now runs under the padding to the card's border
     and pads its content back in: the first column still starts on the
     card's text inset (1 + 20), and the cut and the shade meet the card's
     own edge. */
  :is(body.ad, body.rt) .card > .tablewrap { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 700px) {
  /* the portal's cards pad 15px at a phone (".rt .card"), so its tables
     bleed 15 */
  body.rt .card > .tablewrap { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 640px) {
  /* main's foot clears the floating "+": its 16px from the bottom, its 44
     and 16 of air above it, so the last line of a page is never under it */
  .ad .appshell > main { padding-bottom: calc(var(--page-gutter) + 44px + var(--page-gutter)); }
}
@media (width <= 560px) {
  /* ONE COLUMN: Properties' homes and the Upkeep board stayed two across on
     a phone - 173px columns, an address cut to 147px of text. (Range syntax:
     test_admin_ui finds the notification panel's block as the file's last
     "(max-width: 560px)".) */
  .ad .unitgrid, .ad .woboard { grid-template-columns: minmax(0, 1fr); }
}
/* ---- END ONE PAGE GUTTER ---------------------------------------------------- */

/* LOST REVENUE (the owner, 2026-09-30: "highlight Lost revenue ... this is a
   disaster"). First thing on Today. Severity colour only - --crit says
   "money leaving", never the brand accent. */
.ad .lostband { border-left: 4px solid var(--crit); }
.ad .lostband .lost-head { display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 12px 24px; margin-bottom: 12px; }
.ad .lostband .lost-total { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800;
  line-height: 1.05; color: var(--crit); letter-spacing: -.01em; }
.ad .lostband .lost-rate { text-align: right; }
@media (max-width: 559.98px) { .ad .lostband .lost-rate { text-align: left; } }
.ad .lostband .lost-per { font-size: .45em; font-weight: 700; margin-left: .2em; }
.ad .lostband .lost-rate .num { font-size: 1.15rem; color: var(--crit); }
