
:root{
  --bg:#F4F6F9; --surface:#FFFFFF; --ink:#13294B; --text:#1D2738; --muted:#4B5563; --line:#DCE1E8;
  --navy:#13294B; --navy-2:#1E3A66; --gold:#C9A227; --gold-ink:#664E05; --gold-soft:#F7EFD5;
  --red:#9F1F15; --red-soft:#FDECEA; --amber:#7F4A00; --amber-soft:#FFF3DC; --green:#155C39;--on-green:#FFFFFF; --green-soft:#E4F4EB;
  --on-navy:#FFFFFF; --navpill:rgba(19,41,75,.07);
  /* One corner scale for the whole app. There were eleven different radii in here — 8, 9, 10, 12,
     14, 16, 20, 24, 999 and two kinds of circle — so no two tiles agreed on their shape and the
     screens read as assembled rather than designed. Cards, panels and tiles take --r-card;
     anything you press or type into takes --r-ctl; only counts and status badges stay pills. */
  --r-card:10px; --r-ctl:8px; --r-pill:999px;
  --head:"Sora","Avenir Next",Helvetica,sans-serif;
  --body:"Public Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0C1626; --surface:#132238; --ink:#E9EEF6; --text:#DCE3EE; --muted:#9AA7BA; --line:#26385A;
    --navy:#0A1424; --navy-2:#1A2E50; --gold:#D9B648; --gold-ink:#E8CB6E; --gold-soft:#33290C;
    --red:#F28B7F; --red-soft:#3A1916; --amber:#F0B862; --amber-soft:#35260C; --green:#6FCF9E;--on-green:#0C1626; --green-soft:#11301F; --navpill:rgba(255,255,255,.09);
  }
}
:root[data-theme="dark"]{
  --bg:#0C1626; --surface:#132238; --ink:#E9EEF6; --text:#DCE3EE; --muted:#9AA7BA; --line:#26385A;
  --navy:#0A1424; --navy-2:#1A2E50; --gold:#D9B648; --gold-ink:#E8CB6E; --gold-soft:#33290C;
  --red:#F28B7F; --red-soft:#3A1916; --amber:#F0B862; --amber-soft:#35260C; --green:#6FCF9E;--on-green:#0C1626; --green-soft:#11301F; --navpill:rgba(255,255,255,.09);
}
*,*::before,*::after{box-sizing:inherit}
html{height:100%;overscroll-behavior:none;scroll-padding-top:env(safe-area-inset-top,0px);background:var(--bg)}
/* The page itself does not scroll; the column between the header and the bottom bar does.
   A bar pinned with position:fixed is drawn by the phone on a separate layer that it updates a
   frame or two behind the page, so on an iPhone it drifts up over the list while a flick is still
   running and stays there until the scroll stops. We had been nudging it back afterwards. Taking
   the scrolling off the page removes the cause: with nothing to fall behind, the bar is simply the
   last row of the window and cannot be anywhere else. */
body{margin:0;height:100vh;height:100dvh;height:var(--appvh,100dvh);overscroll-behavior:none;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);color:var(--text);font:16px/1.5 var(--body);-webkit-text-size-adjust:100%}
h1,h2,h3{font-family:var(--head);color:var(--ink);margin:0;line-height:1.2;letter-spacing:-.01em}
h1{font-size:1.5rem} h2{font-size:1.1rem} h3{font-size:1rem}
button{font:inherit}
.app{display:grid;grid-template-columns:1fr;flex:1 1 auto;min-height:0}
.appcol{min-width:0;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;scroll-padding-top:env(safe-area-inset-top,0px)}
@media (min-width:920px){.app{grid-template-columns:240px 1fr}}
.app>div{min-width:0}main{min-width:0;overflow-wrap:break-word}.tw{max-width:100%}.top .assoc{min-width:0}

/* sidebar / topbar */
.side{display:none;background:var(--navy);color:var(--on-navy);padding:1.25rem .75rem;height:100%;overflow:auto}
@media (min-width:920px){.side{display:block}}
.brand{display:flex;align-items:center;gap:.6rem;padding:.25rem .5rem 1.25rem}
.brand b{font:700 1.3rem var(--head);letter-spacing:-.03em;color:#fff}
.side nav button{display:flex;align-items:center;gap:.7rem;width:100%;background:none;border:0;color:#C9D3E3;padding:.6rem .7rem;border-radius:var(--r-ctl);cursor:pointer;text-align:left;font-weight:500}
.side nav button:hover{background:rgba(255,255,255,.06)}
.side nav button[aria-current="page"]{background:var(--navy-2);color:#fff}
.side nav button[aria-current="page"] svg{stroke:var(--gold)}
.side .cnt{margin-left:auto;background:#E5544A;color:#2A0806;font-size:.72rem;font-weight:700;border-radius:var(--r-card);padding:0 .45rem;line-height:1.35rem}
.side .cnt.cold{background:rgba(255,255,255,.22);color:#FFFFFF}
.side .assoc{font-size:.8rem;color:#9FB0C9;padding:0 .7rem .9rem;margin-top:-.6rem}
.top{display:flex;align-items:center;gap:.6rem;background:var(--navy);color:#fff;padding:calc(.7rem + env(safe-area-inset-top,0px)) 1rem .7rem;position:sticky;top:0;z-index:10}
.top b{font:700 1.15rem var(--head);letter-spacing:-.03em}
.top .assoc{margin-left:auto;font-size:.78rem;color:#9FB0C9;max-width:45%;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:920px){.top{display:none}}
svg.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* The 5rem at the bottom dates from when the nav was a fixed bar sitting on top of the content.
   The nav is a row of the shell now, outside the scrolling column, so the content never goes under
   it — and the 5rem was 90px of empty screen below the last line on every screen. 1.5rem is the
   breathing room, no more. */
main{padding:1.25rem 1rem 1.5rem;max-width:1100px;width:100%}
@media (min-width:920px){main{padding:2rem 2.25rem 3rem}}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.head p{margin:.25rem 0 0;color:var(--muted);font-size:.92rem;max-width:60ch}

/* bottom nav */
/* iOS keeps a fixed bar pinned by repainting it every frame, and during momentum scrolling or while a
   dialog is open it can repaint late, so the bar appears to lag behind the page. Promoting it to its
   own compositing layer makes the browser move it with the page instead of redrawing it. A transform
   on the FIXED element itself is safe; one on an ancestor is what would break fixed positioning. */
.bottom{flex:0 0 auto;z-index:20;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (min-width:920px){.bottom{display:none}}
.bottom .in{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
/* The bottom bar: six targets, not six floating glyphs.
   The labels were already high contrast (6.5:1 inactive, 13.7:1 active), so contrast was never the
   problem here — presence was. Only the selected tab had anything behind it, so the other five read
   as decoration. Every tab now carries a resting pill in the same faint wash the secondary buttons
   use, with the selected one still gold, and the label goes from 11.5px to 12.5px. The icon stroke
   is thickened for this bar only: a 1.8px line is the first thing to go when contrast sensitivity
   drops, and the nav is the one place in the app a person looks at every single visit. */
.bottom button{background:none;border:0;color:var(--muted);padding:9px 0 10px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12.5px;font-weight:600;cursor:pointer;position:relative;min-width:0;white-space:nowrap}
.bottom button[aria-current="page"]{color:var(--ink)}
.bottom button svg{box-sizing:content-box;padding:4px 16px;border-radius:var(--r-pill);transition:background .15s ease;stroke-width:2.1;background:var(--navpill)}
.bottom button[aria-current="page"]{color:var(--ink);font-weight:800}
.bottom button[aria-current="page"] svg{stroke:#13294B;background:#E2BE4B}
.bottom .cnt{position:absolute;top:.3rem;left:calc(50% + 6px);background:#B42318;color:#fff;font-size:.62rem;border-radius:var(--r-ctl);padding:0 .3rem;line-height:1rem}
.bottom .cnt.cold{background:var(--ink);color:var(--surface)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .bottom .cnt{background:#E5544A;color:#2A0806}}
:root[data-theme="dark"] .bottom .cnt{background:#E5544A;color:#2A0806}

/* tiles: the one bold element — a gold-ruled oversight board */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;margin-bottom:1.25rem}
@media (min-width:700px){.tiles{grid-template-columns:repeat(4,1fr)}}
.tile{background:var(--surface);padding:.9rem 1rem;border:0;text-align:left;cursor:pointer;color:inherit;position:relative}
.tile:hover{background:var(--bg)}
.tile b{display:block;font:700 min(1.9rem,7vw)/1.1 var(--head);color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{min-width:0}.tile span{display:block;overflow-wrap:break-word}
.tile span{font-size:.8rem;color:var(--muted);font-weight:500}
.tile.hot b{color:var(--red)}
.tile.hot::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--red)}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:1rem;margin-bottom:1rem}
.panel>h2{margin-bottom:.6rem;display:flex;align-items:center;gap:.5rem}
.two{display:grid;gap:1rem}
@media (min-width:900px){.two{grid-template-columns:1.2fr 1fr}}

.list{display:flex;flex-direction:column;gap:.6rem}
.item{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:.85rem 1rem;cursor:pointer;text-align:left;width:100%;color:inherit}
.item:hover{border-color:var(--muted)}
.item .t{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start}
.item .t h3{font-family:var(--body);font-weight:600;font-size:1rem;color:var(--text)}
.item .sub{color:var(--muted);font-size:.86rem;margin-top:.15rem}
.item .meta{display:flex;flex-wrap:wrap;gap:.35rem .9rem;font-size:.82rem;color:var(--muted);margin-top:.4rem}
.item .meta b{color:var(--text);font-weight:600}
.att{display:flex;gap:.6rem;align-items:flex-start;padding:.6rem 0;border-bottom:1px solid var(--line);cursor:pointer;background:none;border-left:0;border-right:0;border-top:0;width:100%;text-align:left;color:inherit}
.att:last-child{border-bottom:0}
.att .w{flex:1;font-size:.92rem}
.att .w small{display:block;color:var(--muted);font-size:.8rem}

.pill{display:inline-block;font-size:.72rem;font-weight:700;padding:.12rem .5rem;border-radius:var(--r-pill);white-space:nowrap}
.p-red{background:var(--red-soft);color:var(--red)}
.p-amber{background:var(--amber-soft);color:var(--amber)}
.p-green{background:var(--green-soft);color:var(--green)}
.p-gold{background:var(--gold-soft);color:var(--gold-ink)}
.p-gray{background:var(--bg);color:var(--muted);border:1px solid var(--line)}
.flags{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.45rem}

.btn{appearance:none;border:1px solid var(--navy);background:var(--navy);color:#fff;font-weight:600;font-size:.9rem;padding:.6rem 1rem;border-radius:var(--r-ctl);cursor:pointer;min-height:44px}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn{background:var(--gold);border-color:var(--gold);color:#13294B}}
/* A secondary button is a filled, outlined control, and the numbers below are measured, not judged.
   WCAG 2.2 SC 1.4.11 requires the visual information that identifies a control to reach 3:1 against
   what is next to it. The first attempt at this used a .26 navy border, which measures 1.67:1 on
   white — a clear failure, and exactly why the tiles read as text on a card. At .55 the border
   measures 3.39:1 on the worst background in the app (white), so it passes everywhere.

   Two things beyond the floor, because the people using this are condominium directors and skew
   older. The border is 2px rather than 1px: contrast sensitivity falls roughly 80% between 20 and
   80 (W3C WAI-AGE literature review), and a hairline is the first thing to disappear when it does —
   the ratio can pass while the line still vanishes. And the fill is .12 rather than .06, a 1.26:1
   step, so the control reads as a surface and not only as an outline. Nielsen Norman's eyetracking
   study of weak signifiers (ghost buttons and flat, borderless links) found users took 22% longer
   and made 25% more fixations to find them, which is the cost this avoids.

   Dark mode is handled below. Its border already measured 5.08-6.42:1, so only the weight and the
   fill change there. Note what is NOT done: the lift is luminance, not hue. Less violet light
   reaches the retina with age, which is what makes dark blue and black hard to tell apart, so a
   navy-on-navy tile would be the wrong answer however saturated. */
.btn.ghost{background:rgba(19,41,75,.12);color:var(--ink);border:2px solid rgba(19,41,75,.55)}
/* In dark mode `:root:not([data-theme="light"]) .btn` (specificity 0,3,0) beat `.btn.ghost` (0,2,0),
   so every secondary button came out solid gold: Mark closed, Send to maintenance, Archive, Reports,
   Activity log. A screen where the quiet action looks exactly like the main one has no main one. */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn.ghost{background:rgba(255,255,255,.16);border-color:#8A9BB5;color:#E8EDF5}
 :root:not([data-theme="light"]) .btn.ghost:active{background:#C9A227;border-color:#C9A227;color:#13294B}}
:root[data-theme="dark"] .btn.ghost{background:rgba(255,255,255,.16);border-color:#8A9BB5;color:#E8EDF5}
:root[data-theme="dark"] .btn.ghost:active{background:#C9A227;border-color:#C9A227;color:#13294B}
.btn.danger{background:transparent;color:var(--red);border-color:var(--red)}
.btn.sm{padding:.45rem .85rem;font-size:.86rem;min-height:48px}
.tools{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-bottom:.8rem}
.tools input[type=search]{flex:1;min-width:180px}
input,select,textarea{width:100%;font:inherit;font-size:16px;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:var(--r-ctl);padding:.55rem .65rem}
textarea{min-height:5rem;resize:vertical}
label.f{display:block;font-size:.8rem;font-weight:600;color:var(--muted);margin-bottom:.2rem}
:focus-visible{outline:3px solid color-mix(in srgb,var(--gold) 70%,transparent);outline-offset:2px}
.chk{display:inline-flex;align-items:center;gap:.4rem;font-size:.88rem;color:var(--muted);cursor:pointer}
.chk input{width:1.1rem;height:1.1rem;accent-color:var(--navy)}
.empty{padding:1.5rem 1rem;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:var(--r-card)}
.empty b{display:block;color:var(--text);margin-bottom:.25rem}
.banner{border-radius:var(--r-card);padding:.7rem .9rem;font-size:.9rem;margin-bottom:1rem}
.banner p{margin:0}
.banner .btn{display:flex;width:fit-content;min-width:min(100%,14rem);margin:.6rem .6rem 0 0;justify-content:center}
.banner.warn{background:var(--amber-soft);color:var(--amber)}
.banner.info{background:var(--gold-soft);color:var(--gold-ink)}
.note{font-size:.82rem;color:var(--muted)}

/* dialog */
dialog{border:0;padding:0;border-radius:var(--r-card);width:min(640px,96vw);max-height:92vh;max-height:92dvh;background:var(--surface);color:var(--text);box-shadow:0 20px 60px rgba(0,0,0,.3)}
dialog::backdrop{background:rgba(10,20,36,.55)}
/* A window is a column: a heading that stays, a middle that scrolls, and a footer that stays.
   The footer used to be stuck to the bottom of the scrolling area, which meant it floated OVER the
   fields. Tap a location on the report window and the next question takes focus, the keyboard comes
   up, and the box you are meant to type in is underneath the Send button. Nothing tells you that —
   it just looks like the form has nowhere to write, until you dismiss the keyboard and hunt for it.
   As rows of a column the heading and the footer take their own space and cover nothing. */
#dlg[open]{display:flex;flex-direction:column;overflow:hidden}
html.kb-open #dlg[open]{top:calc(var(--vvtop,0px) + .4rem);bottom:auto;max-height:calc(var(--vvh,92dvh) - .8rem)}
#dlg>form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
/* The keyboard leaves about 400px of window. The footer spends 110 of it on a line of helper
   text and a Send button nobody can use until they have finished typing. It stands down while
   someone is in a field and comes back the moment the keyboard does. */
html.kb-open #dlg[open] .dlg-f{display:none!important}
.dlg-h{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 1.1rem;border-bottom:1px solid var(--line);flex:0 0 auto;background:var(--surface);z-index:1}
.dlg-b{padding:1rem 1.1rem;display:grid;gap:.75rem;grid-template-columns:1fr 1fr;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-padding:1rem 0}
.dlg-b .full{grid-column:1/-1}
@media (max-width:520px){.dlg-b{grid-template-columns:1fr}}
.dlg-f{display:flex;gap:.5rem;justify-content:space-between;padding:.9rem 1.1rem;border-top:1px solid var(--line);flex:0 0 auto;background:var(--surface)}
.x{background:none;border:0;color:var(--muted);cursor:pointer;padding:.4rem;min-width:44px;min-height:44px;flex:none;border-radius:var(--r-card);font-size:1.15rem}
.dlg-h h2{flex:1;min-width:0;overflow-wrap:break-word}
.dlg-h h2:focus{outline:none}
.x:focus{outline:none}.x:focus-visible{outline:3px solid #C9A227;outline-offset:2px}
.thread{display:flex;flex-direction:column;gap:.6rem;grid-column:1/-1}
.msg{background:var(--bg);border-radius:var(--r-card);padding:.65rem .8rem}
.msg .who{font-size:.8rem;font-weight:600;color:var(--muted);margin-bottom:.15rem}
.msg.mgr{background:var(--gold-soft)}
.msg p{margin:0;white-space:pre-wrap}
.who-line{font-size:.8rem;color:var(--muted)}
.socrow{display:flex;justify-content:center;gap:.4rem;margin:1.4rem 0 .4rem}
.socrow a{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:var(--r-pill);color:var(--muted);text-decoration:none}
.socrow a svg{width:22px;height:22px;fill:currentColor;display:block}
.socrow a:hover{color:var(--ink);background:var(--bg)}
.socrow a:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.morelist{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
/* Menu tiles are controls, so SC 1.4.11's 3:1 applies to their edge. The --line border measured
   1.31:1 in light and 1.37:1 in dark against their own surface — the measured reason these read as
   "white with no separation", and far worse in the desktop grid where they sit side by side than on
   the phone where they are full-width rows. Same border colour as a secondary button, at 1.5px so a
   wall of twenty tiles stays calmer than a row of actions. The fill is the same wash as a
   secondary button: white on a near-white page is a 1.12:1 step, which is no step at all, and these
   are buttons you press — there is no reason for them to be a different kind of tile. */
.morelist button{display:flex;align-items:center;gap:.6rem;background:rgba(19,41,75,.12);border:1.5px solid rgba(19,41,75,.55);border-radius:var(--r-card);padding:.9rem;color:var(--text);cursor:pointer;font-weight:600;text-align:left;min-height:56px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .morelist button{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.40)}}
:root[data-theme="dark"] .morelist button{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.40)}
.morelist svg{stroke:var(--gold-ink)}
.toast{position:fixed;left:0;right:0;bottom:calc(5.25rem + env(safe-area-inset-bottom,0px));width:fit-content;max-width:min(92vw,34rem);margin-inline:auto;display:flex;align-items:center;min-height:52px;background:var(--ink);color:var(--bg);padding:.75rem 1.15rem;border:2px solid var(--gold);border-radius:var(--r-card);box-shadow:0 10px 28px rgba(0,0,0,.35);font-size:1rem;font-weight:600;line-height:1.35;opacity:0;pointer-events:none;transition:opacity .2s;z-index:50}
.toast.on{opacity:1}
table{border-collapse:collapse;width:100%;font-size:.88rem}
th,td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--line);white-space:nowrap}
th{font-size:.75rem;color:var(--muted);font-weight:600}
td.r,th.r{text-align:right;font-variant-numeric:tabular-nums}
.tw{overflow-x:auto}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.45rem;margin-top:.5rem}
.mcell{position:relative}
.mcell img,.mcell video{display:block;width:100%;height:96px;object-fit:cover;border-radius:var(--r-ctl);background:var(--bg);border:1px solid var(--line)}
.mx{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(10,20,36,.75);color:#fff;cursor:pointer;font-size:.8rem}
.fab{position:fixed;right:16px;bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:25;width:60px;height:60px;border-radius:50%;border:0;background:var(--gold);color:#13294B;font-size:1.6rem;box-shadow:0 6px 18px rgba(0,0,0,.25);cursor:pointer}
@media (min-width:920px){.fab{bottom:28px;right:28px}}
@keyframes flashrow{0%,40%{outline:3px solid var(--gold);outline-offset:-3px;box-shadow:inset 0 0 0 999px var(--gold-soft)}100%{outline:0 solid transparent}}
tr.flash{animation:flashrow 2.4s ease-out}
.cgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-bottom:1rem}.cgrid .btn{padding:.6rem .3rem}
@media (min-width:700px){.cgrid{grid-template-columns:repeat(4,1fr)}}
.calgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.calhd{background:var(--bg);text-align:center;font-size:.72rem;font-weight:700;color:var(--muted);padding:.35rem 0}
.calcell{background:var(--surface);border:0;min-height:74px;padding:.25rem;display:flex;flex-direction:column;gap:2px;align-items:stretch;text-align:left;cursor:pointer;color:var(--text);overflow:hidden}
.calcell .dn{font-size:.78rem;font-weight:600}.calcell.out{opacity:.45}.calcell.today .dn{background:var(--gold);color:#13294B;border-radius:50%;width:1.5rem;height:1.5rem;display:inline-flex;align-items:center;justify-content:center}
.calcell .ev{display:block;font-size:.62rem;line-height:1.25;color:#fff;border-radius:3px;padding:1px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calcell .more{font-size:.62rem;color:var(--muted)}
@media (min-width:700px){.calcell{min-height:104px}.calcell .ev{font-size:.72rem}}
/* calm, consistent cards */
.panel{border-radius:var(--r-card);padding:1.25rem 1.25rem;margin-bottom:1.25rem}
.panel>h2{font-size:1.15rem;margin-bottom:.8rem}
.item{border-radius:var(--r-card);padding:1rem 1.15rem}
.list{gap:.75rem}
.att{padding:.75rem 0}
.att.big{border-left:4px solid var(--line);padding:.85rem .2rem .85rem .85rem;font-size:1.05rem;line-height:1.45}
.att.big.ok{border-left-color:var(--green);cursor:default}
.calm-ok{color:var(--green);font-weight:600;font-size:1.05rem;margin:0}
.qgrid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1.25rem}
@media (min-width:900px){.qgrid{grid-template-columns:repeat(4,1fr)}}
.qa{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;min-height:96px;overflow-wrap:normal;word-break:normal;padding:1rem;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--text);text-align:left;cursor:pointer;font:inherit}
.qa:hover{border-color:var(--navy)}
.qa .qi{font-size:1.5rem;line-height:1}
.qa b{display:block;font-size:1.02rem}
.qa small{display:block;color:var(--muted);font-size:.85rem;margin-top:.15rem}
.sumd>summary{cursor:pointer;font-weight:700;font-size:1.05rem;min-height:44px;display:flex;align-items:center}
.sumd .tiles{margin-bottom:0}
.moreh{margin:1.4rem 0 .6rem;font-size:1.05rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.qrspots{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.6rem}
.chipbtn{min-height:44px;padding:.4rem .85rem;border:1.5px solid rgba(19,41,75,.55);border-radius:var(--r-ctl);background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.chipbtn[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
/* The tally buttons were using --line, which is 1.37:1 in dark and invisible. Chips are NOT here on
   purpose: their dark rule already paints #6A8AB8, which measures 3.28:1 against the chip and
   4.52:1 against the dialog behind it. Adding an override would have been churn for a marginally
   worse number, so the light-mode edge was the only thing that needed fixing there.
   :not(.on) is not decoration: .tally .tv.on.tv-yes is specificity 0,3,1, and a bare :root-scoped
   rule ties it and wins on order, repainting the border of a vote already marked Yes. That is how
   the selected nav tab lost its gold earlier today, so it is excluded by selector rather than by
   hoping the cascade falls the right way. */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tally .tv:not(.on){border-color:rgba(255,255,255,.40)}}
:root[data-theme="dark"] .tally .tv:not(.on){border-color:rgba(255,255,255,.40)}
.urgentbox{background:var(--red-soft,#FDECEA);border:2px solid var(--red);border-radius:var(--r-card);padding:1rem 1.1rem;margin-bottom:1.25rem;box-shadow:0 3px 14px rgba(159,31,21,.16)}
.urgentbox h2{color:var(--red);font-size:1.15rem;margin:0 0 .4rem}
.urgentbox .att{background:transparent}
/* The same red wash on an urgent card wherever it is listed, so the Issues screen reads like the box
   on Home rather than like a column of identical white cards with one differently coloured pill. */
.item.urg{background:var(--red-soft,#FDECEA);border-color:var(--red)}
.prio{display:flex;flex-wrap:wrap;gap:.45rem}
.prio label{display:inline-flex;align-items:center;min-height:44px;padding:.35rem .9rem;border:1px solid var(--line);border-radius:var(--r-ctl);cursor:pointer;font-weight:600;background:var(--surface);color:var(--text)}
.prio input{position:absolute;opacity:0;width:1px;height:1px}
.prio label.on{background:var(--navy);border-color:var(--navy);color:#fff}
.prio label.urg.on{background:var(--red);border-color:var(--red);color:#fff}
.prio label:focus-within{outline:3px solid var(--gold);outline-offset:2px}
.urg911{margin:.6rem 0 0;padding:.6rem .7rem;border:2px solid var(--red);border-radius:var(--r-card);background:var(--red-soft,#FDECEA);color:var(--ink);font-size:.95rem;line-height:1.4}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .urg911{background:rgba(180,35,24,.22);border-color:#F08A80;color:#F6E7E5}}
:root[data-theme="dark"] .urg911{background:rgba(180,35,24,.22);border-color:#F08A80;color:#F6E7E5}
/* The record editor's version: four short words, so an even row rather than the report form's
   3-up-plus-full-width-Urgent, which is shaped around its longer "Urgent or a safety risk". */
.prio.compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}
.prio.compact label{width:100%;justify-content:center;text-align:center;margin:0;padding:.35rem .4rem}
.p-orange{background:#FFEDD5;color:#8A2E10}.p-yellow{background:#FEF3C7;color:#854D0E}
.prikey{display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.82rem;color:var(--muted);margin:.2rem 0 .8rem}
.prikey span{display:inline-flex;align-items:center;gap:.35rem}.prikey i{display:inline-block;width:12px;height:12px;border-radius:3px}
#avTop{align-items:center;gap:.4rem}
#avTop>span[aria-hidden],#avTop>img{box-shadow:0 0 0 2px #fff}
.me-name{color:#fff;font-weight:600;font-size:.9rem;max-width:7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){.top .assoc{display:none}}
.policebox{border:2px solid var(--red);background:var(--red-soft,#FDECEA);border-radius:var(--r-card);padding:.85rem 1rem;color:var(--text)}
.policebox b{color:var(--red);font-size:1.05rem}
.btn.danger911{background:var(--red);border-color:var(--red);color:#fff;text-decoration:none}
.chipbtn.tresp{border-color:var(--red);color:var(--red)}
.chipbtn.tresp[aria-pressed="true"]{background:var(--red);color:#fff}
.qrkinds{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.qrkind{min-height:64px;padding:.5rem .6rem;border-radius:var(--r-card);border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:700;font-size:1rem;line-height:1.25;cursor:pointer;text-align:center}
/* issue type: tinted like the Home tiles (green = New issue, red = Emergency); the chosen one gets a thick border, an outline ring, and a check */
.qrkind[data-qrkind]{background:#E5F3EA;border-color:#155C39;color:#155C39}
.qrkind.tresp{background:#FBE9E7;border-color:#B42318;color:#9F1F15}
.qrkind[aria-pressed="true"]{border-width:4px;box-shadow:0 0 0 3px rgba(201,162,39,.55)}

.qrkind[aria-pressed="false"]{border-width:2px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .qrkind[data-qrkind]{background:#0E2C1F;border-color:#6FCF9E;color:#93E2B8}
 :root:not([data-theme="light"]) .qrkind.tresp{background:#3B1512;border-color:#F28B7F;color:#F8B4AA}}
:root[data-theme="dark"] .qrkind[data-qrkind]{background:#0E2C1F;border-color:#6FCF9E;color:#93E2B8}
:root[data-theme="dark"] .qrkind.tresp{background:#3B1512;border-color:#F28B7F;color:#F8B4AA}
.qerr{color:var(--red);font-weight:700;margin:.4rem 0 0;font-size:.95rem}
.ezprev{border:1px solid var(--line);border-radius:var(--r-card);padding:.7rem .9rem;margin-top:.6rem;background:var(--surface)}
.ezprev summary{cursor:pointer;font-weight:700;min-height:40px;display:flex;align-items:center;gap:.4rem}
.ezbody{max-height:22rem;overflow:auto;margin:.6rem 0;padding-right:.3rem;line-height:1.6}
/* small header buttons never wrap mid-word */
[data-setup-hide],#cw-h+.btn,.panel>div>.btn.sm{white-space:nowrap;flex:none}
.person{padding:.9rem 0;border-bottom:1px solid var(--line)}.person:last-child{border-bottom:0}
.person .pname{display:flex;align-items:center;gap:.7rem}
.person .pcontact{margin:.5rem 0 0 calc(36px + .7rem);display:grid;gap:.2rem;font-size:.95rem}
.person .pmail{display:flex;gap:.35rem;align-items:baseline}.person .pmail span:last-child{min-width:0;overflow-wrap:break-word}
.top .assoc{display:none!important}
#avTop{margin-left:auto!important}
/* The association's name, as a tile rather than a grey caption.
   Gold-soft fill with a gold edge, deliberately NOT the navy-washed, 2px-outlined look a secondary
   button has: this is a label, nothing happens when you press it, and dressing it like a control
   would be a false affordance. The name never wraps — nowrap plus ellipsis guarantees one line at
   any width, and the two size steps below mean a long name shrinks to fit before it ever truncates.
   "The Strand Of Sarasota Association" is 33 characters and fits whole on a 390px phone. */
.assocbar{display:flex;align-items:center;gap:.5rem;min-width:0;background:var(--gold-soft);border:1px solid var(--gold);
  border-radius:var(--r-card);padding:.55rem .8rem;margin:0 0 1rem;min-height:44px;
  font:700 1.05rem/1.25 var(--head);color:var(--ink);letter-spacing:-.01em}
.assocbar .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assocbar svg{flex:none;width:19px;height:19px;stroke:var(--gold-ink);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.assocbar.mid{font-size:.96rem}
.assocbar.long{font-size:.86rem}
h1.assocbar{margin:0 0 1.1rem}
a.btn.nolink,a.btn.nolink:hover{text-decoration:none}
#customBox label.chk{display:block;position:relative;padding:.45rem 0 .45rem 2.1rem!important;line-height:1.35}
#customBox label.chk>input{position:absolute;left:0;top:.45rem;width:22px;height:22px;margin:0;accent-color:var(--navy)}
#customBox label.chk .note{font-size:.85rem}
#customBox .rgrp+.rgrp{border-top:1px solid var(--line);margin-top:.5rem;padding-top:.3rem}
.qsel{display:flex;flex-wrap:wrap;gap:.4rem;margin:.2rem 0 .3rem}
.qclear{width:100%;justify-content:center;margin:.1rem 0 .4rem;min-height:44px;padding:.3rem .8rem;font-size:.9rem}
.qsel .chipbtn{min-height:44px;padding:.3rem .8rem;font-size:.9rem}
.qsel .chipbtn[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff}
.acrew{border:1px dashed var(--line);border-radius:var(--r-card);padding:.7rem;margin-top:.6rem;display:grid;gap:.45rem}
.acrew[hidden]{display:none}
.grid2x{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.qrdet{display:contents}.qrdet[hidden]{display:none}
.polnot{margin-top:.7rem;padding:.6rem .8rem;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--text)}
#frm [data-fk][hidden]{display:none!important}
.btiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}.btiles .tile{min-width:0}.btiles .tile b{font-size:min(1.35rem,5.4vw);overflow-wrap:normal;white-space:nowrap}.btiles .tile span{display:block;overflow-wrap:break-word}
@media (min-width:700px){.btiles{grid-template-columns:repeat(4,minmax(0,1fr))!important}.btiles .tile b{font-size:1.35rem}}
.bal-note{margin:.6rem 0 1rem;padding:.7rem .9rem;border:2px solid #C2410C;border-radius:var(--r-card);background:rgba(234,120,30,.10)}
table.bcmp td,table.bcmp th{padding:.5rem .45rem;vertical-align:top}table.bcmp td.r{white-space:nowrap}
table.bcmp .bgrp{text-align:left;padding-top:.9rem;color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.03em}
table.bcmp tr.btot td{font-weight:700;border-top:2px solid var(--line)}
@media (max-width:640px){
 table.bcmp{min-width:0!important;width:100%}table.bcmp thead{display:none}
 table.bcmp tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.1rem .5rem;padding:.55rem 0;border-bottom:1px solid var(--line)}
 table.bcmp tr.bgr{display:block;border-bottom:0;padding:.4rem 0 0}
 table.bcmp td{border:0!important;padding:.1rem 0!important;white-space:normal!important;text-align:left!important}
 table.bcmp td:first-child{grid-column:1/-1;font-weight:600}
 table.bcmp td.r::before{content:attr(data-l);display:block;font-size:.74rem;color:var(--muted);font-weight:600}
@media (max-width:699px){.tw:has(table.bcmp){overflow-x:visible}table.bcmp,table.bcmp tbody{display:block;width:100%}
 table.bcmp tr{grid-template-columns:repeat(3,minmax(0,1fr))}table.bcmp td,table.bcmp th{min-width:0;overflow-wrap:break-word}
 table.bcmp td.r,table.bcmp td.r .note{font-size:min(.95rem,3.6vw);font-variant-numeric:tabular-nums;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
 table.bcmp .bgrp{display:block;white-space:normal;overflow-wrap:break-word}}
@media (max-width:699px){table.bcmp tr.btot td.r{font-size:min(.9rem,3.45vw)}}
table.bcmp tr.bnote{display:block;border-bottom:0;padding:.3rem 0}table.bcmp tr.bnote td{display:block;font-style:italic;color:var(--muted);font-size:.85rem;font-weight:500!important;text-transform:none;overflow-wrap:break-word}
 table.bcmp tr.btot{border-top:2px solid var(--line)}
}
/* drop areas: big, calm, high-contrast; the file input covers the area so taps work on phones */
.dz{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;min-height:150px;padding:1.2rem 1rem;border:3px dashed var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--text);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.dz:hover,.dz:focus-within{border-color:var(--navy)}
.dz.dz-over{border-color:#C9A227;background:rgba(201,162,39,.12)}
.dz.dz-has{border-style:solid;border-color:var(--green)}
.dz-ic{font-size:2rem;line-height:1;color:var(--text)}
.dz-t{font-weight:700;font-size:1.12rem}
.dz-h{font-size:.98rem;color:var(--text);max-width:30rem}
.dz-or{font-size:.9rem;color:var(--muted);font-weight:600}
.dz-file{font-weight:700;color:var(--green);font-size:1rem;overflow-wrap:break-word}
.dz-in{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.dz-in:focus-visible+*,.dz:focus-within{outline:3px solid #C9A227;outline-offset:2px}
.insfill{border:2px solid #C9A227;border-radius:var(--r-card);padding:.8rem .9rem;background:var(--surface)}
.insfill .btn{min-height:52px;width:100%}
input.filled,select.filled{border-color:#C9A227!important;box-shadow:0 0 0 3px rgba(201,162,39,.35)}
.stime{color:var(--text)}
/* Help & quick guide: large, high-contrast, big touch targets */
.btn.supbtn{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;font-size:1.05rem;text-decoration:none;box-sizing:border-box}
.btn.hsuphome{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;min-height:56px;font-size:1.05rem;margin:1.4rem 0 .5rem;text-decoration:none;white-space:nowrap;text-align:center;box-sizing:border-box}
.btn.hsup2{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;min-height:52px;font-size:1.05rem;margin:-.4rem 0 1.2rem;text-decoration:none;white-space:nowrap;box-sizing:border-box}
.btn.hsup{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;min-height:56px;font-size:1.08rem;margin:.6rem 0 .6rem;text-decoration:none;white-space:nowrap;box-sizing:border-box}
.hsupaddr{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.2rem 0 0;font-weight:700;color:var(--text)}
.hsearch input{min-height:56px;font-size:1.1rem;border:2px solid var(--line)}
.hsearch input:focus{border-color:var(--navy);outline:3px solid var(--gold);outline-offset:1px}
.hcats{display:flex;flex-wrap:wrap;gap:.5rem;margin:.9rem 0 .4rem}
.hcats .chipbtn{min-height:48px;font-size:1rem}
.hcats .chipbtn[aria-pressed="true"]{background:#C9A227;border-color:#C9A227;color:#13294B}
.hh{font-size:1.3rem;margin:1.6rem 0 .7rem}
.hlist{display:grid;gap:.8rem}
.hnav{background:var(--surface);border:2px solid var(--line);border-radius:var(--r-card);padding:1rem 1.1rem}
.hnav[hidden],.hfaq[hidden]{display:none}
.hq{font-weight:700;font-size:1.12rem;margin:0 0 .45rem;color:var(--text)}
.hpath{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;margin:0 0 .5rem;font-weight:700;color:var(--text)}
.hpath span:not(.harr){background:var(--bg);border:1px solid var(--line);border-radius:var(--r-ctl);padding:.2rem .55rem}
.harr{color:var(--muted);font-size:1.2rem}
.hhint{margin:0 0 .7rem}
.btn.hgo{min-height:52px;width:100%;font-size:1.05rem}
.hfaq{background:var(--surface);border:2px solid var(--line);border-radius:var(--r-card)}
.hfaq summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:60px;padding:.9rem 1.1rem;font-weight:700;font-size:1.08rem;cursor:pointer;color:var(--text)}
.hfaq summary::-webkit-details-marker{display:none}
.hfaq summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:var(--r-card)}
.hchev{flex:none;width:36px;height:36px;border-radius:50%;background:#C9A227;color:#13294B;font-weight:700;display:inline-flex;align-items:center;justify-content:center;font-size:1.3rem;line-height:1}
.hfaq[open] .hchev{transform:rotate(45deg)}
.hfaq p{margin:0;padding:0 1.1rem 1.1rem;font-size:1.05rem;line-height:1.65}
.hcard{display:flex;align-items:center;gap:.8rem;width:100%;min-height:72px;padding:.9rem 1.1rem;margin:0 0 1.2rem;background:var(--navy);color:#fff;border:0;border-radius:var(--r-card);text-align:left;font:inherit;cursor:pointer}
.hcard svg{width:30px;height:30px;flex:none;stroke:#fff}.hcard span{flex:1}.hcard>span[aria-hidden]{flex:none;font-size:1.4rem}.hcard b{display:block;font-size:1.1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hcard small{display:block;opacity:.9;font-size:.95rem;margin-top:.1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hcard span{min-width:0}
.btn.hhome{width:100%;min-height:52px;margin:.2rem 0 1.25rem;white-space:nowrap}
.telnum{font-size:1.15rem;letter-spacing:.02em}
.telfail{margin-top:.7rem;padding:.7rem .8rem;border-radius:var(--r-card);background:var(--surface);color:var(--text);border:2px solid var(--line);font-size:1rem;line-height:1.5}
.telbig{font-weight:800;font-size:1.25rem;white-space:nowrap}
.pnbtns{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.pnb{min-height:56px;border-radius:var(--r-card);border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-weight:700;font-size:1.02rem;cursor:pointer;padding:.4rem}
.pnb[aria-pressed="true"]{background:#C9A227;border-color:#C9A227;color:#13294B}
.pnb[data-pn="Yes"][aria-pressed="true"]{background:#1B6E46;border-color:#1B6E46;color:#fff}
.pnb[data-pn="No"][aria-pressed="true"]{background:#B42318;border-color:#B42318;color:#fff}
/* touch targets: every control is at least 48px tall (senior-friendly) */
button,a.btn,label.btn,.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=file]):not(.dz-in):not([type=hidden]){min-height:48px!important;box-sizing:border-box}
button.pill,a.pill{min-height:48px;padding:.4rem .85rem!important;font-size:.85rem!important;display:inline-flex;align-items:center}
.chipbtn{min-height:48px}
.x{min-width:48px;min-height:48px}
#avTop{min-height:48px;min-width:48px;padding:0 .25rem;border-radius:50%}
table.rulestbl{min-width:0!important;width:100%;table-layout:auto}
table.rulestbl td{white-space:normal!important;overflow-wrap:normal}
table.rulestbl td.r{white-space:nowrap!important;width:1%;padding-left:.75rem;vertical-align:top}
.bpanel .brows{display:grid;gap:0;margin:.6rem 0 .2rem}
.bpanel .brow{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid var(--line);font-size:1rem}
.bpanel .brow span{color:var(--muted)}.bpanel .brow b{text-align:right}
.btn.bbtn{width:100%;margin-top:.9rem}
.welcome{border:2px solid #C9A227}
.wpaths{display:grid;gap:.7rem;margin-top:.8rem}
@media(min-width:640px){.wpaths{grid-template-columns:1fr 1fr}}
.wpath{display:flex;flex-direction:column;gap:.3rem;text-align:left;padding:1rem 1.1rem;border:2px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;min-height:96px}
.wpath b{font-size:1.1rem}.wpath span{color:var(--muted);font-size:.98rem;line-height:1.45}
.wpath:hover,.wpath:focus-visible{border-color:#C9A227}
/* The Home footer and Contact tiles used to carry this wash on their own. It is on .btn.ghost itself
   now, because the same complaint came back about every other secondary button on a light screen —
   Text and Email in the contacts card, the buttons in dialogs — and fixing two containers at a time
   was always going to lose that race. */
.ctbtns{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.ctbtns .btn{width:100%}
.ctbtns [data-ct="mailto"]{grid-column:1/-1}
.homefoot{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:.6rem}
/* the 56px needs !important: the blanket tap-target rule above sets every button to 48px!important,
   which was quietly winning and left these at whatever the text wrapped to. */
.homefoot .btn{width:100%;min-height:56px!important;white-space:normal;line-height:1.2;padding:.4rem .3rem;text-align:center;justify-content:center}
/* the fourth button would sit alone in the first column: give it the whole row instead */
.homefoot .hfsup{grid-column:1/-1}
/* people without contact details: name on one line, the button right below, every row the same */
.xrow>div{flex-direction:column!important;align-items:flex-start!important;gap:.45rem!important}
.xrow [data-addct]{min-width:13rem}
.xrow{padding:.45rem 0!important}

.emch{grid-template-columns:repeat(3,1fr)}
.embatch{grid-column:1/-1;display:grid;gap:.5rem;padding:.8rem;border:2px solid var(--line);border-radius:var(--r-card)}
.emtext{display:flex;justify-content:space-between;align-items:center;gap:.6rem;min-height:52px;padding:.5rem .8rem;border:1px solid var(--line);border-radius:var(--r-card);color:var(--text);text-decoration:none}
.emtext b{color:#13294B;background:#C9A227;border-radius:var(--r-ctl);padding:.35rem .9rem}
.embatch a.btn,.embatch .btn{text-decoration:none;display:flex;align-items:center;justify-content:center;text-align:center}
.emsent{opacity:.55}.emsent b::after{content:" ✓"}
.btn.emsend{background:#B42318;border-color:#B42318;color:#fff}
.polnot{padding:.7rem .8rem}
/* selected options: bright gold, dark text, and a checkmark, so a choice is obvious at a glance */
.chipbtn[aria-pressed="true"],.qsel .chipbtn[aria-pressed="true"],.qrspots .chipbtn[aria-pressed="true"]{background:#C9A227!important;border-color:#C9A227!important;color:#13294B!important;font-weight:800}


/* priority buttons use the same colors as the side bars: Low grey, Normal yellow, High orange, Urgent red */
.prio label.pv-low{border:2px solid #9CA3AF}
.prio label.pv-normal{border:2px solid #EAB308}
.prio label.pv-high{border:2px solid #F97316}
/* Urgent is not one of four equal choices. It is the one someone reaches for when water is
   coming through a ceiling, and at that moment it has to be the thing their eye lands on — not a
   fourth box the same size as Low. It takes the whole row under the other three and is red before
   it is picked, not after. flex-basis for the phone row, grid-column for the wider grids: each is
   ignored in the layout it does not apply to. */
.prio label.pv-urgent{grid-column:1/-1;flex:1 0 100%;width:100%;justify-content:center;text-align:center;background:var(--red);border:2px solid var(--red);color:#fff;font-size:1.05rem;min-height:56px}
.prio label.pv-urgent.on{box-shadow:inset 0 0 0 3px #fff,0 0 0 3px var(--red)}
/* Low, Normal and High share the row above Urgent equally, edge to edge. Left to shrink-wrap their
   words they huddled against the left of a wide dialog while Urgent ran the full width underneath,
   so the four choices did not read as one control. The three grow, Urgent still takes its own row. */
.prio label.pv-low,.prio label.pv-normal,.prio label.pv-high{flex:1 1 0;min-width:0;justify-content:center;text-align:center}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .prio label.pv-urgent{background:#A3211A;border-color:#F28B7F;color:#fff}
 :root:not([data-theme="light"]) .prio label.urg.on{background:#A3211A;border-color:#F28B7F;color:#fff}}
:root[data-theme="dark"] .prio label.pv-urgent{background:#A3211A;border-color:#F28B7F;color:#fff}
:root[data-theme="dark"] .prio label.urg.on{background:#A3211A;border-color:#F28B7F;color:#fff}
.prio label.on.pv-low{background:#9CA3AF!important;border-color:#9CA3AF!important;color:#111!important}
.prio label.on.pv-normal{background:#EAB308!important;border-color:#EAB308!important;color:#13294B!important}
.prio label.on.pv-high{background:#F97316!important;border-color:#F97316!important;color:#111!important}
.prio label.on.pv-urgent{background:#B42318!important;border-color:#B42318!important;color:#fff!important}
/* The same four fills as a selected priority tile, so the badge on a card, the tile in the editor and
   the bar down the side of the card are visibly one scale. */
.pbadge{border:0}
.pbadge.pv-low{background:#9CA3AF;color:#111}
.pbadge.pv-normal{background:#EAB308;color:#13294B}
.pbadge.pv-high{background:#F97316;color:#111}
.pbadge.pv-urgent{background:#B42318;color:#fff}
input[type=checkbox],input[type=radio]{accent-color:#C9A227}
body.staffmode [data-grp="crew"]{display:none}
.homefoot.staff{grid-template-columns:1fr}
.emlegal{align-items:flex-start;gap:.7rem;padding:.8rem;border:2px solid #B42318;border-radius:var(--r-card);color:var(--text);line-height:1.5;font-size:.98rem}
.emlegal input{width:28px;height:28px;min-height:28px!important;flex:none;margin-top:.1rem}
.btn.emsend:disabled,.btn.danger:disabled{opacity:.45;cursor:not-allowed}
/* Home tiles: one color each, so they're recognized at a glance */
.qa[data-tone]{border-width:2px;border-style:solid}
.qa[data-tone="red"]{background:#FBE9E7;border-color:#B42318}.qa[data-tone="red"] b{color:#9F1F15}
.qa[data-tone="green"]{background:#E5F3EA;border-color:#155C39}.qa[data-tone="green"] b{color:#155C39}
.qa[data-tone="yellow"]{background:#FBF1D3;border-color:#8A6508}.qa[data-tone="yellow"] b{color:#5C4604}
.qa[data-tone="blue"]{background:#E6EEF9;border-color:#2E5C9A}.qa[data-tone="blue"] b{color:#23497C}
.qa[data-tone] small{color:#2B3442}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .qa[data-tone] small{color:#DCE3EE}
 :root:not([data-theme="light"]) .qa[data-tone="red"]{background:#3B1512;border-color:#F28B7F}:root:not([data-theme="light"]) .qa[data-tone="red"] b{color:#F8B4AA}
 :root:not([data-theme="light"]) .qa[data-tone="green"]{background:#0E2C1F;border-color:#6FCF9E}:root:not([data-theme="light"]) .qa[data-tone="green"] b{color:#93E2B8}
 :root:not([data-theme="light"]) .qa[data-tone="yellow"]{background:#30270A;border-color:#E3C25B}:root:not([data-theme="light"]) .qa[data-tone="yellow"] b{color:#F2D682}
 :root:not([data-theme="light"]) .qa[data-tone="blue"]{background:#12264A;border-color:#8DB4F0}:root:not([data-theme="light"]) .qa[data-tone="blue"] b{color:#B3CDF6}}
:root[data-theme="dark"] .qa[data-tone] small{color:#DCE3EE}
:root[data-theme="dark"] .qa[data-tone="red"]{background:#3B1512;border-color:#F28B7F}:root[data-theme="dark"] .qa[data-tone="red"] b{color:#F8B4AA}
:root[data-theme="dark"] .qa[data-tone="green"]{background:#0E2C1F;border-color:#6FCF9E}:root[data-theme="dark"] .qa[data-tone="green"] b{color:#93E2B8}
:root[data-theme="dark"] .qa[data-tone="yellow"]{background:#30270A;border-color:#E3C25B}:root[data-theme="dark"] .qa[data-tone="yellow"] b{color:#F2D682}
:root[data-theme="dark"] .qa[data-tone="blue"]{background:#12264A;border-color:#8DB4F0}:root[data-theme="dark"] .qa[data-tone="blue"] b{color:#B3CDF6}
/* photo / video / file buttons: all plain until pressed; gold while pressing; a check after attaching */
label.btn.sm.ghost.pickbtn:active,label.btn.sm.ghost.pickbtn:focus-within{background:#C9A227;border-color:#C9A227;color:#13294B}

@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) label.btn.sm.ghost.pickbtn{background:transparent;border:2px solid #8A9BB5;color:#E8EDF5}
 :root:not([data-theme="light"]) label.btn.sm.ghost.pickbtn:active,:root:not([data-theme="light"]) label.btn.sm.ghost.pickbtn:focus-within{background:#C9A227;border-color:#C9A227;color:#13294B}}
:root[data-theme="dark"] label.btn.sm.ghost.pickbtn{background:transparent;border:2px solid #8A9BB5;color:#E8EDF5}
:root[data-theme="dark"] label.btn.sm.ghost.pickbtn:active,:root[data-theme="dark"] label.btn.sm.ghost.pickbtn:focus-within{background:#C9A227;border-color:#C9A227;color:#13294B}
.att.big{border-left-width:8px!important}
/* Home: compact issue rows. A colour bar in the issue's priority colour on the left, the title, and
   one quiet line under it. Deliberately shorter than the cards on the Issues screen — Home is a
   summary, and a row that wraps onto three lines is what made ten issues fill the page. */
.irow{display:flex;align-items:center;gap:.6rem;width:100%;text-align:left;min-height:56px;padding:.5rem .8rem;margin:0 0 .4rem;
  background:var(--surface);border:1px solid var(--line);border-left:6px solid var(--pc,var(--line));border-radius:var(--r-card);cursor:pointer;color:var(--text)}
.irow:last-child{margin-bottom:0}
.irow .w{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1rem}
.irow b{font-size:1rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.irow small{color:var(--muted);font-size:.84rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.irow .rwhy{display:block;margin:.15rem 0 .1rem}
.irow:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.irow.done{border-left-color:#155C39;opacity:.85}
.irow.done b{font-weight:600}
/* The fold-out that keeps the panel one height whatever the backlog is. */
.morebox{margin-top:.45rem}
.morebox>summary{list-style:none;min-height:44px;display:flex;align-items:center;justify-content:center;gap:.4rem;
  padding:.4rem .8rem;border:1px dashed var(--line);border-radius:var(--r-card);cursor:pointer;color:var(--muted);font-weight:600;font-size:.92rem}
.morebox>summary::-webkit-details-marker{display:none}
.morebox>summary::after{content:"▾";font-size:.9rem}
.morebox[open]>summary::after{content:"▴"}
.morebox>summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.morebox[open]>summary{margin-bottom:.45rem}
/* A count beside a panel heading, so the number is visible without reading the rows. */
.hcount{display:inline-block;margin-left:.35rem;padding:.05rem .5rem;border-radius:var(--r-pill);background:var(--line);color:var(--text);font-size:.82rem;font-weight:700;vertical-align:middle}
.okpanel h2{color:#155C39}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .okpanel h2{color:#6FCF9E}}
:root[data-theme="dark"] .okpanel h2{color:#6FCF9E}
/* All clear: one quiet line near the bottom of Home; tap to see what was checked */
.allclear{margin:1rem 0 .4rem;border:1.5px solid #155C39;border-radius:var(--r-card);background:#EEF7F1}
.allclear summary{list-style:none;display:flex;align-items:center;gap:.6rem;min-height:52px;padding:.5rem .9rem;cursor:pointer;color:#155C39;font-size:1rem}
.allclear summary::-webkit-details-marker{display:none}
.allclear summary:focus-visible{outline:3px solid #C9A227;outline-offset:2px;border-radius:var(--r-card)}
.acmark{flex:none;width:28px;height:28px;border-radius:50%;background:#155C39;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.actext{flex:1}.acchev{flex:none;font-size:1.4rem;line-height:1;transition:transform .15s}
.allclear[open] .acchev{transform:rotate(90deg)}
.allclear ul{margin:0;padding:0 1rem .9rem 3.2rem;color:#1F2A37;line-height:1.55}
.allclear li{margin:.25rem 0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .allclear{background:#0E2C1F;border-color:#6FCF9E}
 :root:not([data-theme="light"]) .allclear summary{color:#93E2B8}:root:not([data-theme="light"]) .acmark{background:#6FCF9E;color:#0C1626}
 :root:not([data-theme="light"]) .allclear ul{color:#DCE3EE}}
:root[data-theme="dark"] .allclear{background:#0E2C1F;border-color:#6FCF9E}
:root[data-theme="dark"] .allclear summary{color:#93E2B8}:root[data-theme="dark"] .acmark{background:#6FCF9E;color:#0C1626}
:root[data-theme="dark"] .allclear ul{color:#DCE3EE}
#ds-offline{position:fixed;left:0;right:0;top:0;z-index:9998;padding:calc(.6rem + env(safe-area-inset-top,0px)) 1rem .6rem;background:#B42318;color:#fff;font-weight:700;text-align:center;font-size:1rem}
.cmlist{max-height:16rem;overflow:auto;border:1px solid var(--line);border-radius:var(--r-card);padding:.3rem .6rem}
.cmlist .chk{min-height:48px}
.btn.cmdel{color:#B42318;border-color:#B42318}
.btn.cmdelgo{background:#B42318;border-color:#B42318;color:#fff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn.cmdel{background:transparent;color:#F8B4AA;border-color:#F28B7F}}
:root[data-theme="dark"] .btn.cmdel{background:transparent;color:#F8B4AA;border-color:#F28B7F}
.cmnext{border:2px solid #185F78;border-radius:var(--r-card);padding:.9rem 1rem;background:transparent}
.cmnext-h{margin:0;font-weight:700;color:#185F78}.cmnext-when{margin:.2rem 0 0;font:700 1.15rem var(--head);color:var(--navy)}.cmnext-where{margin:.2rem 0 0}
.cmnext-btns{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.7rem}
.btn.cmjoin{background:#185F78;border-color:#185F78;color:#fff;text-decoration:none}
.cmpreview{white-space:pre-wrap;font:inherit;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-card);padding:.8rem;margin:0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cmnext{border-color:#6FB7CF}:root:not([data-theme="light"]) .cmnext-h{color:#9FD3E4}:root:not([data-theme="light"]) .cmnext-when{color:#E8EDF5}:root:not([data-theme="light"]) .btn.cmjoin{background:#185F78;border-color:#6FB7CF;color:#fff}}
:root[data-theme="dark"] .cmnext{border-color:#6FB7CF}:root[data-theme="dark"] .cmnext-h{color:#9FD3E4}:root[data-theme="dark"] .cmnext-when{color:#E8EDF5}:root[data-theme="dark"] .btn.cmjoin{background:#185F78;border-color:#6FB7CF;color:#fff}
.cmattlink{font-weight:700;color:var(--navy);white-space:nowrap}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cmattlink{color:#E8EDF5}}
:root[data-theme="dark"] .cmattlink{color:#E8EDF5}
.cmnew{border:1px solid var(--line);border-radius:var(--r-card);padding:.8rem;margin-top:.6rem}
.cmnew .chk{min-height:48px;display:flex;align-items:center}
.cmnew-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem .7rem}.cmnew-grid input{width:100%}
@media (max-width:480px){.cmnew-grid{grid-template-columns:1fr}}
.cmcard{display:flex;flex-direction:column}.cmcard .item{width:100%}.cmcard-msg{align-self:flex-start;margin:.35rem 0 .2rem;min-height:48px}

.hacts{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
@media (max-width:699px){.head{align-items:stretch}.head>div:first-child{width:100%}.hacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));width:100%}.hacts>div{display:contents!important}.hacts .btn{width:100%;justify-content:center;text-align:center;margin:0}}
.chipgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.4rem;margin-bottom:.8rem}
.chipgrid>button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;width:100%;line-height:1.2;white-space:normal;overflow:visible;text-overflow:clip;height:auto;padding:.45rem .5rem}
@media (max-width:699px){.qrspots{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.qrspots .chipbtn{width:100%;justify-content:center;text-align:center;margin:0;white-space:normal;overflow:visible;text-overflow:clip;height:auto;min-height:48px;line-height:1.2;padding:.4rem .3rem}}
.morelist .cnt{margin-left:auto;background:#B42318;color:#fff;border-radius:var(--r-pill);min-width:1.6rem;height:1.6rem;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;padding:0 .45rem}
.morelist .cnt.cold{background:rgba(19,41,75,.14);color:var(--ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .morelist .cnt.cold{background:rgba(255,255,255,.18);color:var(--text)}}
:root[data-theme="dark"] .morelist .cnt.cold{background:rgba(255,255,255,.18);color:var(--text)}
.morenote{margin:.2rem 0 .6rem;color:var(--muted);font-size:.92rem}

/* option buttons (locations, categories, choices): clearly visible before they're picked; the picked one turns gold */
.chipbtn{background:#EAF0F8;border:1.5px solid #8EA3C2;color:#13294B;font-weight:700}
.chipbtn:hover{border-color:#13294B}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chipbtn{background:#23395C;border-color:#6A8AB8;color:#F4F7FC}:root:not([data-theme="light"]) .chipbtn:hover{border-color:#C9D6EA}}
:root[data-theme="dark"] .chipbtn{background:#23395C;border-color:#6A8AB8;color:#F4F7FC}
.chipbtn.tresp{background:#FDECEC;border-color:#B42318;color:#B42318}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .chipbtn.tresp{background:#3B1D21;border-color:#F28B82;color:#FFB4AB}}
:root[data-theme="dark"] .chipbtn.tresp{background:#3B1D21;border-color:#F28B82;color:#FFB4AB}
/* list titles break between words, never mid-word; badges move to the next line when space is tight */
.item .t{flex-wrap:wrap;row-gap:.4rem}.item .t h3{overflow-wrap:break-word;word-break:normal;hyphens:manual;min-width:0;flex:1 1 9rem}

@media (max-width:699px){.hacts>.btn:not(.ghost),.hacts>div>.btn:not(.ghost){grid-column:1/-1}}

/* Home: Contact panel with a soft gold background and edge */
/* The two accent panels — Coming up this week, and Contact — share one treatment.
   The edge uses the palette's INK variant in light mode and the bright variant in dark, because the
   brand gold (#C9A227) and orange (#EA781E) only reach 2.23:1 and 2.69:1 against the light page at
   full opacity. No alpha fixes that: they are bright mid-tones, and on a near-white background they
   cannot carry an edge at all. #664E05 and #7F4A00 are the same hues darkened, already in the
   palette, and measure 7.3:1 and 6.7:1. In dark mode the bright variants are the strong ones
   (8-11:1), so each theme uses the end of the ramp that works against it.
   2px, for the same reason the buttons are: a compliant hairline still disappears for an older eye.
   The heading takes the accent colour too, which is the whole decoration — no extra chrome. */
.ctpanel{background:rgba(201,162,39,.14);border:2px solid var(--gold-ink)}
.ctpanel>h2{color:var(--gold-ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ctpanel{background:rgba(226,190,75,.16);border-color:#E2BE4B}
 :root:not([data-theme="light"]) .ctpanel>h2{color:#E8CB6E}}
:root[data-theme="dark"] .ctpanel{background:rgba(226,190,75,.16);border-color:#E2BE4B}
:root[data-theme="dark"] .ctpanel>h2{color:#E8CB6E}
/* ---------- the paper binder ----------
   The app is a fixed-height column that does not scroll, so handing it to a printer gives one
   clipped page. Printing therefore hands the printer a different document: the app is hidden and
   the binder shown, and html and body are returned to ordinary flowing blocks so the pages break.
   Paper is black on white at 11pt with real rules between sections, because the reader is holding
   it under the room's lighting with their own glasses on, not looking at a backlit screen. */
/* A two-line entry would otherwise centre its tick box against the whole block, leaving the box
   below the words it belongs to. */
.pchoose .chk{align-items:flex-start}
/* The period chips wrap onto as many rows as they need; five of them never fit one phone row. */
.pper{display:flex;flex-wrap:wrap;gap:.4rem}
.pper .chipbtn{min-height:44px;padding:.3rem .8rem;font-size:.9rem}
.pdates{margin-top:.5rem;padding:.6rem .7rem;border:2px solid var(--gold);border-radius:var(--r-ctl);background:var(--bg)}
.pdates select,.pdates input{width:100%}
.pdrow{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.5rem}
/* Three equal columns rather than a wrapping flex row: "Clear" was dropping to a line of its own
   and the three presets stopped reading as one set of choices. Each button wraps its own words. */
.psets{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.psets .btn{width:100%;justify-content:center;text-align:center;white-space:normal;line-height:1.2;min-height:48px;padding:.35rem .4rem}
@media (max-width:420px){.pdrow{grid-template-columns:1fr}}
.pchoose .chk input{margin-top:.15rem;flex:0 0 auto}
#binder{display:none}
@media print{
  html,body{height:auto!important;min-height:0!important;overflow:visible!important;display:block!important;background:#fff!important;color:#000!important}
  .app,nav.bottom,.toast,.fab,dialog,#dlg{display:none!important}
  #binder{display:block!important;font:11pt/1.45 "Public Sans",Georgia,serif;color:#000;background:#fff}
  #binder .bh{border-bottom:2pt solid #000;padding-bottom:6pt;margin-bottom:12pt}
  #binder h1{font-size:19pt;margin:0;color:#000}
  #binder .bsub{font-size:10pt;margin:2pt 0 0;color:#000}
  #binder h2{font-size:13pt;margin:0 0 4pt;padding-bottom:2pt;border-bottom:1pt solid #000;color:#000}
  #binder h3{font-size:11pt;margin:8pt 0 2pt;color:#000}
  #binder .bs{margin:0 0 14pt;break-inside:auto}
  #binder .bt{width:100%;border-collapse:collapse;font-size:10pt}
  #binder .bt td,#binder .bt th{padding:3pt 4pt;vertical-align:top;text-align:left}
  #binder .bt td:first-child{width:11em;font-weight:700}
  #binder .bt.bg td:first-child{width:auto;font-weight:400}
  #binder .bt.bg th{border-bottom:1pt solid #000;font-weight:700}
  #binder .bt.bg tr{border-bottom:.5pt solid #888;break-inside:avoid}
  #binder .bpre{white-space:pre-wrap;font-size:10pt;margin:2pt 0 0}
  #binder .bsm{font-size:9pt;font-weight:400}
  #binder .bthread{margin:0 0 10pt;padding-bottom:6pt;border-bottom:.5pt solid #888;break-inside:avoid}
  #binder .bmsg{font-size:10pt;margin:3pt 0 0;padding-left:8pt;border-left:1pt solid #888}
  #binder .bnone{font-size:10pt;font-style:italic;margin:2pt 0 0}
  #binder .bf{margin-top:16pt;padding-top:6pt;border-top:1pt solid #000;font-size:9pt}
  #binder .bf p{margin:0 0 2pt}
  @page{margin:16mm}
}
/* phones: even buttons in window footers and photo pickers */
@media (max-width:699px){
 .dlg-f.ufoot{display:grid!important;grid-template-columns:1fr 1fr;gap:.5rem}
 .dlg-f.ufoot>span,.dlg-f.ufoot>div{display:contents!important}
 .dlg-f.ufoot>span.note{display:block!important;grid-column:1/-1;margin:0 0 .1rem;line-height:1.35}
 .dlg-f.ufoot .btn{width:100%;margin:0;justify-content:center;text-align:center;min-height:48px}
 .dlg-f.ufoot .btn:not(.ghost):not(.danger),.dlg-f.ufoot .btn.span2{grid-column:1/-1}
 /* A row OF pick buttons becomes two columns. A panel that merely contains one — alongside a
    paragraph, a rule and another button — must not: that turned the Add a report sheet into two
    narrow columns with the text down one side and a button the height of it down the other. */
 div:has(> .pickbtn):not(:has(> :not(.pickbtn))){display:grid!important;grid-template-columns:1fr 1fr;gap:.4rem}
 .pickbtn{width:100%;justify-content:center;min-height:48px}
 .pickbtn:last-child:nth-child(odd){grid-column:1/-1}
}

/* Delete stays red, never looks like the main button */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn.danger{background:transparent;border:1.5px solid #F28B82;color:#FFB4AB}}
:root[data-theme="dark"] .btn.danger{background:transparent;border:1.5px solid #F28B82;color:#FFB4AB}
.pickbtn{text-align:center}

.agd{background:rgba(46,107,173,.08);border:1.5px solid rgba(46,107,173,.45)}
.agd>summary{list-style:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.1rem;position:relative;padding-right:2rem;min-height:48px}
.agd>summary::-webkit-details-marker{display:none}
.agd>summary::after{content:"›";position:absolute;right:.2rem;top:50%;transform:translateY(-50%);font-size:1.4rem;color:var(--muted);transition:transform .2s}
.agd[open]>summary::after{transform:translateY(-50%) rotate(90deg)}
.agd>summary small{font-weight:600;color:var(--muted);font-size:.85rem}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .agd{background:rgba(120,170,230,.10);border-color:rgba(120,170,230,.45)}}
:root[data-theme="dark"] .agd{background:rgba(120,170,230,.10);border-color:rgba(120,170,230,.45)}
@media (max-width:699px){
 .prio{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}
 .prio label{width:100%;justify-content:center;text-align:center;min-height:48px;margin:0}
 .prio label.pv-urgent{grid-column:1/-1}
 /* 2x2 on a phone: bigger targets than four across at 390px, and Urgent stays its own tile. */
 .prio.compact{grid-template-columns:1fr 1fr}
 .prio.compact label{min-height:52px}
 .prio.compact label.pv-urgent{grid-column:auto}
 .qsel{display:grid!important;grid-template-columns:1fr 1fr;gap:.45rem}
 .qsel .chipbtn{width:100%;justify-content:center;text-align:center;min-height:48px;margin:0;white-space:normal;line-height:1.2}
 .qsel .chipbtn:last-child:nth-child(odd){grid-column:1/-1}
}

/* The same even grid above 699px, which is where the computer view lives.
   These were laid out as a wrapping flex row there, so every chip took the width of its own word —
   166px, 116px, 139px, 172px, 73px across one line — and the rows ended ragged. On a phone the rule
   below already made them an even grid; there was no reason for the two to differ, and the uneven
   version is the one that reads as unfinished. Same for the priority tiles. */
@media (min-width:700px){
  .qsel,.prio{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.45rem}
  .qsel .chipbtn,.prio label{width:100%;justify-content:center;text-align:center;min-height:48px;margin:0;white-space:normal;line-height:1.2}
}

/* button grids: a fixed 2 columns on phones (4 on wider screens), compact at any text size */
.chipgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:700px){.chipgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.chipgrid>button{font-size:.85rem!important;padding:.35rem .45rem!important}
.callayers-h{margin:1rem 0 .45rem}
/* The calendar's layer switches reuse .pill for its shape and colour, but a pill is a badge — a
   thing you read — and these are toggles you press. They were the only fully-round controls left
   once everything else moved onto the corner scale. Same corner as every other control. */
.callayers .pill{border-radius:var(--r-ctl)}

.swrow{position:relative;overflow:hidden;border-radius:var(--r-card)}
.swrow .swfront{position:relative;z-index:1;transition:transform .22s ease;touch-action:pan-y}
.swacts{position:absolute;top:0;right:0;bottom:0;display:flex;width:176px}
.swacts button{flex:1;border:0;font-weight:800;color:#fff;font-size:.95rem;line-height:1.2;padding:0 .3rem;cursor:pointer;min-height:48px}
/* Green for the action that resolves, slate for the one that files away. Neither is red, because
   neither can lose anything: see issueRow() for why Delete is not on the swipe. */
.swacts .swc{background:#17653F}.swacts .swa{background:#475569}
.swtip{margin:-.3rem 0 .7rem;color:var(--muted);font-size:.88rem}
.wkstrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem;margin-bottom:.6rem}
.wkday{display:flex;flex-direction:column;align-items:center;gap:.1rem;padding:.4rem 0 .35rem;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--text);cursor:pointer;min-height:64px}
.wkday .wkd{font-size:.78rem;font-weight:700;color:var(--text);text-transform:uppercase;letter-spacing:.02em}
.wkday .wkn{font-weight:800;font-size:1.05rem;width:1.9rem;height:1.9rem;display:flex;align-items:center;justify-content:center;border-radius:50%}
.wkday.today .wkn{background:var(--gold);color:#13294B}
.wkday .wkdots{display:flex;gap:2px;height:7px}.wkday .wkdots i{width:7px;height:7px;border-radius:50%}
.wkopen{width:100%;margin-top:.7rem;justify-content:center;min-height:48px}

/* built-in viewer: full screen, dark and high-contrast, large controls */
dialog.viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:#fff;inset:0}
dialog.viewer::backdrop{background:#000}
.viewer .vbar{padding:calc(.4rem + env(safe-area-inset-top,0px)) .5rem .45rem;background:#111;border-bottom:1px solid #333;position:absolute;top:0;left:0;right:0;z-index:2}
.viewer .vrow{display:flex;align-items:center;gap:.35rem}
.viewer .vpages{flex:1;color:#E5E7EB;font-size:.9rem;font-weight:700;white-space:nowrap}
.viewer .vtitle{display:block;margin-top:.35rem;font-size:.95rem;line-height:1.3;overflow-wrap:break-word;color:#fff}
.viewer .vbtn{min-width:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #555;border-radius:var(--r-card);background:#1F2937;color:#fff;font-weight:800;font-size:1.05rem;text-decoration:none;cursor:pointer;padding:0 .5rem}
.viewer .vbtn:focus-visible{outline:3px solid #E2BE4B;outline-offset:2px}
.viewer .vbody{position:absolute;top:calc(64px + env(safe-area-inset-top,0px));left:0;right:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.viewer .vinner{width:100%;margin:0 auto}
.viewer .vinner img{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.viewer .vpage{width:100%;background:#fff;margin:0 0 8px}.viewer .vpage canvas{display:block;width:100%;height:100%}
.viewer .vload{color:#fff;text-align:center;padding:2rem 1rem}

/* Coming up this week: a soft orange, see-through panel */
.cwpanel{background:rgba(234,120,30,.14);border:2px solid var(--amber)}
.cwpanel>h2{color:var(--amber)}
.cwpanel .wkday{background:#fff;border:1.5px solid rgba(127,74,0,.45)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cwpanel{background:rgba(251,146,60,.16);border-color:#F0B862}
 :root:not([data-theme="light"]) .cwpanel>h2{color:#F0B862}
 :root:not([data-theme="light"]) .cwpanel .wkday{background:rgba(255,255,255,.09);border-color:rgba(240,184,98,.55)}}
:root[data-theme="dark"] .cwpanel{background:rgba(251,146,60,.16);border-color:#F0B862}
:root[data-theme="dark"] .cwpanel>h2{color:#F0B862}
:root[data-theme="dark"] .cwpanel .wkday{background:rgba(255,255,255,.09);border-color:rgba(240,184,98,.55)}
:root[data-theme="dark"] .cwpanel .wkday{background:rgba(255,255,255,.06);border-color:rgba(251,146,60,.35)}
/* dark mode: colored dots and bullets get a light ring so dark colors (like navy) stay visible */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .wkdots i,:root:not([data-theme="light"]) .cwpanel .att>span:first-child{box-shadow:0 0 0 1.5px rgba(255,255,255,.75)}}
:root[data-theme="dark"] .wkdots i,:root[data-theme="dark"] .cwpanel .att>span:first-child{box-shadow:0 0 0 1.5px rgba(255,255,255,.75)}
/* date and time pickers: stay inside the window on iPhones, same height as other fields */
/* Two time pickers side by side: labels above each, equal widths, full width on a phone. */
.trange{display:grid;grid-template-columns:1fr 1fr;gap:.4rem .6rem;align-items:end}
/* One row per director: the name on the left, the five choices as a wrapping row on the right. On a
   phone the choices drop under the name rather than squeezing it. */
.tally .tquick{display:flex;gap:.4rem;margin:0 0 .5rem}
.tally .trow{padding:.5rem 0;border-top:1px solid var(--line)}
.tally .trow:first-of-type{border-top:0}
.tally .tname{display:block;margin-bottom:.35rem}
.tally .tname small{display:block;color:var(--muted);font-weight:400;font-size:.82rem}
.tally .tpick{display:flex;flex-wrap:wrap;gap:.35rem}
.tally .tv{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.3rem .7rem;border:1.5px solid rgba(19,41,75,.55);border-radius:var(--r-ctl);cursor:pointer;font-weight:600;font-size:.88rem;background:var(--surface);color:var(--text)}
.tally .tv input{position:absolute;opacity:0;width:1px;height:1px}
.tally .tv:focus-within{outline:3px solid var(--gold);outline-offset:2px}
.tally .tv.on.tv-yes{background:#155C39;border-color:#155C39;color:#fff}
.tally .tv.on.tv-no{background:#B42318;border-color:#B42318;color:#fff}
.tally .tv.on.tv-abstained{background:#7A5906;border-color:#7A5906;color:#fff}
.tally .tv.on.tv-didntvote{background:#5B6A7F;border-color:#5B6A7F;color:#fff}
.tally .tv.on.tv-absent{background:var(--line);border-color:var(--muted);color:var(--text)}
.tally .tsum{margin:.6rem 0 0;font-weight:800;font-size:1.05rem}
.tally .tsum.ok{color:#155C39}.tally .tsum.no{color:#B42318}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tally .tsum.ok{color:#6FCF9E}:root:not([data-theme="light"]) .tally .tsum.no{color:#F28B7F}}
:root[data-theme="dark"] .tally .tsum.ok{color:#6FCF9E}:root[data-theme="dark"] .tally .tsum.no{color:#F28B7F}
.trange .f{margin:0 0 .15rem;grid-row:1}
.trange .f[for$="-a"]{grid-column:1}.trange .f[for$="-b"]{grid-column:2}
.trange input{grid-row:2;margin:0}
input[type="date"],input[type="time"]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:48px;text-align:left}
input[type="date"]::-webkit-date-and-time-value,input[type="time"]::-webkit-date-and-time-value{text-align:left}

.bcat-h{margin:1rem 0 .4rem;font-size:1.05rem}
.linkbtn{background:none;border:0;padding:.35rem 0;min-height:44px;font:inherit;font-weight:700;color:var(--navy);text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .linkbtn{color:#E8EDF5}}:root[data-theme="dark"] .linkbtn{color:#E8EDF5}
.bcmp tr.bbig{background:rgba(234,120,30,.09);box-shadow:inset 5px 0 0 rgba(234,120,30,.85)}.bcmp tr.bbig td,.bcmp tr.bbig th{background:transparent!important}.bcmp tr.bbig>td,.bcmp tr.bbig>th{padding-left:10px!important}
tr.bflash th{animation:bfl 1.6s ease}@keyframes bfl{0%,60%{background:rgba(226,190,75,.45)}100%{background:transparent}}

/* what needs attention in a record, and the fields to fix */
.needbox{border:2px solid #C2410C;background:rgba(234,120,30,.10);border-radius:var(--r-card);padding:.7rem .9rem}
.needbox ul{margin:.3rem 0 0;padding-left:1.1rem}.needbox li{margin:.15rem 0}
.needfix input,.needfix select,.needfix textarea{border:2px solid #C2410C!important;box-shadow:0 0 0 3px rgba(234,120,30,.18)}
.needtag{display:inline-block;margin-left:.35rem;padding:0 .45rem;border-radius:var(--r-pill);background:#C2410C;color:#fff;font-size:.75rem;font-weight:800}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .needbox{border-color:#FB923C;background:rgba(251,146,60,.12)}:root:not([data-theme="light"]) .needfix input,:root:not([data-theme="light"]) .needfix select{border-color:#FB923C!important}}
:root[data-theme="dark"] .needbox{border-color:#FB923C;background:rgba(251,146,60,.12)}

/* easy-read search: pinned at the top, exact words highlighted */
.rdfind{position:sticky;top:0;z-index:2;background:var(--surface);box-shadow:0 6px 8px -6px rgba(0,0,0,.25);padding:.4rem 0 .5rem;margin:-.4rem 0 .4rem;display:grid;gap:.4rem}
.rdfind input{width:100%;min-height:48px;box-sizing:border-box}
.rdnav{display:grid;grid-template-columns:1fr auto 1fr;gap:.4rem;align-items:stretch}.rdnav .btn{min-height:48px;white-space:nowrap;padding:0 .5rem;font-size:.92rem;justify-content:center}
#rdcount{align-self:center}
#rdcount{font-weight:700;font-size:.9rem;text-align:center;min-width:5.5rem}
mark.rdmark{background:#FDE047;color:#111827;border-radius:3px;padding:0 1px}
mark.rdmark.cur{background:#FB923C;color:#111827;outline:3px solid #C2410C;outline-offset:1px}

/* calendar header: month centered between round arrows; Today and Add side by side */
.calhead{display:grid;gap:.6rem;margin:.4rem 0 .7rem}
.calmonth{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:.4rem}
.caltitle{margin:0;text-align:center;font:700 clamp(1.15rem,5.2vw,1.5rem)/1.2 var(--head);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calarrow{width:52px;height:52px;border-radius:50%;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font-size:1.6rem;font-weight:700;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0 0 3px}
.calarrow:hover{background:var(--bg)}
.calacts{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.calacts.one{grid-template-columns:1fr}
.calacts .btn{min-height:48px;justify-content:center;white-space:nowrap;margin:0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .calarrow{background:#E2BE4B;border-color:#E2BE4B;color:#13294B}}
:root[data-theme="dark"] .calarrow{background:#E2BE4B;border-color:#E2BE4B;color:#13294B}

/* fit at any text size: words break only when they truly can't fit; layouts adapt instead */
.wkday .wkd{font-size:min(.78rem,3.1vw);letter-spacing:0;white-space:nowrap}
.wkday .wkn{font-size:min(1.05rem,4.4vw);width:min(1.9rem,7.6vw);height:min(1.9rem,7.6vw)}
.morelist{grid-template-columns:repeat(auto-fill,minmax(min(100%,10.5rem),1fr))}
.morelist button{min-width:0}.morelist button b,.morelist button span:not(.cnt){white-space:normal;overflow:visible;text-overflow:clip;min-width:0}
/* On a computer the same screens were sprawling: the menu fell into four or five narrow columns
   that left a ragged gap at the end of every group, and the single full-width buttons stretched
   into slabs. Wider tiles give three tidy columns at a typical laptop width, which is close to the
   phone's proportions, and the lone buttons stop running the whole way across. The phone keeps its
   own two-column rule — this only applies once the sidebar layout takes over. */
/* The two Home columns. display:contents means the wrappers have no layout of their own until the
   window is wide enough to use them, so every narrower screen renders exactly as it did before. */
.homecols,.hc-main,.hc-side{display:contents}
@media (min-width:1200px){
  /* Only the screens whose content is already a grid get the extra width. A list of issues or a
     page of prose does not improve by being 1400px wide — that was the sprawl — but a two-column
     Home, a wall of menu tiles and a month calendar all have something to do with the room. */
  body[data-screen="home"] main,body[data-screen="more"] main,body[data-screen="calendar"] main{max-width:1360px}
  /* A list screen on a monitor was 900px of content and up to 780px of nothing beside it, with each
     record a near-full-width bar holding a title, three short facts and a chevron. The record is the
     same record; on a wide screen it fits on one line. Title left, status in the middle, the facts
     right-aligned — a table, built from the cards that are already there, so the swipe actions, the
     tints and the phone layout are all untouched. Placing each part by column rather than by source
     order keeps issues and every other module in the same shape, since the two build their cards in
     a different order. */
  main:has(.list){max-width:1360px}
  .list .item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:1.4rem;padding:.7rem 1.1rem}
  .list .item>.t{grid-column:1;min-width:0}
  .list .item>.flags{grid-column:2;margin:0;flex-wrap:nowrap;justify-content:flex-end}
  .list .item>.meta{grid-column:3;margin:0;flex-wrap:nowrap;justify-content:flex-end;white-space:nowrap;text-align:right}
  .homecols{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);column-gap:1.4rem;align-items:start}
  .hc-main,.hc-side{display:block;min-width:0}
  /* The right column is a sidebar, so its panels stop stretching their contents across a wide row. */
  .hc-side .cgrid{grid-template-columns:1fr 1fr}
  .hc-side .homefoot{grid-template-columns:1fr}
}

@media (min-width:920px){
  /* The computer view was the phone's content stretched to 1100px: menu tiles in four or five
     narrow columns with a ragged gap at the end of each group, single buttons pulled into slabs,
     and issue rows so wide the title and its details sat at opposite ends of the screen. Capping
     the column is one change instead of a per-screen patch, and it is what makes the two feel like
     the same product. 900px is also a sane measure for reading — long lines are hard to track back
     from, and that is worse, not better, for the eyes this app is built for. */
  main{max-width:900px}
  .morelist{grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}
  .btn.hsup2{max-width:24rem}
}
@media (max-width:699px){.qgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.qa{min-width:0}.qa b{font-size:min(1.02rem,4.6vw)}.qa small{font-size:min(.85rem,3.7vw)}
 .ctpanel .btn{font-size:min(1rem,4.1vw);min-width:0}.tile span{font-size:min(.8rem,3.4vw)}}
.hcard b,.hcard small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

/* iPhone: keep the date and time visible inside their fields */
input[type="date"]::-webkit-date-and-time-value,input[type="time"]::-webkit-date-and-time-value{min-height:1.5em;display:block;color:inherit}
#dlg [data-caldate]:last-child:nth-child(odd){grid-column:1/-1}
.calcell.calflash{animation:calfl 1.6s ease}@keyframes calfl{0%,60%{box-shadow:inset 0 0 0 3px #E2BE4B}100%{box-shadow:none}}
dialog>.toast{top:calc(env(safe-area-inset-top,0px) + 1rem);bottom:auto;max-width:min(90vw,26rem);text-align:center;z-index:5;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.docstop{margin:0 0 1rem;display:grid;gap:.7rem}.docset summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.libnote{border-left:4px solid var(--line);padding-left:.7rem}

/* even button groups everywhere */
.hcats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.hcats{grid-auto-rows:1fr}.hcats .chipbtn{height:100%;width:100%;justify-content:center;text-align:center;white-space:normal;margin:0;min-height:48px}
@media (min-width:700px){.hcats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.hacts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%}
.hacts>*{width:100%;margin:0!important;justify-content:center;text-align:center;min-height:48px}
.hacts>*{grid-column:auto!important}.hacts>:first-child:nth-last-child(odd){grid-column:1/-1!important}
.hacts>:only-child{grid-column:1/-1!important}
.hacts>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%}
.hacts>div>*{width:100%;margin:0!important;justify-content:center;text-align:center;min-height:48px}
.hacts>div>*{grid-column:auto!important}.hacts>div>:first-child:nth-last-child(odd),.hacts>div>:only-child{grid-column:1/-1!important}
.evgrid{display:grid;gap:.55rem;margin:.4rem 0 .9rem}
.evgrid>.btn{width:100%;justify-content:center;min-height:48px;margin:0}
.yrseg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:.5rem}
.yrseg .btn{width:100%;justify-content:center;min-height:48px;margin:0}
.daynav{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:.5rem;align-items:center}
.daynav .btn{min-height:48px;margin:0;font-size:1.3rem;justify-content:center}
.daynav input{width:100%;min-width:0}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.pair.one{grid-template-columns:1fr}
.pair .btn{width:100%;justify-content:center;min-height:48px;margin:0}
.cswatches{display:grid!important;grid-template-columns:repeat(5,48px);justify-content:space-between;gap:.4rem}.cswatches label{width:48px;height:48px;display:flex!important;align-items:center;justify-content:center}
@media (max-width:699px){.hcats .chipbtn,.hacts>*,.hacts>div>*,.pair .btn,.yrseg .btn{font-size:min(1rem,4.1vw)!important;padding-left:.45rem!important;padding-right:.45rem!important;overflow-wrap:normal;word-break:normal;hyphens:manual}}

/* selected buttons: a small check badge on the corner, so selecting never changes a button's size */
.qrkind,.chipbtn,.prio label,label.btn{position:relative}
.qrkind[aria-pressed="true"]::before,.chipbtn[aria-pressed="true"]::before,.prio label.on::before,label.btn.picked::before{content:"✓";position:absolute;top:-7px;left:-7px;width:22px;height:22px;border-radius:50%;background:#13294B;color:#fff;font:800 13px/22px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff;pointer-events:none;z-index:1}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .qrkind[aria-pressed="true"]::before,:root:not([data-theme="light"]) .chipbtn[aria-pressed="true"]::before,:root:not([data-theme="light"]) .prio label.on::before,:root:not([data-theme="light"]) label.btn.picked::before{background:#E2BE4B;color:#13294B;box-shadow:0 0 0 2px #0B1424}}
:root[data-theme="dark"] .qrkind[aria-pressed="true"]::before,:root[data-theme="dark"] .chipbtn[aria-pressed="true"]::before,:root[data-theme="dark"] .prio label.on::before,:root[data-theme="dark"] label.btn.picked::before{background:#E2BE4B;color:#13294B;box-shadow:0 0 0 2px #0B1424}
.btn.btn2{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;line-height:1.25;padding-top:.6rem;padding-bottom:.6rem}.btn.btn2>span,.btn.btn2>small{display:block}
.btn.btn2 small{font-weight:600;font-size:.8rem;opacity:.85;white-space:normal}
@media (max-width:430px){.qrspots .chipbtn{font-size:min(1rem,3.9vw)!important;padding-left:.3rem!important;padding-right:.3rem!important;overflow-wrap:normal;word-break:normal}}
.dayrow{display:grid;gap:.4rem;margin-top:.35rem}.dayrow.d5{grid-template-columns:repeat(5,minmax(0,1fr))}.dayrow.d2{grid-template-columns:repeat(2,minmax(0,1fr))}
.daychk{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-height:56px;border:1px solid var(--line);border-radius:var(--r-card);padding:.35rem .2rem;color:var(--text);cursor:pointer;font-weight:600;font-size:min(1rem,3.9vw)}
.daychk input{width:22px;height:22px;margin:0;accent-color:var(--gold)}
.daychk:has(input:checked){border-color:var(--gold);background:color-mix(in srgb,var(--gold) 14%,transparent)}
.dayrow.d2 .daychk{flex-direction:row;gap:.5rem}
.acctbtns{display:grid;gap:.5rem}.acctbtns .btn{width:100%;justify-content:flex-start;min-height:52px;text-align:left}
.btn.danger-ghost{background:transparent!important;border:2px solid #B42318!important;color:#B42318!important;justify-content:center!important;font-weight:700}
.btn.danger-solid{background:#B42318!important;border-color:#B42318!important;color:#fff!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .btn.danger-ghost{border-color:#F97066!important;color:#FDA29B!important}}
:root[data-theme="dark"] .btn.danger-ghost{border-color:#F97066!important;color:#FDA29B!important}
html.kb-open .bottom{display:none!important}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Reserves at a glance */
.rsv-say{font-size:1.02rem;line-height:1.5;margin:.2rem 0 1rem}
.rsv-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.7rem}
/* Same bug as the rows below: white and near-white tiles with hardcoded dark label text, so in dark
   mode the big number — the one thing the tile exists to show — was theme-light on white. */
.rsv-tile{border:1px solid var(--line);border-radius:var(--r-card);padding:.8rem .9rem;background:var(--surface);color:var(--text)}
.rsv-tile.rsv-green{border-color:var(--green);background:var(--green-soft)}
.rsv-tile.rsv-amber{border-color:var(--amber);background:var(--amber-soft)}
.rsv-tile.rsv-red{border-color:var(--red);background:var(--red-soft)}
.rsv-tile.rsv-gray{border-color:var(--line);background:var(--bg)}
.rsv-k{font-size:.8rem;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.rsv-n{font-family:Sora,system-ui,sans-serif;font-weight:700;font-size:2.4rem;line-height:1.1;margin:.2rem 0;color:var(--ink)}
.rsv-n span{font-size:1.1rem;margin-left:.1rem}
.rsv-n2{font-family:Sora,system-ui,sans-serif;font-weight:700;font-size:1.5rem;line-height:1.2;margin:.25rem 0;color:var(--ink)}
.rsv-l{font-size:.88rem;color:var(--muted);line-height:1.35}
.rsv-time{display:flex;flex-direction:column;gap:.45rem}
.rsv-more{align-self:flex-start;margin-top:.2rem}
/* These rows used to hardcode a near-white background and a dark-red or dark-green edge. In dark
   mode the text colour still came from the theme, so pale text sat on a white card: the year and
   the component name were invisible and only the one line with its own hardcoded colour could be
   read. Every colour here is now a theme token, so both themes get a readable pairing. */
.rsv-row{display:flex;gap:.7rem;align-items:flex-start;border-left:4px solid var(--green);background:var(--green-soft);color:var(--text);border-radius:0 var(--r-card) var(--r-card) 0;padding:.55rem .7rem}
.rsv-row.rsv-late{border-left-color:var(--red);background:var(--red-soft)}
.rsv-yr{font-weight:700;min-width:3.3rem;color:var(--ink)}
.rsv-w{flex:1;display:flex;flex-direction:column}
.rsv-w b{color:var(--ink)}
.rsv-w small{color:var(--muted)}
.rsv-amt{font-weight:600;white-space:nowrap}
@media(max-width:600px){.rsv-amt{display:none}}

.calm-list{margin:.6rem 0 0;padding-left:1.1rem;color:#2f6b45;font-size:.93rem}
.calm-list li{margin:.18rem 0}
