/* ==========================================================================
   ESDOM Portal — shares the website's navy & gold identity (Cinzel / Montserrat)
   ========================================================================== */
:root {
  --navy-950: #070f33;
  --navy-900: #0a1645;
  --navy-800: #0e1e5b;
  --navy-700: #172a78;
  --navy-500: #3d4f9a;
  --navy-100: #e8ebf6;
  --navy-50:  #f3f5fb;
  --gold-700: #8a6a16;
  --gold-600: #b8902a;
  --gold-400: #ddb954;
  --gold-200: #f3dd95;
  --gold-50:  #fbf6e6;
  --ink: #0b132f;
  --ink-2: #39415e;
  --muted: #5b6483;
  --line: #e3e6ef;
  --line-2: #d3d8e6;
  --paper: #ffffff;
  --paper-2: #f7f8fb;

  /* status (always paired with an icon + words) */
  --ok: #0b7a2b;     --ok-bg: #e9f6ee;
  --warn: #8a5a00;   --warn-bg: #fff4d6;  --warn-mark: #f0a81a;
  --bad: #b42323;    --bad-bg: #fdecec;
  --wait: #1d4ea8;   --wait-bg: #eaf0fc;

  /* the glass rail: fixed at 84% opacity */
  --glass: .84;
  --rail-w: 276px;
  --gap: 16px;

  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(10, 22, 69, .06);
  --shadow-2: 0 12px 34px -14px rgba(10, 22, 69, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper-2); }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:where(:hover) { color: var(--navy-900); } /* zero-weight: never overrides a component’s own colour */
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold-600); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy-900); color: #fff; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Backdrop: a real ESDOM photograph sits behind the glass rail ---------- */
.backdrop {
  position: fixed; inset: 0 auto 0 0; width: calc(var(--rail-w) + var(--gap) * 2 + 120px); z-index: 0;
  background: url("backdrop.jpg") 35% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent);
          mask-image: linear-gradient(90deg, #000 62%, transparent);
}
.backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(7, 15, 51, .38); }

/* ---------- Floating glass rail ---------- */
.rail {
  position: fixed; z-index: 30; top: var(--gap); bottom: var(--gap); left: var(--gap); width: var(--rail-w);
  border-radius: 24px;
  filter: drop-shadow(0 22px 40px rgba(7, 15, 51, .35));
}
.rail__glass {
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: inherit; color: #fff;
  background: rgba(10, 22, 69, var(--glass));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  /* layered edge: a lit top rim and a darker lower rim give the panel thickness */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rail__glass { background: rgba(10, 22, 69, max(var(--glass), .94)); }
}
.rail__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(221, 185, 84, .55); }
.brand b { display: block; font-family: var(--serif); font-size: 19px; letter-spacing: .14em; }
.brand small { display: block; font-size: 11px; letter-spacing: .08em; opacity: .78; }
.rail .rail__close { display: none; }

.switcher { margin: 12px 14px 4px; }
.switcher__label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin: 0 0 7px 4px; }
.switcher__track { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35); }
.switcher__track::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px;
  background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); transition: transform .35s var(--ease);
}
.switcher__track[data-active="member"]::before { transform: translateX(100%); }
.switcher__track button {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 6px; border: 0; background: none; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .86); transition: color .25s;
}
.switcher__track button[aria-pressed="true"] { color: var(--navy-900); }
.switcher__track button .ico { width: 16px; height: 16px; }
.switcher__track button[aria-pressed="false"]:hover { color: #fff; }
.switcher--single .switcher__only { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; }

.rail__nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.rail__group { margin: 16px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); }
.rail__nav ul { list-style: none; margin: 0; padding: 0; }
.rail__nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0;
  border-radius: 12px; color: rgba(255, 255, 255, .9); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.rail__nav a .ico { opacity: .85; }
.rail__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rail__nav a:active { transform: scale(.985); }
.rail__nav a.is-on {
  color: var(--navy-900); font-weight: 700; background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(184, 144, 42, .55);
}
.rail__nav a.is-on .ico { color: var(--gold-600); opacity: 1; }
.rail__nav a:focus-visible { outline-color: var(--gold-400); }
.count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: 11.5px; font-weight: 700; text-align: center; background: var(--gold-400); color: var(--navy-950); }

.rail__foot { padding: 12px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .12); }
.me { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--gold-400); color: var(--navy-950); font-weight: 700; font-size: 13px; }
.avatar--photo { object-fit: cover; padding: 0; background: var(--navy-100); box-shadow: 0 0 0 2px var(--gold-400); }
.me__who { min-width: 0; }
.me__who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__who small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__actions { display: flex; gap: 4px; margin-top: 10px; }
.me__actions a, .me__actions button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .88); font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer; }
.me__actions form { flex: 1; display: flex; }
.me__actions a:hover, .me__actions button:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Stage (content) ---------- */
.stage { position: relative; z-index: 1; min-height: 100vh; margin-left: calc(var(--rail-w) + var(--gap) * 2); display: flex; flex-direction: column; background: var(--paper-2); box-shadow: -24px 0 50px -30px rgba(7, 15, 51, .35); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 18px 36px; background: rgba(247, 248, 251, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .topbar__menu { display: none; }
.topbar__title { flex: 1; min-width: 0; }
.topbar h1 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .02em; color: var(--navy-900); }
/* Breadcrumb trail: steps joined by a thin line ending in a gold dot */
.trail ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0 0 4px; padding: 0; font-size: 12.5px; }
.trail li { display: flex; align-items: center; min-width: 0; }
.trail li + li::before {
  content: ""; flex: none; width: 26px; height: 8px; margin: 0 4px;
  background: radial-gradient(circle at calc(100% - 3px) 50%, var(--gold-600) 2.6px, transparent 3.2px),
              linear-gradient(var(--line-2), var(--line-2)) left center / calc(100% - 6px) 1px no-repeat;
}
.trail a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.trail a .ico { width: 15px; height: 15px; color: var(--gold-600); transition: transform .25s var(--ease); }
.trail a:hover { background: var(--navy-50); color: var(--navy-900); }
.trail__up a { color: var(--navy-800); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; }
.trail__up a:hover .ico { transform: translate(-2px, -1px); }
.trail__here span { padding: 3px 4px; color: var(--muted); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .trail li:not(.trail__up) { display: none; }
  .trail li + li::before { display: none; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy-700); text-decoration: underline; }
.view-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.view-tag .ico { width: 15px; height: 15px; }
.view-tag--admin { background: var(--navy-900); color: #fff; }
.view-tag--member { background: var(--gold-50); color: var(--gold-700); box-shadow: inset 0 0 0 1px #ecd9a0; }
main { flex: 1; padding: 28px 36px 48px; outline: none; }
.stage__foot { padding: 18px 36px 26px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.stage__foot a { color: var(--navy-700); font-weight: 600; }
.credit a { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; text-decoration: none; }
.credit a img { width: 22px; height: 20px; object-fit: contain; flex: none; }
.credit a span { text-decoration: underline; text-underline-offset: 3px; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--navy-900); cursor: pointer; }
.icon-btn:hover { background: var(--navy-50); }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
.stack > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.mt { margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- Panels ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--navy-100); background: var(--navy-50); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.panel__head h2 .ico { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; color: var(--gold-600); }
/* coloured panels */
.panel--navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.panel--navy .panel__head { background: rgba(255, 255, 255, .06); border-bottom-color: rgba(255, 255, 255, .12); }
.panel--navy .panel__head h2 { color: #fff; } .panel--navy .panel__head p, .panel--navy .muted { color: rgba(255, 255, 255, .72); }
.panel--navy a { color: var(--gold-200); }
.panel--gold { background: var(--gold-50); border-color: var(--gold-200); }
.panel--gold .panel__head { background: #f6ebc7; border-bottom-color: var(--gold-200); }
.panel--gold .panel__head h2 { color: var(--navy-900); }
.panel__head h2 { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.panel__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.panel__body { padding: 20px 22px; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Stat tiles: the number is the chart */
/* Coloured in a fixed rhythm: navy, gold, sky, ivory. Override with .stat--navy / --gold / --sky / --ivory / --white. */
.stat { position: relative; overflow: hidden; padding: 18px 20px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.stat__label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.stat__label .ico { color: var(--gold-600); }
.stat__value { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.stat__note { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.stat--navy, .grid--4 > .stat:nth-child(4n+1):not([class*="stat--"]) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.stat--navy .stat__label, .grid--4 > .stat:nth-child(4n+1):not([class*="stat--"]) .stat__label { color: var(--gold-200); }
.stat--navy .stat__label .ico, .grid--4 > .stat:nth-child(4n+1):not([class*="stat--"]) .stat__label .ico { color: var(--gold-400); }
.stat--navy .stat__value, .grid--4 > .stat:nth-child(4n+1):not([class*="stat--"]) .stat__value { color: #fff; }
.stat--navy .stat__note, .grid--4 > .stat:nth-child(4n+1):not([class*="stat--"]) .stat__note { color: rgba(255, 255, 255, .78); }
.stat--navy::after, .grid--4 > .stat:nth-child(4n+1):not([class*="stat--"])::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 120px; height: 120px; background: url("emblem.png") center / contain no-repeat; opacity: .08; pointer-events: none; }
.stat--gold, .grid--4 > .stat:nth-child(4n+2):not([class*="stat--"]) { background: #f8edcd; border-color: var(--gold-200); }
.stat--gold .stat__label .ico, .grid--4 > .stat:nth-child(4n+2):not([class*="stat--"]) .stat__label .ico { color: var(--gold-700); }
.stat--sky, .grid--4 > .stat:nth-child(4n+3):not([class*="stat--"]) { background: var(--navy-100); border-color: #d6dbee; }
.stat--ivory, .grid--4 > .stat:nth-child(4n+4):not([class*="stat--"]) { background: var(--gold-50); border-color: #efe3bd; }
.stat--white { background: #fff; border-color: var(--line); }
.stat--ok { background: var(--ok-bg); border-color: #c8e8d3; } .stat--ok .stat__value { color: var(--ok); }
.stat--bad { background: var(--bad-bg); border-color: #f2c9c9; } .stat--bad .stat__value { color: var(--bad); }
.stat__value small { font-size: 14px; font-weight: 600; opacity: .8; }
a.stat { display: block; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }
a.stat--navy:hover, .grid--4 > a.stat:nth-child(4n+1):not([class*="stat--"]):hover { color: #fff; }

/* Hero card for a member's own status */
.standing { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-2); }
.standing::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; background: url("emblem.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.standing__ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-400) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); }
.standing__ring span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--navy-900); font-weight: 700; font-size: 18px; }
.standing h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.standing p { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.standing .row { margin-top: 12px; }
.standing .btn { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 600; line-height: 1.2; background: var(--navy-800); color: #fff;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.btn:hover { background: var(--navy-900); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 22, 69, .6); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 17px; height: 17px; }
.btn--gold { background: var(--gold-400); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-600); color: var(--navy-950); }
.btn--ghost { background: #fff; color: var(--navy-800); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--navy-50); color: var(--navy-900); box-shadow: none; }
.btn--ok { background: var(--ok); }
.btn--ok:hover { background: #075f20; }
.btn--danger { background: #fff; color: var(--bad); border-color: #efc2c2; }
.btn--danger:hover { background: var(--bad); color: #fff; }
.btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { padding: 0; border: 0; background: none; color: var(--navy-700); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--bad); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(23, 42, 120, .15); }
.field [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(180, 35, 35, .12) !important; }
.field-error { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--bad); }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-800); }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--paper-2); }
.file-drop input { flex: 1; min-width: 0; font-size: 13px; }
.file-drop .ico { color: var(--navy-500); width: 22px; height: 22px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.form-section { margin: 10px 0 -4px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-section--first { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--navy-900); }
.form-section p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.with-flag { position: relative; }
.with-flag .flag { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.with-flag select { padding-left: 42px !important; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 14px; background: #fff; }
.choice-row input { accent-color: var(--navy-800); }
.choice-row label:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); font-weight: 600; }
.member-pick { max-height: 240px; overflow: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.member-pick label { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.member-pick label:hover { background: var(--navy-50); }
.member-pick small { color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; }
.search input:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; border-color: var(--navy-500); }
.toolbar select { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: #eceff6; }
.tabs a { padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tabs a:hover { background: rgba(255, 255, 255, .7); }
.tabs a[aria-current="page"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-1); }
.tabs em { font-style: normal; margin-left: 4px; color: var(--muted); font-weight: 500; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 11px 16px; text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); background: #f6f7fc; border-bottom: 1px solid var(--navy-100); white-space: nowrap; }
.table th.num, .table td.num { text-align: right; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfe; }
.table--compact td, .table--compact th { padding: 8px 12px; }
.table .who { display: flex; align-items: center; gap: 10px; }
.table .who b { display: block; font-weight: 600; }
.table .who small { display: block; color: var(--muted); font-size: 12.5px; }
.table a.rowlink { font-weight: 600; text-decoration: none; }
.table a.rowlink:hover { text-decoration: underline; }
.is-void td { color: var(--muted); }
.is-void td .strike { text-decoration: line-through; }

.thumb { width: 38px; height: 38px; flex: none; border-radius: 50%; object-fit: cover; background: var(--navy-100); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy-800); }

/* ---------- Badges ---------- */
.dues, .pill, .verified, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dues .ico, .pill .ico, .verified .ico, .tag .ico { width: 14px; height: 14px; }
.dues--green { background: var(--ok-bg); color: var(--ok); }
.dues--yellow { background: var(--warn-bg); color: var(--warn); }
.dues--yellow .ico { color: var(--warn-mark); }
.dues--red { background: var(--bad-bg); color: var(--bad); }
.dues--sm { font-size: 12px; padding: 3px 9px 3px 7px; }
.verified { background: #fff; color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--line-2); }
.verified .ico { color: var(--gold-600); }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--wait { background: var(--wait-bg); color: var(--wait); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--muted { background: #eef0f5; color: var(--ink-2); }
.tag { background: var(--navy-50); color: var(--navy-800); font-weight: 600; }
.tag--gold { background: var(--gold-50); color: var(--gold-700); }
.tag--override { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Status distribution: one tall segmented bar, labelled */
.split { display: flex; height: 14px; gap: 2px; border-radius: 99px; overflow: hidden; background: var(--line); }
.split i { display: block; min-width: 4px; }
.split .s-green { background: #1f9d48; }
.split .s-yellow { background: var(--warn-mark); }
.split .s-red { background: #d03b3b; }
.split-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13.5px; }
.split-legend a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.split-legend a:hover b { text-decoration: underline; }
.split-legend .ico { width: 15px; height: 15px; }

/* Progress meter (budget) */
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--navy-700); }
.meter--gold i { background: var(--gold-600); }

/* ---------- Alerts / states ---------- */
.flashes { display: grid; gap: 12px; margin-bottom: 22px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: 14px; animation: rise .35s var(--ease); }
.alert > .ico { width: 20px; height: 20px; margin-top: 1px; }
.alert__body { flex: 1; min-width: 0; }
.alert__body p:last-child { margin-bottom: 0; }
.alert--success { background: var(--ok-bg); border-color: #bfe3cb; color: #0a5a21; }
.alert--error { background: var(--bad-bg); border-color: #f2c3c3; color: #8f1b1b; }
.alert--info { background: var(--wait-bg); border-color: #c9d7f4; color: #173f88; }
.alert--invite { background: var(--gold-50); border-color: #ecd9a0; color: var(--ink); }
.alert--invite > .ico { color: var(--gold-600); }
.alert__x { padding: 2px; border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; }
.alert__x:hover { opacity: 1; }
.copy-field { display: flex; gap: 8px; margin-top: 8px; }
.copy-field input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #ecd9a0; border-radius: 10px; background: #fff; font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper-2); font-size: 13px; color: var(--ink-2); }
.note .ico { color: var(--navy-500); margin-top: 1px; }
.note--warn { background: var(--warn-bg); color: #5c3d00; }
.note--warn .ico { color: var(--warn-mark); }

.empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.empty__mark { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-50); color: var(--navy-500); }
.empty__mark .ico { width: 28px; height: 28px; }
.empty h3 { font-size: 16px; color: var(--navy-900); margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 14px; font-size: 14px; }
.empty--chart { padding: 30px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Timeline / history */
.history { list-style: none; margin: 0; padding: 0; }
.history li { position: relative; padding: 0 0 16px 22px; font-size: 13.5px; }
.history li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-500); }
.history li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 2px; width: 1px; background: var(--line-2); }
.history li:last-child::after { display: none; }
.history b { font-weight: 600; }
.history small { display: block; color: var(--muted); }
.history.panel__body { padding: 18px 22px 4px; }
.history pre { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); font-size: 11.5px; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; }

/* ---------- Event cards ---------- */
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ev { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.ev:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.ev__img { position: relative; aspect-ratio: 16 / 9; background: var(--navy-100); }
.ev__img img { width: 100%; height: 100%; object-fit: cover; }
.ev__date { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 12px; background: #fff; text-align: center; line-height: 1.1; box-shadow: var(--shadow-1); }
.ev__date b { display: block; font-family: var(--serif); font-size: 20px; color: var(--navy-900); }
.ev__date small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.ev__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev__body h3 { font-size: 16px; color: var(--navy-900); }
.ev__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.ev__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev__meta .ico { width: 15px; height: 15px; }

/* Budget target: who has carried it so far */
.target-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--navy-900); border-bottom: 1px solid var(--line); }
.target-board--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.target-board > div { padding: 12px 12px 12px 0; }
.target-board > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.target-board .label { margin-bottom: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.target-board b { display: block; font-size: 20px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.target-board small { color: var(--muted); font-size: 12px; }
.target-board__mine { background: var(--gold-50); }
.target-board__mine b { font-family: var(--serif); color: var(--gold-700); }
.meter--split { display: flex; gap: 0; }
.meter--split i { display: block; height: 100%; border-radius: 0; }
.meter--split i.others { background: var(--navy-700); }
.meter--split i.mine { background: var(--gold-400); box-shadow: inset 2px 0 0 #fff; }
.meter--split i:first-child { border-radius: 99px 0 0 99px; }
.meter--lg { height: 14px; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.meter-legend i { display: inline-block; width: 12px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.meter-legend .mine { background: var(--gold-400); } .meter-legend .others { background: var(--navy-700); } .meter-legend .rest { background: var(--line); }
.share-line { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--navy-50); color: var(--navy-900); font-size: 14px; font-weight: 500; }
.share-line .ico { color: var(--gold-600); margin-top: 2px; }
.dot-mine { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--gold-400); vertical-align: 1px; }
@media (max-width: 760px) { .target-board { grid-template-columns: 1fr 1fr; } .target-board > div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Statement: balance equation and period picker */
.ledger-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr; align-items: stretch; border-top: 2px solid var(--navy-900); border-bottom: 1px solid var(--line); }
.ledger-eq div { padding: 14px 12px 14px 0; }
.ledger-eq span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ledger-eq b { display: block; margin-top: 4px; font-size: 22px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.ledger-eq small { color: var(--muted); font-size: 12px; }
.ledger-eq i { display: grid; place-items: center; padding: 0 10px; font-style: normal; font-size: 22px; color: var(--gold-600); }
.ledger-eq__total { padding-left: 16px !important; background: var(--gold-50); border-radius: 0 0 12px 0; }
.ledger-eq__total b { font-family: var(--serif); }
.tab-radio { position: relative; }
.tab-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tab-radio span { display: block; padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tab-radio input:checked + span { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-1); }
.tab-radio input:focus-visible + span { outline: 2.5px solid var(--gold-600); outline-offset: 2px; }
@media (max-width: 760px) { .ledger-eq { grid-template-columns: 1fr; } .ledger-eq i { display: none; } .ledger-eq div { border-bottom: 1px solid var(--line); } }

/* Event registration card */
.reg__date { display: flex; align-items: center; gap: 14px; }
.reg__date b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--navy-900); }
.reg__date span { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.reg__date small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.reg form { margin-top: 12px; }

/* Grouped lists (member budgets) */
.budget-group + .budget-group { margin-top: 30px; }
.group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy-900); }
.group-title em { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--gold-50); color: var(--gold-700); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Folder tiles */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.folder { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.folder:hover { border-color: var(--navy-500); box-shadow: var(--shadow-1); color: var(--navy-900); }
.folder .ico { width: 24px; height: 24px; color: var(--gold-600); }
.folder small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.access { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.access .ico { width: 15px; height: 15px; color: var(--navy-500); }
.filetype { display: inline-grid; place-items: center; width: 40px; height: 46px; flex: none; border-radius: 8px; background: var(--navy-50); color: var(--navy-800); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.ch-grid { stroke: #e7e9f0; stroke-width: 1; }
.ch-axis { stroke: #c8ccda; stroke-width: 1; }
.ch-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-bar { fill: var(--navy-700); transition: fill .15s; }
.ch-hit { fill: transparent; cursor: default; outline: none; }
.ch-hit:hover + .ch-bar, .ch-bar:has(+ .ch-hit:hover) { fill: var(--navy-900); }
.ch-hit:focus-visible { stroke: var(--gold-600); stroke-width: 2; }
.ch-line { fill: none; stroke: var(--navy-700); stroke-width: 2; stroke-linejoin: round; }
.ch-area { fill: rgba(23, 42, 120, .07); }
.ch-dot { fill: var(--navy-700); stroke: #fff; stroke-width: 2; }
.ch-ref { stroke: var(--gold-600); stroke-width: 1.5; }
.ch-ref-label { fill: var(--gold-700); font-size: 11.5px; font-weight: 700; }
.ch-end { fill: var(--navy-900); font-size: 12px; font-weight: 700; }
.ch-table { margin-top: 10px; font-size: 13px; }
.ch-table summary { cursor: pointer; color: var(--navy-700); font-weight: 600; width: max-content; }
.ch-table table { margin-top: 8px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; align-items: center; gap: 12px; font-size: 13.5px; border-radius: 8px; }
.hbar__label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track { height: 10px; border-radius: 99px; background: #eef0f5; overflow: hidden; }
.hbar__track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--navy-700); }
.hbar__value { font-variant-numeric: tabular-nums; font-size: 13px; }
.tip { position: fixed; z-index: 90; max-width: 300px; white-space: pre-line; line-height: 1.5; padding: 8px 11px; border-radius: 10px; background: var(--navy-950); color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }

/* ---------- Auth pages ---------- */
body.auth { min-height: 100vh; background: var(--navy-950); }
body.auth .backdrop { width: 100%; -webkit-mask-image: none; mask-image: none; background-position: center; }
body.auth .backdrop::after { background: rgba(7, 15, 51, .55); }
.auth__wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth__card { width: 100%; max-width: 440px; padding: 32px; border-radius: 26px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 #fff; }
.auth__card--wide { max-width: 860px; }
.auth__card h1 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy-900); margin: 22px 0 6px; }
.auth__card .lead { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth__card .field + .field { margin-top: 14px; }
.brand--dark { color: var(--navy-900); }
.brand--dark small { opacity: 1; color: var(--muted); letter-spacing: .02em; }
.brand--dark img { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--gold-400); }
.auth__foot { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.auth__foot a { color: #fff; }
.demo-hint { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--navy-50); font-size: 12.5px; color: var(--ink-2); }

/* ---------- Receipt ---------- */
.receipt-page { background: #eef0f5; padding: 32px 16px; }
.receipt { max-width: 720px; margin: 0 auto; padding: 40px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-2); }
.receipt__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 2px solid var(--navy-900); }
.receipt__head img { width: 64px; height: 64px; }
.receipt h1 { font-family: var(--serif); font-size: 26px; color: var(--navy-900); }
.receipt .amount { font-size: 34px; font-weight: 700; color: var(--navy-900); margin: 22px 0 6px; }
.receipt .stamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 2px solid var(--ok); border-radius: 10px; color: var(--ok); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.receipt .stamp--refund { border-color: var(--bad); color: var(--bad); }
.receipt__actions { max-width: 720px; margin: 0 auto 16px; display: flex; gap: 10px; justify-content: flex-end; }
@media print {
  .receipt-page { background: #fff; padding: 0; }
  .receipt { box-shadow: none; padding: 0; }
  .receipt__actions { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--side { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .backdrop { display: none; }
  .stage { margin-left: 0; box-shadow: none; }
  .topbar { padding: 12px 16px; }
  .topbar .topbar__menu { display: inline-grid; }
  .topbar h1 { font-size: 20px; }
  main { padding: 20px 16px 40px; }
  .stage__foot { padding: 16px; }
  .rail { left: 12px; top: 12px; bottom: 12px; width: min(var(--rail-w), calc(100vw - 24px)); transform: translateX(calc(-100% - 24px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
  body.rail-open .rail { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .rail .rail__close { display: inline-grid; width: 36px; height: 36px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(7, 15, 51, .45); }
  body.rail-open { overflow: hidden; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .standing { grid-template-columns: auto 1fr; }
  .standing > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .view-tag { display: none; }
  .panel__head, .panel__body { padding-left: 16px; padding-right: 16px; }
  .stat__value { font-size: 22px; }
  .standing { padding: 20px; gap: 16px; }
  .standing__ring { width: 72px; height: 72px; }
  .standing__ring span { width: 58px; height: 58px; font-size: 15px; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .hbar { grid-template-columns: 1fr auto; }
  .hbar__track { grid-column: 1 / -1; grid-row: 2; }
  .auth__card { padding: 24px 20px; }
  .receipt { padding: 22px; }
  /* tables become stacked cards */
  .table--stack thead { display: none; }
  .table--stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table--stack td { display: block; padding: 5px 0; border: 0; text-align: right; overflow: hidden; }
  .table--stack td::before { content: attr(data-label); float: left; margin-right: 12px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }
  .table--stack td:not([data-label]) { padding-top: 8px; }
  .table--stack td .who, .table--stack td .row { justify-content: flex-end; text-align: left; }
  .table--stack td.num { white-space: normal; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Windows high contrast / forced colours: keep the rail solid and outlined */
@media (forced-colors: active) {
  .rail__glass { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .rail__nav a.is-on { outline: 2px solid Highlight; }
}

/* ==========================================================================
   Additions: flags, member identity, finance, insights, attendance, gallery
   ========================================================================== */
.flag { display: inline-block; width: 20px; height: 14px; flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(10, 22, 69, .12); vertical-align: -2px; }
.country { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.thumb--lg { width: 46px; height: 46px; font-size: 14px; }
.who .flag { margin-left: 6px; }

/* Period picker */
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.period .tabs a { white-space: nowrap; }

/* Treasury hero: the balance with its inflow / outflow equation */
.vault { display: grid; grid-template-columns: minmax(240px, 1.1fr) 2fr; gap: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-2); }
.vault__main { position: relative; padding: 24px 26px; }
.vault__main::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 200px; height: 200px; background: url("emblem.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.vault__k { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); }
.vault__k .ico { color: var(--gold-400); }
.vault__v { margin-top: 10px; font-family: var(--serif); font-size: 38px; font-weight: 700; letter-spacing: .01em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vault__n { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.vault__eq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255, 255, 255, .05); }
.vault__eq div { padding: 22px 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.vault__eq span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.vault__eq b { display: block; margin-top: 8px; font-size: 21px; font-variant-numeric: tabular-nums; }
.vault__eq small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.vault__eq .in b { color: #8fe0b8; } .vault__eq .out b { color: #ffc98a; }
@media (max-width: 1180px) { .vault { grid-template-columns: 1fr; } .vault__eq div:first-child { border-left: 0; } }
@media (max-width: 640px) { .vault__eq { grid-template-columns: 1fr 1fr; } .vault__eq div:nth-child(3) { border-left: 0; } .vault__v { font-size: 30px; } }

/* Chart helpers */
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.ch-legend li { display: inline-flex; align-items: center; gap: 7px; }
.ch-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ch-legend b { font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.ch-legend em { font-style: normal; font-weight: 600; color: var(--muted); }
.donut { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 18px; align-items: center; }
.donut .ch-legend { flex-direction: column; gap: 9px; margin: 0; font-size: 13px; }
.donut .ch-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; }
.chart--donut path, .chart--donut circle { outline: none; transition: opacity .15s; }
.chart--donut:hover path:not(:hover) { opacity: .55; }
.ch-donut-k { fill: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ch-donut-v { fill: var(--navy-900); font-size: 21px; font-weight: 700; font-family: var(--sans); }
.ch-col:hover { fill: rgba(23, 42, 120, .05); }
@media (max-width: 640px) { .donut { grid-template-columns: 1fr; } .donut svg { max-width: 200px; margin: 0 auto; } }

/* Insight figures: a big number with its explanation */
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fig { padding: 14px 16px; border-radius: var(--r); background: var(--navy-50); }
.fig b { display: block; font-size: 22px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.fig span { font-size: 12.5px; color: var(--ink-2); }
.fig--gold { background: var(--gold-50); } .fig--gold b { color: var(--gold-700); }

/* Ledger signs */
.amt-in { color: var(--ok); font-weight: 700; } .amt-out { color: var(--bad); font-weight: 700; }
.dir { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; }
.dir .ico { width: 15px; height: 15px; }
.dir--in { background: var(--ok-bg); color: var(--ok); } .dir--out { background: var(--bad-bg); color: var(--bad); }

/* Attendance */
.att-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; }
.att-bar i { display: block; }
.att-bar .came { background: var(--navy-700); } .att-bar .reg { background: var(--gold-400); }
.att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.att-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.att-item:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); }
.att-item input { width: 18px; height: 18px; accent-color: var(--navy-800); }
.att-item b { display: block; font-size: 14px; } .att-item small { display: block; color: var(--muted); font-size: 12px; }

/* Profile identity card */
.idcard { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; }
.idcard__photo { width: 108px; height: 128px; border-radius: 16px; object-fit: cover; background: var(--navy-100); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold-400); }
.idcard__photo--initials { display: grid; place-items: center; font-family: var(--serif); font-size: 34px; color: var(--navy-700); }
.idcard h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy-900); }
.idcard .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
@media (max-width: 760px) { .idcard { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 22px; margin: 0; }
.facts div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--navy-50); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--ink-2); }
.gallery figcaption b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.gallery form { position: absolute; top: 6px; right: 6px; }
.gallery form button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(7, 15, 51, .7); color: #fff; cursor: pointer; }
.gallery form button .ico { width: 15px; height: 15px; }
.preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* Church list */
.size-chip { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--gold-50); color: var(--gold-700); font-size: 12px; font-weight: 700; white-space: nowrap; }
.facts-title { margin: 18px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.facts-title:first-child { margin-top: 0; }
.panel__body { container-type: inline-size; }
.ch-legend b { white-space: nowrap; }
@container (max-width: 430px) {
  .donut { grid-template-columns: 1fr; justify-items: center; }
  .donut svg { max-width: 190px; }
  .donut .ch-legend { width: 100%; }
}
.vault { grid-template-columns: minmax(270px, 1fr) 2.1fr; }
.vault__eq b { font-size: 19px; white-space: nowrap; }
.vault__eq div { padding: 22px 16px; }
.panel--navy .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.panel--navy .tag--gold { background: var(--gold-400); color: var(--navy-950); }
.panel--navy .idcard__photo { box-shadow: 0 0 0 4px var(--navy-900), 0 0 0 5px var(--gold-400); }
.receipt { padding: 0 0 28px; overflow: hidden; }
.receipt > *:not(.receipt__band) { margin-left: 40px; margin-right: 40px; }
.receipt__band { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 40px; background: var(--navy-900); color: #fff; border-bottom: 4px solid var(--gold-400); }
.receipt__band img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.receipt__band b { font-family: var(--serif); letter-spacing: .14em; font-size: 18px; } .receipt__band small { display: block; font-size: 11px; opacity: .8; }
.receipt__band h1 { color: #fff; font-size: 22px; }
.receipt__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.receipt__foot .credit { display: inline-flex; align-items: center; gap: 5px; } .receipt__foot b { color: var(--navy-900); }
@media print { .receipt__band { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.idcard .facts { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.grid--wide-side { grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); }
@media (max-width: 1180px) { .grid--wide-side { grid-template-columns: 1fr; } }
.facts-link { margin-left: 8px; font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--navy-700); }

/* Church / business page */
.hero-page { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding: 28px 30px; border-radius: var(--r-lg); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-2); }
.hero-page::after { content: ""; position: absolute; right: -50px; top: -40px; width: 240px; height: 240px; background: url("emblem.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.hero-page__k { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); }
.hero-page__k .ico { color: var(--gold-400); }
.hero-page h2 { margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.hero-page__where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.hero-page__people { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.hero-page__person { display: flex; align-items: center; gap: 10px; }
.hero-page__person b { display: block; font-size: 14px; } .hero-page__person a { color: #fff; }
.hero-page__person small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); }
.hero-page__actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.hero-page__actions .btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
@media (max-width: 760px) { .hero-page { grid-template-columns: 1fr; } .hero-page__actions { flex-direction: row; flex-wrap: wrap; } }
.prose { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.link-list { display: grid; gap: 8px; }
.link-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--gold-200); text-decoration: none; color: var(--navy-900); }
.link-card:hover { border-color: var(--gold-600); color: var(--navy-900); }
.link-card .ico { color: var(--gold-700); } .link-card b { display: block; font-size: 14px; } .link-card small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* Pagination and numbered rows */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 13px; }
.pager__info { color: var(--ink-2); font-weight: 600; margin-right: auto; }
.pager__mode a { padding: 5px 12px; font-size: 12.5px; }
.pager__per select { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 13px; }
.pager__pages { display: flex; gap: 4px; align-items: center; }
.pager__pages a { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--navy-800); font-weight: 600; text-decoration: none; }
.pager__pages a:hover { background: var(--navy-50); }
.pager__pages a[aria-current="page"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.table th.n, .table td.n { width: 44px; padding-right: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
@media (max-width: 640px) { .table--stack td.n { display: none; } }
.doc-sort { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.doc-sort .tabs a { padding: 5px 12px; font-size: 12.5px; }
/* linked navy panels keep their white text on hover */
a.panel--navy, a.panel--navy:hover, a.panel--navy:focus { color: #fff; }
a.panel--navy:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
a.panel--navy { transition: transform .2s var(--ease), box-shadow .2s; }
a.stat .stat__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--navy-700); }
a.stat .stat__more .ico { width: 14px; height: 14px; }
/* member photo inside the dues ring on the home page */
.standing__me { position: relative; }
.standing__ring--photo { width: 104px; height: 104px; }
.standing__ring--photo img, .standing__ring--photo span { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.standing__ring--photo span { display: grid; place-items: center; font-family: var(--serif); font-size: 26px; background: var(--navy-800); }
.standing__pct { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 9px; border-radius: 99px; background: var(--gold-400); color: var(--navy-950); font-style: normal; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px var(--navy-900); }

/* ==========================================================================
   Notices ("tickets") and the confirmation seal
   A notice is a navy admission ticket: a stamped wax seal on a perforated
   stub, the message on the body, and a gold thread that burns down while it
   waits. Dismissing it tears the stub away from the body.
   ========================================================================== */
.ticket {
  --stub: 66px; --notch: 8px;
  --seal-a: #f6e19a; --seal-b: #b8902a; --seal-ink: var(--navy-900); --glow: rgba(221, 185, 84, .28);
  position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr); color: #fff; font-size: 14px;
  -webkit-mask: radial-gradient(circle at var(--stub) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--stub) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at var(--stub) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--stub) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  animation: ticket-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms);
}
.ticket--error  { --seal-a: #ff8b84; --seal-b: #a3181c; --seal-ink: #fff; --glow: rgba(226, 87, 90, .3); }
.ticket--info   { --seal-a: #bcd2ff; --seal-b: #3d63c9; --seal-ink: #fff; --glow: rgba(120, 160, 255, .26); }
.ticket__stub {
  display: grid; place-items: center; border-radius: 16px 0 0 16px;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .09), transparent 60%), linear-gradient(160deg, #13246b, var(--navy-950));
}
.ticket__body {
  position: relative; min-width: 0; padding: 14px 46px 16px 18px; border-radius: 0 16px 16px 0; overflow: hidden;
  background: radial-gradient(140% 120% at 0 0, var(--glow), transparent 55%), linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border-left: 2px dashed rgba(255, 255, 255, .2);
}
/* faint guilloche lines, like security printing on a ticket */
.ticket__body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 115% -20%, transparent 0 9px, rgba(255, 255, 255, .035) 9px 10px);
}
.ticket__seal {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--seal-ink);
  background: radial-gradient(circle at 35% 30%, var(--seal-a), var(--seal-b) 75%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28), inset 0 -4px 6px rgba(0, 0, 0, .18), 0 4px 12px -2px rgba(0, 0, 0, .45);
  animation: seal-stamp .65s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i, 0) * 120ms + .22s);
}
.ticket__seal .ico { width: 19px; height: 19px; stroke-width: 2.4; }
.ticket__seal::before { /* the rim around the seal turns slowly */
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px dashed var(--seal-a); opacity: .55; animation: spin 14s linear infinite;
}
.ticket__seal::after { /* ink ring when the stamp lands */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--seal-a);
  animation: seal-ring .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + .42s);
}
.ticket__kicker { position: relative; margin: 0 0 3px; font: 600 11px/1.2 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--seal-a); }
.ticket__msg { position: relative; margin: 0; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.ticket__hint { position: relative; margin: 8px 0 0; font-size: 12px; color: rgba(255, 255, 255, .62); }
.ticket .copy-field { position: relative; }
.ticket .copy-field input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.ticket .copy-field .btn { background: linear-gradient(135deg, #f6e19a, #d8b04a 45%, #b8902a); color: var(--navy-950); border-color: transparent; }
.ticket__x {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); cursor: pointer; transition: background .2s, transform .3s var(--ease);
}
.ticket__x:hover, .ticket__x:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; transform: rotate(90deg); }
.ticket__x .ico { width: 15px; height: 15px; }
.ticket__thread { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: none; background: linear-gradient(90deg, var(--seal-b), var(--seal-a)); transform-origin: left; }
.ticket__thread::after { /* the spark at the burning end */
  content: ""; position: absolute; right: -3px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--seal-a);
}
.ticket[data-life] .ticket__thread { display: block; animation: thread-burn linear forwards; animation-duration: calc(var(--life, 6) * 1s); }
.ticket.is-paused .ticket__thread { animation-play-state: paused; }
.ticket--error { animation: ticket-in .7s var(--ease) both, ticket-nudge .5s .75s ease-in-out both; }

/* Leaving: the stub drops away and the body slides off — the ticket is torn */
.ticket.is-torn { -webkit-mask: none; mask: none; animation: none; }
.ticket.is-torn .ticket__stub { animation: stub-fall .55s cubic-bezier(.5, 0, .75, 0) forwards; }
.ticket.is-torn .ticket__body { animation: body-off .5s .06s cubic-bezier(.5, 0, .75, 0) forwards; }

@keyframes ticket-in { from { opacity: 0; transform: translate3d(40px, -10px, 0) rotate(2deg) scale(.96); } }
@keyframes ticket-nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes seal-stamp { 0% { opacity: 0; transform: scale(2.3) rotate(-35deg); } 60% { opacity: 1; transform: scale(.88) rotate(4deg); } 100% { transform: none; } }
@keyframes seal-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes thread-burn { to { transform: scaleX(0); } }
@keyframes stub-fall { to { opacity: 0; transform: translateY(46px) rotate(-24deg); } }
@keyframes body-off { to { opacity: 0; transform: translateX(70px) rotate(2.5deg); } }

/* With scripting on, notices float over the page; without it they sit inline */
@media (scripting: enabled) {
  .flashes {
    position: fixed; top: 18px; right: 18px; z-index: 900; width: min(420px, calc(100vw - 24px)); margin: 0; pointer-events: none;
    filter: drop-shadow(0 18px 26px rgba(7, 15, 51, .32)) drop-shadow(0 2px 4px rgba(7, 15, 51, .2));
  }
  .flashes .ticket { pointer-events: auto; }
}
@media (max-width: 560px) {
  .flashes { top: 10px; right: 12px; left: 12px; width: auto; }
  .ticket { --stub: 54px; }
  .ticket__seal { width: 34px; height: 34px; }
}

/* ---------- Confirmation: a sealed card ---------- */
.seal-dlg { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ink); }
.seal-dlg::backdrop {
  background: radial-gradient(60% 50% at 50% 42%, rgba(221, 185, 84, .16), transparent 70%), rgba(7, 15, 51, .62);
  -webkit-backdrop-filter: blur(7px) saturate(.85); backdrop-filter: blur(7px) saturate(.85);
  animation: dlg-fade .35s ease both;
}
.seal-dlg.is-closing::backdrop { animation: dlg-fade .3s ease reverse both; }
.seal-dlg__card {
  position: relative; margin-top: 44px; padding: 62px 30px 24px; text-align: center; border-radius: 24px;
  background: radial-gradient(120% 70% at 50% 0, var(--gold-50), #fff 60%);
  box-shadow: 0 40px 80px -30px rgba(7, 15, 51, .6), 0 2px 0 rgba(255, 255, 255, .6) inset;
  animation: card-rise .55s var(--ease) both;
}
.seal-dlg__card::before { /* certificate frame */
  content: ""; position: absolute; inset: 9px; border: 1px solid var(--gold-200); border-radius: 17px; pointer-events: none;
}
.seal-dlg__card::after { /* a small diamond on the bottom of the frame */
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg);
  background: var(--gold-400); box-shadow: 0 0 0 3px #fff;
}
.seal-dlg__seal { position: absolute; top: -44px; left: 50%; width: 92px; height: 92px; margin-left: -46px; animation: seal-stamp .7s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
.seal-dlg__seal svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(7, 15, 51, .3)); }
.seal-dlg__seal .rim { transform-origin: 46px 46px; animation: spin 26s linear infinite; }
.seal-dlg__seal .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy-950); }
.seal-dlg--danger .seal-dlg__seal .glyph, .seal-dlg.is-sealed .seal-dlg__seal .glyph { color: #fff; }
.seal-dlg__seal .glyph .ico { width: 30px; height: 30px; stroke-width: 2.2; transition: transform .4s var(--ease); }
.seal-dlg__seal::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--gold-400); opacity: 0; }
.seal-dlg.is-sealed .seal-dlg__seal::after { animation: seal-ring .8s var(--ease) both; }
.seal-dlg.is-sealed .seal-dlg__seal { animation: seal-press .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.seal-dlg__kicker { margin: 0 0 6px; font: 600 11px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); }
.seal-dlg--danger .seal-dlg__kicker { color: var(--bad); }
.seal-dlg__title { margin: 0; font: 700 20px/1.3 var(--serif); color: var(--navy-900); overflow-wrap: anywhere; }
.seal-dlg__text { margin: 10px auto 0; max-width: 34ch; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.seal-dlg__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.seal-dlg__actions .btn { justify-content: center; min-height: 46px; }
.seal-dlg__hint { margin: 12px 0 0; min-height: 1.4em; font-size: 12px; color: var(--muted); transition: color .2s; }
.seal-dlg__hint.is-loud { color: var(--bad); animation: ticket-nudge .4s ease-in-out; }

/* Hold-to-confirm: the colour floods the button while it is held down */
.btn--hold { position: relative; overflow: hidden; isolation: isolate; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.btn--hold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #d9363a, var(--bad));
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.btn--hold.is-holding { color: #fff; transform: scale(.98); }
.btn--hold.is-holding::before { transform: scaleX(1); transition: transform var(--hold, .9s) linear; }
.btn--hold:hover { background: #fff; color: var(--bad); }
.btn--hold.is-holding:hover { color: #fff; }
.seal-dlg.is-sealed .btn--hold::before { transform: scaleX(1); }
.seal-dlg.is-sealed .btn--hold { color: #fff; }

.seal-dlg.is-closing .seal-dlg__card { animation: card-fold .42s cubic-bezier(.5, 0, .75, 0) forwards; }
.seal-dlg.is-closing.is-cancel .seal-dlg__card { animation: card-drop .3s ease-in forwards; }

@keyframes dlg-fade { from { opacity: 0; } }
@keyframes card-rise { from { opacity: 0; transform: translateY(34px) scale(.94); } }
@keyframes card-fold { to { opacity: 0; transform: perspective(900px) rotateX(62deg) translateY(-30px) scale(.9); } }
@keyframes card-drop { to { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes seal-press { 0% { transform: scale(1); } 40% { transform: scale(.82) rotate(-8deg); } 100% { transform: scale(1); } }

@media (forced-colors: active) {
  .ticket { -webkit-mask: none; mask: none; border: 1px solid CanvasText; }
  .seal-dlg__card { border: 1px solid CanvasText; }
}

/* ---------- Choice cards (radio options shown as cards) ---------- */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card > span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.choice-card > span .ico { width: 20px; height: 20px; color: var(--navy-500); }
.choice-card b { color: var(--navy-900); font-size: 14px; }
.choice-card small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.choice-card:hover > span { border-color: var(--navy-500); }
.choice-card input:checked + span { border-color: var(--navy-800); background: var(--navy-50); box-shadow: 0 0 0 3px rgba(23, 42, 120, .12); }
.choice-card input:checked + span .ico { color: var(--gold-600); }
.choice-card input:focus-visible + span { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.choice-card input:disabled + span { opacity: .5; cursor: not-allowed; }

/* ---------- List tools: search, filters, list/grid switch ---------- */
.list-tools { flex-wrap: wrap; }
.list-tools .search { flex: 1 1 260px; max-width: 420px; }
.list-tools__end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.seg a .ico { width: 16px; height: 16px; }
.seg a[aria-current] { background: var(--navy-900); color: #fff; }
.seg a:not([aria-current]):hover { background: var(--navy-50); color: var(--navy-900); }
@media (max-width: 560px) { .seg a span { display: none; } }

/* ---------- Grid view cards (events, budgets) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ecard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s; }
.ecard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ecard__img { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.ecard__img { overflow: visible; }
.ecard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ecard__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-400); }
.ecard__ph .ico { width: 40px; height: 40px; opacity: .6; }
.ecard__date { position: absolute; left: 12px; bottom: -18px; display: grid; place-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-2); text-align: center; line-height: 1.05; }
.ecard__date b { font: 700 20px/1 var(--serif); color: var(--navy-900); }
.ecard__date small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); }
.ecard__n { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(7, 15, 51, .6); color: #fff; font-size: 11px; font-weight: 700; }
.ecard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 28px 16px 16px; }
.ecard__body h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.ecard__body h3 a { color: var(--navy-900); text-decoration: none; }
.ecard__body h3 a:hover { text-decoration: underline; }
.ecard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; font-size: 12.5px; color: var(--muted); }
.ecard__meta .ico { width: 14px; height: 14px; }
.ecard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ecard__stat { display: grid; text-decoration: none; line-height: 1.1; }
.ecard__stat b { font-size: 18px; color: var(--navy-900); } .ecard__stat b small { font-size: 12px; color: var(--muted); }
.ecard__stat span { font-size: 11.5px; color: var(--muted); }
.ecard--budget .ecard__body { padding-top: 16px; }
.ecard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.budget-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px 6px 8px; border-radius: 10px; background: var(--gold-50); border: 1px solid #efe3bd; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.25; }
.budget-chip .ico { width: 16px; height: 16px; flex: none; color: var(--gold-700); }
.budget-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.budget-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.budget-chip:hover { border-color: var(--gold-400); }
.ev-links { display: grid; gap: 4px; }
.ev-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy-800); text-decoration: none; }
.ev-link .ico { width: 14px; height: 14px; color: var(--gold-600); flex: none; }
.ev-link:hover { text-decoration: underline; }
.linked-events { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -4px 0 16px; padding: 10px 14px; border-radius: var(--r); background: var(--gold-50); border: 1px solid #efe3bd; }
.linked-events .label { display: inline-flex; align-items: center; gap: 6px; } .linked-events .label .ico { width: 16px; height: 16px; color: var(--gold-700); }
a.support { display: block; text-decoration: none; color: inherit; background: linear-gradient(160deg, var(--gold-50), #fff 70%); border-color: #efe3bd; transition: transform .2s var(--ease), box-shadow .2s; }
a.support:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.support h2 { margin: 6px 0 10px; font-size: 17px; color: var(--navy-900); }
.support__kick { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.support__kick .ico { width: 15px; height: 15px; }
.support__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 13px; color: var(--navy-800); }
.support__go .ico { width: 15px; height: 15px; }

/* ---------- Event rows (member list view) ---------- */
.tab-n { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(23, 42, 120, .1); font-size: 11px; font-weight: 700; }
[aria-current] > .tab-n { background: rgba(255, 255, 255, .22); }
.ev-rows { list-style: none; margin: 0; padding: 0; }
.ev-rows li + li { border-top: 1px solid var(--line); }
.ev-row { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 14px 20px; text-decoration: none; color: inherit; transition: background .2s; }
.ev-row:hover { background: var(--navy-50); }
.ev-row__n { font-size: 12px; color: var(--muted); text-align: right; }
.ev-row__date { display: grid; place-items: center; padding: 8px 4px; border-radius: 12px; background: var(--navy-900); color: #fff; line-height: 1.05; }
.ev-row__date b { font: 700 20px/1 var(--serif); }
.ev-row__date small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-200); }
.ev-row__main { display: grid; gap: 3px; min-width: 0; }
.ev-row__main b { color: var(--navy-900); font-size: 15px; }
.ev-row__main small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.ev-row__main small .ico { width: 13px; height: 13px; }
.ev-row__budget { color: var(--gold-700) !important; font-weight: 600; }
.ev-row__state { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ev-row__go .ico { width: 18px; height: 18px; color: var(--navy-500); }
@media (max-width: 720px) {
  .ev-row { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px; }
  .ev-row__n, .ev-row__go { display: none; }
  .ev-row__state { grid-column: 2; justify-content: flex-start; }
}

/* ---------- Applications: compact rows that open for review ---------- */
.app-list { overflow: hidden; }
.app-list__head, .app-row > summary { display: grid; grid-template-columns: 36px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr) 96px 120px 90px; align-items: center; gap: 12px; padding: 12px 20px; }
.app-list__head { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-700); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.app-row { border-bottom: 1px solid var(--line); }
.app-row > summary { cursor: pointer; list-style: none; transition: background .2s; }
.app-row > summary::-webkit-details-marker { display: none; }
.app-row > summary:hover { background: var(--navy-50); }
.app-row[open] > summary { background: var(--navy-50); }
.app-row__n { font-size: 12px; color: var(--muted); }
.app-row__who { display: grid; min-width: 0; } .app-row__who b { color: var(--navy-900); } .app-row__who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row__min { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row__go { text-align: right; }
.app-row__body { padding: 6px 20px 20px 68px; background: var(--navy-50); }
@media (max-width: 1100px) {
  .app-list__head { display: none; }
  .app-row > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .app-row > summary > span:not(.app-row__who):not(:nth-child(6)) { display: none; }
  .app-row__body { padding: 6px 16px 18px; }
}

/* ---------- No more squeezed tables ----------
   Side-by-side layouts only when there is room for both; below that they stack,
   so tables keep their full width and no column is pushed out of sight. */
@media (max-width: 1480px) {
  .grid--side, .grid--wide-side { grid-template-columns: minmax(0, 1fr); }
}
.grid > * { min-width: 0; }
.panel__body > .donut, .pr-card > .donut { max-width: 720px; }
.panel__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.panel__tools .search { flex: 1 1 240px; max-width: 420px; }
a.fig { text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
a.fig:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- Add panels: a form that opens from a summary bar ---------- */
.add-panel > summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; cursor: pointer; list-style: none; }
.add-panel > summary::-webkit-details-marker { display: none; }
.add-panel > summary b { display: block; color: var(--navy-900); }
.add-panel > summary small { display: block; color: var(--muted); font-size: 12.5px; }
.add-panel__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-50); color: var(--gold-700); border: 1px solid #efe3bd; transition: transform .3s var(--ease); }
.add-panel[open] .add-panel__ico { transform: rotate(45deg); }
.add-panel[open] > summary .btn { visibility: hidden; }
.add-panel__body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.add-panel__body .form-grid { margin-top: 16px; }
.add-panel--gold { border-color: #efe3bd; background: linear-gradient(160deg, var(--gold-50), #fff 60%); }
.acct-actions { justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
a.stat[aria-current] { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.vault__eq a { display: block; padding: 22px 16px; border-left: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .2s; min-width: 0; }
.vault__eq a:hover { background: rgba(255, 255, 255, .08); }
.vault__eq a small .ico { width: 12px; height: 12px; vertical-align: -1px; }
.vault__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gold-200); text-decoration: none; }
.vault__link .ico { width: 14px; height: 14px; } .vault__link:hover { color: #fff; }
/* the treasury band stacks earlier so no figure is squeezed or cut */
@media (max-width: 1480px) { .vault { grid-template-columns: 1fr; } .vault__eq a:first-child { border-left: 0; } }
@media (max-width: 760px) { .vault__eq { grid-template-columns: 1fr 1fr; } .vault__eq a:nth-child(3) { border-left: 0; } }
.vault__eq b { overflow-wrap: anywhere; white-space: normal; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .form-grid--3 { grid-template-columns: 1fr; } }

.stat--navy .stat__more, .grid--4 > a.stat:nth-child(4n+1):not([class*="stat--"]) .stat__more { color: var(--gold-200); }
details[id] { scroll-margin-top: 90px; }

/* ---------- Member dues ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.year-tabs a { display: grid; gap: 2px; min-width: 96px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.year-tabs a:hover { border-color: var(--navy-500); }
.year-tabs a[aria-current] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: var(--shadow-2); }
.year-tabs b { font: 700 16px/1.1 var(--serif); }
.year-tabs__st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.year-tabs__st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.year-tabs__st--ok { color: var(--ok); } .year-tabs__st--warn { color: #b87900; } .year-tabs__st--bad { color: var(--bad); }
[aria-current] .year-tabs__st { color: var(--gold-200); }
.dues-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 20px 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.dues-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; background: url("emblem.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.dues-hero h2 { margin: 0; font: 700 22px/1.2 var(--serif); color: #fff; }
.dues-hero p { margin: 4px 0 10px; color: rgba(255, 255, 255, .75); font-size: 13.5px; }
.dues-hero__ring { --p: 0; display: grid; place-items: center; align-content: center; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--gold-400) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); position: relative; }
.dues-hero__ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--navy-900); }
.dues-hero__ring b, .dues-hero__ring small { position: relative; line-height: 1; }
.dues-hero__ring b { font: 700 24px/1 var(--serif); } .dues-hero__ring small { font-size: 11px; color: var(--gold-200); margin-top: 3px; }
.dues-hero .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .dues-hero { grid-template-columns: auto 1fr; } .dues-hero .btn { grid-column: 1 / -1; justify-self: start; } .dues-hero__ring { width: 84px; height: 84px; } }
.steps-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.steps-mini li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #efe3bd; font-size: 13px; }
.steps-mini b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-400); color: var(--navy-950); font-size: 13px; }
@media (max-width: 760px) { .steps-mini { grid-template-columns: 1fr; } }

/* ---------- Member home: getting started ---------- */
.start { border-color: #efe3bd; background: linear-gradient(160deg, var(--gold-50), #fff 55%); }
.start .panel__head { background: transparent; }
.start__bar { width: 180px; height: 8px; border-radius: 99px; background: rgba(23, 42, 120, .1); overflow: hidden; }
.start__bar i { display: block; height: 100%; background: var(--gold-400); border-radius: inherit; }
.start__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 20px 20px; list-style: none; }
.start__step { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.start__step:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--navy-500); }
.start__step b { display: block; color: var(--navy-900); font-size: 14px; }
.start__step small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.start__n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 13px; }
.start__step.is-done { background: var(--ok-bg); border-color: #bfe3cb; }
.start__step.is-done .start__n { background: var(--ok); }
.start__step.is-done .start__n .ico { width: 16px; height: 16px; }
@media (max-width: 1100px) { .start__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .start__steps { grid-template-columns: 1fr; } .start__bar { width: 100%; } }
a.stat.stat--navy .stat__more, .grid--4 > a.stat:nth-child(4n+1):not([class*="stat--"]) .stat__more { color: var(--gold-200); }
.group-title.mt { margin-top: 30px; }
/* recent payments on the member home: a tidy two-column list once it is full width */
@media (max-width: 1480px) { .grid--side .history { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 24px; } }
.stat__value small { font-size: .55em; font-weight: 600; opacity: .7; }

/* ---------- Profile: church and business page cards ---------- */
.page-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.page-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); text-decoration: none; color: inherit; border: 1px solid; box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s; }
.page-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.page-card--church { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-color: var(--navy-900); color: #fff; }
.page-card--biz { background: linear-gradient(135deg, #f8edcd, var(--gold-50)); border-color: var(--gold-200); }
.page-card__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .12); color: var(--gold-400); }
.page-card--biz .page-card__ico { background: #fff; color: var(--gold-700); }
.page-card__ico .ico { width: 28px; height: 28px; }
.page-card__body { display: grid; gap: 3px; min-width: 0; }
.page-card__body small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); }
.page-card--biz .page-card__body small { color: var(--gold-700); }
.page-card__body b { font: 700 18px/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-card--biz .page-card__body b { color: var(--navy-900); }
.page-card__body em { font-style: normal; font-size: 12.5px; opacity: .8; }
.page-card__meter { display: block; height: 5px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.page-card--biz .page-card__meter { background: rgba(10, 22, 69, .1); }
.page-card__meter i { display: block; height: 100%; background: var(--gold-400); }
.page-card__go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--gold-400); color: var(--navy-950); font-weight: 700; font-size: 13px; white-space: nowrap; }
.page-card--biz .page-card__go { background: var(--navy-900); color: #fff; }
.page-card__go .ico { width: 15px; height: 15px; }
@media (max-width: 900px) { .page-cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .page-card { grid-template-columns: 48px minmax(0, 1fr); } .page-card__go { grid-column: 1 / -1; justify-self: start; } }

/* ==========================================================================
   System layer — the portal is a working tool, not a brochure.
   Tighter corners, key-like buttons colour-coded by what they do,
   dense data tables, and colour-coded state switches.
   ========================================================================== */
:root { --r-lg: 12px; --r: 10px; --r-sm: 7px; --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --tone-print: #0d6b73; --tone-print-bg: #e4f3f4; --tone-print-line: #a9d7da;
  --tone-edit: #7a4f00;  --tone-edit-bg: #fff4d4;  --tone-edit-line: #ecd08a; --tone-edit-solid: #8a5a00;
  --tone-add: #0b7a2b;
  --tone-export: #3b3a98; --tone-export-bg: #ecebfb; --tone-export-line: #c9c7f0;
  --tone-violet: #6a3fb0; --tone-violet-bg: #f1ebfb;
  --tone-hidden: #4a5272; --tone-hidden-bg: #eef0f6;
  --tone-closed: #2b2f3f; --tone-closed-bg: #e9eaee; }

/* ---------- Buttons: key caps ---------- */
.btn { border-radius: 8px; padding: 9px 16px; font-size: 13.5px; letter-spacing: .01em; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16); }
.btn:hover { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 6px 14px -10px rgba(10, 22, 69, .55); }
.btn:active { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .18); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn--xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; gap: 5px; }
.btn--xs .ico { width: 14px; height: 14px; }
.btn--ghost { box-shadow: inset 0 -1px 0 var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 -1px 0 var(--line-2); }
.btn--gold { box-shadow: inset 0 -2px 0 rgba(138, 106, 22, .45); }

/* Colour by intent — read from the button's icon, so every page follows the same code:
   print = teal · edit = amber · add/create = green · export/download = indigo · delete/void = red */
.btn--ghost:has(> [data-i="print"]) { background: var(--tone-print-bg); color: var(--tone-print); border-color: var(--tone-print-line); box-shadow: inset 0 -1px 0 var(--tone-print-line); }
.btn--ghost:has(> [data-i="print"]):hover { background: var(--tone-print); color: #fff; border-color: var(--tone-print); }
.btn--ghost:has(> [data-i="edit"]) { background: var(--tone-edit-bg); color: var(--tone-edit); border-color: var(--tone-edit-line); box-shadow: inset 0 -1px 0 var(--tone-edit-line); }
.btn--ghost:has(> [data-i="edit"]):hover { background: var(--tone-edit-solid); color: #fff; border-color: var(--tone-edit-solid); }
.btn--ghost:has(> [data-i="download"]), .btn--ghost:has(> [data-i="out"]) { background: var(--tone-export-bg); color: var(--tone-export); border-color: var(--tone-export-line); box-shadow: inset 0 -1px 0 var(--tone-export-line); }
.btn--ghost:has(> [data-i="download"]):hover, .btn--ghost:has(> [data-i="out"]):hover { background: var(--tone-export); color: #fff; border-color: var(--tone-export); }
.btn:not(.btn--ghost):not(.btn--gold):not(.btn--danger):has(> [data-i="plus"]),
.btn:not(.btn--ghost):not(.btn--gold):not(.btn--danger):has(> [data-i="check"]) { background: var(--tone-add); }
.btn:not(.btn--ghost):not(.btn--gold):not(.btn--danger):has(> [data-i="plus"]):hover,
.btn:not(.btn--ghost):not(.btn--gold):not(.btn--danger):has(> [data-i="check"]):hover { background: #075f20; color: #fff; }
.btn--ghost:has(> [data-i="plus"]) { color: var(--tone-add); border-color: #b9dfc6; background: var(--ok-bg); box-shadow: inset 0 -1px 0 #b9dfc6; }
.btn--ghost:has(> [data-i="plus"]):hover { background: var(--tone-add); color: #fff; border-color: var(--tone-add); }
.btn--danger { background: var(--bad-bg); box-shadow: inset 0 -1px 0 #efc2c2; }
.btn--danger:hover { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.btn--ghost:has(> [data-i="print"]) .ico, .btn--ghost:has(> [data-i="edit"]) .ico { color: inherit; }

/* ---------- Panels & tables: denser, squarer ---------- */
.panel__head { border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 13px 20px; background: linear-gradient(180deg, #f8f9fd, #f1f3f9); }
.panel__head h2 { font-size: 15px; letter-spacing: .005em; display: flex; align-items: center; }
.panel__head h2 .ico { display: inline-grid; box-sizing: content-box; padding: 5px; width: 15px; height: 15px; border-radius: 7px; background: #fff; border: 1px solid var(--line); vertical-align: 0; }
.table--sys { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table--sys th { padding: 9px 14px; font-size: 10.5px; letter-spacing: .09em; color: var(--muted); background: #f8f9fc; }
.table--sys td { padding: 10px 14px; }
.table--sys tbody tr:nth-child(even):not(:hover) td { background: #fcfcfe; }
.table--sys tbody tr:hover td { background: #f3f6fd; }
.table--sys td.n, .table--sys th.n { width: 1%; color: var(--muted); font-family: var(--mono); font-size: 12px; text-align: right; padding-right: 6px; }
.table--sys td.num { font-family: var(--mono); font-size: 13px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }
.who b, .who a { display: block; font-weight: 600; overflow-wrap: anywhere; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.ref { font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: #f1f3f8; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.src { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.src .ico { width: 13px; height: 13px; }
.src--pay { background: var(--wait-bg); color: var(--wait); }
a.src--pay:hover { background: var(--wait); color: #fff; }
.src--manual { background: var(--tone-edit-bg); color: var(--tone-edit); }

/* ---------- Section toolbar (search · filters · sort · view · print) ---------- */
.sec-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 20px; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.search--sm { flex: 1 1 220px; max-width: 320px; min-width: 180px; }
.search--sm input { padding: 7px 10px 7px 34px; border-radius: 8px; font-size: 13px; }
.search--sm .ico { width: 16px; height: 16px; left: 10px; }
.sec-tools__pick { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; font-size: 12.5px; }
.sec-tools__pick span { display: grid; place-items: center; padding: 0 9px; background: #f1f3f8; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-right: 1px solid var(--line-2); }
.sec-tools__pick select { border: 0; padding: 6px 26px 6px 9px; background-color: transparent; font-size: 12.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.sec-tools__pick.is-on { border-color: var(--navy-500); box-shadow: 0 0 0 2px rgba(61, 79, 154, .14); }
.sec-tools__pick.is-on span { background: var(--navy-800); color: #fff; border-right-color: var(--navy-800); }
.sec-tools__clear { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--bad); text-decoration: none; padding: 5px 8px; border-radius: 7px; }
.sec-tools__clear .ico { width: 14px; height: 14px; }
.sec-tools__clear:hover { background: var(--bad-bg); color: var(--bad); }
.sec-tools__end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.sec-tools__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding: 4px 9px; border-radius: 99px; background: #eef0f6; }
.sec-tools__count b { color: var(--navy-900); }
.seg--sm { padding: 2px; border-radius: 8px; }
.seg--sm a { padding: 5px 9px; border-radius: 6px; font-size: 12.5px; }
.seg--sm a .ico { width: 14px; height: 14px; }

/* ---------- Grid tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tiles > * { position: relative; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-1); }
/* contributor */
.ctile { display: grid; gap: 10px; }
.ctile__rank { position: absolute; top: 10px; right: 10px; font: 700 11px/1 var(--mono); color: var(--gold-700); background: var(--gold-50); border: 1px solid var(--gold-200); padding: 4px 6px; border-radius: 6px; }
.ctile .who { padding-right: 34px; }
.ctile__amt { font: 700 22px/1 var(--mono); color: var(--navy-900); letter-spacing: -.02em; }
.ctile__amt small { font: 600 11px var(--sans); color: var(--muted); margin-left: 6px; letter-spacing: .06em; }
.sharebars { display: grid; gap: 6px; }
.sharebar { display: grid; grid-template-columns: 82px 1fr 46px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.sharebar i { display: block; height: 6px; border-radius: 99px; background: #eceff6; overflow: hidden; }
.sharebar em { display: block; height: 100%; border-radius: inherit; background: var(--navy-700); }
.sharebar--gold em { background: var(--gold-600); }
.sharebar b { font: 600 12px var(--mono); color: var(--ink); text-align: right; }
.sharebar--inline { grid-template-columns: minmax(60px, 120px) 46px; }
/* contribution stub: date block | details | amount, with a perforation */
.stub { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 12px; padding: 0 !important; overflow: hidden; }
.stub__date { grid-row: span 2; display: grid; align-content: center; justify-items: center; padding: 12px 4px; background: var(--navy-900); color: #fff; border-right: 2px dashed rgba(255, 255, 255, .0); position: relative; }
.stub__date::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; border-right: 2px dotted var(--line-2); }
.stub__date b { font: 700 22px/1 var(--serif); }
.stub__date span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.stub__date small { font: 11px var(--mono); color: rgba(255, 255, 255, .7); }
.stub__body { display: grid; gap: 4px; padding: 12px 12px 0 0; min-width: 0; }
.stub__who { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.stub__src { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.stub__src .ico { width: 13px; height: 13px; }
.stub .ref { justify-self: start; }
.stub__amt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 8px 12px 12px 0; }
.stub__amt b { font: 700 18px/1 var(--mono); color: var(--navy-900); }
.stub__amt small { font-size: 11.5px; color: var(--muted); }
.stub__amt .btn { margin-left: auto; }
.stub__void { color: var(--bad); }
.stub__form { grid-column: 1 / -1; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bad-bg); }
.stub__form .input { flex: 1; min-width: 0; }
.stub.is-void { background: #fafafb; }
.stub.is-void .stub__date { background: #8b90a3; }
.stub.is-void .stub__amt b, .stub.is-void .stub__who { text-decoration: line-through; color: var(--muted); }
.stub__stamp { position: absolute; right: 12px; top: 10px; transform: rotate(-8deg); font: 800 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bad); border: 2px solid var(--bad); padding: 3px 8px; border-radius: 4px; opacity: .8; }
/* payment tile: status shown by the coloured spine and the pill */
.ptile { display: grid; gap: 10px; text-decoration: none; color: inherit; border-left-width: 4px !important; transition: transform .15s var(--ease), box-shadow .15s; }
.ptile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }
.ptile--ok { border-left-color: var(--ok) !important; } .ptile--wait { border-left-color: var(--wait) !important; }
.ptile--bad { border-left-color: var(--bad) !important; } .ptile--muted { border-left-color: #9aa1b8 !important; }
.ptile__amt { font: 700 19px/1 var(--mono); color: var(--navy-900); }
.ptile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.ptile__foot small { color: var(--muted); font-size: 12px; }
/* member tile */
.mtile { display: grid; gap: 10px; align-content: start; }
.mtile__n { position: absolute; top: 10px; right: 10px; font: 600 11px var(--mono); color: var(--muted); }
.mtile .who { padding-right: 26px; }
.mtile__facts { display: grid; gap: 6px; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); }
.mtile__facts div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 12.5px; }
.mtile__facts dt { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.mtile__facts dd { margin: 0; overflow-wrap: anywhere; }
.mtile__facts dd small { color: var(--muted); }
.mtile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.mtile__foot small { color: var(--muted); font-size: 12px; }
.mtile--off { background: #fafafb; }
/* history card */
.hcard { display: grid; gap: 6px; align-content: start; border-top: 3px solid var(--wait) !important; }
.hcard p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.hcard small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.hcard small .ico { width: 13px; height: 13px; }
.hcard__what { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wait); }
.hcard--ok { border-top-color: var(--ok) !important; } .hcard--ok .hcard__what { color: var(--ok); }
.hcard--warn { border-top-color: var(--warn-mark) !important; } .hcard--warn .hcard__what { color: var(--warn); }
.hcard--bad { border-top-color: var(--bad) !important; } .hcard--bad .hcard__what { color: var(--bad); }

/* ---------- Timeline (history as a list) ---------- */
.tline { list-style: none; margin: 0; padding: 8px 20px 8px; }
.tline__item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 4px 18px; padding: 10px 0 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tline__item:last-child { border-bottom: 0; }
.tline__item time { font: 600 12px var(--mono); color: var(--ink-2); position: relative; padding-left: 18px; }
.tline__item time small { display: block; color: var(--muted); font-weight: 400; }
.tline__item time::before { content: ""; position: absolute; left: 0; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--wait); box-shadow: 0 0 0 3px var(--wait-bg); }
.tline__item--ok time::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.tline__item--warn time::before { background: var(--warn-mark); box-shadow: 0 0 0 3px var(--warn-bg); }
.tline__item--bad time::before { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.tline__item > div { display: grid; gap: 2px; min-width: 0; }
.tline__item > div span { color: var(--ink-2); overflow-wrap: anywhere; }
.tline__by { color: var(--muted); font-size: 12px; white-space: nowrap; align-self: start; padding-top: 2px; }
@media (max-width: 640px) { .tline__item { grid-template-columns: 1fr; } .tline__by { white-space: normal; } }

/* ---------- State switch: a control panel of lit keys ---------- */
.state-switch-wrap { border: 0; padding: 0; margin: 0; }
.state-switch-wrap legend { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.state-switch { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 12px; background: #e9ecf4; box-shadow: inset 0 1px 3px rgba(10, 22, 69, .14); }
.state-key { --t: var(--navy-700); --t-bg: var(--navy-50); position: relative; display: grid; gap: 4px; padding: 11px 13px 12px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; color: var(--ink-2); transition: background .18s, box-shadow .18s, border-color .18s, transform .12s; }
.state-key input { position: absolute; opacity: 0; pointer-events: none; }
.state-key__top { display: flex; align-items: center; gap: 8px; }
.state-key__top .ico { width: 16px; height: 16px; color: var(--t); opacity: .7; }
.state-key b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.state-key small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.state-key__led { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--t); opacity: .35; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25); }
.state-key:hover { background: rgba(255, 255, 255, .6); }
.state-key:has(input:checked) { background: var(--t-bg); border-color: var(--t); box-shadow: 0 1px 0 #fff inset, 0 4px 12px -6px var(--t), inset 0 -3px 0 var(--t); }
.state-key:has(input:checked) .state-key__led { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 10px 2px var(--t); animation: led-on .5s var(--ease); }
.state-key:has(input:checked) .state-key__top .ico { opacity: 1; }
.state-key:has(input:checked) b { color: var(--t); }
.state-key:has(input:checked) small { color: var(--ink-2); }
.state-key:has(input:focus-visible) { outline: 2.5px solid var(--gold-600); outline-offset: 2px; }
.state-key:active { transform: translateY(1px); }
.state-key--ok { --t: var(--ok); --t-bg: var(--ok-bg); }
.state-key--draft { --t: #a86b00; --t-bg: #fff6dc; }
.state-key--bad { --t: var(--bad); --t-bg: var(--bad-bg); }
.state-key--hidden { --t: var(--tone-hidden); --t-bg: var(--tone-hidden-bg); }
.state-key--closed { --t: var(--tone-closed); --t-bg: var(--tone-closed-bg); }
.state-key--info { --t: var(--wait); --t-bg: var(--wait-bg); }
.state-key--gold { --t: var(--gold-700); --t-bg: var(--gold-50); }
.state-key--violet { --t: var(--tone-violet); --t-bg: var(--tone-violet-bg); }
@keyframes led-on { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (max-width: 640px) { .state-switch { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .state-key:has(input:checked) .state-key__led { animation: none; } }
.tiles a.rowlink { text-decoration: none; font-weight: 600; }
.tiles a.rowlink:hover { text-decoration: underline; }
