[hidden] { display: none !important; }   /* hidden always wins over display rules */
:root {
  --ink: #1a1a1a; --navy: #123c58; --gray: #4a4a4a; --rule: #d4d4d4;
  --green: #2e7d32; --orange: #b35c00;
  --fill-g: #eef4ea; --fill-b: #e8f0f7; --fill-y: #f2f2f2;
  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: #fbf1e6; 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; }
.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: #d9534f; } .dot.yellow { background: #e6c229; } .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; }
.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 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: #b00020; } .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; }
.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 { 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: #b00020; 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: #fbf1e6; color: var(--orange); }
.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: #fbf1e6; color: var(--orange); 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: #fbf1e6; color: var(--orange); border: 2px solid var(--orange); 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: #f2f2f2; color: var(--gray); }
.mcount { font-size: 18px; padding: 12px 14px; border-radius: 12px; background: #eef4ea; color: var(--green); margin: 8px 0 14px; }
.mcount.open { background: #fbf1e6; color: var(--orange); border: 2px solid var(--orange); }
.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: #eef4ea; 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, #123c58); color: #fff; font-weight: 600; }
.csection { list-style: none; margin: 18px 0 2px; padding: 6px 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); border-bottom: 2px solid var(--rule); }
.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: #e8f0f7; }
.addedbox { background: #eef4ea; 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: #fff7d6; 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: #eef4ea; border: 2px solid var(--green); margin: 8px 0 18px; }
.secbox.open { background: #fbf1e6; border-color: var(--orange); }
.secbox.red { background: #fdeaea; border-color: #b3261e; }
.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: #123c58; color: #fff !important; text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 18px; font-size: 14px; white-space: nowrap; }
.stormtab.alert { background: #b3261e; }
.stormh { margin: 4px 0 10px; }
.nwswarn { background: #fdeaea; color: #b3261e; border: 2px solid #b3261e; border-radius: 12px; padding: 12px; margin: 10px 0; font-size: 16px; }
.nwswarn .small, .nwswarn details { color: #5a1a16; }
.rains { display: flex; gap: 10px; margin: 8px 0; }
.rain { flex: 1; text-align: center; background: #e8f0f7; border-radius: 12px; padding: 10px 4px; color: #123c58; }
.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: #eef4ea; color: #2e7d32; border: 1px solid #2e7d32; 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: #fff1a8; padding: 0 1px; }
.tag.green { background: #eef4ea; color: var(--green); }
.rain.bad { background: #fbf1e6; color: var(--orange); }
.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: #fff7d6; border: 2px solid #d4a400; color: #6b5200 !important; }
.btn.need-red { background: #fdeaea; border: 2px solid #b3261e; color: #b3261e !important; }
.stormtab.need-yellow { background: #123c58; color: #fff !important; border: 2px solid #f2c94c; }
.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: #d4a400; color: #fff; }
.btn.need-red .needn { background: #b3261e; color: #fff; }
.stormtab .needn { background: #f2c94c; color: #123c58; }
.needbox { margin: 8px 0; padding: 8px 12px; background: #fff7d6; 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: #b3261e; }
/* 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, #123c58); border-bottom-color: var(--navy, #123c58); }
.tabs a.alert { color: #b3261e; }
.tabs a.alert.on { border-bottom-color: #b3261e; }
.tabs a.need-yellow .needn { background: #d4a400; color: #fff; }
.tabs a.need-red .needn { background: #b3261e; color: #fff; }
.tabs a.need-red { color: #b3261e; }

.needn.nb-red { background: #b3261e; color: #fff; letter-spacing: 0; }
.needn.nb-yellow { background: #d4a400; 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, #123c58); 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: #666; }
@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, #d4a400 0 12px, #123c58 12px 24px) 6; }
body.staging .foot { color: #b35c00; font-weight: 700; }
