[hidden] { display: none !important; }   /* hidden always wins over display rules */
:root {
  /* Color sheet Rev2: one color, one meaning. Use these names, not hex. */
  --ink: #1a1a1a; --gray: #4a4a4a; --rule: #d4d4d4; --fill-y: #f2f2f2;          /* text, lines, plain fill */
  --navy: #123c58; --fill-b: #e8f0f7; --navy-line: #b9d3ea;                      /* site, links, selected */
  --green: #2e7d32; --fill-g: #eef4ea; --green-ink: #1b5e20; --green-soft: #9fd3a2; --green-line: #b9d7b5;  /* good, done */
  --red: #b3261e; --red-fill: #fdeaea; --red-ink: #5a1a16; --red-soft: #eb9a94; --red-lamp: #e53935;        /* act now, Alarm */
  --yellow: #d4a400; --yellow-fill: #fff7d6; --yellow-ink: #6b5200; --yellow-soft: #f2cf93; --yellow-lamp: #ffb300;  /* needs attention, Warning */
  --blue: #1e63d6; --blue-fill: #e6eefc;                                         /* Low float only */
  --key: #e0a64a; --key-fill: #fff1d6; --key-ink: #8a4b00;                       /* beyond a member (keys) */
  --orange: #b35c00; --orange-fill: #fbf1e6;                                     /* test, preview */
  --purple: #6a3d9a; --purple-fill: #f1ecf7;                                     /* pond levels */
  --teal: #00838f; --teal-fill: #e0f2f1;                                         /* camera motion, unread */
  font-family: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: var(--navy); text-decoration: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--rule); background: #fff; }   /* scrolls away; the tabs stay */
.brand { display: flex; flex-direction: column; color: var(--ink); }
.brand .name { font-weight: 700; font-size: 18px; }
.brand .by { font-size: 12px; color: var(--gray); }
.viewas { font-size: 12px; color: var(--gray); display: flex; gap: 6px; align-items: center; }
.viewas select { font-size: 14px; padding: 6px; }
.banner { background: var(--orange-fill); color: var(--orange); padding: 8px 16px; font-size: 14px; font-weight: 600; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
.label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray);
  font-weight: 600; margin: 22px 0 10px; }
.search { width: 100%; font-size: 16px; padding: 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--fill-y); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--fill-b); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  color: var(--ink); display: flex; flex-direction: column; }
.tile img { width: 100%; height: 110px; object-fit: cover; background: #ddd; }
.tile .t { padding: 8px 10px 2px; font-weight: 600; font-size: 14px; }
.tile .id { padding: 0 10px 8px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--gray); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--rule); }
.list a.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--ink); min-height: 52px; }
.row img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #eee; flex: none; }
.row .txt { flex: 1; min-width: 0; }
.row .d { font-size: 15px; }
.row .m { font-size: 12px; color: var(--gray); }
.row .chev { color: var(--gray); font-size: 22px; }
.list a.row.comp { border-left: 5px solid var(--comp); padding-left: 10px; }
.comp-red { --comp: var(--red); } .comp-yellow { --comp: var(--yellow); } .comp-green { --comp: var(--green); }
.count { color: var(--gray); font-size: 13px; }
.btn { display: block; text-align: center; padding: 12px; border-radius: 10px; border: 1px solid var(--rule);
  font-weight: 600; margin: 10px 0; color: var(--ink); }
.btn.green { background: var(--fill-g); }
.btn.gray { background: var(--fill-y); color: var(--gray); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--green); }
.fields { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.fields .k { color: var(--gray); }
.files { list-style: none; padding: 0; }
.file { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; margin: 10px 0; display: flex; gap: 12px; }
.file.primary { background: var(--fill-g); }
.file.hidden { opacity: 0.55; }
.file img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; background: #eee; flex: none; }
.file .n { font-size: 14px; word-break: break-all; }
.file .meta { font-size: 12px; color: var(--gray); margin: 4px 0 8px; }
.file .acts a { margin-right: 14px; font-weight: 600; font-size: 14px; }
/* a file's actions as buttons, easy to tap on a phone; the admin ones (hide, delete) on their own line below */
.file .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.file .acts a.fbtn { margin: 0; display: inline-block; padding: 7px 12px; border: 1px solid var(--green-line); background: var(--fill-g); border-radius: 8px; text-decoration: none; color: var(--navy); }
.file .acts.adminacts { margin-top: 4px; font-size: 13px; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--fill-y); color: var(--gray); margin-left: 6px; }
abbr { text-decoration: underline dotted; cursor: help; }
.muted { color: var(--gray); }
.foot { text-align: center; font-size: 12px; color: var(--gray); padding: 24px; }
.nav { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.nav span a { margin-left: 16px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.permalink { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gray); }
.permalink .id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; color: var(--ink); }
.permalink code { background: var(--fill-y); padding: 4px 8px; border-radius: 6px; font-size: 13px; }
.permalink button { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.small { font-size: 13px; }
.etools { display: flex; gap: 10px; flex-wrap: wrap; }
.etools .search { flex: 1; min-width: 220px; }
.etools select { font-size: 15px; padding: 10px; border-radius: 10px; border: 1px solid var(--rule); }
.ebulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--fill-b);
  padding: 10px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.ebulk button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; font-weight: 600; }
.gridwrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; max-height: 75vh; overflow-y: auto; }
main:has(.gridwrap) { max-width: 1400px; }
.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
.grid th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray); padding: 8px 6px; border-bottom: 1px solid var(--gray); z-index: 1; }
.grid td { border-bottom: 1px solid var(--rule); padding: 3px 4px; vertical-align: middle; }
.grid input, .grid select { width: 100%; font: inherit; padding: 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; }
.grid input:focus, .grid select:focus { border-color: var(--navy); background: #fff; outline: none; }
.grid input.wide { min-width: 280px; }
.grid input.date { min-width: 95px; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.grid input.mid { min-width: 150px; }
.grid input.short { min-width: 70px; width: 80px; }
.grid select.cat { min-width: 190px; }
.grid select.guessed { color: var(--orange); font-style: italic; }
.grid .pn { font-family: "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.estatus { font-size: 12px; white-space: nowrap; }
.estatus.ok { color: var(--green); } .estatus.bad { color: var(--red); } .estatus.busy { color: var(--gray); }
#esaved { color: var(--green); min-height: 1.2em; font-weight: 600; }
.ebtn { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--fill-g); font-weight: 600; margin-right: 8px;
  color: var(--navy); -webkit-appearance: none; appearance: none; }   /* iPhone Safari draws a submit button's words white otherwise */
.drop { border: 2px dashed var(--rule); border-radius: 12px; padding: 22px; text-align: center; background: var(--fill-y); }
.drop.over { border-color: var(--navy); background: var(--fill-b); }
.pick { display: inline-block; margin: 0 6px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; cursor: pointer; color: var(--navy); font-weight: 600; }
.group { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.ghead { display: flex; gap: 10px; align-items: baseline; }
.ghead .link { margin-left: auto; background: none; border: none; color: var(--navy); cursor: pointer; }
.gopts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.gopts select, .gopts input { font-size: 14px; padding: 6px; border: 1px solid var(--rule); border-radius: 6px; }
.bar { height: 12px; background: var(--fill-y); border-radius: 6px; overflow: hidden; }
#barfill, #bkfill { height: 100%; width: 0; background: var(--green); transition: width 0.2s; }
.log { font-size: 13px; max-height: 260px; overflow: auto; padding-left: 20px; }
.log .ok { color: var(--ink); } .log .bad { color: var(--red); font-weight: 600; }
.contacts { list-style: none; padding: 0; }
.contact { border-bottom: 1px solid var(--rule); padding: 12px 2px; }
.cname { font-weight: 600; font-size: 16px; }
.cacts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0; }
.cacts a { font-weight: 600; padding: 4px 0; }
.tag.resigned, .tag.deceased { background: var(--fill-y); color: var(--gray); }
.warn { color: var(--orange); }
.okmsg { color: var(--green); font-weight: 600; }
.pform { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 640px; }
.pf { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: start; font-size: 14px; }
.pf span { color: var(--gray); padding-top: 8px; }
.pf input, .pf select, .pf textarea { font: inherit; padding: 8px; border: 1px solid var(--rule); border-radius: 8px; width: 100%; }
.pf em { grid-column: 2; margin-top: -4px; }
.reviewbox { background: var(--fill-y); color: var(--ink); padding: 10px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.reviewbox button { margin-left: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
@media (max-width: 600px) { .pf { grid-template-columns: 1fr; } .pf span { padding-top: 0; } .pf em { grid-column: 1; } }
.bclass { margin: 14px 0; }
.seats { list-style: none; padding: 0; margin: 4px 0; }
.seats li { padding: 6px 2px; border-bottom: 1px solid var(--rule); }
.ballot p { font-size: 15px; }
.grid.terms input, .grid.terms select { width: 100%; min-width: 50px; font: inherit; padding: 4px; }
details summary { cursor: pointer; }
.bigwarn { display: block; background: var(--yellow-fill); color: var(--yellow-ink); border: 2px solid var(--yellow); border-radius: 12px; padding: 14px; margin: 12px 0; font-size: 16px; text-decoration: none; }
.bigwarn .ebtn { margin: 6px 6px 0 0; }
.grid.offs td { padding: 6px 4px; }
.grid.offs select { width: 100%; font: inherit; padding: 6px; }
.tag.rejected { background: var(--fill-y); color: var(--gray); }
.mcount { font-size: 18px; padding: 12px 14px; border-radius: 12px; background: var(--fill-g); color: var(--green); margin: 8px 0 14px; }
.mcount.open { background: var(--yellow-fill); color: var(--yellow-ink); border: 2px solid var(--yellow); }
.mcount span { font-size: 15px; }
.mlist { list-style: none; padding: 0; margin: 4px 0 16px; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.mbtns { display: flex; gap: 6px; }
.ebtn.go { background: var(--fill-g); color: var(--green); }
.ebtn.no { color: var(--orange); }
.ebtn[disabled] { opacity: .45; }
.seg { display: flex; margin: 8px 0 4px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; font: inherit; font-size: 14px; padding: 9px 6px; border: 0; background: #fff; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button.on { background: var(--navy); color: #fff; font-weight: 600; }
.seg > a { flex: 1; font-size: 14px; padding: 9px 6px; background: #fff; color: var(--ink); text-align: center; text-decoration: none; }
.seg > a + a { border-left: 1px solid var(--rule); }
.seg > a.on { background: var(--navy); color: #fff; font-weight: 600; }
.csection { list-style: none; margin: 30px 0 4px; padding: 8px 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sec, var(--gray)); background: var(--sec-tint, var(--fill-y)); border-left: 5px solid var(--sec, var(--rule)); border-radius: 4px; }
.csection:first-child { margin-top: 10px; }
.mnum { display: inline-block; min-width: 26px; color: var(--gray); font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; color: var(--navy); font: inherit; font-size: 12px; letter-spacing: normal; text-transform: none; text-decoration: underline; cursor: pointer; margin-left: 8px; }
.mrow.fixing .ebtn { min-width: 44px; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.pf .suggest { left: 158px; }
@media (max-width: 600px) { .pf .suggest { left: 0; } }
.sg { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 15px; }
.sg.on, .sg:hover { background: var(--fill-b); }
.addedbox { background: var(--fill-g); color: var(--green); border: 2px solid var(--green); border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-size: 15px; }
.addedbox .ebtn { display: inline-block; margin: 8px 8px 0 0; text-decoration: none; }
.pf input[type=checkbox] { width: auto; margin: 0 8px 0 0; vertical-align: middle; }
.pf label.small { padding-top: 6px; }
.signin { max-width: 460px; margin: 10px auto; }
.signin h2 { margin: 6px 0 12px; }
.pf1 { display: block; font-size: 14px; color: var(--gray); margin: 10px 0; }
.pf1 input { display: block; width: 100%; font: inherit; font-size: 20px; padding: 12px; margin-top: 4px; border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); }
.signin button.btn { width: 100%; font-size: 17px; padding: 12px; border: 0; cursor: pointer; }
.devcode { background: var(--fill-y); padding: 10px; border-radius: 8px; }
.qr svg { width: 220px; height: 220px; display: block; margin: 8px 0; }
.account { margin-left: auto; margin-right: 12px; color: var(--gray); }
.secbox { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--fill-g); border: 2px solid var(--green); margin: 8px 0 18px; }
.secbox.open { background: var(--yellow-fill); border-color: var(--yellow); }
.secbox.red { background: var(--red-fill); border-color: var(--red); }
.secbox label .small { display: block; margin-left: 26px; color: var(--gray); }
.secbox input[type=checkbox] { transform: scale(1.3); margin-right: 8px; }
.secbox #smsg { width: 100%; font: inherit; padding: 6px; }
.warnrow td { color: var(--orange); }
.viewas select { max-width: 170px; }
@media (max-width: 600px) { .top .by { display: none; } .viewas select { max-width: 120px; } }
.ptable th.sort { cursor: pointer; user-select: none; white-space: nowrap; }
.ptable th.sort:hover { color: var(--navy); }
.ptable td.c { text-align: center; }
.ptable select.pacc { font: inherit; font-size: 13px; padding: 3px; }
.ptable input[type=checkbox] { transform: scale(1.2); }
.ptable tr.logrow td { background: #f7f7f2; line-height: 1.6; }
.stormtab { background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 18px; font-size: 14px; white-space: nowrap; }
.stormtab.alert { background: var(--red); }
.stormh { margin: 4px 0 10px; }
.nwswarn { background: var(--red-fill); color: var(--red); border: 2px solid var(--red); border-radius: 12px; padding: 12px; margin: 10px 0; font-size: 16px; }
.nwswarn .small, .nwswarn details { color: var(--red-ink); }
.rains { display: flex; gap: 10px; margin: 8px 0; }
.rain { flex: 1; text-align: center; background: var(--fill-b); border-radius: 12px; padding: 10px 4px; color: var(--navy); }
.rv { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.periods { list-style: none; padding: 0; margin: 6px 0 16px; }
.periods li { padding: 8px 2px; border-bottom: 1px solid var(--rule); }
.calls { padding-left: 22px; margin: 6px 0 18px; }
.calls li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.callbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.callbtn { display: inline-block; background: var(--fill-g); color: var(--green); border: 1px solid var(--green); border-radius: 10px; padding: 10px 14px; font-size: 17px; font-weight: 600; text-decoration: none; }
.callbtn span { font-weight: 400; font-size: 13px; color: var(--gray); }
.stormvideo { width: 100%; max-width: 640px; border-radius: 10px; background: #000; }
.stormnotes p { margin: 6px 0; font-size: 16px; }
.ftlist { list-style: none; padding: 0; }
.ftlist > li { padding: 12px 2px; border-bottom: 1px solid var(--rule); }
.fthead { text-decoration: none; color: var(--ink); }
.ftsnip { display: block; margin: 6px 0 0; padding: 8px 10px; background: #f7f7f2; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.45; }
.ftsnip .pg { color: var(--navy); font-weight: 600; font-size: 12px; margin-right: 4px; }
.ftsnip mark { background: var(--fill-b); padding: 0 1px; }
.tag.green { background: var(--fill-g); color: var(--green); }
.rain.bad { background: var(--yellow-fill); color: var(--yellow-ink); }
.xprompt { width: 100%; font: 13px/1.45 ui-monospace, Menlo, monospace; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; margin: 8px 0; }
.xtable td.c { text-align: center; }
.btn.need-yellow, .stormtab.need-yellow { background: var(--yellow-fill); border: 2px solid var(--yellow); color: var(--yellow-ink) !important; }
.btn.need-red { background: var(--red-fill); border: 2px solid var(--red); color: var(--red) !important; }
.stormtab.need-yellow { background: var(--navy); color: #fff !important; border: 2px solid var(--yellow); }
.needn { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 700; background: currentColor; }
.btn.need-yellow .needn { background: var(--yellow); color: #fff; }
.btn.need-red .needn { background: var(--red); color: #fff; }
.needstatus { display: block; font-size: 12px; font-weight: 600; color: var(--gray); margin-top: 2px; }
.stormtab .needn { background: var(--yellow); color: var(--navy); }
.needbox { margin: 8px 0; padding: 8px 12px; background: var(--yellow-fill); border-radius: 10px; font-size: 14px; }
.needbox summary { cursor: pointer; font-weight: 600; }
.needbox ul { margin: 6px 0 2px; padding-left: 18px; }
.need-red-t { color: var(--red); }
/* Tabs (Library, Storm, Contacts, Club, Admin) */
.tabs { display: flex; gap: 0; overflow-x: auto; padding: 0 8px; border-bottom: 1px solid var(--rule); background: #fff; position: sticky; top: 0; z-index: 10; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; padding: 11px 7px 9px; font-weight: 600; font-size: 14px; color: var(--gray); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--navy); }
.tabs a.alert { color: var(--red); }
.tabs a.alert.on { border-bottom-color: var(--red); }
.tabs a.need-yellow .needn { background: var(--yellow); color: #fff; }
.tabs a.need-red .needn { background: var(--red); color: #fff; }
.tabs a.need-red { color: var(--red); }

.needn.nb-red { background: var(--red); color: #fff; letter-spacing: 0; }
.needn.nb-yellow { background: var(--yellow); color: #fff; letter-spacing: 0; }
.tabs .needn { font-size: 11px; min-width: 16px; padding: 0 4px; }
@media (min-width: 700px) { .tabs a { padding: 12px 16px 10px; font-size: 15px; } }
/* Full screen from the Home Screen: keep clear of the notch and the status bar */
@supports (padding: env(safe-area-inset-top)) {
  .top { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
  .tabs { padding-left: calc(8px + env(safe-area-inset-left)); }
}
.fsbtn { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--navy); border: 1px solid var(--rule); border-radius: 14px; padding: 5px 10px; text-decoration: none; white-space: nowrap; }
.fsbtn + .account { margin-left: 8px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modalcard { background: #fff; border-radius: 14px; max-width: 440px; width: 100%; padding: 18px 20px; position: relative; font-size: 16px; line-height: 1.45; }
.modalcard h3 { margin: 0 0 8px; }
.modalcard ol { padding-left: 20px; }
.modalcard li { margin: 6px 0; }
.modalx { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--gray); }
.copyrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; }
.copyrow .moveform { flex-basis: 100%; }
.moveinner { background: #f7f7f2; border-radius: 10px; padding: 10px; margin-top: 6px; }
.serial { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.marks { color: var(--gray); font-style: italic; margin: 2px 0 0; }
.scanfrom select { font: inherit; font-size: 12px; padding: 2px; }
.labels { display: flex; flex-wrap: wrap; gap: 0.15in; }
.label1 { width: 2in; height: 1in; box-sizing: border-box; border: 1px dashed #bbb; padding: 0.08in; display: flex; gap: 0.08in; align-items: center; break-inside: avoid; }
.lqr svg { width: 0.8in; height: 0.8in; display: block; }
.lserial { font: 700 14px ui-monospace, Menlo, monospace; }
.ltitle { font-size: 10px; line-height: 1.2; margin: 2px 0; }
.lsite { font-size: 7px; color: var(--gray); }
@media print {
  .top, .tabs, .banner, .noprint, footer, .foot { display: none !important; }
  .label1 { border-color: #ddd; }
  body { margin: 0.3in; }
}
/* Staging copy: a striped top edge so it is never mistaken for the real library */
body.staging .top { border-top: 6px solid transparent; border-image: repeating-linear-gradient(45deg, var(--gray) 0 12px, var(--rule) 12px 24px) 6; }
body.staging .foot { color: var(--orange); font-weight: 700; }

/* Developer tab: commands to copy */
.codebox { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; }
.codebox pre { flex: 1; margin: 0; padding: 8px 10px; background: var(--fill-y); border-radius: 6px; font-size: 13px;
  white-space: pre-wrap; word-break: break-all; }

/* Storm page: a weather service warning opens its full statement */
.nwslink { color: inherit; text-decoration: none; display: block; }
.nwslink:hover .nwsmore { text-decoration: underline; }
.nwsmore { color: var(--navy); white-space: nowrap; }
.delbtn { color: var(--red); }

/* Item page: all preview frames of a video, or page images of a PDF */
.frames { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; width: 100%; }
.file > div { flex: 1; min-width: 0; }
.file .frames img { width: 100%; height: auto; object-fit: contain; border-radius: 4px; border: 1px solid var(--rule); display: block; background: #000; }
.frames a:hover img { border-color: var(--navy); }
.loopvideo { width: 100%; max-height: 70vh; margin-top: 8px; border-radius: 6px; background: #000; }

/* 4.7: section colors on the contact list (bar on each card, chip in A to Z, band on each book group) */
/* Color sheet Rev2: sections carry no color; the letter (M, AM, AA, HM, O) tells them apart */
.sec-full, .sec-assoc, .sec-appl, .sec-emer, .sec-other { --sec: var(--gray); --sec-tint: var(--fill-y); }
.sec-full { --sec: var(--ink); }
.secl { font-weight: 800; letter-spacing: 0; }
.csection .secl { display: inline-block; min-width: 2.2em; text-align: center; margin-right: 6px; padding: 0 4px; border: 1px solid var(--sec); border-radius: 4px; background: #fff; }
.contact { border-left: 4px solid var(--sec, transparent); padding-left: 10px; }
.contact.inactive { opacity: 0.6; }
.secchip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; color: var(--sec); background: var(--sec-tint);
  border: 1px solid var(--sec); vertical-align: middle; margin-left: 4px; }
.seclegend { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.seclegend .secchip { margin-left: 0; }
@media print { .csection { break-before: auto; break-after: avoid; } .contact { break-inside: avoid; } }
.list a.row.gaprow { background: var(--red-fill); }
.list a.row.gaprow .d { color: var(--red); font-style: italic; }
.thumblink { position: relative; flex: none; display: block; line-height: 0; }
.thumblink:hover img { outline: 2px solid var(--navy); }
.playmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; line-height: 34px;
  text-align: center; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 15px; padding-left: 3px; box-sizing: border-box; }
.uploads { list-style: none; padding: 0; }
.upl { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.upl ul { margin: 6px 0; padding-left: 18px; }
.tag.green { background: var(--fill-g); color: var(--green); }
.tag.warn { background: var(--red-fill); color: var(--red); }

/* Item page: edit the details as a form (phone first) */
.iform { margin: 10px 0 20px; }
.iform .if { display: block; margin: 0 0 14px; }
.iform .if > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.iform input, .iform textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.iform textarea { resize: vertical; line-height: 1.4; }
.iform em { display: block; font-style: normal; margin-top: 3px; }
.catpick { display: flex; flex-wrap: wrap; gap: 8px; }
.catb { font: inherit; font-size: 15px; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.catb.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.ibtns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding: 10px 0; }
.ibtns .ebtn { font-size: 17px; padding: 10px 22px; }

/* Cameras tab */
.camgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.camcard { display: block; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; color: var(--ink); }
.camcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.camnone { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--fill-y); color: var(--gray); }
.camname { padding: 8px 10px; }
.camframes { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.camframes img { width: 100%; border-radius: 4px; display: block; }
/* Admin: storage and cost, always in view */
.storagebar { border: 1px solid var(--rule); border-left: 5px solid var(--navy); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; background: #f7f9fb; }
.storagebar b { font-size: 17px; }
.alertpick { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 6px; padding: 8px; }
/* Developer: tabs, camera status cards, step lists */
.devtabs button { font-size: 13px; padding: 9px 4px; }
.devbadge .needn { margin-left: 2px; }
.camstat { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start; }
.camstat .camstatimg img, .camstat .camnone { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; background: #000; }
.camstat .small > div { margin: 1px 0; }
@media (max-width: 520px) { .camstat { grid-template-columns: 1fr; } .camstat .camstatimg img, .camstat .camnone { width: 100%; } }
ol.steps li { margin: 4px 0; }
ol.steps ul { margin: 4px 0 4px 18px; }
.mcount ul.vacated { margin: 4px 0 0 18px; padding: 0; }
.mcount ul.vacated a { color: inherit; text-decoration: underline; }
/* Cameras: Live, Review, Escalated, and the clip player */
.camtabs { max-width: 520px; }
.seg.mini { display: inline-flex; margin: 0; vertical-align: middle; }
.seg.mini button { flex: none; font-size: 12px; padding: 5px 9px; }
.reviewbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; }
.revgrid { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 640px; }   /* one column, so newest-first reads straight down */
.revcard { display: block; border: 1px solid var(--rule); border-radius: 10px; padding: 6px; color: var(--ink); background: #fff; }
.revcard.dim { opacity: .45; }
.revimg { position: relative; display: block; }
.revimg img, .revimg .camnone { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: flex; background: #000; }
.revimg.sm { width: 96px; flex: none; margin-right: 10px; }
.revflags { position: absolute; top: 4px; left: 4px; right: 4px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.revflags:empty { display: none; }
.motionbar { height: 4px; background: #eee; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.motionbar i { display: block; height: 100%; background: var(--teal); }
.playerwrap { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
.playerwrap video { display: block; width: 100%; max-height: 70vh; background: #000; }
.clipbox { position: absolute; border: 3px solid var(--teal); border-radius: 3px; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.playbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.esclist .row { display: flex; align-items: center; }
#enote, #rnote { width: 100%; max-width: 560px; font: inherit; }
/* cameras with two lenses */
.camduo { display: flex; gap: 2px; background: #000; }
.camduo img { flex: 1; min-width: 0; aspect-ratio: auto; height: auto; max-height: 160px; object-fit: cover; }
.revimg.duo { display: flex; gap: 2px; }
.revimg.duo img, .revimg.duo .camnone { flex: 1; min-width: 0; }
.lensrow { display: flex; gap: 8px; margin-top: 8px; }
.lensbtn { border: 1px solid var(--rule); border-radius: 8px; background: #fff; padding: 4px; width: 40%; max-width: 320px; text-align: left; font: inherit; cursor: pointer; }
.lensbtn video { width: 100%; display: block; background: #000; border-radius: 4px; pointer-events: none; }
.revimg.duo { background: #000; border-radius: 6px; align-items: center; }
.revimg.duo img { aspect-ratio: auto; height: auto; object-fit: contain; }
/* Live: a camera shown by its newest clip */
.camclipcard { display: block; color: var(--ink); }
.camclipwrap { position: relative; background: #000; border-radius: 8px 8px 0 0; overflow: hidden; }
.camclipwrap video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.camclipcard .camname a { margin-left: 8px; }
/* a clip this browser cannot play: say so clearly */
.revimg .camnone { padding: 0 12px; box-sizing: border-box; align-items: center; justify-content: center; text-align: center; color: #f5f5f5; }
.revimg .camnone.camfail { color: #fff; font-weight: 600; font-size: 14px; }
/* Preview as (admins) */
.previewpick select { font: inherit; font-size: 12px; }
.banner.previewing { background: var(--orange); color: #fff; font-weight: 600; }
.banner.previewing a { color: #fff; text-decoration: underline; margin-left: 8px; }
.previewpanel { max-width: 760px; margin: 10px auto; padding: 10px 14px; border: 2px solid var(--orange); border-radius: 10px; background: var(--orange-fill); }
.previewpanel label { margin-right: 10px; }
/* keep each box with its word on a phone */
.previewpanel label { white-space: nowrap; display: inline-block; margin: 2px 10px 2px 0; }
a.ebtn { display: inline-block; text-decoration: none; }

/* the two phone save buttons sit together on their own line */
.savepair { display:flex; flex-wrap:nowrap; gap:8px; margin:6px 0; }
.savepair .ebtn { white-space:nowrap; }

/* To the motion: the jump time on a second line inside the button */
.ebtn.twoline { line-height:1.15; padding-top:4px; padding-bottom:4px; }
.ebtn .jumpat { display:block; font-size:0.8em; font-weight:400; }

/* clip player time bar (the video itself has no on-picture controls) */
.scrubrow { display:flex; align-items:flex-end; gap:8px; margin:6px 0 4px; }
.scrubrow > span.mono, .scrubrow .linkbtn { padding-bottom: 4px; }
.scrubmid { flex:1; min-width:0; display:flex; flex-direction:column; }
#mplot { display:block; width:100%; height:44px; cursor:pointer; }
/* the slider drawn plainly, so its knob (18 px) is the same size everywhere and the plot lines up with it */
.scrubmid input[type=range] { -webkit-appearance:none; appearance:none; width:100%; margin:0; height:22px; background:transparent; }
.scrubmid input[type=range]::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:var(--rule); }
.scrubmid input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; margin-top:-7px; border-radius:50%; background:var(--navy); border:0; }
.scrubmid input[type=range]::-moz-range-track { height:4px; border-radius:2px; background:var(--rule); }
.scrubmid input[type=range]::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:var(--navy); border:0; }
.scrubrow .linkbtn { white-space:nowrap; }
.playerwrap video { cursor:pointer; }

/* Cameras: count of unresolved escalations on the Escalated button, and the pointer line under the tabs */
.camtabs .needn { background: var(--red); color: #fff; margin-left: 4px; }
.camesc { margin: 8px 0; color: var(--red); }
.camesc a { font-weight: 600; }

.markrow { margin: 2px 0 6px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px; }
.markrow .markend { margin-left:auto; white-space:nowrap; }

/* speeds, then sound and full screen, kept together on one line */
.speedrow { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; }
.speedlinks { white-space:nowrap; font-size:0.9em; }

.escdone { background:var(--fill-y); color:var(--gray); }

/* activity log */
.actrow { width:100%; text-align:left; background:none; border:0; padding:6px 0; cursor:pointer; font:inherit; color:inherit; }
.actfull { white-space:pre-wrap; word-break:break-word; background:var(--fill-y); padding:8px; border-radius:6px; max-height:50vh; overflow:auto; }

.pvcat { display:inline-block; margin:2px 10px 2px 0; white-space:nowrap; }

/* Developer > Permissions */
.permguide td { vertical-align: top; }
.permguide th, .permguide td { text-align: left; }
.permguide td.c { text-align: center; }
.permrules li { margin: 4px 0; }
/* the levels as a grid on a wide screen, as one card per category on a phone */
.permcards { display:none; }
.permcard { border:1px solid var(--rule); border-radius:8px; padding:8px 10px; margin:8px 0; }
.permhead { margin-bottom:4px; }
.permyou { float:right; }
.permlv { margin:4px 0; }
.permlv .tag { display:inline-block; min-width:3em; text-align:center; }
@media (max-width: 700px) { .permcards { display:block; } .permwide { display:none; } }

.label .zipbtn { margin-left:10px; text-transform:none; letter-spacing:0; font-size:13px; vertical-align:middle; }

/* Cameras By day: the row of days, and the month calendar */
.daypick { width:100%; }
.dayrow { display:flex; gap:8px; overflow-x:auto; padding:2px 0 6px; -webkit-overflow-scrolling:touch; align-items:stretch; }
.daychip { flex:0 0 auto; border:1px solid var(--rule); border-radius:10px; padding:6px 10px; background:#fff; text-align:left; font:inherit; font-size:13px; line-height:1.3; color:inherit; cursor:pointer; }
.daychip b { display:block; font-size:14px; }
.daychip .esc { color:var(--red); font-weight:600; }
.daychip.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.daychip.on .esc { color:#ffb4ab; }
.dayrow .calbtn { flex:0 0 auto; align-self:center; white-space:nowrap; font-weight:600; }
.camcal { border:1px solid var(--rule); border-radius:12px; padding:8px 10px; margin:4px 0 8px; max-width:420px; }
.camcal .hd { display:flex; justify-content:space-between; align-items:center; font-weight:700; margin-bottom:4px; }
.camcal .hd .linkbtn { font-size:20px; padding:0 8px; text-decoration:none; }
.calgrid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.calgrid .dow { font-size:11px; color:var(--gray); font-weight:600; padding:3px 0; }
.calday { height:44px; border-radius:8px; font-size:15px; color:#bbb; position:relative; padding-top:4px; box-sizing:border-box; border:0; background:none; font-family:inherit; }
button.calday { cursor:pointer; color:var(--ink); }
.calday.has { font-weight:700; background:var(--fill-b); }
.calday .n { display:block; font-size:10px; font-weight:500; color:var(--navy); }
.calday.on { background:var(--navy); color:#fff; }
.calday.on .n { color:#dbe7f3; }
.calday.today { outline:2px solid var(--navy); outline-offset:-2px; }
.camcal .r, .calday .r { position:absolute; top:4px; right:5px; width:7px; height:7px; border-radius:50%; background:var(--red); }
.camcal .r.done { background:#9e9e9e; }
.camcal .r.inl { position:static; display:inline-block; vertical-align:middle; }

/* Sign-in: where the code comes from, so the authenticator step never looks like the email step */
.codesrc { display:flex; gap:12px; align-items:center; border-radius:12px; padding:12px 14px; margin:4px 0 10px; }
.codesrc .ico { font-size:30px; line-height:1; }
.codesrc b { font-size:16px; }
.codesrc.email { background:var(--fill-g); border:1px solid var(--green-line); }
.codesrc.app { background:var(--navy); color:#fff; }
.codesrc.app .small { color:#dbe7f3; }
.totpstep .okline { color:var(--green); font-weight:600; margin:4px 0; }
.totpstep input#totp { border:2px solid var(--navy); letter-spacing:0.3em; font-size:22px; }
.signin button.navybtn { background:var(--navy); color:#fff; }
.totpstep input#totp::placeholder { letter-spacing:normal; font-size:16px; }

/* Contact list: current Directors in bold, said once at the top */
.contact .cname { font-weight: 500; }
.contact .cname.dirname, .dirnote .dirname { font-weight: 800; }
.dirtag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--navy); border-radius: 4px; padding: 0 4px; vertical-align: middle; }
.dirnote { margin: 4px 0 10px; }

/* Level colours, wherever levels are chosen or shown: none plain, read green, edit blue, full red */
select.lvsel { min-width: 5.2em; font-weight: 600; border-radius: 6px; }
/* Color sheet Rev2: access levels carry no color; more access is darker gray */
select.lvsel.lv-read, .lvtag.lv-read { background: #fff; color: var(--ink); border: 1px solid var(--gray); }
select.lvsel.lv-edit, .lvtag.lv-edit { background: #d9d9d9; color: var(--ink); border: 1px solid var(--gray); }
select.lvsel.lv-full, .lvtag.lv-full { background: var(--gray); color: #fff; border: 1px solid var(--ink); }
select.lvsel:disabled { opacity: .75; }

/* Quick second taps (frame by frame, speeds, next) are taps, not a double tap to zoom. Pinch to zoom still works. */
button, .ebtn, .btn, a, input, select, label, video, canvas, .seg, .playbtns, .speedrow { touch-action: manipulation; }

/* Running elevated: badge by the name, and the Your access page */
.elevbadge { display:inline-block; max-width:22em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle;
  font-size:12px; font-weight:700; color:var(--key-ink); background:var(--key-fill); border:1px solid var(--key); border-radius:10px; padding:1px 8px; text-decoration:none; }
.elevbadge.super { color:var(--ink); background:#fff; border:2px solid var(--ink); }
.elevnote { background:var(--key-fill); border-left:4px solid var(--key); padding:8px 10px; border-radius:4px; }
.permguide tr.elevtr td { background:var(--key-fill); }

/* Beyond a base member: a key on extra tabs, a thin amber edge on extra controls (hover says why) */
.elevkey { font-size: 10px; margin-left: 3px; vertical-align: super; opacity: .8; }
.elev { box-shadow: 0 0 0 2px var(--key); border-radius: 6px; }
a.elev, button.linkbtn.elev { box-shadow: none; text-decoration-color: var(--key); text-decoration-thickness: 2px; border-bottom: 0; }
div.elev, details.elev { box-shadow: none; border-left: 3px solid var(--key); padding-left: 8px; }
select.lvsel.elev { box-shadow: none; }
a.btn.elev { box-shadow: 0 0 0 2px var(--key); text-decoration: none; }

/* In-app viewer (home-screen app): a bar with Back that stays at the top, then the pages */
.vwbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 10px; align-items: center; background: #fff;
  padding: 8px 0; border-bottom: 1px solid var(--rule); }
.vwname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vwbody { margin-top: 8px; }
.vwpg { width: 100%; background: var(--fill-y); margin: 0 0 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.vwpg canvas { width: 100%; height: auto; display: block; }
.vwimg { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* A newer version is running: the Rev under the site name turns amber; tap to refresh */
#rev.newrev { color:var(--key-ink); background:var(--key-fill); border:1px solid var(--key); border-radius:8px; padding:0 6px; cursor:pointer; }

/* Highlights: interesting clips, kept forever */
.hlbox { background:#fff; border:1px solid var(--rule); border-left:4px solid var(--rule); padding:8px 10px; border-radius:6px; }
.ebtn.hlbtn { background:#fff; color:var(--ink); }
.revflags .hlflag { background:#fff; color:var(--ink); border:1px solid var(--rule); }

/* Who can see each camera */
.wholist { margin:4px 0; padding-left:18px; }
.wholist li { margin:2px 0; }

/* About pop-up */
.aboutlink { margin-right:auto; white-space:nowrap; }
.aboutbox { max-width:560px; width:calc(100% - 32px); border:1px solid var(--rule); border-radius:10px; padding:18px 22px; line-height:1.5; }
.aboutbox::backdrop { background:rgba(0,0,0,.35); }
.aboutbox h2 { margin:0 0 10px; font-size:19px; } .aboutbox h3 { margin:16px 0 4px; font-size:15px; color:var(--gray); }
.aboutbox ul { padding-left:20px; margin:4px 0; }
.aboutbox h2:focus { outline:none; }

/* item list sort */
.sortbar { margin: 4px 0 8px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sortbar .seg { flex-wrap: wrap; }

/* Model helper: flow forecast timeline */
.flowstripbox { border:1px solid var(--rule); border-radius:8px; padding:4px; background:#fff; cursor:pointer; touch-action:none; }
.flowstrip { width:100%; height:120px; display:block; }
.flowrange { width:100%; margin:8px 0 4px; }
.flownav { display:flex; gap:8px; justify-content:center; }
.flowimg { width:100%; max-width:1000px; border:1px solid var(--rule); border-radius:8px; background:#fff; }
/* Flow model page */
.fmtables { display:grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.sublabel { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin: 10px 0 4px; }
.fmlc { margin-bottom: 6px; }
.flowsrc { max-width: 360px; }
/* Developer tabs: wrap onto more rows on a narrow screen (a phone held upright cut off the last ones) */
.seg.devtabs { flex-wrap: wrap; gap: 1px; background: var(--rule); }
.seg.devtabs button { flex: 1 1 auto; min-width: 30%; background: #fff; }
.seg.devtabs button + button { border-left: 0; }
.seg.devtabs button.on { background: var(--navy); color: #fff; }

/* a newer version is running: the site name turns amber (tap: full reload) */
header .brand.newsite .name { color:var(--key-ink); background:var(--key-fill); border:1px solid var(--key); border-radius:8px; padding:0 6px; }
header .brand.newsite .name::after { content:' ↻'; font-size:0.8em; }
/* suggested corrections */
#itemsuggest { margin: 6px 0 10px; }
.sglist .sgrow { display:block; padding:10px 0; border-bottom:1px solid var(--rule); }
.sglist .sgrow > div, .sglist .sgrow > label { margin:4px 0; display:block; }

/* member access only (signed in without the authenticator) */
.elevbadge.reducedbadge { background:var(--key-fill); color:var(--key-ink); border:1px solid var(--key); }
.reducedopt { margin:14px 0; padding:10px; border:1px dashed var(--rule); border-radius:8px; }
.stepbox .qr svg { width:200px; height:200px; }

/* Precipitation page */
.prbar { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin:6px 0; }
.prtoggle { font-size:13px; white-space:nowrap; }
.prkey { display:inline-block; width:12px; height:12px; border-radius:2px; margin:0 4px; vertical-align:-1px; }
.prchartbox { border:1px solid var(--rule); border-radius:8px; background:#fff; padding:4px; }
.prchart { width:100%; height:auto; display:block; }

/* Storm: its two views, and the flow chart full screen when a phone is turned sideways */
/* Storm tabs: an even grid (Nov 28, 2026: seven tabs wrapped ragged in one flex row): four across, two on phones */
.stormtabs { max-width: 860px; margin: 4px 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); }
.stormtabs a, .stormtabs .stfill { background: #fff; }
.stormtabs a { white-space: normal; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; text-align: center; padding: 8px 8px; text-decoration: none; color: inherit; }
.stormtabs > a + a { border-left: 0; }
.stormtabs a.on { background: var(--navy); color: #fff; font-weight: 600; }
.stormflowimg { width: 100%; max-width: 1100px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; display: block; }
@media (orientation: landscape) and (max-height: 600px) {
  .stormflowimg { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; object-fit: contain; border: 0; border-radius: 0; z-index: 1000; }
}

.exptag { display:inline-block; font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; vertical-align:middle;
  padding:1px 6px; border-radius:6px; background:#fff; color:var(--gray); border:1px dashed var(--gray); }
.stormtabs a.on .exptag { background:#fff; }
.expnote { background:#fff; border:1px dashed var(--gray); border-left:4px dashed var(--gray); padding:6px 10px; border-radius:4px; }

/* touch screens: the explanation bubble (press and hold a marked button, or tap a small mark) */
.touchtip { position:fixed; z-index:2000; background:var(--ink); color:#fff; font-size:14px; line-height:1.4; padding:8px 11px;
  border-radius:8px; box-shadow:0 4px 14px rgba(0,0,0,.25); white-space:pre-line; pointer-events:none; }
.touchtips [data-elev], .touchtips .elevbadge, .touchtips .elevkey, .touchtips .needn, .touchtips .exptag { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.touchtips .elevkey { padding: 4px; margin-left: 0; }

/* the chip by a marked button: what opens it (Tr = Tools read); tap it for the full sentence */
.elevrow { display:flex; align-items:center; gap:8px; }
.elevrow > :first-child { flex:1; min-width:0; }
.elevchip { flex:none; display:inline-block; font-size:12px; font-weight:700; text-transform:none; letter-spacing:normal; line-height:1; padding:5px 6px; margin-left:4px; border-radius:6px;
  background:var(--key-fill); color:var(--key-ink); border:1px solid var(--key); cursor:pointer; vertical-align:middle; -webkit-touch-callout:none; user-select:none; }
.elevrow .elevchip { margin-left:0; }

/* your name in the header opens Your access */
.myname { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.myname.elevname { color:var(--key-ink); background:var(--key-fill); border:1px solid var(--key); border-radius:10px; padding:1px 8px; font-weight:700; }
.myname.elevname.super { color:var(--ink); background:#fff; border:2px solid var(--ink); }
.touchtip .tiplink { pointer-events:auto; color:#ffd27a; font-weight:700; display:inline-block; margin-top:4px; }

/* Your access: tight, every column lined up with its heading */
.permguide.myaccess { width:auto; }
.permguide.myaccess th, .permguide.myaccess td { text-align:left; padding:6px 14px 6px 8px; white-space:nowrap; vertical-align:top; }
.permguide.myaccess td:last-child { white-space:normal; }
.gridwrap:has(> .myaccess) { display:inline-block; max-width:100%; }

/* Your access, Limits: this browser, a gap, then your other devices */
table.limits td { vertical-align: top; font-size: 14px; }
table.limits tr.lmgap td { height: 14px; padding: 0; border: none; background: transparent; }

/* A pressed sign-in button: dimmed and saying what is happening until the answer comes back */
.btn.busy, .ebtn.busy, button.busy { opacity: .55; cursor: progress; pointer-events: none; }

/* Until someone is signed in, the header shows no site name, Rev or About (only the sign-in form) */
body.signedout header .brand, body.signedout #aboutlink { display: none; }

/* Developer, Release notes */
.relnotes .rel { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.relnotes .rel.now { background: var(--fill-g); border-radius: 6px; padding: 8px 10px; }
.relnotes .relh { display: flex; gap: 10px; align-items: baseline; }
.relnotes ul { margin: 4px 0 0 0; padding-left: 20px; font-size: 14px; }
.relnotes details.relearly { padding: 8px 0; }
.relnotes details.relearly > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.relnotes details.relearly .rel { margin-left: 18px; }
.lensbtn canvas.lensplot { width: 100%; height: 26px; display: block; margin: 2px 0; }

/* Developer, Mac helper: hour grid */
table.hrep td { padding: 3px 10px 3px 0; font-size: 14px; }
.hgrid { overflow-x: auto; }
.hrow { display: flex; align-items: center; gap: 2px; margin-bottom: 2px; }
.hday { width: 92px; flex: none; font-size: 12px; color: var(--gray); }
.hc { display: inline-block; width: 16px; height: 14px; border-radius: 2px; flex: none; font-size: 9px; color: var(--gray); vertical-align: middle; }
.hax .hc { height: auto; }
.hc.hg { background: var(--green-soft); } .hc.ha { background: var(--yellow-soft); } .hc.hr { background: var(--red-soft); }
.hc { position: relative; } .hc .hdot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); }
.hc.hn { background: #e6e6e6; } .hc.hf { background: transparent; border: 1px dashed #e0e0e0; }
/* a person's levels: room above each category name */
.permgrid > label { display: block; margin-top: 12px; }
.permgrid > label:first-child { margin-top: 6px; }

/* Activity: Visits and Person */
.hc.vz { background: #f1f1f1; }
table.visits td { font-size: 14px; vertical-align: top; }
.legsw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }

/* Developer, camera setup: the filled-in Reolink screen beside the settings list */
.setupshot { float: right; width: 240px; max-width: 45%; margin: 0 0 8px 12px; text-decoration: none; color: var(--gray); font-size: 11px; text-align: center; }
.setupshot img { width: 100%; display: block; border: 1px solid var(--rule); border-radius: 6px; }

/* Review: the snow-or-rain fold */
.wxfold { border: 1px solid var(--navy-line); background: var(--fill-b); border-radius: 8px; padding: 8px 10px; margin: 8px 0 12px; }
.wxfold > summary { cursor: pointer; }
.tag.wxflag { background: var(--fill-b); color: var(--navy); }

/* Next clip loading: the button fills left to right, amber while loading, green when ready */
.ebtn.pfill { background-image: linear-gradient(to right, rgba(224,166,74,0.45) var(--pf, 0%), transparent var(--pf, 0%)); }
.ebtn.pfill.pready { background-image: none; background-color: var(--green-soft); border-color: var(--green); }
.revspark { display: block; width: 100%; height: 30px; margin-top: 4px; }

/* Clip player: the clip loading, a sweep across the black picture (amber, green when done) */
.playerwrap .loadsweep { position: absolute; inset: 0; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.playerwrap .loadsweep i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(224,166,74,0.35); transition: width .2s; }
.playerwrap .loadsweep span { position: relative; color: #fff; font-size: 14px; }
.playerwrap video:not([src]) { min-height: 180px; }

/* Escalated: a bundle (one event, several clips) is one item */
.esclist li.escitem { display: flex; align-items: flex-start; gap: 6px; }
.esclist .esctick { padding-top: 18px; }
.esclist .escbody { flex: 1; min-width: 0; }
.esclist a.escsub { margin-left: 22px; border-left: 3px solid var(--key); }
.joinopt { display: block; margin: 4px 0; }

/* Clip player, test layout: one row of play controls, then previous · Reviewed, next · next */
.pbar { display: flex; gap: 6px; margin: 8px 0; }
.pbar .ebtn { flex: 1; padding-left: 4px; padding-right: 4px; min-width: 0; }
.pbar .ebtn.pmain { flex: 1.4; font-weight: 700; }
.rbar { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; }
.rbar > .ebtn, .rbar > span:empty { flex: 0 0 56px; font-size: 22px; padding: 8px 0; }
.rbar .rmid { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.rbar .rmid #crev { flex: 1; padding: 12px 6px; font-size: 16px; }
.markrow.viewopts { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--rule); }
.tipline { margin-top: 18px; }
/* Test layout: a rule above each section (Escalate, Highlight, Save, the file line, the plot key) */
.camb > .label:not(.cliphead), .camb > .fileinfo { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }

/* Developer, Inbox */
.inboxmsg { padding: 6px 10px 12px; }
.inboxtext { white-space: pre-wrap; word-break: break-word; font-size: 13px; background: #f7f7f7; padding: 10px; border-radius: 6px; max-height: 60vh; overflow: auto; }

/* Private cameras: a note on top of every picture */
.privwrap, .revimg, .playerwrap { position: relative; }
.privnote { position: absolute; left: 8px; bottom: 8px; z-index: 3; background: rgba(123,31,22,0.88); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; pointer-events: none; letter-spacing: .02em; }
.privnote.sm { left: 3px; bottom: 3px; font-size: 9px; padding: 1px 5px; }
.privline { background: var(--red-fill); color: var(--red-ink); padding: 6px 10px; border-radius: 6px; }

/* Engineering */
.engfilter { width: 100%; margin: 6px 0 4px; }
.engtitle { margin: 2px 0 10px; }
.engfile { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.engfile .engbtns { flex: none; }
.englist a.row { gap: 10px; }
.engrel { flex: 0 0 64px; text-align: center; font-weight: 700; font-size: 14px; color: var(--green); background: var(--fill-g); border: 1px solid var(--green-line); border-radius: 6px; padding: 3px 0; line-height: 1.1; }
.engrel small { display: block; font-weight: 400; font-size: 10px; color: var(--gray); }
.engrel.none { background: transparent; border-color: transparent; }
.inboxlist li.unread .d b { font-weight: 800; }
.unreaddot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: middle; }

/* Watch with notes */
.watch .scrubmid { position: relative; }
.wticks { position: relative; height: 10px; }
.wtick { position: absolute; top: 0; width: 3px; height: 10px; margin-left: -1px; background: var(--teal); border-radius: 1px; }
.wnote { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule); padding: 4px 0; flex-wrap: wrap; }
.wnote .wgo { flex: 1; text-align: left; background: none; border: 0; padding: 8px 4px; font-size: 15px; color: var(--ink); cursor: pointer; }
.wnote .wgo .mono { color: var(--teal); font-weight: 700; margin-right: 6px; }
.wnote.now { background: var(--fill-b); border-radius: 6px; }
.wnewin { width: min(100%, 420px); }
.pbar.jumprow { margin-bottom: 0; }
.pbar > span { flex: 1; }
.pbar > span.pmain { flex: 1.4; }
.pbar.framerow { margin: 4px 0 -4px; min-height: 16px; }
.framecount { text-align: center; font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; align-self: end; }

/* The photo viewer */
.photoview .pvbar { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.photoview .pvstage { position: relative; display: flex; align-items: center; justify-content: center; background: var(--ink); border-radius: 8px; min-height: 50vh; }
.photoview #pvimg { max-width: 100%; max-height: 78vh; display: block; }
.photoview .pvnav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.75); font-size: 34px; color: var(--navy); cursor: pointer; }
.photoview .pvnav:disabled { opacity: .25; cursor: default; }
.photoview #pvprev { left: 8px; } .photoview #pvnext { right: 8px; }
.synclog { padding-left: 18px; max-height: 40vh; overflow: auto; }

/* file numbers (SL-148-6): the number is the card's title, the long name a smaller line under it */
.files .fref { font-size: 19px; font-weight: 700; letter-spacing: 0.3px; margin-right: 6px; }
.files .refcopy { margin-left: 6px; font-size: 13px; }
.files .fname { color: var(--gray); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.files li.picked { outline: 3px solid var(--navy-line); outline-offset: 2px; border-radius: 10px; background: var(--fill-b); }
.file > div { min-width: 0; flex: 1; }
.file .n { word-break: normal; }

/* a step under a step: only needed sometimes (a key, the first time on a machine) */
.substep { margin: 8px 0 4px 18px; padding: 6px 10px; border-left: 3px solid var(--rule); }
.pvref { font-size: 18px; margin: 0 6px; }

/* backup: what is coming down, by kind */
.bkgrid { margin: 10px 0; }
.bkrow { display: flex; align-items: center; gap: 10px; margin: 4px 0; flex-wrap: nowrap; }
@media (max-width: 700px) { .bkrow { flex-wrap: wrap; } }
.bklabel { width: 190px; font-size: 13px; flex: none; }
.bkcells { display: inline-flex; flex-wrap: wrap; gap: 1px; max-width: 360px; flex: none; }
.bkcells i { width: 5px; height: 14px; background: #e3e3e3; border-radius: 1px; }
.bkcells i.part { background: var(--green-soft); } .bkcells i.done { background: var(--green); } .bkcells i.bad { background: var(--red); }
.bkcount { color: var(--gray); }
.bkwho { margin: 4px 0; } .bkwho > summary { cursor: pointer; font-size: 14px; } .bkwho ol { margin: 4px 0 8px 22px; }
.bkwho .bknote { margin: 4px 0 0 22px; }

/* Excerpts */
.excard { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.excard.bad { border-color: var(--red-soft); }
.exthumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.exthumbs figure { margin: 0; text-align: center; font-size: 11px; color: var(--gray); }
.exthumbs img { width: 70px; height: 90px; object-fit: contain; background: #f3f3f3; border: 1px solid #ddd; display: block; }
.ftsnip .pgwhere { color: var(--gray); font-size: 13px; margin: 0 6px; }

/* Developer, Mac helper: the Mac mini's disk */
.dkbar { height: 10px; background: #e6e6e6; border-radius: 5px; overflow: hidden; margin: 6px 0; max-width: 420px; }
.dkbar i { display: block; height: 100%; }
.dkbar i.dk-ok { background: var(--green-soft); } .dkbar i.dk-low { background: var(--yellow-soft); } .dkbar i.dk-crit { background: var(--red-soft); }
.dkspark { display: block; margin-top: 6px; overflow: visible; }
.dkspark polyline { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.dkspark .dklow { stroke: var(--orange); stroke-dasharray: 4 3; stroke-width: 1; }

/* super admin: how many other people see a special button or tab (green: a count, not a permission) */
.seecount { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px;
  margin-left: 4px; border-radius: 11px; border: none; background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer; flex: none; vertical-align: middle; line-height: 1; }
#tabs .seecount { min-width: 16px; height: 16px; font-size: 10px; margin-left: 2px; vertical-align: super; padding: 0 3px; }
.elevrow .seecount { margin-left: 6px; }
.seelist { position: absolute; z-index: 60; background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15); max-height: 60vh; overflow: auto; min-width: 180px; max-width: 320px; }
.seelist ol { margin: 6px 0 0 20px; padding: 0; font-size: 14px; }
.bknote1 { background: var(--fill-b); border-radius: 8px; padding: 8px 12px; margin: 6px 0 12px; }

/* a new version: a bar down the left edge in the site name's new-version color, arrows pointing up to it every so often */
#newbar { position: fixed; left: 0; top: 0; bottom: 0; width: 14px; z-index: 90; background-color: var(--key);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='90'%3E%3Cpath d='M7 30 L2 38 H5.5 V50 H8.5 V38 H12 Z' fill='%238a4b00'/%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: 0 40px; cursor: pointer; animation: newbarpulse 2.4s ease-in-out infinite; }
@keyframes newbarpulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
body.hasnewbar { padding-left: 14px; }
#newbar::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: var(--nbtop, 0); background: var(--key); }
#newbarlink { position: absolute; left: 0; height: 18px; z-index: 91; cursor: pointer; animation: newbarpulse 2.4s ease-in-out infinite;
  background: linear-gradient(var(--key), var(--key)) 0 5px / calc(100% - 10px) 8px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18'%3E%3Cpath d='M0 0 L12 9 L0 18 Z' fill='%238a4b00'/%3E%3C/svg%3E") right center / 12px 18px no-repeat; }
.hc .hslash { position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + 1px), transparent calc(50% + 1px)); }

/* files inside an item's folders */
.infold { margin: 2px 0 2px 14px; } .infold > summary { cursor: pointer; padding: 3px 0; }
.infile { display: block; margin: 1px 0 1px 22px; font-size: 14px; }
.intree { margin: 6px 0 14px; }
.dkchart { display: block; width: 100%; max-width: 640px; height: auto; margin-top: 8px; overflow: visible; }
.dkchart .dkline { fill: none; stroke: var(--navy); stroke-width: 1.6; }
.dkchart .dktrend { stroke: #8a8a8a; stroke-width: 1.3; stroke-dasharray: 6 4; }
.dkchart .dkend { fill: #8a8a8a; }
.dkchart .dklow { stroke: var(--orange); stroke-dasharray: 4 3; stroke-width: 1; }
.dkchart .dknow { stroke: #bbb; stroke-width: 1; }
.dkchart .dkg { stroke: #ececec; stroke-width: 1; }
.dkchart .dkt { font-size: 10px; fill: var(--gray); font-family: ui-monospace, Menlo, monospace; }

/* My storm emails */
.snbox { margin: 10px 0; }
.snrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eee; cursor: pointer; }
.snrow input { margin-top: 4px; transform: scale(1.3); }
.snrow .small { display: block; margin-top: 2px; }
.snsub { margin: -4px 0 6px 32px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.snsub.off { opacity: .45; }

/* Storm tracker */
.trklevel { font-size: 20px; font-weight: 700; margin: 6px 0 10px; }
.trklevel.good, .trkstate.good { color: var(--green); }
.trklevel.bad, .trkstate.bad { color: var(--red); }
.tag.gray { background: var(--fill-y); color: var(--gray); }
.trkstate { font-weight: 700; }
.trkgrid td { vertical-align: top; padding: 8px 10px 8px 0; }
.trktest { background: var(--fill-y); border-left: 4px solid var(--gray); padding: 8px 12px; margin: 8px 0; }
.trkhist { list-style: none; padding: 0; } .trkhist li { padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.trkat { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--gray); margin-right: 6px; }
.trksrc li { margin: 4px 0; }
/* My storm alerts */
.snt th, .snt td { text-align: center; padding: 8px 10px; } .snt td:first-child, .snt th:first-child { text-align: left; }
.snt input[type=checkbox] { transform: scale(1.4); }
.phsteps li { margin: 0 0 14px; } .phsteps li div { margin-top: 3px; }
.phos { margin: 8px 0 14px; }
.sutable th, .sutable td { text-align: center; } .sutable td:first-child, .sutable th:first-child { text-align: left; }
.scrollx { overflow-x: auto; }
.grid .trkover, .trkover, .sutable input, .sutable select { display: inline-block; width: 4.5em; margin: 0 2px; }
.sutable select { width: auto; }
.sutable input { width: auto; }
.sutable td { white-space: nowrap; }
/* Storm views on a phone in portrait: an even two-column grid with clean lines */
@media (max-width: 600px) and (orientation: portrait) {
  .stormtabs { grid-template-columns: 1fr 1fr; }
  .stormtabs a { padding: 10px 6px; }
}
.fmlp td, .fmlp th { padding: 3px 10px; }
.fmlp tr.fmlpnorm td { background: var(--fill-g); }
.fmlp tr.fmlpdeck td { background: var(--fill-y); font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.fmlpwrap { max-height: 320px; overflow-y: auto; display: inline-block; }
.pondline { color: var(--purple); margin: 6px 0 10px; }
.fxsvg svg { width: 100%; height: auto; max-width: 1100px; display: block; border: 1px solid var(--rule); border-radius: 6px; }
.fxone { margin: 18px 0 26px; }
.flowscen { margin: 14px 0 22px; } .scenh { margin: 8px 0 4px; font-size: 18px; }
.pondlist { color: var(--purple); padding-left: 18px; } .pondlist li { margin: 4px 0; }
.kindbox { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kindlead { text-align: left; }
.kindgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 600px) { .kindgrid { grid-template-columns: 1fr 1fr; } .kindgrid .kindbtn:last-child { grid-column: span 2; } }
.kindgrid .kindbtn { width: 100%; padding: 10px 4px; font-size: 15px; }
.sortcard { display: flex; flex-direction: column; gap: 6px; }
.sortbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .sortbtns .ebtn:last-child { grid-column: span 2; }
.sortbtns .ebtn { padding: 8px 4px; }
.progline { height: 6px; background: #eee; border-radius: 3px; margin: 6px 0 12px; } .progline i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
/* the kind a clip was reviewed as: outlined, never a status color */
.kindtag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 2px 7px; border-radius: 10px;
  background: #ffffff; color: var(--ink); border: 1.5px solid var(--ink); white-space: nowrap; vertical-align: middle; }
.cliphead .kindtag { margin-left: 8px; font-size: 13px; }
.revflags .kindtag { box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.nwitem { margin: 10px 0 16px; } .nwitem .btn { margin-bottom: 4px; }

/* gate operation tables (Flow forecast, Storm response): one copy, plain; the highest-water row in bold on gray */
.gates { margin: 10px 0 14px; }
.gatebox { margin: 6px 0 10px; }
.gateh { margin: 2px 0 4px; }
.gatewrap, .gatebox .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gatetable td, .gatetable th { white-space: normal; }
.gatetable th { position: static; }     /* not stuck under the tab bar */
.gatetable td:first-child { width: 26%; }
.gatetable td:last-child { width: 24%; }
.gatetable .nw { white-space: nowrap; }
.gatetable tr.gatepeak td { background: var(--fill-y); }
.gateline { margin: 4px 0; }
.gtpre { white-space: pre-wrap; font-size: 11px; max-height: 360px; overflow: auto; background: #fafafa; padding: 6px; }

/* flow model examples: one tab per example, and a heavy break between the two runs inside it */
.seg.fxtabs { display: grid; grid-template-columns: repeat(6, 1fr); }
.seg.fxtabs button { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); margin: -1px 0 0 -1px; font-size: 13px; line-height: 1.25; }
@media (max-width: 700px) { .seg.fxtabs { grid-template-columns: repeat(2, 1fr); } }
.fxhead { margin: 14px 0 6px; font-size: 16px; }
.fxset { border-top: 4px solid var(--ink, var(--ink)); margin-top: 18px; padding-top: 8px; }
.fxseth { margin: 4px 0 6px; font-size: 18px; }

/* storm log: entries as cards; the open storm marked in the storm-alert red */
.slhead { margin: 10px 0 12px; }
.slopen { color: var(--red); font-weight: 600; }
.slentry { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.slnote { white-space: pre-wrap; margin: 4px 0; }
.slmedias { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.slmedia img, .slmedia video { max-width: 220px; max-height: 220px; border-radius: 6px; display: block; }
.slform label { display: block; margin: 6px 0; }
.slform input[type=number] { width: 7em; }
.slform textarea, .slform input[name=weather_note] { width: 100%; max-width: 560px; }
.slwho { display: inline-block; vertical-align: top; }
.slwho ul { margin: 4px 0; padding-left: 18px; }

/* Cameras, Troubleshoot */
.trlist li { margin: 0 0 10px; }
.trbtns { margin-top: 4px; }
.trset.green { background: var(--fill-g); border-color: var(--green); color: var(--green-ink); }
.trset.red { background: var(--red-fill); border-color: var(--red); color: var(--red); }
.trnote { width: 100%; max-width: 640px; }

/* Cameras, By day: Show filter */
.showseg { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; }
.showseg button { padding: 4px 10px; }
.vgrid { margin-top: 6px; }
/* Developer, Clip lengths */
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }

.vwframe { width: 100%; height: calc(100vh - 120px); border: 0; background: #fff; }

/* Backup: the end of a run, plainly */
.bkfinal { padding: 10px 12px; border-radius: 6px; font-weight: 600; }
.bkfinal.bkdone { background: var(--fill-g); border: 1px solid var(--green); }
.bkfinal.bkfailed { background: var(--red-fill); border: 1px solid var(--red); }
.bkfinal.bkstopped { background: var(--fill-y); border: 1px solid var(--gray); }

/* Developer, Weather */
.wxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; margin: 6px 0 10px; }
.wxtype { display: block; }

/* Storm tracker, test mode */
.trkdemo { background: var(--orange-fill); border: 2px dashed var(--orange); border-radius: 6px; padding: 10px 12px; margin: 8px 0 12px; }
.trkdemobtns { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Storm tracker: only the row that is active now (a sensor tripped, a rain alert fired) gets the same light red as a
   weather service warning (one meaning: something is happening that needs attention) */
.grid tr.trkon td { background: var(--red-fill); border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.grid tr.trkon td:first-child:not(.stkcell) { border-left: 2px solid var(--red); border-radius: 10px 0 0 10px; }
.grid tr.trkon td:last-child { border-right: 2px solid var(--red); border-radius: 0 10px 10px 0; }
.trkgrid, .trkrules { border-collapse: separate; border-spacing: 0; }
.trkdemonote { background: var(--orange-fill); border: 1px dashed var(--orange); border-radius: 6px; padding: 4px 10px; margin: 6px 0; }

/* Storm tracker: the three floats in the colors of their lights on site (Alarm red, Warning yellow, Low blue). The
   light dot is dim while normal and flashes while tripped; a tripped row is tinted in its own color. */
.trklight { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; opacity: 0.35; }
.trklight.lv-alarm { background: var(--red-lamp); } .trklight.lv-warning { background: var(--yellow-lamp); } .trklight.lv-low { background: var(--blue); }
.trklight.flash { opacity: 1; animation: trkflash 1s step-end infinite; }
.trklight.flash.lv-alarm { color: var(--red-lamp); } .trklight.flash.lv-warning { color: var(--yellow-lamp); } .trklight.flash.lv-low { color: var(--blue); }
/* on: full color with a black ring for contrast; off: dim, no ring (Dave, Nov 29, 2026) */
@keyframes trkflash { 0% { opacity: 1; box-shadow: 0 0 0 2px #000; } 50% { opacity: 0.25; box-shadow: none; } }
.trklevel.lv-alarm, .trkstate.lv-alarm { color: var(--red); }
.trklevel.lv-warning, .trkstate.lv-warning { color: var(--yellow-ink); }
.trklevel.lv-low, .trkstate.lv-low { color: var(--blue); }
.grid tr.trkon.lv-alarm td { background: var(--red-fill); border-color: var(--red); }
.grid tr.trkon.lv-warning td { background: var(--yellow-fill); border-color: var(--yellow); }
.grid tr.trkon.lv-low td { background: var(--blue-fill); border-color: var(--blue); }

/* Storm tracker: the stack light, as on site, down the left of the float rows: each section fills its row's first cell,
   so it lines up with its row. Off: the blank white cylinder. On: its color, flashing (with a glow, then blank). */
.trkgrid td.stkcell { width: 52px; min-width: 52px; padding: 0 !important; position: relative; border: 0 !important; background: transparent !important; }
.stkcell .stk { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #d9d9d9, #f7f7f7 45%, #e2e2e2); border-left: 1px solid #c9c9c9; border-right: 1px solid #c9c9c9; border-top: 1px solid var(--rule); }
.stkcell .stk.red { border-radius: 8px 8px 0 0; }
.stk.on { animation: stkflash 1s step-end infinite; z-index: 1; }
.stk.red.on { --c: var(--red-lamp); } .stk.yellow.on { --c: var(--yellow-lamp); } .stk.blue.on { --c: var(--blue); }
@keyframes stkflash {
  0% { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 75%, #000), var(--c) 45%, color-mix(in srgb, var(--c) 85%, #000)); box-shadow: 0 0 14px 3px var(--c); }
  50% { background: linear-gradient(90deg, #d9d9d9, #f7f7f7 45%, #e2e2e2); box-shadow: none; }
}
/* every float row, and the green space, the same height, so each section of the light is near square */
.trkgrid tr:not(.trkbase) > td { height: 48px; box-sizing: border-box; }
.trkbase td { border: 0 !important; padding: 0 !important; }
.stkbase { width: 54px; height: 14px; margin-left: -1px; background: #9e9a95; border-radius: 0 0 3px 3px; }
.stkstem { width: 14px; height: 12px; margin-left: 19px; background: #8f8a84; }
.grid tr.trkon td:nth-child(2) { border-left-width: 2px; border-left-style: solid; border-radius: 10px 0 0 10px; }
.trkgrid td:not(.stkcell):nth-child(2) { padding-left: 6px; }

/* Storm tracker rows: two lines at most */
.trkgrid td { white-space: nowrap; }
.trkgrid td.trksince { text-align: right; }

/* The Storm tab's stack light (web/stormlamps.js, Nov 30, 2026): a tiny copy of the real light, lit slots flashing */
.sl { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
#tabs .sl { cursor: pointer; }
.slstk { display: inline-flex; flex-direction: column; gap: 1px; padding: 2px; border: 1px solid #888; border-radius: 3px; background: linear-gradient(90deg, #eee, #fff, #e4e4e4); }
.slstk i { display: block; width: 11px; height: 5px; border-radius: 1px; }
.slstk i.on.r { background: var(--red-lamp); }
.slstk i.on.y { background: var(--yellow-lamp); }
.slstk i.on.b { background: var(--blue); }
.slstk i.on { animation: slflash 1s step-end infinite; }
@keyframes slflash { 0% { opacity: 1; } 50% { opacity: 0.2; } }
.slrain { display: inline-flex; gap: 1px; }
.sldrop { width: 9px; height: 12px; }
/* a fired rain drop flashes its center with the lamps; its red outline stays (Dave, Nov 30, 2026) */
.sldrop path.on { animation: sldropflash 1s step-end infinite; }
.sldrop path:not(.on) { stroke-opacity: .3; }   /* no rain alert: a faded outline */
@keyframes sldropflash { 0% { fill-opacity: 1; } 50% { fill-opacity: 0; } }
.stormtabs a.on .sl { background: #fff; border-radius: 4px; padding: 2px 3px; }
.sltt { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--orange); }
.sl.sltest { outline: 2px dashed var(--orange); outline-offset: 2px; border-radius: 4px; padding: 0 3px; }
#sldemo { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50; background: var(--orange-fill); border: 2px dashed var(--orange); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#sldemo .sldemobtns { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .slstk i.on, .sldrop path.on { animation: none; } }

/* the rain alert rows on the Storm tracker: the same drop at the left edge, flashing when the alert has fired */
.trkrules td.trkdropcell { width: 22px; padding-right: 0; }
.sldrop.trkdrop { width: 14px; height: 18px; display: block; }
.rpistep { margin: 10px 0 14px; }
.rpistep ol { margin-top: 4px; }
.rpistep .rpiwhen { margin: 3px 0 0 18px; color: var(--gray); }   /* a sometimes-needed step, under the step it belongs to */
