/* OUTFISH's one shell (#788 U-3; Michael, 2026-11-19: "Every angler page … renders inside the same shell"): the left rail at
   1024px and wider, the top bar over each page, and the phone's tab bar — the app page (web/index.html) and the Library, Fish ID
   and Bug ID pages (web/species.html, web/fieldguide.html) all link this one sheet and carry the same nav
   (tests/shell_everywhere.mjs holds them to each other). */
/* A page of its own (body.solo: the Library's, Fish ID's and Bug ID's) draws the header the app page draws with its own rules */
body.solo #wordmark span{color:var(--copper-bright)}
body.solo #siteHeader .brandmark{text-decoration:none;color:var(--bone);font-weight:700;letter-spacing:.02em;line-height:1}
[data-session] body.solo #siteHeader #authSlot{display:none}
@media (max-width:1023.98px){
  body.solo #siteHeader{position:sticky;top:0;z-index:10;background:var(--header);border-bottom:1px solid var(--line);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  body.solo #siteHeader .hdr{max-width:72rem;margin:0 auto;padding:.7rem 1rem;display:flex;align-items:center;gap:.75rem 1rem;flex-wrap:wrap}
  body.solo #siteHeader .brandmark{font-weight:700;letter-spacing:.02em;line-height:1;text-decoration:none;color:var(--bone)}
  body.solo #wordmark{font-size:1.6rem;line-height:1}
  body.solo #wordmark span{color:var(--copper-bright)}
  body.solo #siteHeader .topnav{margin-left:auto;display:flex;gap:.25rem;flex-wrap:wrap;align-items:center}
  body.solo #siteHeader #navAngler{display:flex;gap:.25rem;flex-wrap:wrap;align-items:center}
  body.solo #siteHeader .navbtn{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;padding:.5rem 1.05rem;border-radius:999px;
    border:1px solid transparent;color:var(--dim);text-decoration:none;white-space:nowrap}
  body.solo #siteHeader .navbtn:hover{color:var(--bone);border-color:var(--line)}
  body.solo #siteHeader .navbtn.active{color:var(--bone);border-color:var(--copper)}
  body.solo #siteHeader #authSlot{display:flex;align-items:center}
}
@media (max-width:900px){
  body.solo #siteHeader .hdr{position:relative;padding:.6rem 1rem .35rem;gap:.35rem .75rem}
  body.solo #wordmark{font-size:1.5rem}
  body.solo #siteHeader .topnav{order:2;width:100%;margin-left:0;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:.1rem;
    padding:.1rem 3rem .15rem 0;mask-image:linear-gradient(to right,#000 88%,transparent);-webkit-mask-image:linear-gradient(to right,#000 88%,transparent)}
  body.solo #siteHeader .topnav::-webkit-scrollbar{display:none}
  body.solo #siteHeader #navAngler{flex-wrap:nowrap}
  body.solo #siteHeader .navbtn{padding:.42rem .8rem;font-size:.68rem;letter-spacing:.12em}
  body.solo #siteHeader #authSlot{position:absolute;right:1rem;top:.5rem}
}
#siteHeader a.navbtn,#tabBar a{text-decoration:none}
/* ── R-1b: the desktop shell (#788 R-1; Michael approved the Office-style restyle 2026-11-19) ──────────────────────
   At 1024px and wider the header is a 232px left rail in the Office's nav style (an icon, the label, a count, a copper 2px
   inset bar on the page shown) and each page opens under a sticky 56px top bar (its title, how fresh the board is, ⌘K).
   The same header, restyled: below 1024px nothing here applies and the header is as it was. */
#topBar{display:none}
@media (min-width:1024px){
  body{padding-left:232px}
  #siteHeader{position:fixed;left:0;top:0;bottom:0;width:232px;border-bottom:0;border-right:1px solid var(--line);background:var(--bg);
    backdrop-filter:none;-webkit-backdrop-filter:none;overflow-y:auto;overscroll-behavior:contain;z-index:30}
  #siteHeader .hdr{display:flex;max-width:none;margin:0;min-height:100%;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;padding:18px 12px 14px}
  #siteHeader .brandmark{align-self:flex-start;position:relative;padding:4px 10px 18px}
  #siteHeader #wordmark{font-size:1.45rem!important}
  #siteHeader .brandmark .betapill{top:0;right:-1.6rem}
  #siteHeader .topnav{margin:0;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px}
  #siteHeader #navAngler,#siteHeader #navOutfitter{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px}
  #siteHeader .navbtn{display:flex;align-items:center;gap:10px;min-height:36px;padding:8px 10px;border-radius:8px;border:0;font-size:.86rem;
    letter-spacing:0;text-transform:none;font-weight:600;color:var(--dim);box-shadow:none;background:transparent;white-space:nowrap}
  #siteHeader .navbtn[data-nav]::before{content:"";width:16px;height:16px;flex:none;background:currentColor;
    -webkit-mask:var(--i) center/16px no-repeat;mask:var(--i) center/16px no-repeat}
  #siteHeader .navbtn[data-count]::after{content:attr(data-count);margin-left:auto;font-size:.72rem;font-weight:700;color:var(--dim)}
  #siteHeader .navbtn:hover{background:var(--card);color:var(--bone)}
  #siteHeader .navbtn.active{background:var(--card);color:var(--bone);box-shadow:inset 2px 0 0 var(--copper)}
  #siteHeader .navbtn.active::before{background:var(--copper-bright)}   /* V-1: the section's icon copper when shown, --dim otherwise */
  #siteHeader .nav-star{display:none}
  /* U-4 (#788): the rail grouped — Today, Plan, Learn — each group under its small-caps kicker */
  #siteHeader .nav-group{display:block;font-size:.62rem;color:var(--dim);padding:14px 10px 4px}
  #siteHeader .nav-group:first-child{padding-top:2px}
  #siteHeader .of-owner>.navbtn{width:100%}
  #siteHeader [id^="ofmenu_"]{left:100%!important;top:0!important;margin-left:6px}
  #siteHeader #modeToggle{margin:10px 0 0!important}
  #siteHeader .waiting-badge:not(.hidden){display:flex;justify-content:space-between;margin-top:14px;padding:8px 10px;border-radius:8px;font-size:.62rem;box-shadow:none}
  #siteHeader #authSlot{position:static;margin-top:auto;padding:12px 10px 0;border-top:1px solid var(--line)}
  #siteHeader #avatarMenu{position:fixed!important;left:12px!important;right:auto!important;top:auto!important;bottom:64px}
  #topBar{display:flex;align-items:center;gap:12px;height:56px;padding:0 28px;position:sticky;top:0;z-index:20;
    background:var(--bg);border-bottom:1px solid var(--line)}
  #topBar h1,#topBar .top-title{font-size:1.06rem;font-weight:700;margin:0;letter-spacing:.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  #topFresh{font-size:.78rem;color:var(--dim);white-space:nowrap}
  #topSearch{margin-left:auto;display:flex;align-items:center;gap:8px;width:340px;max-width:40vw;height:34px;border:1px solid var(--line);
    border-radius:8px;padding:0 10px;color:var(--dim);background:var(--card);font:inherit;font-size:.82rem;cursor:pointer;text-align:left}
  #topSearch:hover{color:var(--bone)}
  #topSearch::before{content:"";width:15px;height:15px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center/15px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center/15px no-repeat}
  #topSearch kbd{margin-left:auto;font-family:inherit;font-size:.7rem;border:1px solid var(--line);border-radius:5px;padding:0 5px}
  #siteFooter{max-width:72rem}
}
/* R-1c (#788): on a phone, the sections are a tab bar at the foot of the screen (V-2: Waters · Briefings · Trips · Gear · Library, as the app's); the header keeps the wordmark, Waiting on you and the avatar. body.has-tabbar is set before first paint for a
   signed-in browser (the fi_auth hint) and confirmed once the profile says which nav is shown. */
#tabBar{display:none}
@media (max-width:760px){
  body.has-tabbar{padding-bottom:calc(62px + env(safe-area-inset-bottom) + 4.5rem)!important}   /* the bar, and room for the Guide's button over it (V-2), so the last card scrolls clear */
  body.has-tabbar.on-map{padding-bottom:calc(62px + env(safe-area-inset-bottom))!important}
  body.has-tabbar #tabBar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;height:calc(62px + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--line);z-index:45}
  #tabBar :is(button,a){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:44px;background:none;border:0;
    padding:0;font:700 .66rem var(--font);letter-spacing:.01em;color:var(--dim);cursor:pointer;-webkit-tap-highlight-color:transparent}
  #tabBar :is(button,a)::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--i) center/22px no-repeat;mask:var(--i) center/22px no-repeat}
  #tabBar :is(button,a)[aria-current="page"]{color:var(--copper-bright)}
  #tabBar :is(button,a):focus-visible{outline:2px solid var(--copper-bright);outline-offset:-4px;border-radius:8px}
  body.has-tabbar #siteHeader .topnav{display:none}
}
/* each section's drawing, once: the rail's item and the phone's tab draw the same one (--i, a mask in currentColor) */
[data-nav="waters"],[data-tab="waters"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7c2.2 0 2.3-1.8 4.5-1.8S9.8 7 12 7s2.3-1.8 4.5-1.8S18.8 7 21 7'/%3E%3Cpath d='M3 12.5c2.2 0 2.3-1.8 4.5-1.8S9.8 12.5 12 12.5s2.3-1.8 4.5-1.8S18.8 12.5 21 12.5'/%3E%3Cpath d='M3 18c2.2 0 2.3-1.8 4.5-1.8S9.8 18 12 18s2.3-1.8 4.5-1.8S18.8 18 21 18'/%3E%3C/svg%3E")}
[data-nav="map"],[data-tab="map"],.wmap-btn{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4.5 3.5 6.5v13l5.5-2 6 2 5.5-2v-13l-5.5 2z'/%3E%3Cpath d='M9 4.5v13M15 6.5v13'/%3E%3C/svg%3E")}
[data-nav="call"],[data-tab="call"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18h18'/%3E%3Cpath d='M7 18a5 5 0 0 1 10 0'/%3E%3Cpath d='M12 5.5v3M5.6 9.6l2 2M18.4 9.6l-2 2'/%3E%3Cpath d='M9 21h6'/%3E%3C/svg%3E")}
[data-nav="trips"],[data-tab="trips"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 17.5 5'/%3E%3Cpath d='M17.5 5c1.6 2.6 2.2 6 1.4 9.5'/%3E%3Cpath d='M18.9 14.5c.5 1.3-.2 2.5-1.5 2.5'/%3E%3Ccircle cx='7.6' cy='16' r='1.6'/%3E%3C/svg%3E")}
[data-nav="gear"],[data-tab="gear"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.5h14l-1.1 11.5H6.1z'/%3E%3Cpath d='M9 8.5V7a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E")}
[data-nav="stays"],[data-tab="stays"],.stays-row-i{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M16 7.3V4.5h2.2v4.6'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E")}
[data-nav="kb"],[data-tab="kb"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 4.5h3.5v15H4.5zM10 4.5h3.5v15H10z'/%3E%3Cpath d='m15.6 5.3 3.3-.9 3.1 14.6-3.3.9z'/%3E%3C/svg%3E")}
[data-nav="guide"],[data-tab="guide"],#guideFab .fab-i{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14a1.5 1.5 0 0 1 1.5 1.5v8.5a1.5 1.5 0 0 1-1.5 1.5h-8l-4.5 3.5v-3.5H5a1.5 1.5 0 0 1-1.5-1.5V6.5A1.5 1.5 0 0 1 5 5z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E")}
/* R-C (#788; Michael, 2026-11-19: "on a phone, signed out: the old all-caps top menu runs off the screen ('GEA…')"): on the Library's own
   pages a visitor not signed in keeps the wordmark and Sign in, not the signed-in sections, none of which open without an account —
   never a signed-in browser (an outfitter's console, view-as), whose sections are its only way around */
@media (max-width:760px){html:not([data-session]) body.solo:not(.has-tabbar) #siteHeader .topnav{display:none}}
/* the rail's group kickers show only in the rail (U-4) */
.nav-group{display:none}
/* V-2 (#788): on a phone the Map is a button in the Waters header (the rail and the wider header carry it in the nav) */
.wmap-btn{display:none}
@media (max-width:760px){body.has-tabbar #regionTabs .wmap-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid var(--copper);
  border-radius:999px;color:var(--copper-bright);background:none;font-weight:600}
  body.has-tabbar #regionTabs .wmap-btn::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--i) center/16px no-repeat;mask:var(--i) center/16px no-repeat}}
/* V-2: Where to stay as Trips' first row, on a phone only */
.stays-row{display:none}
@media (max-width:760px){body.has-tabbar .stays-row{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;font-weight:600;color:var(--bone);text-decoration:none}
  .stays-row-i{width:20px;height:20px;flex:none;background:var(--copper-bright);-webkit-mask:var(--i) center/20px no-repeat;mask:var(--i) center/20px no-repeat}}
/* a briefing line's icon (#788 R-A): its section's drawing as a mask in the line's colour — never the model's emoji */
.bsec{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:var(--i) center/18px no-repeat;mask:var(--i) center/18px no-repeat}
/* briefing-icons:start (tests/icons.mjs --write; #788 R-A) */
.bsec[data-sec="header"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E")}
.bsec[data-sec="read"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 18h5M10.5 21h3'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.5.4.6.9.6 1.4V16h6v-.8c0-.5.2-1 .6-1.4A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")}
.bsec[data-sec="where"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0C18.5 15.4 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E")}
.bsec[data-sec="directions"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20v-5a5 5 0 0 1 5-5h9'/%3E%3Cpath d='M15.5 6.5 19 10l-3.5 3.5'/%3E%3C/svg%3E")}
.bsec[data-sec="window"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E")}
.bsec[data-sec="date"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E")}
.bsec[data-sec="drive"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16v-4.5L7 7h10l2 4.5V16'/%3E%3Cpath d='M4 16h16'/%3E%3Cpath d='M6.5 16v2.5M17.5 16v2.5'/%3E%3Cpath d='M5 11.5h14'/%3E%3C/svg%3E")}
.bsec[data-sec="stay"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M16 7.3V4.5h2.2v4.6'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E")}
.bsec[data-sec="target"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12c2.6-3.4 6.2-4.9 9.6-4.2 2.2.5 4 2 5.4 4.2-1.4 2.2-3.2 3.7-5.4 4.2-3.4.7-7-.8-9.6-4.2z'/%3E%3Cpath d='M5.5 12 3 8.5M5.5 12 3 15.5'/%3E%3Ccircle cx='16' cy='11.2' r='.6'/%3E%3C/svg%3E")}
.bsec[data-sec="water"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5s6 6.4 6 10.5a6 6 0 0 1-12 0c0-4.1 6-10.5 6-10.5z'/%3E%3C/svg%3E")}
.bsec[data-sec="sky"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='3'/%3E%3Cpath d='M9 3v1.5M3 9h1.5M4.8 4.8l1 1M13.2 4.8l-1 1'/%3E%3Cpath d='M8.5 19h8.5a3.5 3.5 0 0 0 0-7 4.5 4.5 0 0 0-8.4 1.6A2.7 2.7 0 0 0 8.5 19z'/%3E%3C/svg%3E")}
.bsec[data-sec="dry_fly"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 18.5c4.2-.6 8-3 10.5-7'/%3E%3Cpath d='M11 13.5 8.5 6M13.5 11 15.5 4.5'/%3E%3Cpath d='M15 11.5l4.5 1'/%3E%3C/svg%3E")}
.bsec[data-sec="rig"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15' cy='4.5' r='1.5'/%3E%3Cpath d='M15 6v8a4.5 4.5 0 0 1-9 0v-2.5l2.5 2'/%3E%3C/svg%3E")}
.bsec[data-sec="quiver"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 17.5 5'/%3E%3Cpath d='M17.5 5c1.6 2.6 2.2 6 1.4 9.5'/%3E%3Cpath d='M18.9 14.5c.5 1.3-.2 2.5-1.5 2.5'/%3E%3Ccircle cx='7.6' cy='16' r='1.6'/%3E%3C/svg%3E")}
.bsec[data-sec="intel"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5c-2-1.5-5-2-8-1.5v13c3-.5 6 0 8 1.5 2-1.5 5-2 8-1.5V5c-3-.5-6 0-8 1.5z'/%3E%3Cpath d='M12 6.5v13'/%3E%3C/svg%3E")}
.bsec[data-sec="watch"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 21 19.5H3z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.1'/%3E%3C/svg%3E")}
.bsec[data-sec="off_water"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.3 3h7.4L21 8.3v7.4L15.7 21H8.3L3 15.7V8.3z'/%3E%3Cpath d='M8.5 12h7'/%3E%3C/svg%3E")}
.bsec[data-sec="backup"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12a7 7 0 0 1-12.2 4.7M5 12a7 7 0 0 1 12.2-4.7'/%3E%3Cpath d='M17.5 3.5v4h-4M6.5 20.5v-4h4'/%3E%3C/svg%3E")}
.bsec[data-sec="tomorrow"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 0 1 17 0z'/%3E%3Cpath d='M12 12v6.5a2 2 0 0 1-4 0'/%3E%3Cpath d='M12 3.5V2'/%3E%3C/svg%3E")}
.bsec[data-sec="others"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E")}
.bsec[data-sec="verify"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E")}
.bsec[data-sec="generated"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h10M7 20.5h10'/%3E%3Cpath d='M8 3.5c0 4.5 8 4.5 8 8.5s-8 4-8 8.5M16 3.5c0 4.5-8 4.5-8 8.5s8 4 8 8.5'/%3E%3C/svg%3E")}
.bsec[data-sec="line"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3C/svg%3E")}
/* briefing-icons:end */
/* The quote, one token set for every surface that draws one — the board's band, the briefing's, Trips, the Guide's empty state, the
   Library (#788 Q-1; Michael, 2026-11-19: "the board quote band is supposed to be ivory in dark mode"): inverted against the page —
   ivory with its ink on the dark theme, charcoal on the light — from the palette's own bone and quote inks (/tokens.css), so it never
   drifts from them. Aliases here for the other pages, not new colours in shared/tokens.json, whose build also writes the app's Theme.swift; the app's
   page (web/index.html) names the same tokens directly, since every variable it uses is a token (tests/test_tokens.py). */
:root{--quote-bg:var(--bone);--quote-ink:var(--q-ink);--quote-author:var(--q-author);--quote-line:var(--copper)}
/* R-B (#788): the river header's actions — one row of equal 36px buttons in one case; Remove river under ⋯ */
.rp-hacts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.rp-hact,.rp-hacts .rflag{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;min-height:36px;padding:0 12px;box-sizing:border-box;
  border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--copper-bright);font:600 .8rem/1 var(--font);text-transform:none;letter-spacing:0;
  white-space:nowrap;text-decoration:none;cursor:pointer;list-style:none}
.rp-hact:hover,.rp-hacts .rflag:hover{border-color:var(--copper)}
.rp-hact.icon{width:36px;padding:0;font-size:1rem}
.rp-hacts .rflag{color:var(--dim)} .rp-hacts .rflag .text-xs{font-size:.8rem}
.rp-hacts .rflag-gauge > div{margin:0}
.rp-hacts .rflag-gauge:has(.rflag-reason,.rflag-said){flex-basis:100%;order:9}
@media (max-width:639px){.rp-hacts .rflag .text-xs{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.rp-hacts .rflag{width:36px;padding:0}}
.rp-menu{position:relative;margin-left:auto}   /* ⋯ keeps the line's right end, so its menu (anchored right) opens on screen when the row wraps */
.rp-hact,.rp-hacts .rflag{position:relative}
@media (pointer:coarse){.rp-hact::after,.rp-hacts .rflag::after{content:"";position:absolute;inset:-4px}}   /* a 44px touch target around the 36px button */
.rp-menu > summary::-webkit-details-marker{display:none}
.rp-menu-pop{position:absolute;right:0;top:42px;z-index:30;min-width:180px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.rp-menu-pop button{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--bone);font:600 .85rem var(--font);text-align:left;cursor:pointer}
.rp-menu-pop button:hover{background:var(--card2)} .rp-menu-pop button.danger{color:var(--nogo)}
/* R-B (#788): the Guide's floating button draws its own icon (the --i set for [data-nav="guide"] above), never a ★ */
#guideFab .fab-i{display:inline-block;width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:var(--i) center/20px no-repeat;mask:var(--i) center/20px no-repeat}
/* R-C (#788): a camp's filters are one Filters sheet, not a wall of chips */
.stay-fsheet > summary{list-style:none;cursor:pointer;width:max-content}
.stay-fsheet > summary::-webkit-details-marker{display:none}
/* R-C (#788): Trips' rows — a name over where and when, 44px controls, a hairline between */
.trow{display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 0;border-top:1px solid var(--line)}
.trow-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:none;border:0;padding:0;text-align:left;color:var(--bone);cursor:pointer;font:inherit}
div.trow-main{cursor:default}
.trow-title{font-weight:600;font-size:.95rem}
button.trow-main:hover .trow-title{color:var(--copper-bright)}
.trow-sub{font-size:.8rem;color:var(--dim);line-height:1.4;max-width:100%}
.trow-main > .clamp2{align-self:stretch}
.trow-sm{min-height:48px}
.tbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;
 background:transparent;color:var(--copper-bright);font:600 .82rem var(--font);cursor:pointer;list-style:none}
.tbtn:hover{border-color:var(--copper)} .tbtn.icon{padding:0;font-size:1rem}
.tmenu{position:relative;flex:none} .tmenu > summary::-webkit-details-marker{display:none}
.tmenu-pop{position:absolute;right:0;top:48px;z-index:30;min-width:160px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.tmenu-pop button{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--bone);font:600 .85rem var(--font);text-align:left;cursor:pointer}
.tmenu-pop button:hover{background:var(--card2)} .tmenu-pop button.danger{color:var(--nogo)}
/* R-C (#788; Michael, 2026-11-19: "The area pill, ★ and ⋯ take their own row; move them onto the title row"): a board card's title
   row never wraps — the name gives way (an ellipsis), the pill, ★ and ⋯ keep their place beside it */
#cards .rivercard > .flex.items-start{flex-wrap:nowrap}
#cards .rivercard > .flex.items-start > :first-child{flex:1 0 auto;max-width:calc(100% - 5.5rem);min-width:7.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;line-height:44px}
#cards .rivercard .nonav{flex:0 1 auto;min-width:0;flex-wrap:nowrap}   /* the name keeps its width up to all but ★ and ⋯; the pill gives way first */
#cards .rivercard > .flex.items-start:has(.reorder-handle) > :first-child{max-width:calc(100% - 11rem)}   /* Arrange's ↑ ↓ ⠿ too */
#cards .rivercard .nonav > *{flex:none}
#cards .rivercard .nonav > .chip{flex:0 1 auto;min-width:0;max-width:10rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the board's Filters sheet: species, the chart's series and Explore */
.bfilters{position:relative}
.bfilters > summary{list-style:none;cursor:pointer;color:var(--copper-bright);display:inline-flex;align-items:center;min-height:32px}
.bfilters > summary::-webkit-details-marker{display:none}
.bf-pop{position:absolute;left:0;top:36px;z-index:30;display:grid;gap:10px;padding:12px;min-width:260px;max-width:min(92vw,520px);border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 8px 24px rgba(0,0,0,.35)}
@media (max-width:639px){#boardMetaRow{position:relative}.bfilters{position:static}.bf-pop{left:0;right:0;top:calc(100% + 4px);min-width:0;max-width:none}}
.bf-row{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.bf-explore{justify-self:start;min-height:44px;padding:0 12px;border:1px dashed var(--copper);border-radius:10px;background:none;color:var(--copper-bright);font:600 .8rem var(--font);cursor:pointer}
/* R-3 (#788): the river header's stat tiles (moved here from the page, which is held to its size) */
.rp-tiles{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:10px;flex:0 1 520px}
@media (max-width:639px){.rp-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}}
.rp-tile{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:10px 12px;min-width:0}
.rp-tile .rt-k{font-size:.62rem;color:var(--dim)}
.rp-tile .rt-v{font-size:1rem;font-weight:700;line-height:1.25;margin-top:4px;color:var(--bone);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
/* M-3 item 3 (#788): a stat tile that opens its sheet, and the sheet's words */
.rp-tile-btn{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.rp-tile-btn .rt-k,.rp-tile-btn .rt-v{display:block}
.rp-tile-btn:hover{border-color:var(--copper)}
.rp-tile-btn:focus-visible{outline:2px solid var(--copper-bright);outline-offset:2px}
.of-sheet .rts-v{font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums;margin:0 0 .5rem}
.of-sheet .rts-l{margin:.35rem 0 0;font-size:.9rem;color:var(--dim);line-height:1.5}
/* R-A (#788): Briefings' list of past briefings and a briefing's waters (moved here from the page, which is held to its size) */
.blist{padding:0;overflow:hidden}
.blist-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;width:100%;text-align:left;padding:14px 16px;min-height:44px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--bone);cursor:pointer}
.blist-row:last-child{border-bottom:0}
.blist-row:hover .bl-title{color:var(--copper-bright)}
.blist-row > span:not(.bl-go){grid-column:1}
.blist-row .bl-go{grid-column:2;grid-row:1 / span 4;align-self:center;color:var(--copper-bright);font-size:1.2rem}
.blist-row .bl-top{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.blist-row .bl-kind{font-size:.66rem;color:var(--copper-bright)}
.blist-row .bl-date{font-size:.78rem;color:var(--dim)}
.blist-row .bl-title{font-weight:600;font-size:1.02rem}
.blist-row .bl-call{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.blist-row .bl-more{font-size:.75rem;color:var(--dim)}
.blist-row .bl-sum{font-size:.86rem;color:var(--dim);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.blist-more,.blist-back{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;background:none;border:0;color:var(--copper-bright);font-weight:600;cursor:pointer}
.blist-more{margin-top:8px}
/* a briefing's waters (#788 R-A): a row each — the name, the board's band word, › — 44px to tap, a hairline between */
.bwaters{border-top:1px solid var(--line)}
.bwater{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 2px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--bone)}
.bwater:hover .bw-name{color:var(--copper-bright)}
.bwater .bw-name{flex:1 1 auto;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bwater .bw-band{flex:none;font-size:.66rem}
.bwater .bw-go{flex:none;color:var(--copper-bright);font-size:1.1rem}
.call-quote .board-band .bb-text{display:block;-webkit-line-clamp:unset;overflow:visible}   /* a briefing's quote is read whole */
