:root {
  --ink: #17162a; --ink-2: #24233d; --paper: #f5f2ea; --card: #fffdf8; --line: #e2dccd; --text: #23212b; --muted: #6a6676;
  --gold: #a47b1c; --gold-soft: #f3e8c8; --ok: #25693f; --ok-soft: #dcefe1; --warn: #8a5a00; --warn-soft: #fbecc8; --bad: #9a2231; --bad-soft: #f7dcdf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--text); background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; text-wrap: balance; }
a { color: #4a2f8a; text-underline-offset: 2px; }
small { display: block; color: var(--muted); font-size: 12.5px; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #efeadc; padding: 1px 4px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* shell */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink); color: #e9e6f2; display: flex; flex-direction: column; z-index: 30; padding-top: env(safe-area-inset-top); }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px 14px; border-bottom: 1px solid #ffffff1a; }
.brand strong { font-family: var(--serif); font-size: 15px; display: block; line-height: 1.25; }
.brand small { color: #b9b4cc; }
.crest { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px #c9a44a66; background: var(--ink-2); display: grid; place-items: center; margin: 0 auto 14px; flex: none; }
.crest span { font-family: var(--serif); color: #e2c56f; font-size: 24px; letter-spacing: .5px; }
.crest.small { width: 40px; height: 40px; margin: 0; box-shadow: none; }
.crest.small span { font-size: 13px; }
.side nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.side nav a { display: block; padding: 9px 12px; border-radius: 7px; color: #d7d3e6; text-decoration: none; font-size: 14.5px; }
.side nav a:hover { background: #ffffff12; color: #fff; }
.side nav a.on { background: #ffffff1c; color: #fff; box-shadow: inset 3px 0 0 #d3ae52; }
.side-foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #ffffff1a; display: grid; gap: 8px; }
.side-foot .me strong { display: block; font-size: 14px; }
.side-foot .me small { color: #b9b4cc; }
.main { margin-left: var(--side); min-width: 0; }
.top { display: none; }
main { padding: 26px 30px 60px; max-width: 1180px; }
.scrim { display: none; }

/* page */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { font-size: 27px; }
.sub { margin: 5px 0 0; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions, .row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions { margin: 12px 0 0; }
.crumb { margin: 0 0 10px; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card h3 { font-size: 17.5px; }
.card p { margin: 0 0 8px; }
.notice { background: #ece8f6; border: 1px solid #d2cbe8; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
.notice.warn { background: var(--warn-soft); border-color: #e9cf8c; }
.hint, .fine { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.empty { color: var(--muted); margin: 6px 0; }
.prose, .letter { white-space: pre-wrap; }
.names { color: var(--muted); font-size: 14px; }
.neg { color: var(--bad); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; display: block; }
a.tile:hover { border-color: var(--gold); }
.tile.warn { border-color: #e2bf6a; background: #fff8e6; }
.tile-n { display: block; font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile-l { display: block; color: var(--muted); font-size: 13.5px; }
.tile-s { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* buttons */
.btn { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 7px; border: 1px solid #cfc8b6; background: #fff; color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; min-height: 38px; }
.btn:hover { border-color: #9d9788; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2c2a4c; }
.btn.danger { color: var(--bad); border-color: #dfb3b9; }
.btn.gold { background: #d3ae52; border-color: #d3ae52; color: var(--ink); }
.btn.ghost { background: transparent; color: #d7d3e6; border-color: #ffffff33; }
.btn.small { padding: 4px 10px; font-size: 13px; min-height: 30px; }
td .btn + .btn, td .btn + a { margin-left: 6px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #4a2f8a; cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--bad); }

/* badges */
.badge { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #ebe7dc; color: #55515f; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.gold { background: var(--gold-soft); color: #6d5210; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.card .table-wrap { border: 0; border-radius: 0; margin: 0 -18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid #efeadf; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { border-top: 2px solid var(--line); font-weight: 600; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #faf6ea; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who-cell { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-2); color: #e2c56f; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none; object-fit: cover; }
.avatar.big { width: 62px; height: 62px; font-size: 21px; font-family: var(--serif); }
.chg { font-size: 12.5px; overflow-wrap: anywhere; }
.chg s { color: var(--muted); }

/* lists, kv */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid #efeadf; }
.list li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; margin: 0 0 6px; }
.kv dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kv dd { margin: 1px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }

/* filters, tabs, fields */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.filters input[type=search] { flex: 1 1 260px; max-width: 420px; }
.inline { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid #cfc8b6; border-radius: 7px; padding: 8px 10px; min-height: 38px; max-width: 100%; }
textarea { width: 100%; resize: vertical; line-height: 1.45; }
textarea.full { width: 100%; }
input[type=checkbox] { min-height: 0; width: 17px; height: 17px; padding: 0; accent-color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { font: inherit; background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 14px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tab.on { color: var(--text); border-bottom-color: var(--gold); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field .lab { font-size: 13px; font-weight: 600; }
.field .lab i { color: var(--bad); font-style: normal; }
.field input, .field select { width: 100%; }
.field.full { grid-column: 1 / -1; }
.field.check { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; align-self: end; min-height: 38px; }
.card > .field { margin-bottom: 12px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; max-height: 44vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.checklist label { display: flex; gap: 8px; align-items: center; padding: 3px 0; }

/* dialog */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--card); color: var(--text); box-shadow: 0 20px 60px #0006; }
dialog.wide { width: min(860px, calc(100vw - 24px)); }
dialog::backdrop { background: #17162a99; }
.form > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.form > header h3 { font-size: 19px; }
.x { font-size: 24px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px 8px; }
.form-intro, .info-body { padding: 14px 20px 0; margin: 0; }
.info-body { padding-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; padding: 16px 20px; }
.form-sec { grid-column: 1 / -1; font-size: 14px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-top: 6px; }
.form-err { margin: 0 20px 12px; padding: 9px 12px; background: var(--bad-soft); color: var(--bad); border-radius: 7px; }
.form > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--card); }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at top, #2b294a, var(--ink) 70%); }
.signin-card { width: min(440px, 100%); background: var(--card); border-radius: 14px; padding: 30px 26px 22px; text-align: center; box-shadow: 0 24px 70px #0007; }
.signin-card h1 { font-size: 25px; }
.signin-card .sub { justify-content: center; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.signin-card .notice { text-align: left; font-size: 14px; }
.signin-list { display: grid; gap: 8px; text-align: left; }
.signin-user { font: inherit; text-align: left; background: #fff; border: 1px solid #cfc8b6; border-radius: 9px; padding: 11px 14px; cursor: pointer; }
.signin-user:hover { border-color: var(--gold); background: #fffaf0; }
.signin-user strong { display: block; }
.fine { text-align: center; }

/* print */
#print-area { display: none; }
.dues-card { border: 2px solid #000; padding: 18px 22px; max-width: 460px; text-align: center; }
.dc-org { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.dc-name { font-family: var(--serif); font-size: 20px; }
.dc-sign { display: flex; gap: 40px; justify-content: space-between; margin-top: 44px; }
.dc-sign span { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 12px; text-align: center; }
.receipt .void { font-size: 30px; color: #900; font-weight: 700; letter-spacing: .2em; }
.labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.labels div { padding: 14px 12px; min-height: 96px; font-size: 13px; break-inside: avoid; }
@media print {
  #app, #modal, #toast { display: none !important; }
  #print-area { display: block; color: #000; font: 12pt/1.45 Georgia, serif; }
  body { background: #fff; }
  .print-head { border-bottom: 1px solid #000; margin-bottom: 14pt; padding-bottom: 6pt; }
  .print-head h2 { font-size: 17pt; margin: 4pt 0 2pt; }
  #print-area table { font-size: 10.5pt; }
  #print-area th { color: #000; border-bottom: 1px solid #000; }
  #print-area td { border-bottom: 1px solid #bbb; }
  #print-area tr { break-inside: avoid; }
  .letter.page { break-after: page; }
  .kv { grid-template-columns: repeat(2, 1fr); }
}

/* small screens */
@media (max-width: 900px) {
  .side { transform: translateX(-102%); transition: transform .2s; width: min(290px, 84vw); }
  .nav-open .side { transform: none; box-shadow: 0 0 40px #0006; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: #17162a80; z-index: 20; }
  .main { margin-left: 0; }
  .top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .menu-btn { font-size: 21px; background: none; border: 0; color: #fff; padding: 4px 10px; cursor: pointer; min-height: 40px; }
  .top-title { font-family: var(--serif); font-size: 17px; flex: 1; }
  main { padding: 18px 14px 70px; }
  .page-head h2 { font-size: 23px; }
  .grid2 { grid-template-columns: 1fr; }
  .card .table-wrap { margin: 0 -18px; }
  dialog { width: calc(100vw - 16px); }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .labels { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* v1.1: balance of dues grid, Treasurer's report, balustrade */
.pd { color: #a9a49a; }
.due { color: var(--text); font-weight: 600; }
.pd.part { display: block; font-size: 11px; }
.grid-wrap { max-height: 72vh; overflow: auto; }
.dues-grid { font-variant-numeric: tabular-nums; border-collapse: separate; border-spacing: 0; }
.dues-grid th, .dues-grid td { border-bottom: 1px solid #efeadf; border-right: 1px solid #f3efe4; }
.dues-grid thead th { position: sticky; top: 0; background: #f7f3e6; z-index: 2; white-space: normal; text-transform: none; letter-spacing: 0; font-size: 12px; min-width: 76px; max-width: 110px; vertical-align: bottom; line-height: 1.25; }
.dues-grid .gname { position: sticky; left: 0; background: var(--card); z-index: 1; text-align: left; white-space: nowrap; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); min-width: 210px; max-width: none; padding: 10px 14px; }
.dues-grid thead .gname { z-index: 3; background: #f7f3e6; }
.dues-grid .gc { text-align: right; white-space: nowrap; }
.dues-grid td[data-act], .dues-grid th[data-act] { cursor: pointer; }
.dues-grid td[data-act]:hover, .dues-grid th[data-act]:hover { background: #faf3dc; }
.dues-grid tfoot td { position: sticky; bottom: 0; background: #f7f3e6; }
.dues-grid tfoot .gname { z-index: 3; }
.xl-status { font-size: 13px; }
.sec-h { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 2px; }
.treasury { max-width: 760px; }
.treasury table { border: 1px solid #333; font-size: 14px; }
.treasury td, .treasury th { border: 1px solid #999; padding: 4px 8px; text-transform: none; letter-spacing: 0; color: #111; }
.treasury .ttl th { background: #ffd966; font-size: 17px; text-align: center; }
.treasury .per th { text-align: center; font-size: 14px; background: #fff; }
.treasury .tn { width: 52px; text-align: center; }
.treasury .band td { font-weight: 700; }
.treasury .green td { background: #92d050; } .treasury .gold td { background: #ffd966; } .treasury .red td { background: #ff5b4f; }
.treasury .sec td { text-align: center; font-weight: 700; background: #fff; } .treasury .sec.red td { background: #ff5b4f; }
.treasury .hd td { font-weight: 700; text-align: center; background: #fff; }
.treasury .note td { text-align: center; font-weight: 600; font-size: 12.5px; background: #fff; } .treasury .note.gold td { background: #ffd966; text-align: left; font-weight: 400; }
.treasury .sign td { height: 62px; vertical-align: bottom; text-align: center; font-weight: 600; background: #fff; }
.treasury .notes td { background: #fff; font-size: 13px; }
.treasury tbody tr:not(.band):not(.sec):not(.note) td { background: #fff; }
.bal-head { text-align: center; margin-bottom: 14px; line-height: 1.35; }
.balustrade .right { float: right; }
.conf { text-align: center; font-size: 10pt; font-style: italic; margin-top: 24px; }
@media print { .treasury .green td, .treasury .gold td, .treasury .red td, .treasury .ttl th, .treasury .sec.red td { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .pd { color: #999; } }

/* v1.1.1: receipt on the Secretary's form */
.rcpt h2 { text-align: center; font: 700 17pt Georgia, serif; margin: 34pt 0 30pt; }
.rcpt p { margin: 0 0 24pt; }
.rcpt .rc-row { display: flex; justify-content: space-between; padding-right: 12%; }
.rcpt .rc-body { margin-top: 34pt; }
.rcpt .rc-sign { margin-top: 30pt; line-height: 1.4; }
.rcpt .rc-line { display: block; height: 52pt; }
.rcpt .void { font-size: 30pt; color: #900; font-weight: 700; letter-spacing: .2em; text-align: center; margin: 10pt 0 0; }

/* v1.2: balustrade written on its own form; shared documents */
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px 40px 26px; max-width: 860px; font: 15px/1.55 Georgia, 'Times New Roman', serif; box-shadow: 0 2px 10px #0001; }
.paper p { margin: 14px 0 6px; }
.paper input, .paper select { font: 14px var(--sans); min-height: 32px; padding: 3px 8px; margin: 2px 2px; background: #fffbea; border-color: #d9c98f; }
.paper textarea { font: 15px/1.5 Georgia, serif; background: #fffbea; border-color: #d9c98f; field-sizing: content; min-height: 2.6em; }
.paper .in-s { width: 110px; } .paper .in-m { width: 190px; }
.paper .pp-tools { font: 13px var(--sans); color: var(--muted); margin: 0 0 6px; }
.pp-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font: 14px var(--sans); }
.pp-table th, .pp-table td { border: 1px solid #bbb; padding: 5px 9px; text-transform: none; letter-spacing: 0; color: #111; font-size: 14px; }
.pp-table.fa { max-width: 520px; } .pp-table.fa input { width: 96px; text-align: right; }
.pp-sign { display: flex; gap: 40px; justify-content: space-between; margin-top: 34px !important; font-family: var(--sans); font-size: 14px; }
.pp-bar { position: sticky; bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 12px 0; margin-top: 12px; background: linear-gradient(transparent, var(--paper) 30%); max-width: 860px; }
.share-foot { flex-wrap: wrap; }
.doc-title { text-align: center; font-size: 15pt; margin: 14pt 0; }
.doc-p { margin: 0 0 9pt; } .doc-p.center { text-align: center; }
.doc-row { display: flex; justify-content: space-between; margin: 0 0 6pt; }
.doc-table { width: 100%; border-collapse: collapse; margin: 0 0 10pt; }
.doc-table th, .doc-table td { border: 1px solid #777; padding: 3pt 6pt; text-transform: none; letter-spacing: 0; color: #000; font-size: 10.5pt; }
.dc-sign.plain span { border-top: 0; text-align: left; font-size: 11pt; }
@media (max-width: 700px) { .paper { padding: 20px 14px; } .paper .in-m { width: 140px; } }

[hidden] { display: none !important; }

/* v1.2.1: balustrade form in sections */
.bal-form { max-width: 1100px; }
.bf-h { font: 600 17px var(--sans); margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 4px; }
.bal-form > .field { margin-bottom: 12px; }
.bal-form .field .lab, .bal-form p.lab { font-weight: 400; color: var(--muted); font-size: 14px; }
.bal-form p.lab { margin: 12px 0 6px; }
.bal-form textarea { field-sizing: content; min-height: 3.2em; }
.bf-table td, .bf-table th { vertical-align: middle; }
.bf-table select { width: 100%; min-width: 120px; }
.bf-table.fa td:last-child { width: 170px; } .bf-table.fa input { width: 100%; text-align: right; }
.bf-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.bf-row input[type=text] { flex: 1 1 260px; } .bf-row select { flex: 0 1 320px; } .bf-row span { color: var(--muted); }
.bal-preview { background: #fff; border: 1px solid var(--line); padding: 22px 26px; margin-top: 12px; font: 14px/1.5 Georgia, serif; }
.bal-preview .doc-table td, .bal-preview .doc-table th { font-size: 13px; }
@media (max-width: 700px) { .bf-grid { grid-template-columns: 1fr; } }

/* v1.2.2: letterhead emblems */
.lh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lh .bal-head { margin: 0; flex: 1; }
.lh-logo { width: 84px; max-height: 84px; object-fit: contain; flex: none; }
.lh-set { display: flex; gap: 24px; align-items: center; } .lh-set img { height: 84px; } .lh-set span { color: var(--muted); }
@media print { .lh-logo { width: 26mm; max-height: 26mm; } }

/* v1.2.3: balustrade form as a large dialog, as in the reference */
dialog.xl { width: min(1240px, calc(100vw - 20px)); height: calc(100dvh - 20px); max-height: none; background: #f8f5ec; border-radius: 16px; }
.bal-dialog { min-height: 100%; display: flex; flex-direction: column; }
.bal-dialog > header, .bal-dialog > footer { background: #f8f5ec; }
.bal-dialog > footer { margin-top: auto; }
.bal-dialog .bal-form { max-width: none; padding: 4px 22px 18px; font-size: 16px; }
.bal-dialog .bf-h { font-size: 18px; border-bottom-color: #e3d6b8; margin-top: 30px; }
.bal-dialog input, .bal-dialog select, .bal-dialog textarea { font-size: 16px; min-height: 44px; border-radius: 10px; background: #fffdf8; border-color: #dcd5c5; }
.bal-dialog .bf-table { background: #fffdf8; } .bal-dialog .table-wrap { border-radius: 14px; }
.bal-dialog .bf-table th { text-transform: none; letter-spacing: 0; font-size: 14.5px; }
.bal-dialog .bf-table td { font-size: 16px; padding: 12px 16px; }
.bal-dialog .btn { min-height: 44px; font-size: 16px; border-radius: 10px; padding: 8px 18px; }
.btn.brass { background: #866a31; border-color: #866a31; color: #fff; font-weight: 600; } .btn.brass:hover { background: #75592a; }

/* v1.3: the balustrade is written on its own pages */
dialog.xl { background: #d9d6ce; }
.bal-dialog > header, .bal-dialog > footer { background: #f8f5ec; }
.pg-tip { flex: 1; color: var(--muted); font-size: 13.5px; }
.sheets { padding: 18px 10px 26px; }
.sheet { background: #fff; width: min(820px, 100%); min-height: 1120px; margin: 0 auto 22px; padding: 46px 58px 30px; box-shadow: 0 2px 14px #0003; display: flex; flex-direction: column; font: 15.5px/1.6 Calibri, Carlito, 'Segoe UI', Arial, sans-serif; color: #000; }
.sheet .lh { margin-bottom: 22px; } .sheet .bal-head { font-family: 'Times New Roman', Times, serif; font-size: 15px; line-height: 1.25; } .sheet .bal-head strong { font-size: 19px; }
.sheet-body { flex: 1; } .sheet-body p { margin: 0 0 12px; }
.sheet-foot { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 12px; color: #444; margin-top: 26px; font-style: italic; } .sheet-foot span:last-child { text-align: right; font-size: 14px; }
.bal-dialog .sheet input, .bal-dialog .sheet select, .bal-dialog .sheet textarea { font: inherit; color: #000; background: #fff8d9; border: 0; border-bottom: 1px solid #c7b36a; border-radius: 3px; min-height: 0; padding: 1px 6px; margin: 1px 2px; }
.bal-dialog .sheet input:focus, .bal-dialog .sheet select:focus, .bal-dialog .sheet textarea:focus { outline: 2px solid #c7a43a; background: #fff3b8; }
.sheet .in-name { width: 300px; max-width: 100%; font-weight: 700; } .sheet .in-s { width: 110px; } .sheet .in-m { width: 150px; }
.sheet textarea { display: block; width: 100%; margin: -6px 0 12px !important; field-sizing: content; min-height: 1.9em; resize: vertical; }
.pg-split { display: flex; justify-content: space-between; margin-bottom: 4px !important; }
.pg-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.pg-table th, .pg-table td { border: 1px solid #000; padding: 3px 8px; font-size: 15px; text-transform: none; letter-spacing: 0; color: #000; vertical-align: middle; }
.pg-table th { text-align: center; font-weight: 700; } .pg-table td:nth-child(3) { text-align: center; }
.pg-table select { font-weight: 700; } .pg-table .in-name { width: 100%; font-weight: 400; }
.pg-table.fa { width: 66%; } .pg-table.fa td:last-child { width: 150px; text-align: center; white-space: nowrap; } .pg-table.fa input { width: 80px; text-align: right; }
.pg-rows { margin: -6px 0 6px; } .pg-rows .bf-row { margin-bottom: 4px; gap: 6px; } .pg-rows .bf-row input[type=text] { flex: 1 1 220px; } .pg-rows .bf-row .in-name { flex: 0 1 300px; }
.pg-rows.numbered { counter-reset: r; } .pg-rows.numbered .bf-row::before { counter-increment: r; content: counter(r) '.'; width: 18px; }
.pg-add { font: 13px var(--sans); color: #6b5516; background: #fff8d9; border: 1px dashed #c7b36a; border-radius: 6px; padding: 3px 10px; cursor: pointer; margin: 0 0 14px; }
.pg-rm { font: 16px var(--sans); background: none; border: 0; color: #9a2231; cursor: pointer; padding: 0 6px; }
.pg-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
@media (max-width: 700px) { .sheet { padding: 22px 16px; min-height: 0; } .pg-table.fa { width: 100%; } .sheet .in-name { width: 100%; } }
.sheet .in-name { field-sizing: content; width: auto; min-width: 230px; }
.pg-table .in-name { min-width: 0; width: 100%; field-sizing: fixed; }
.pg-table tbody tr:last-child td { border-bottom: 1px solid #000; }

/* ===== v1.4 theme: black and gold from the Consistory seal, on glass panels in the manner of current macOS ===== */
:root {
  --ink: #0c0b09; --ink-2: #1b1812; --paper: #efe9da; --card: rgba(255, 253, 247, .66); --line: rgba(120, 96, 40, .22); --text: #1c1a16; --muted: #6d675a;
  --gold: #a9802a; --gold-2: #d9b65a; --gold-soft: #f4e7c2;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif; --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  --glass: blur(26px) saturate(1.7); --r: 18px; --shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 10px 34px rgba(60, 44, 10, .13);
}
body { background: radial-gradient(1200px 700px at 88% -10%, #f6d98a66, transparent 60%), radial-gradient(900px 600px at 0% 100%, #c9a24a3d, transparent 62%), linear-gradient(160deg, #f6f1e4, #e9e0cb 60%, #e3d7bb); background-attachment: fixed; letter-spacing: -.005em; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.02em; }
a { color: #7a5a12; }
:focus-visible { outline: 3px solid #d9b65a99; outline-offset: 2px; }
/* sidebar: a floating black-and-gold panel */
.side { inset: 10px auto 10px 10px; width: calc(var(--side) - 14px); border-radius: 24px; background: linear-gradient(180deg, rgba(22, 19, 13, .9), rgba(8, 7, 5, .93)); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border: 1px solid #d9b65a40; box-shadow: 0 18px 50px rgba(0,0,0,.34), 0 1px 0 #ffffff1c inset; overflow: hidden; }
.brand { border-bottom-color: #d9b65a2e; } .brand strong { color: #f1dc9c; font-size: 15px; } .brand small { color: #b9ab86; }
.crest { border-color: var(--gold-2); background: #14110b; } .crest span { color: var(--gold-2); }
.crest-img { width: 96px; height: 96px; border-radius: 50%; display: block; margin: 0 auto 14px; object-fit: cover; box-shadow: 0 0 0 2px #d9b65a88, 0 10px 30px #0006; } .crest-img.small { width: 42px; height: 42px; margin: 0; flex: none; box-shadow: 0 0 0 1.5px #d9b65a88; }
.side nav a { border-radius: 12px; color: #e6dcc1; margin-bottom: 2px; } .side nav a:hover { background: #d9b65a1f; color: #fff; }
.side nav a.on { background: linear-gradient(180deg, #e2c26b, #b88f33); color: #1a1406; font-weight: 600; box-shadow: 0 1px 0 #fff6 inset, 0 6px 16px #0005; }
.side-foot { border-top-color: #d9b65a2e; } .side-foot .me strong { color: #f1dc9c; } .side-foot .me small { color: #b9ab86; }
.btn.ghost { color: #e6dcc1; border-color: #d9b65a55; background: #ffffff0d; }
/* glass surfaces */
.card, .tile, .table-wrap, .signin-card, .notice { background: var(--card); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border: 1px solid rgba(255,255,255,.72); border-radius: var(--r); box-shadow: var(--shadow); }
.card .table-wrap { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0; }
.notice { background: rgba(244, 231, 194, .6); } .notice.warn { background: rgba(251, 236, 200, .78); border-color: #e9cf8c; }
.tile.warn { background: rgba(255, 244, 214, .8); border-color: #e2bf6a; } a.tile:hover { border-color: var(--gold-2); transform: translateY(-1px); transition: .15s; }
.tile-n { font-weight: 650; letter-spacing: -.03em; }
th { color: #7b735f; } td { border-bottom-color: rgba(120, 96, 40, .13); } tr.click:hover td { background: rgba(217, 182, 90, .14); }
.page-head h2 { font-size: 30px; letter-spacing: -.03em; }
/* controls: capsules and soft fields */
.btn { border-radius: 999px; background: rgba(255,255,255,.7); border-color: rgba(120, 96, 40, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 #fff inset, 0 1px 3px rgba(60,44,10,.1); font-weight: 500; padding-inline: 16px; }
.btn:hover { border-color: var(--gold); background: #fff; }
.btn.primary, .btn.brass, .btn.gold { background: linear-gradient(180deg, #e2c26b, #b88f33); border-color: #a98029; color: #1a1406; font-weight: 600; box-shadow: 0 1px 0 #fff8 inset, 0 4px 12px rgba(120, 90, 20, .28); }
.btn.primary:hover, .btn.brass:hover, .btn.gold:hover { background: linear-gradient(180deg, #ebcf80, #c39a3c); }
.btn.danger { color: var(--bad); border-color: #dfb3b9; }
.btn.small { padding-inline: 12px; }
input, select, textarea { border-radius: 12px; background: rgba(255,255,255,.82); border-color: rgba(120, 96, 40, .26); }
input:focus, select:focus, textarea:focus { border-color: var(--gold-2); }
input[type=checkbox] { accent-color: #a9802a; }
.tabs { border-bottom: 0; background: rgba(255,255,255,.5); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 4px; gap: 2px; width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.tab { border: 0; border-radius: 999px; padding: 7px 14px; } .tab.on { background: #14110b; color: #f1dc9c; font-weight: 600; box-shadow: 0 2px 8px #0003; }
.badge.gold { background: #f4e7c2; color: #6d5210; }
.avatar { background: #14110b; color: var(--gold-2); }
/* dialogs */
dialog { border-radius: 24px; background: rgba(252, 249, 240, .9); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(12, 11, 9, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.form > header, .form > footer { background: rgba(252, 249, 240, .92); border-color: var(--line); }
dialog.xl { background: #cfcabd; border-radius: 22px; } .bal-dialog > header, .bal-dialog > footer { background: rgba(252, 249, 240, .96); }
.checklist { background: rgba(255,255,255,.7); border-radius: 12px; }
#toast { background: #14110b; color: #f1dc9c; border-radius: 999px; border: 1px solid #d9b65a55; }
/* sign-in: the seal on black */
.signin { background: radial-gradient(700px 480px at 50% 12%, #c9a24a55, transparent 70%), radial-gradient(900px 600px at 50% 120%, #7a5a1240, transparent 65%), #0c0b09; }
.signin-card { background: rgba(252, 249, 240, .9); border-radius: 28px; } .signin-card h1 { font-size: 26px; letter-spacing: -.03em; }
.signin-user { border-radius: 16px; background: rgba(255,255,255,.75); border-color: rgba(120, 96, 40, .25); } .signin-user:hover { border-color: var(--gold-2); background: #fffaf0; }
/* tables that scroll under sticky cells need solid fills */
.dues-grid thead th, .dues-grid tfoot td, .dues-grid thead .gname { background: #f3ecd9; } .dues-grid .gname { background: #fbf8ef; }
.dues-grid td[data-act]:hover, .dues-grid th[data-act]:hover { background: #f4e7c2; }
.treasury table { border-radius: 0; }
/* the balustrade sheets stay plain paper */
.sheet { border-radius: 2px; }
.sheet .pg-table.guests td { padding: 2px 4px; } .sheet .pg-table.guests input { width: 100%; } .sheet .pg-table.guests td:nth-child(3) { width: 120px; }
.pg-table .gx { border: 0 !important; width: 26px; padding: 0 !important; background: #fff; }
@media (max-width: 900px) { .side { inset: 0 auto 0 0; border-radius: 0 24px 24px 0; width: min(290px, 84vw); } .top { background: #0c0b09; color: #f1dc9c; } .tabs { border-radius: 18px; width: auto; } }
@media print { body { background: #fff; } }
tr.bf-row { display: table-row; }
.sheet .pg-table.guests { table-layout: fixed; } .sheet .pg-table.guests th:nth-child(1) { width: 40%; } .sheet .pg-table.guests th:nth-child(3) { width: 130px; } .sheet .pg-table.guests .gx { width: 28px; }
.bal-dialog > header, .bal-dialog > footer { background: #fbf8ef; z-index: 5; }

/* v1.5: one Share button and a share sheet in the manner of the macOS share menu */
.share-btn { gap: 6px; } .share-btn svg, .sh-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn.small.share-btn svg { width: 14px; height: 14px; }
dialog.share { width: min(520px, calc(100vw - 20px)); border-radius: 26px; }
.share-sheet > header { border-bottom: 0; padding-bottom: 6px; }
.sh-file { display: flex; gap: 12px; align-items: center; margin: 4px 20px 2px; padding: 12px 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(120,96,40,.2); border-radius: 16px; }
.sh-file strong { display: block; font-size: 14px; overflow-wrap: anywhere; line-height: 1.25; }
.sh-pdf { flex: none; width: 40px; height: 48px; border-radius: 7px; background: linear-gradient(180deg, #fff, #f3ecd9); border: 1px solid #c9b47a; display: grid; place-items: end center; padding-bottom: 6px; font: 700 10px var(--sans); color: #9a2231; box-shadow: 0 2px 6px #0002; }
.share-sheet .form-grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 12px; padding-bottom: 8px; }
.share-sheet .lab { display: flex; justify-content: space-between; align-items: baseline; }
.share-sheet textarea { font-size: 14px; }
.sh-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; padding: 10px 16px 18px; border-top: 1px solid var(--line); }
.sh-act { font: 12px/1.2 var(--sans); color: var(--text); background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; padding: 6px 2px; border-radius: 14px; }
.sh-act:hover { background: rgba(217,182,90,.16); }
.sh-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); border: 1px solid rgba(120,96,40,.24); box-shadow: 0 1px 0 #fff inset, 0 2px 6px rgba(60,44,10,.12); }
.sh-ic svg { width: 21px; height: 21px; }
.sh-act.primary .sh-ic { background: linear-gradient(180deg, #e2c26b, #b88f33); border-color: #a98029; color: #1a1406; }

/* v1.6: signatures */
#sig-pad { display: block; width: 100%; max-width: 640px; aspect-ratio: 640 / 210; background: #fff; border: 1.5px dashed #c7b36a; border-radius: 14px; touch-action: none; cursor: crosshair; margin: 8px 0; }
.sig-img { display: block; height: 46px; max-width: 170px; object-fit: contain; object-position: left; margin: 2px 0 -6px; } .sig-img.block { height: 52pt; margin: 4pt 0; }
.side-foot .btn { justify-content: center; }

/* ---- v1.8 templates ---- */
.tpl-text,.tpl-msg{white-space:pre-wrap;word-break:break-word;font:inherit;font-size:.9rem;line-height:1.5;margin:.4rem 0 0;padding:.7rem .9rem;border-radius:12px;background:rgba(0,0,0,.045);border:1px solid rgba(0,0,0,.07);max-height:15rem;overflow:auto}
.tpl-msg{max-height:none;background:#fff}
.tpl-edit{padding:0 1.25rem}
.tpl-edit textarea{width:100%;font:inherit;line-height:1.45}
.tpl-prev{max-height:46vh;overflow:auto;border:1px solid rgba(0,0,0,.1);border-radius:12px;padding:.6rem;background:rgba(0,0,0,.03);margin-bottom:1rem}
.tpl-prev .bal-preview{background:#fff;padding:1rem;border-radius:8px}

/* ---- v1.9 guests columns and attendance ---- */
.sheet .pg-table.guests th:nth-child(1){width:28%} .sheet .pg-table.guests th:nth-child(3),.sheet .pg-table.guests td:nth-child(3){width:auto} .sheet .pg-table.guests th.gs,.sheet .pg-table.guests td.gs{width:112px}
.att-bar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;justify-content:space-between;padding:.7rem 1.25rem;background:rgba(255,252,243,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.08)}
.att-counts{display:flex;flex-wrap:wrap;gap:.4rem .9rem;align-items:center;font-size:.92rem}.att-counts b{font-size:1.15rem}
.att-counts .c-p b{color:#1f7a3d}.att-counts .c-e b{color:#9a6b00}.att-counts .c-a b{color:#6b6b6b}
.att-tools{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.att-tools input{min-width:11rem;padding:.4rem .8rem;border-radius:999px;border:1px solid rgba(0,0,0,.15);font:inherit;background:#fff}
.att-list{padding:.2rem 1.25rem 1rem;max-height:60vh;overflow:auto}
.att-list h4{margin:1rem 0 .3rem;font-size:.74rem;letter-spacing:.09em;text-transform:uppercase;color:var(--muted,#6b6456)}
.att-row{display:flex;gap:.6rem 1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:.5rem .7rem;border-radius:14px;border:1px solid rgba(0,0,0,.07);background:rgba(255,255,255,.7);margin-bottom:.35rem;border-left:4px solid #c9c4b8}
.att-row[data-v=P]{border-left-color:#2e9b55}.att-row[data-v=E]{border-left-color:#d4a017}
.att-who{min-width:0;flex:1 1 13rem}.att-who strong{display:block}.att-who small{color:var(--muted,#6b6456)}
.seg{display:inline-flex;padding:3px;border-radius:999px;background:rgba(0,0,0,.07);flex:0 0 auto}
.seg label{position:relative;cursor:pointer}.seg input{position:absolute;opacity:0;inset:0;cursor:pointer}
.seg span{display:block;padding:.38rem .85rem;border-radius:999px;font-size:.86rem;font-weight:600;color:#55504a;transition:background .15s,color .15s}
.seg input:focus-visible+span{outline:2px solid #b8891f;outline-offset:1px}
.seg-P input:checked+span{background:#2e9b55;color:#fff}.seg-E input:checked+span{background:#d4a017;color:#231c05}.seg-A input:checked+span{background:#fff;color:#222;box-shadow:0 1px 3px rgba(0,0,0,.2)}
@media (max-width:560px){.seg{width:100%}.seg label{flex:1;text-align:center}.att-tools input{flex:1}}

/* ---- v1.10 motto: carved into the wall at the foot of the page; the page scrolls over it ---- */
#app{position:relative;z-index:1}
#motto{position:fixed;left:0;right:0;bottom:calc(6px + env(safe-area-inset-bottom));z-index:0;text-align:center;pointer-events:none;transition:opacity .6s ease}
#motto.out{opacity:0}
#motto span{display:inline-block;max-width:calc(100% - 24px);padding:0 12px;
  font-family:"Snell Roundhand","Edwardian Script ITC","Kunstler Script","Palace Script MT","Vladimir Script","Vivaldi","Apple Chancery","URW Chancery L","Z003","Lucida Calligraphy","Lucida Handwriting","Segoe Script",cursive;
  font-style:normal;font-weight:400;font-size:21px;line-height:1.5;letter-spacing:.02em;
  color:rgba(74,56,18,.5);text-shadow:0 -1px 0 rgba(30,20,0,.38),-1px 0 0 rgba(30,20,0,.12)}
body:has(.shell) #motto{left:var(--side)}
@media (max-width:900px){body:has(.shell) #motto{left:0}#motto span{font-size:18px}}
@media (prefers-reduced-motion:reduce){#motto{transition:none}}
@media print{#motto{display:none!important}}

/* ---- v1.11 dashboard widgets ---- */
.dash-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;margin-bottom:18px}
.dash-head h2{font-size:30px;font-weight:700;letter-spacing:-.02em;margin:2px 0}
.wgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;grid-auto-flow:dense}
.wg{grid-column:span 1;min-width:0;background:var(--card);-webkit-backdrop-filter:var(--glass);backdrop-filter:var(--glass);border:1px solid var(--line);border-radius:22px;padding:18px 20px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.wg-w{grid-column:span 2}
.wg.dark{background:linear-gradient(180deg,#1a160e,#0c0b09);border-color:rgba(217,182,90,.38);color:#f6efdc}
.wg-k{font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#5f594c;margin:0 0 4px}
.wg-k a{color:inherit;text-decoration:none}.wg-k a:hover{color:var(--gold)}.wg-k span{font-weight:500}
.wg.dark .wg-k{color:var(--gold-2)}
.wg-n{font-size:34px;font-weight:700;letter-spacing:-.02em;margin:0;line-height:1.15}.wg.dark .wg-n{color:#fff;font-size:28px}
.wg-b{font-size:19px;font-weight:700;margin:0}.wg-s{font-size:13px;color:#5f594c;margin:0}.wg.dark .wg-s{color:#d6cbb0}
.wg-split{display:flex;height:8px;border-radius:99px;overflow:hidden;margin:12px 0 8px;background:#3a3323}.wg-split .s0{background:#d9b65a}.wg-split .s1{background:#8f7a45}
.wg-ring{display:flex;gap:14px;align-items:center;margin-top:4px}
.wg-strip{display:flex;gap:4px;margin:10px 0 8px}.wg-strip span{flex:1;height:8px;border-radius:99px}.wg-strip .o{background:#14110b}.wg-strip .p{background:var(--gold)}
.wg-cal{display:flex;gap:12px;align-items:center;margin-top:4px}.wg-day{flex:none;width:54px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fffdf7;text-align:center}.wg-day span{display:block;background:#14110b;color:#f1dc9c;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:2px 0}.wg-day b{display:block;font-size:24px;line-height:1.35}
.wg-list{list-style:none;margin:6px 0 0;padding:0}.wg-row{display:flex;gap:12px;align-items:center;padding:9px 0;border-top:1px solid rgba(120,96,40,.16)}.wg-row:first-child{border-top:0}.wg-row>div{flex:1;min-width:0}.wg-row strong{display:block}.wg-row small{overflow-wrap:anywhere}
.wg-dot{flex:none;width:10px;height:10px;border-radius:2px;background:var(--gold)}.wg-dot.bad{background:#b3261e;border-radius:50%}.wg-dot.ok{background:#2e7d4f;border-radius:50%}
.wg-more,.wg-link{flex:none;font:inherit;font-weight:600;color:#7a5a12;background:none;border:0;padding:6px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.wg-more:hover,.wg-link:hover{color:#4f3a08}
.wg>.wg-more,.wg>.wg-link{margin-top:auto;align-self:flex-start}
.wg-bars{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;margin:10px 0 6px}.wg-bars strong{text-align:right}
.wg-bar{height:14px;border-radius:99px;background:rgba(120,96,40,.18)}.wg-bar div{height:14px;border-radius:99px}.b-o{background:#8f7a45}.b-i{background:#2e7d4f}.b-x{background:#14110b}
.wg-qas{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:8px}
.wg-qa{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border-radius:14px;border:1px solid rgba(120,96,40,.25);background:#fffdf7;color:var(--text);font:inherit;font-weight:600;cursor:pointer;text-align:left;text-decoration:none}.wg-qa svg{color:var(--gold);flex:none}.wg-qa:hover{border-color:var(--gold)}
.dw-list{list-style:none;margin:0;padding:0 1.25rem 1rem}.dw-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid rgba(120,96,40,.16)}.dw-row:first-child{border-top:0}.dw-row label{display:flex;gap:10px;align-items:center;flex:1;min-height:44px;cursor:pointer}.dw-row label small{margin-left:auto}.dw-mv{display:flex;gap:6px}
@media (max-width:1180px){.wgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.wgrid{grid-template-columns:minmax(0,1fr)}.wg-w{grid-column:span 1}.dash-head h2{font-size:24px}}

/* ---- v1.13 spreadsheet sync switch ---- */
.switch{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:0 14px 0 8px;border-radius:999px;border:1px solid var(--line);background:rgba(255,253,247,.8);font:inherit;font-weight:600;color:var(--text);cursor:pointer}
.switch:hover{border-color:var(--gold)}.switch:disabled{opacity:.55;cursor:default}
.sw-track{position:relative;width:40px;height:24px;border-radius:999px;background:#b9b2a2;transition:background .2s;flex:none}
.sw-knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .2s}
.switch[aria-checked=true] .sw-track{background:#2e9b55}.switch[aria-checked=true] .sw-knob{transform:translateX(16px)}
.switch.dim .sw-track{background:#d5cfc1}
.xl-status{font-size:13px}.xl-status .link{margin-left:8px}
.xl-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#2e9b55;margin-right:7px}.xl-status.error .xl-dot{background:#b3261e}.xl-status.permission .xl-dot,.xl-status.unlinked .xl-dot{background:#d4a017}
@media (prefers-reduced-motion:reduce){.sw-track,.sw-knob{transition:none}}

/* ---- v1.14 tick lists and meeting details ---- */
fieldset.ticks{border:0;padding:0;margin:0;min-width:0}
.tickrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.tickrow label{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,253,247,.8);cursor:pointer;font-weight:500}
.tickrow label{white-space:nowrap}.tickrow input{flex:none;width:16px;height:16px;margin:0}
.tickrow label:has(input:checked){border-color:var(--gold);background:var(--gold-soft)}
.meet-info{display:flex;flex-wrap:wrap;gap:6px 22px;margin:-6px 0 16px;font-size:14px}.meet-info a{overflow-wrap:anywhere}

/* ---- v1.15 administrator ---- */
.adm-reset li{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.adm-reset li>div{flex:1 1 16rem;min-width:0}

/* ---- v1.16 sign-in page, emblem, member widgets ---- */
.signin{min-height:100vh;display:grid;place-items:center;padding:24px 16px 56px;background:radial-gradient(900px 560px at 22% 30%,#c9a24a33,transparent 70%),radial-gradient(900px 600px at 90% 110%,#7a5a1240,transparent 65%),#0c0b09}
.signin-wrap{width:min(940px,100%);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);border-radius:32px;overflow:hidden;box-shadow:0 30px 90px #000a;border:1px solid rgba(217,182,90,.3)}
.signin-brand{background:linear-gradient(180deg,#17130c,#0c0b09);color:#f6efdc;padding:44px 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.signin-brand h1{font-family:var(--sans);font-size:27px;letter-spacing:-.02em;color:#fff;margin:18px 0 0}
.signin-name{margin:0;color:#f1dc9c;font-weight:600}.signin-tag{margin:6px 0 0;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#cbbf9f}
.signin .signin-card{width:auto;border-radius:0;border:0;box-shadow:none;background:rgba(252,249,240,.97);padding:40px 34px 28px;text-align:left}
.signin-card h2{font-size:26px;letter-spacing:-.02em;margin:0}.signin-card .sub{justify-content:flex-start;text-transform:none;letter-spacing:0;font-size:14px;margin:4px 0 18px}
.signin-list{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.signin-user{display:flex;gap:12px;align-items:center;min-height:56px}.signin-user small{display:block}
.signin-ava{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#14110b;color:#e6c877;font-weight:700}
.signin-member{margin-top:18px;padding-top:16px;border-top:1px solid rgba(120,96,40,.2)}.signin-member label{display:block;font-weight:600;margin-bottom:6px}
.signin-row{display:flex;gap:8px;flex-wrap:wrap}.signin-row input{flex:1 1 12rem;min-height:44px;padding:0 14px;border-radius:14px;border:1px solid rgba(120,96,40,.35);font:inherit;background:#fff}
.signin .fine{margin-top:20px}
.emblem{display:block;flex:none}
.brand .emblem{border-radius:50%}
@media (max-width:760px){.signin-wrap{grid-template-columns:minmax(0,1fr)}.signin-brand{padding:28px 20px 22px}.signin-brand .emblem{width:112px;height:112px}.signin .signin-card{padding:26px 20px 22px}}
.wg-of{font-size:15px;font-weight:600;color:#5f594c}
.wg-me{display:flex;gap:12px;align-items:center}.wg-me img,.wg-ava{flex:none;width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid var(--gold-2)}.wg-ava{display:grid;place-items:center;background:#14110b;color:#e6c877;font-weight:700}
.wg-table{width:100%;border-collapse:collapse;font-size:14px;margin-top:6px}.wg-table th{text-align:left;font-size:12px;color:#5f594c;font-weight:600;padding:4px 0;border-bottom:1px solid rgba(120,96,40,.2)}.wg-table td{padding:6px 0;border-bottom:1px solid rgba(120,96,40,.1)}.wg-table .num{text-align:right}
.table-wrap.flat{background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0;overflow-x:auto}

/* ---- v1.17 email sign-in and the Consistory's seal ---- */
.signin-form{display:grid;gap:6px}.signin-form label{font-weight:600;margin-top:8px}
.signin-form input{min-height:46px;padding:0 14px;border-radius:14px;border:1px solid rgba(120,96,40,.35);font:inherit;background:#fff}
.signin-form .btn{min-height:46px;margin-top:14px;justify-content:center}.signin-form .form-err{margin:8px 0 0}
.signin-alt{margin-top:20px;padding-top:14px;border-top:1px solid rgba(120,96,40,.2)}.signin-alt .lab{margin:0 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#5f594c}
.signin-list.pick{padding:0 1.25rem 1.25rem}
.seal-img{border-radius:50%;object-fit:cover}.signin-brand .seal-img{box-shadow:0 14px 40px #000a}

/* ---- v1.17.1 sign-in panel in the dark ---- */
.signin .signin-card{background:#14110b;color:#f3ecd8;border-left:1px solid rgba(217,182,90,.22);-webkit-backdrop-filter:none;backdrop-filter:none}
.signin-card h2{color:#fff}.signin .signin-card .sub{color:#cfc4a6}
.signin-form label{color:#f1dc9c}
.signin-form input{background:#0c0b09;border-color:rgba(217,182,90,.45);color:#fff}.signin-form input::placeholder{color:#9a9079}
.signin-form input:focus-visible{outline:2px solid #d9b65a;outline-offset:1px}
.signin .form-err{background:rgba(179,38,30,.22);color:#ffc9c0}
.signin .notice{background:rgba(217,182,90,.1);border-color:rgba(217,182,90,.3);color:#f3ecd8}
.signin-alt{border-top-color:rgba(217,182,90,.25)}.signin-alt .lab{color:#cfc4a6}
.signin .signin-user{background:#1d1910;border-color:rgba(217,182,90,.3);color:#f3ecd8}.signin .signin-user:hover{background:#262015;border-color:#d9b65a}.signin .signin-user small{color:#cfc4a6}
.signin .signin-ava{background:#d9b65a;color:#14110b}
@media (max-width:760px){.signin .signin-card{border-left:0;border-top:1px solid rgba(217,182,90,.22)}}

/* ---- v1.17.4 member dashboard tidy ---- */
.wg-me{align-items:flex-start;margin-bottom:8px}.wg-me .wg-b{font-size:16px;line-height:1.25}.wg-me img,.wg-ava{width:48px;height:48px}
.wg>.wg-more+.wg-link{margin-top:2px}

/* ---- v1.18 member dashboard: profile and brethren first ---- */
.wg-f{grid-column:1/-1}
.pf{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.pf-pic{position:relative;flex:none;width:112px;height:112px;border-radius:50%;border:3px solid var(--gold-2);background:#1d1910;color:#e6c877;padding:0;cursor:pointer;overflow:hidden;font:inherit}
.pf-pic img{width:100%;height:100%;object-fit:cover;display:block}.pf-pic span{font-size:34px;font-weight:700}.pf-pic em{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.72);font-style:normal;font-size:11px;padding:4px 0 7px;color:#f1dc9c}
.pf-pic:hover{border-color:#fff}
.pf-main{flex:1 1 18rem;min-width:0}.pf-name{font-size:26px;font-weight:700;letter-spacing:-.02em;margin:0;color:#fff;overflow-wrap:anywhere}.pf-role{margin:2px 0 12px;color:#e6c877;font-weight:600}
.pf-chips{display:flex;flex-wrap:wrap;gap:8px}.pf-chip{display:inline-flex;flex-direction:column;padding:6px 12px;border-radius:12px;background:rgba(217,182,90,.12);border:1px solid rgba(217,182,90,.25);font-size:13.5px;color:#f6efdc;max-width:100%;overflow-wrap:anywhere}.pf-chip small{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#cbbf9f}
.pf-acts{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}.wg.dark .btn:not(.primary){background:transparent;color:#f6efdc;border-color:rgba(217,182,90,.45)}
.of-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px 14px;margin-top:8px}
.of{display:flex;gap:10px;align-items:center;min-width:0}.of img,.of .wg-ava{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;border:2px solid var(--gold-2);font-size:13px}.of strong{display:block;font-size:13.5px;line-height:1.25}.of small{color:#5f594c}
.wg-pic,.wg-ava.sm{flex:none;width:38px;height:38px;border-radius:50%;object-fit:cover;font-size:13px}

/* ---- v2.0 website mode ---- */
#sync{position:fixed;right:14px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:40;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;background:rgba(20,17,11,.86);color:#cfe9d6;border:1px solid rgba(46,155,85,.5);pointer-events:none}
#sync.busy{color:#f1dc9c;border-color:rgba(217,182,90,.6)}#sync.off{color:#ffc9c0;border-color:rgba(179,38,30,.7)}
@media print{#sync{display:none!important}}

.signin-form .signin-show{display:flex;gap:8px;align-items:center;font-weight:500;color:#cfc4a6;margin-top:6px;cursor:pointer}.signin-form .signin-show input{min-height:0;width:16px;height:16px;padding:0}

/* Profile (2.0.8) */
.side-foot .me-link{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;padding:8px;margin:0 -8px 8px;border-radius:12px}
.side-foot .me-link:hover,.side-foot .me-link.on{background:rgba(217,182,90,.14)}
.ava{flex:none;width:38px;height:38px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#1d1910;color:#e6c877;border:2px solid var(--gold-2);font-weight:700;font-size:14px}
.ava img{width:100%;height:100%;object-fit:cover;display:block}
.ava.pf-pic{width:112px;height:112px;font-size:34px;cursor:default;border-width:3px}
.pf-card{background:linear-gradient(135deg,#17130b,#2a2314);color:#f6efdc;border-color:rgba(217,182,90,.35)}
.pf-dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:12px 24px;margin:0 0 14px}
.pf-dl dt{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6b6557)}.pf-dl dd{margin:2px 0 0;font-weight:600;overflow-wrap:anywhere}
.pf-sig{max-width:260px;max-height:110px;background:#fff;border:1px solid #ddd;border-radius:8px;padding:6px}
.pf-h{font-size:18px;margin:26px 0 12px}

.side-foot .ver{display:block;text-align:center;margin-top:8px;font-size:11px;color:#8f8672;letter-spacing:.04em}
.signin-ver{position:fixed;right:14px;bottom:10px;font-size:11px;color:#8f8672;letter-spacing:.04em}
/* a full-width tick box in a form: the box, then its label and hint beside it */
.field.check.full{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;align-items:start;justify-items:start;min-height:0}
.field.check.full input{margin-top:3px;width:17px}
.field.check.full > span{font-weight:600}
.field.check.full > .hint,.field.check.full > small{grid-column:2}

/* year picker with arrows */
.yr-pick{gap:6px}.yr-step{border:1px solid var(--line,#d9d2bd);background:#fffdf6;border-radius:8px;min-width:30px;height:32px;cursor:pointer;font-size:11px;color:#6b5a2a;line-height:1}.yr-step:hover:not(:disabled){background:#f3ead0}.yr-step:disabled{opacity:.35;cursor:default}

.signin-code{display:block;width:100%;margin-top:14px;background:none;border:0;color:#e6c877;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;text-align:center;padding:6px}
.signin-code:hover{color:#fff}

.tpl-mail{background:#14110a;color:#fff;border:1px solid #6f5a22;border-radius:12px}

/* About page */
.side-foot a.ver{display:block;text-align:center;margin-top:8px;font-size:11px;color:#8f8672;letter-spacing:.04em;text-decoration:none;padding:4px;border-radius:8px}
.side-foot a.ver:hover,.side-foot a.ver.on{color:#e6c877;background:rgba(217,182,90,.1)}
.card.about{background:linear-gradient(160deg,#17130b,#2a2314);color:#f6efdc;border-color:rgba(217,182,90,.35);padding:34px clamp(20px,6vw,64px);max-width:820px;margin-left:auto;margin-right:auto;font-size:16px;line-height:1.7}
.card.about h2{color:#e6c877;text-align:center;font-size:24px;margin:14px 0 22px;letter-spacing:.02em}
.card.about p{margin:0 0 16px}.about-seal{text-align:center}.about-seal svg,.about-seal img{width:120px;height:120px}
.about-motto{text-align:center;font-style:italic;color:#e6c877;letter-spacing:.06em;margin:24px 0 !important}
.about-sig{margin-top:26px !important}.about-sig strong{color:#e6c877;font-size:17px}.about-sig small{color:#b9ad8c}
.about-rules small{display:block}
.about-seal .emblem,.about-seal svg,.about-seal img{display:block;margin:0 auto}

/* Software Information (2.3.0): the About area. Black and gold, as the rest of the application. */
.ab-page{max-width:980px;margin:0 auto;animation:ab-in .35s ease both}
@keyframes ab-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ab-page{animation:none}.ab-val,.ab-card{transition:none !important}}
.card.about.ab-hero{text-align:center;padding:34px 24px 28px;max-width:none;margin-bottom:16px}
.card.about.ab-hero h2{margin:14px 0 6px;font-size:30px;letter-spacing:.04em}
.ab-sub{margin:0 !important;color:#c9bd9c;letter-spacing:.14em;text-transform:uppercase;font-size:12.5px}
.ab-card{margin-bottom:16px;line-height:1.65;transition:box-shadow .2s ease,transform .2s ease}
.ab-card p{margin:0 0 12px}.ab-card p:last-child{margin-bottom:0}
.ab-card h3{margin:0 0 10px;font-size:17px}
.ab-card ul{margin:0;padding-left:18px}.ab-card li{margin:0 0 8px}
.ab-mission{border-left:4px solid var(--gold)}
.ab-h{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:26px 0 12px}
.ab-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.ab-grid.two{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.ab-grid.two .ab-card{margin-bottom:0}
.ab-val{margin:0;text-align:center;padding:20px 14px;transition:transform .2s ease,box-shadow .2s ease}
.ab-val:hover,.ab-grid.two .ab-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(40,30,5,.14)}
.ab-val h4{margin:10px 0 6px;font-size:16px}.ab-val p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5}
.ab-ico{width:30px;height:30px;fill:none;stroke:#b08a2e;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ab-card > .ab-ico{float:right;margin:0 0 6px 10px;opacity:.85}
.ab-tag{text-align:center;font-style:italic;font-size:17px;color:#7a5f1c;letter-spacing:.03em;margin:28px 0 8px}
.ab-note{text-align:center}
.ab-foot{text-align:center;margin:26px 0 8px;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted);line-height:1.7}.ab-foot p{margin:0}
.ab-sys{display:grid;grid-template-columns:1fr;margin:0 0 16px}
.ab-sys > div{display:grid;grid-template-columns:minmax(150px,240px) 1fr;gap:14px;padding:11px 2px;border-bottom:1px solid var(--line)}
.ab-sys > div:last-child{border-bottom:0}
.ab-sys dt{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);padding-top:2px}.ab-sys dd{margin:0;font-weight:600;overflow-wrap:anywhere}
#about-status.bad{color:#a12626}
.ab-time{list-style:none;margin:0;padding:0 0 0 26px;border-left:2px solid #d9c489}
.ab-rel{position:relative;margin:0 0 4px}
.ab-dot{position:absolute;left:-34px;top:22px;width:14px;height:14px;border-radius:50%;background:#fffdf6;border:3px solid #c9a646}
.ab-rel.now .ab-dot{background:#c9a646;box-shadow:0 0 0 4px rgba(201,166,70,.22)}
.ab-rel header{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:4px}
.ab-ver{font-weight:700;color:#7a5f1c;letter-spacing:.02em}.ab-rel time{margin-left:auto;font-size:12.5px;color:var(--muted)}
.ab-rel-g h5{margin:12px 0 6px;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.ab-rel-g.f h5{color:#7a5f1c}.ab-rel-g.x h5{color:#8a3b2a}
.ab-decl h3{color:#7a5f1c}
.card.about.ab-rights{text-align:center;max-width:none}.card.about.ab-rights p{margin:0 0 10px}
@media (max-width:640px){.ab-sys > div{grid-template-columns:1fr;gap:2px}.card.about.ab-hero h2{font-size:24px}.ab-time{padding-left:20px}.ab-dot{left:-28px}.ab-rel time{margin-left:0;width:100%}}

.about-seal img.ab-seal{width:132px;height:132px;border-radius:50%;border:2px solid #c9a646;box-shadow:0 8px 24px rgba(0,0,0,.45);object-fit:cover}

/* Brethren's Board (2.4.0) */
.bd-wrap{max-width:760px;margin:0 auto}
.bd-pic{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--gold-2,#c9a646);flex:none;background:#14110a}
.bd-pic.sm{width:32px;height:32px;border-width:1.5px}
.bd-new textarea,.bd-post textarea,.bd-reply textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fffdf8;resize:vertical;line-height:1.5}
.bd-newrow{display:flex;gap:12px;align-items:flex-start}
.bd-newacts{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 4px}
.bd-newacts .btn.primary{margin-left:auto}.bd-count{font-size:12px;color:var(--muted)}
.bd-pinnew{font-size:13px;display:inline-flex;align-items:center;gap:6px}
.bd-emoji{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:2px;padding:8px;margin:6px 0;border:1px solid var(--line);border-radius:12px;background:#fffdf8;max-height:190px;overflow:auto}
.bd-emoji[hidden]{display:none}
.bd-emoji button{font-size:22px;line-height:1;background:none;border:0;border-radius:8px;padding:6px 0;cursor:pointer}.bd-emoji button:hover,.bd-emoji button:focus-visible{background:#f3ead0}
.bd-post{margin-bottom:14px}
.bd-post.pinned{border-color:#c9a646;box-shadow:0 0 0 1px #c9a646 inset}
.bd-pin{margin:0 0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#7a5f1c;font-weight:700}
.bd-head{display:flex;gap:12px;align-items:center;justify-content:flex-start;margin-bottom:10px;text-align:left}.bd-head > div{flex:1;min-width:0;text-align:left}.bd-head small{display:block}.bd-head strong{display:block}.bd-head small,.bd-rh small{color:var(--muted);font-size:12.5px}
.bd-text{margin:0 0 10px;line-height:1.6;overflow-wrap:anywhere;font-size:15.5px}
.bd-react{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.bd-rx{font:inherit;font-size:16px;line-height:1;border:1px solid var(--line);background:#fffdf8;border-radius:999px;padding:5px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;opacity:.6;transition:transform .12s ease,opacity .12s ease}
.bd-rx:hover:not(:disabled),.bd-rx.has{opacity:1}.bd-rx:active:not(:disabled){transform:scale(1.15)}
.bd-rx span{font-size:12.5px;font-weight:700;color:#5c4a16}.bd-rx.on{background:#f3e4b3;border-color:#c9a646}.bd-rx:disabled{cursor:default}
.bd-acts{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;font-size:13px}
.bd-acts button{background:none;border:0;padding:4px 0;font:inherit;font-size:13px;color:#7a5f1c;cursor:pointer;font-weight:600}.bd-acts button:hover{text-decoration:underline}
.bd-done{color:var(--muted);font-size:13px;padding:4px 0}
.bd-replies{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.bd-reply{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}.bd-reply.new{margin-top:12px}
.bd-rb{flex:1;min-width:0;background:#f8f2e1;border-radius:14px;padding:8px 12px}.bd-reply.new .bd-rb{background:none;padding:0}
.bd-rh{margin:0 0 2px}.bd-rb .bd-text{margin:0 0 4px;font-size:14.5px}
.bd-more,.bd-empty{text-align:center}.bd-rep{margin:0 0 12px}
.side nav a .nav-n{float:right;min-width:20px;text-align:center;background:#c9a646;color:#14110a;border-radius:999px;font-size:11.5px;font-weight:700;padding:1px 6px;line-height:1.5}
.bd-teaser{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;background:linear-gradient(135deg,#17130b,#2a2314);color:#f6efdc;border:1px solid rgba(217,182,90,.35);border-radius:16px;padding:12px 16px;margin:0 0 16px}
.bd-teaser strong{display:block;color:#e6c877;font-size:13px;letter-spacing:.04em}.bd-teaser em{font-style:normal;background:#c9a646;color:#14110a;border-radius:999px;padding:0 7px;font-size:11.5px;margin-left:6px}
.bd-teaser span span{display:block;font-size:14.5px;overflow-wrap:anywhere}
@media (prefers-reduced-motion:reduce){.bd-post{animation:none}.bd-rx{transition:none}}
