/* UMOJA: one stylesheet for the public pages, the group app, the member app and printouts.
   Design language: deep forest green, marigold, warm cream; Plus Jakarta Sans; soft rounded cards. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans.woff2) format('woff2');
}
:root {
  --forest: #0b3b2e;
  --forest-2: #12503f;
  --brand: #1d6b55;
  --brand-ink: #0b3b2e;
  --brand-soft: #d6f0e4;
  --brand-softer: #eef8f3;
  --accent: #f2a93b;
  --accent-ink: #3a2405;
  --accent-soft: #fdf0d8;
  --bg: #f8f5ee;
  --card: #ffffff;
  --ink: #14211c;
  --ink-2: #3d4a44;
  --muted: #6f7a74;
  --line: #ebe6da;
  --line-2: #f1ede4;
  --line-strong: #d6cfbf;
  --ok: #17734f;
  --ok-soft: #d6f0e4;
  --warn: #8a5300;
  --warn-soft: #fdf0d8;
  --bad: #b5402a;
  --bad-soft: #fbe7e1;
  --info: #2f6fbf;
  --info-soft: #e5eefa;
  --focus: #2f80ed;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 59, 46, .05), 0 6px 18px rgba(11, 59, 46, .06);
  --hero: radial-gradient(120% 140% at 100% 0%, #2a7a62 0%, #12503f 38%, #0b3b2e 100%);
  --sidebar: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4cc29a; --brand-ink: #9fe3c8; --brand-soft: #173a31; --brand-softer: #14251f; --accent: #f2b456; --accent-soft: #3a2e14;
    --bg: #101614; --card: #19201d; --ink: #e8eeeb; --ink-2: #c4cdc8; --muted: #95a39c; --line: #28312d; --line-2: #222a27; --line-strong: #3a4540;
    --ok: #63d39b; --ok-soft: #173826; --warn: #f2c06a; --warn-soft: #3a2e14; --bad: #f29a86; --bad-soft: #3d1d1a;
    --info: #8db9f2; --info-soft: #18293d; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4cc29a; --brand-ink: #9fe3c8; --brand-soft: #173a31; --brand-softer: #14251f; --accent: #f2b456; --accent-soft: #3a2e14;
  --bg: #101614; --card: #19201d; --ink: #e8eeeb; --ink-2: #c4cdc8; --muted: #95a39c; --line: #28312d; --line-2: #222a27; --line-strong: #3a4540;
  --ok: #63d39b; --ok-soft: #173826; --warn: #f2c06a; --warn-soft: #3a2e14; --bad: #f29a86; --bad-soft: #3d1d1a;
  --info: #8db9f2; --info-soft: #18293d; --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: 1.65rem; font-weight: 800; }
h2 { font-size: 1.08rem; font-weight: 800; }
h3 { font-size: .98rem; font-weight: 700; margin-top: 1em; }
p { margin: 0 0 .8em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.center { text-align: center; }
.lead { font-size: 1.04rem; color: var(--muted); max-width: 70ch; }
.sub { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; font-weight: 500; }
.neg { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.num, .amt { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1400px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.narrow { max-width: 640px; margin: 0 auto; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: 0 0 auto; max-width: 70%; }
.brand .logo { width: 38px; height: 38px; flex: none; }
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: var(--muted); font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo .l-bg { fill: var(--forest); }
.logo .l-a, .logo .l-b, .logo .l-c { fill: none; stroke-width: 2.6; }
.logo .l-a { stroke: var(--accent); }
.logo .l-b { stroke: #fff; }
.logo .l-c { stroke: #fff; stroke-opacity: .7; }

/* Public header and footer */
.site-head { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; position: sticky; top: 0; z-index: 20; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 700; white-space: nowrap; color: var(--ink); }
.site-nav-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nav-demo { font-size: .82rem; font-weight: 700; }
.site-foot, .app-foot { color: var(--muted); font-size: .84rem; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.site-foot a, .app-foot a { color: inherit; }
.foot-links { margin-top: 4px; }
.legal h2 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.legal li { margin-bottom: .35em; }
.preview-bar { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .85rem; padding: 4px; font-weight: 700; }
.sample-bar { background: var(--info-soft); color: var(--info); text-align: center; font-size: .84rem; padding: 6px 16px; font-weight: 700; }
.sample-bar.boxed { border-radius: var(--radius-sm); margin-bottom: 14px; }

/* ---------- App shell: sidebar on wide screens, bottom tab bar on phones ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: none; background: var(--card); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; }
.sidebar .brand { max-width: none; padding: 4px 8px 14px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.side-nav a svg.i { color: var(--muted); }
.side-nav a:hover { background: var(--line-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.side-nav a[aria-current="page"] svg.i { color: var(--brand); }
.side-nav .group-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.topbar .brand { display: none; }
.topbar .spacer { flex: 1; }
.shell-main main.wrap { width: 100%; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .86rem; max-width: 220px; }
.me-chip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher { position: relative; }
.switcher summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .88rem; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher[open] summary { border-color: var(--brand); }
.switcher .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11, 59, 46, .16); padding: 8px; z-index: 40; }
.switcher .menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.switcher .menu a:hover { background: var(--line-2); }
.switcher .menu a[aria-current="true"] { background: var(--brand-soft); }
.switcher .menu small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.switcher .menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.switcher.right .menu { left: auto; right: 0; }
.tabbar { display: none; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .topbar .brand { display: flex; }
  .topbar .wrap { height: 58px; }
  .shell-main main.wrap { padding-bottom: 96px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tabbar a .ic { width: 46px; height: 28px; border-radius: 99px; display: grid; place-items: center; }
  .tabbar a svg.i { width: 21px; height: 21px; }
  .tabbar a[aria-current="page"] { color: var(--brand-ink); }
  .tabbar a[aria-current="page"] .ic { background: var(--brand-soft); }
  .tabbar a.fab .ic { width: 50px; height: 50px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); margin-top: -22px;
    box-shadow: 0 8px 18px rgba(242, 169, 59, .45); }
  .app-foot { padding-bottom: 96px; }
  .me-chip .nm { display: none; }
  .me-chip { padding: 3px; }
}

/* Old-style header, kept for the stand-alone pages */
.app-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.app-head > .wrap { padding-top: 10px; padding-bottom: 6px; }
.who { display: flex; align-items: center; gap: 10px; font-size: .9rem; flex: 0 1 auto; min-width: 0; }
.who a { text-decoration: none; }
.who > a, .who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.who form { flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 42px;
  padding: 9px 18px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 800; font-size: .93rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--forest); color: #fff; box-shadow: 0 6px 14px rgba(11, 59, 46, .22); }
.btn.primary:hover { background: var(--forest-2); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--brand); color: #07130f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--brand); color: #07130f; } }
.btn.gold { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px rgba(242, 169, 59, .3); }
.btn.secondary { background: var(--brand-soft); color: var(--brand-ink); }
.btn.secondary:hover { border-color: var(--brand); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: .84rem; border-radius: 11px; }
.btn.block { width: 100%; }
form.inline, .inline-form { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form .actions { margin-top: 8px; }

/* Page head */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; margin-bottom: 18px; }
.page-head h1 { margin-bottom: .15em; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--muted); margin-bottom: 8px; }

/* Cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card.tight { padding: 12px 14px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: .6em; }
.card-head h2 { margin: 0; }
.card-head a { font-weight: 700; font-size: .85rem; text-decoration: none; }
.muted-card { color: var(--muted); }
.cols2, .cols3 { display: grid; gap: 0 16px; }
.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols2.top { gap: 0 20px; align-items: start; }
.grid2, .grid3 { display: grid; gap: 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .cols2, .cols3, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
}

/* Hero panels (dashboards, member page) */
.panel { background: var(--hero); color: #fff; border-radius: 24px; padding: 18px 20px; position: relative; overflow: hidden; margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(11, 59, 46, .22); }
.panel::after { content: ''; position: absolute; right: -50px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(242, 169, 59, .15); pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.panel .label { font-size: .82rem; font-weight: 700; opacity: .82; display: flex; align-items: center; gap: 7px; }
.panel .big { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.panel .big small { font-size: .95rem; opacity: .75; margin-right: 4px; letter-spacing: 0; font-weight: 700; }
.panel .delta { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; background: rgba(214, 240, 228, .16); color: #c9f0dc; padding: 4px 10px; border-radius: 99px; margin-top: 6px; }
.panel .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.panel .split > div { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; padding: 9px 12px; }
.panel .split span { display: block; font-size: .74rem; opacity: .78; font-weight: 700; }
.panel .split b { font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.panel a { color: #fff; }
.panel .btn.ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.panel.gold { background: radial-gradient(120% 140% at 100% 0%, #ffd38a 0%, #f2a93b 45%, #e08f1c 100%); color: var(--accent-ink); box-shadow: 0 12px 28px rgba(224, 143, 28, .28); }
.panel.gold .split > div { background: rgba(255, 255, 255, .28); border-color: rgba(255, 255, 255, .35); }
.panel.gold::after { border-color: rgba(255, 255, 255, .22); }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.panel .bar { background: rgba(255, 255, 255, .16); }
.panel .bar > i { background: var(--accent); }
.bar.warn > i { background: var(--accent); }
.bar.bad > i { background: var(--bad); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat {
  display: flex; flex-direction: column; gap: 1px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px 11px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); position: relative;
}
.stat::before { content: ''; width: 22px; height: 4px; border-radius: 4px; background: var(--line-strong); margin-bottom: 7px; }
a.stat:hover { border-color: var(--brand); }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-weight: 600; }
.stat.ok::before { background: var(--brand); }
.stat.warn::before { background: var(--accent); }
.stat.bad::before { background: var(--bad); }
.stat.info::before { background: var(--info); }

/* Rows: list items with an avatar or icon, a title, a sub-line and something on the right */
.rows { display: flex; flex-direction: column; }
.rows > .item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.rows > .item:first-child { border-top: 0; padding-top: 2px; }
.rows > .item:last-child { padding-bottom: 2px; }
a.item:hover .t { color: var(--brand); }
.item .grow { flex: 1; min-width: 0; }
.item .t { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .r { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .r small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.av { width: 38px; height: 38px; border-radius: 13px; display: inline-grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; color: #fff; background: var(--brand); }
.av.sm { width: 30px; height: 30px; border-radius: 10px; font-size: .72rem; }
.av.lg { width: 56px; height: 56px; border-radius: 19px; font-size: 1.15rem; }
.av.c1 { background: #1d6b55; } .av.c2 { background: #d9634a; } .av.c3 { background: #2f6fbf; } .av.c4 { background: #b9821f; }
.av.c5 { background: #7b4fb0; } .av.c6 { background: #0f8a8a; } .av.c7 { background: #a9446b; } .av.c8 { background: #55704a; }
.tile { width: 38px; height: 38px; border-radius: 13px; display: inline-grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.tile.gold { background: var(--accent-soft); color: #b06a00; } .tile.bad { background: var(--bad-soft); color: var(--bad); }
.tile.info { background: var(--info-soft); color: var(--info); } .tile.dark { background: var(--forest); color: #fff; }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.quick a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px 10px; text-align: center; text-decoration: none;
  color: var(--ink-2); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quick a:hover { border-color: var(--brand); color: var(--ink); }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 700; }
.menu-list a:first-child { border-top: 0; }
.menu-list a .s { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.menu-list a .grow { flex: 1; }
.menu-list a > svg.i:last-child { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; white-space: nowrap; }
.table tbody tr:hover td { background: var(--brand-softer); }
.table.compact td { padding: 7px 6px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.voided td { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.table tr.voided td .badge { text-decoration: none; }
.table tr.total td { font-weight: 800; border-top: 2px solid var(--line-strong); }
.card > .table-wrap:first-child, .card > .table:first-child { margin-top: -6px; }
.edit-table input { width: 100%; min-width: 80px; }
.edit-table input.short { width: 80px; min-width: 60px; }
.edit-table input[type="checkbox"] { width: 20px; min-width: 0; height: 20px; }

/* Badges (pills) */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; line-height: 1.4; vertical-align: middle; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: var(--line-2); color: var(--ink-2); }
.pay { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .68rem; letter-spacing: .02em; border-radius: 7px; padding: 0 7px; height: 20px; white-space: nowrap; }
.pay.mtn { background: #ffcb05; color: #1a1a1a; } .pay.airtel { background: #e4002b; color: #fff; }
.pay.bank { background: #1e3a6b; color: #fff; } .pay.cash { background: var(--line-2); color: var(--ink-2); }

/* Forms */
.form h2 { margin-top: .6em; }
.form h2:first-of-type, .form > h2:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.lbl { font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.lbl i { color: var(--bad); font-style: normal; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 12px; width: 100%; min-height: 44px;
}
textarea { resize: vertical; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent); outline-offset: 0; }
input.short { max-width: 140px; }
input.money { text-align: right; font-variant-numeric: tabular-nums; }
input[type="checkbox"], input[type="radio"] { width: 19px; height: 19px; accent-color: var(--brand); flex: none; margin: 2px 0 0; }
input[type="file"] { font: inherit; font-size: .88rem; }
.with-suffix { display: flex; align-items: center; gap: 8px; }
.with-suffix input { flex: 1; }
.suffix { color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.help { color: var(--muted); font-size: .8rem; display: block; font-weight: 500; }
.err { color: var(--bad); font-size: .84rem; font-weight: 700; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; font-weight: 600; }
.check > span { flex: 1; min-width: 0; }
.check .help { flex-basis: 100%; padding-left: 29px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset[disabled] { opacity: .8; }
legend { font-weight: 700; font-size: .86rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.choices .choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: var(--card);
}
.choices .choice:hover { border-color: var(--brand); }
.choices .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.choices .choice span { display: flex; flex-direction: column; font-weight: 700; }
.choices .choice small { color: var(--muted); font-weight: 600; }
.choices.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.inline legend { width: 100%; }
.choices.inline .choice { margin: 0; }
.callout { background: var(--brand-softer); border: 1px solid var(--brand-soft); border-radius: 14px; padding: 12px 14px 2px; margin-bottom: 14px; }
.alloc { display: flex; flex-wrap: wrap; gap: 12px; }
.alloc label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters input[type="search"] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.inline-lbl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.inline-lbl input { width: auto !important; }
.searchbar { display: flex; gap: 10px; align-items: flex-end; }
.searchbar .field { flex: 1; margin: 0; }
.wide-form { max-width: 980px; }
.narrow-card { max-width: 520px; }
.inline-upload { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 12px; align-items: end; margin-top: 10px; }
.inline-upload .btn { margin-bottom: 14px; }
@media (max-width: 700px) { .inline-upload, .searchbar { grid-template-columns: 1fr; display: grid; } }

/* Messages */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; margin-bottom: 14px; background: var(--ok-soft); color: var(--ink); font-weight: 600; font-size: .92rem; }
.flash.bad { background: var(--bad-soft); }
.flash.warn { background: var(--warn-soft); }
.flash.info { background: var(--info-soft); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; border-radius: 14px; font-size: .88rem; font-weight: 600; margin-bottom: 14px; background: var(--brand-softer); border: 1px solid var(--brand-soft); color: var(--ink-2); }
.note.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.note.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); font-weight: 600; }

/* Rule checks */
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: .92rem; }
.checks li:last-child { border-bottom: 0; }
.ck { flex: none; width: 22px; height: 22px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 800; }
.ck.ok { background: var(--ok-soft); color: var(--ok); }
.ck.bad { background: var(--bad-soft); color: var(--bad); }
.ck.warn { background: var(--warn-soft); color: var(--warn); }
.assessment { border-top: 5px solid var(--line-strong); }
.assessment.ok { border-top-color: var(--brand); }
.assessment.bad { border-top-color: var(--bad); }
.assessment h3 { font-size: .9rem; color: var(--muted); }

/* Timeline: steps of a claim or a loan */
.timeline { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px 12px; box-shadow: var(--shadow); position: relative; }
.timeline li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; font-weight: 800; font-size: .8rem; min-width: 0; }
.timeline li::before { content: ''; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--card); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 3px; background: var(--line); border-radius: 3px; }
.timeline li:last-child::after { display: none; }
.timeline li span { color: var(--muted); font-size: .72rem; font-weight: 600; overflow-wrap: anywhere; }
.timeline li.done::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--brand); }
.timeline li.done::after { background: var(--brand); }
.timeline li.now::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 169, 59, .22); }
.timeline li.late::before { border-color: var(--bad); }
.timeline li.late span { color: var(--bad); }

/* Definition lists */
.details { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 14px; margin: 0 0 12px; }
.details dt { color: var(--muted); font-size: .86rem; font-weight: 600; }
.details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; }
.plain li { padding: 3px 0; }
.log { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.log li { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.list-links { list-style: none; padding: 0; margin: 0 0 20px; }
.list-links li a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.list-links li a:hover { border-color: var(--brand); }
.tabs { display: flex; gap: 2px; margin-bottom: 14px; background: color-mix(in srgb, var(--line) 75%, var(--bg)); border-radius: 14px; padding: 3px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs a { padding: 7px 13px; border-radius: 11px; text-decoration: none; color: var(--ink-2); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--card); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 16px 0; font-weight: 700; }
progress { width: 90px; height: 10px; vertical-align: middle; accent-color: var(--brand); }
.todo { padding-left: 1.2em; margin: 0; }
.todo li { padding: 4px 0; font-weight: 600; }
.todo li.done { color: var(--muted); text-decoration: line-through; }
.getting-started { border-left: 5px solid var(--accent); }
.report-links .card { text-decoration: none; color: var(--ink); margin: 0; }
.report-links .card:hover { border-color: var(--brand); }
.report-links p { color: var(--muted); margin: 0; }
.rules-text h2 { margin-top: 1.2em; color: var(--brand-ink); }
.rules-text h2:first-child { margin-top: 0; }
.rules-text ul { padding-left: 1.2em; }
.rules-text li { margin-bottom: 4px; }
.decision { border-left: 5px solid var(--info); }

/* Public home page */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 36px 0 44px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.035em; line-height: 1.08; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: #b06a00; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 18px 40px rgba(11, 59, 46, .12); }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.mock-row span { color: var(--muted); font-weight: 600; }
.hero-card .checks { margin-top: 10px; }
.features, .templates, .steps { padding: 24px 0; }
.features article, .steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.features h3 { margin-top: 0; color: var(--brand-ink); }
.features p, .steps li { color: var(--muted); margin: 0; font-weight: 500; }
.steps ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 30px; height: 30px; border-radius: 10px; background: var(--forest); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.steps li b { color: var(--ink); display: block; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 16px; } }
.who-for { padding: 24px 0; }
.who-for article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.who-for h3 { margin-top: 0; color: var(--brand-ink); }
.who-for p { color: var(--muted); margin: 0; }
.who-for > .muted { margin-top: 12px; }

/* Sign in */
.login-page { display: flex; justify-content: center; padding: 40px 16px; min-height: 100vh; background: radial-gradient(120% 60% at 50% 0%, var(--brand-soft) 0%, var(--bg) 60%); }
.login-box { width: 100%; max-width: 420px; }
.login-box .brand { margin-bottom: 18px; justify-content: center; max-width: none; }
.login-box h1 { font-size: 1.35rem; }
.btn.google { background: #fff; color: #1f1f1f; border: 1px solid #c4c7c5; gap: 10px; width: 100%; box-shadow: none; }
.btn.google:hover { background: #f8faff; color: #1f1f1f; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 700; margin: 12px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google-signup { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.google-signup .btn { max-width: 340px; }
.try-demo { margin-top: 14px; }
.try-box { width: 100%; max-width: 980px; }
.try-box .brand { margin-bottom: 18px; max-width: none; }
.try-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.try-card { display: flex; flex-direction: column; margin: 0; }
.try-card p { flex: 1; }
.try-card .btn { align-self: flex-start; white-space: normal; text-align: left; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  .card { padding: 15px 16px; border-radius: 16px; }
  .brand small { display: none; }
  .site-nav { gap: 8px; }
  .site-nav .btn { padding: 6px 10px; }
  .site-nav-wrap { flex: none; }
  .details { grid-template-columns: 1fr; gap: 0 0; }
  .details dd { margin-bottom: 8px; }
  .page-head .actions { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat b { font-size: 1.12rem; white-space: nowrap; }
  .panel { border-radius: 22px; padding: 16px; }
  .panel .big { font-size: 1.7rem; }
  .nav-demo { font-size: .78rem; }
}
@media (max-width: 400px) { .site-nav { gap: 6px; } .site-nav .btn { padding: 6px 8px; font-size: .86rem; } }

/* Calculator */
.calc-form .btn { margin-bottom: 14px; }
.inline-calc { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.inline-calc .field { min-width: 220px; }
.calc-result { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.calc-lead { font-size: 1.04rem; font-weight: 600; }
.calc-dl { grid-template-columns: minmax(160px, 30%) 1fr; }
.table tr.warn-row td { background: var(--warn-soft); }
.proposals td.why { color: var(--muted); font-size: .86rem; min-width: 260px; }
.covers td, .covers th { white-space: nowrap; }
.matrix td.center, .matrix th.center { text-align: center; }
.matrix th { white-space: normal; min-width: 80px; }
.doc-row { align-items: end; }
.places-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .places-layout { grid-template-columns: minmax(0, 1fr); } }
.places-tree .indent { display: inline-flex; }
.places-tree .branch { display: inline-block; width: 18px; border-left: 2px solid var(--line-strong); height: 1.1em; margin-right: 6px; vertical-align: middle; }
.places-tree tr.depth-0 td { background: var(--bg); }

/* Printouts */
.print-page { background: #e9e8e3; padding: 20px 16px; }
.print-actions { max-width: 800px; margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; }
.sheet { background: #fff; color: #111; max-width: 800px; margin: 0 auto; padding: 32px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.sheet .muted { color: #555; }
.sheet .table th, .sheet .table td { border-color: #ddd; }
.sheet h2 { font-size: 1.05rem; margin-top: 1.4em; }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 16px; }
.sheet-head h1 { font-size: 1.3rem; margin: 0; }
.sheet-head .right { text-align: right; }
.kv { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.kv th, .kv td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; vertical-align: top; }
.kv th { color: #555; font-weight: 600; width: 22%; }
.kv .big { font-size: 1.3rem; font-weight: 700; }
.receipt { max-width: 560px; }
.stamp { color: #b3261e; border: 3px solid #b3261e; display: inline-block; padding: 4px 12px; font-weight: 800; letter-spacing: .1em; transform: rotate(-4deg); }
.sign { margin-top: 40px; }
@media print {
  .no-print, .app-head, .app-foot, .site-head, .site-foot, .sidebar, .topbar, .tabbar, .page-head .actions, .filters, .tabs, .pager, form, .btn { display: none !important; }
  body, .print-page { background: #fff; padding: 0; color: #000; }
  .sheet { box-shadow: none; padding: 0; max-width: none; }
  .card, .panel { box-shadow: none; border: 0; padding: 0; background: none; color: #000; }
  a { color: inherit; text-decoration: none; }
  main.wrap { padding: 0; }
}

/* Phone and desktop only */
@media (max-width: 900px) { .hide-phone { display: none !important; } }
@media (min-width: 901px) { .phone-only { display: none !important; } }

/* Bar widths (no inline styles under the content policy) */
.bar > i.p0 { width: 0%; }
.bar > i.p1 { width: 1%; }
.bar > i.p2 { width: 2%; }
.bar > i.p3 { width: 3%; }
.bar > i.p4 { width: 4%; }
.bar > i.p5 { width: 5%; }
.bar > i.p6 { width: 6%; }
.bar > i.p7 { width: 7%; }
.bar > i.p8 { width: 8%; }
.bar > i.p9 { width: 9%; }
.bar > i.p10 { width: 10%; }
.bar > i.p11 { width: 11%; }
.bar > i.p12 { width: 12%; }
.bar > i.p13 { width: 13%; }
.bar > i.p14 { width: 14%; }
.bar > i.p15 { width: 15%; }
.bar > i.p16 { width: 16%; }
.bar > i.p17 { width: 17%; }
.bar > i.p18 { width: 18%; }
.bar > i.p19 { width: 19%; }
.bar > i.p20 { width: 20%; }
.bar > i.p21 { width: 21%; }
.bar > i.p22 { width: 22%; }
.bar > i.p23 { width: 23%; }
.bar > i.p24 { width: 24%; }
.bar > i.p25 { width: 25%; }
.bar > i.p26 { width: 26%; }
.bar > i.p27 { width: 27%; }
.bar > i.p28 { width: 28%; }
.bar > i.p29 { width: 29%; }
.bar > i.p30 { width: 30%; }
.bar > i.p31 { width: 31%; }
.bar > i.p32 { width: 32%; }
.bar > i.p33 { width: 33%; }
.bar > i.p34 { width: 34%; }
.bar > i.p35 { width: 35%; }
.bar > i.p36 { width: 36%; }
.bar > i.p37 { width: 37%; }
.bar > i.p38 { width: 38%; }
.bar > i.p39 { width: 39%; }
.bar > i.p40 { width: 40%; }
.bar > i.p41 { width: 41%; }
.bar > i.p42 { width: 42%; }
.bar > i.p43 { width: 43%; }
.bar > i.p44 { width: 44%; }
.bar > i.p45 { width: 45%; }
.bar > i.p46 { width: 46%; }
.bar > i.p47 { width: 47%; }
.bar > i.p48 { width: 48%; }
.bar > i.p49 { width: 49%; }
.bar > i.p50 { width: 50%; }
.bar > i.p51 { width: 51%; }
.bar > i.p52 { width: 52%; }
.bar > i.p53 { width: 53%; }
.bar > i.p54 { width: 54%; }
.bar > i.p55 { width: 55%; }
.bar > i.p56 { width: 56%; }
.bar > i.p57 { width: 57%; }
.bar > i.p58 { width: 58%; }
.bar > i.p59 { width: 59%; }
.bar > i.p60 { width: 60%; }
.bar > i.p61 { width: 61%; }
.bar > i.p62 { width: 62%; }
.bar > i.p63 { width: 63%; }
.bar > i.p64 { width: 64%; }
.bar > i.p65 { width: 65%; }
.bar > i.p66 { width: 66%; }
.bar > i.p67 { width: 67%; }
.bar > i.p68 { width: 68%; }
.bar > i.p69 { width: 69%; }
.bar > i.p70 { width: 70%; }
.bar > i.p71 { width: 71%; }
.bar > i.p72 { width: 72%; }
.bar > i.p73 { width: 73%; }
.bar > i.p74 { width: 74%; }
.bar > i.p75 { width: 75%; }
.bar > i.p76 { width: 76%; }
.bar > i.p77 { width: 77%; }
.bar > i.p78 { width: 78%; }
.bar > i.p79 { width: 79%; }
.bar > i.p80 { width: 80%; }
.bar > i.p81 { width: 81%; }
.bar > i.p82 { width: 82%; }
.bar > i.p83 { width: 83%; }
.bar > i.p84 { width: 84%; }
.bar > i.p85 { width: 85%; }
.bar > i.p86 { width: 86%; }
.bar > i.p87 { width: 87%; }
.bar > i.p88 { width: 88%; }
.bar > i.p89 { width: 89%; }
.bar > i.p90 { width: 90%; }
.bar > i.p91 { width: 91%; }
.bar > i.p92 { width: 92%; }
.bar > i.p93 { width: 93%; }
.bar > i.p94 { width: 94%; }
.bar > i.p95 { width: 95%; }
.bar > i.p96 { width: 96%; }
.bar > i.p97 { width: 97%; }
.bar > i.p98 { width: 98%; }
.bar > i.p99 { width: 99%; }
.bar > i.p100 { width: 100%; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; }
.menu-head { margin: 18px 4px 8px; }

/* Member profile header */
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.profile .grow { flex: 1; min-width: 200px; }
.profile h1 { margin-bottom: .2em; font-size: 1.45rem; }
.profile .actions { width: 100%; padding-top: 4px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.table td .item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.table td .item .t { font-weight: 700; display: block; }
.table td .item .s { font-size: .8rem; color: var(--muted); font-weight: 600; display: block; }

/* Savings meeting form: one row per member, a grid on wide screens and stacked on phones */
.row-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.row-form .field { margin: 0; flex: 1 1 180px; }
.row-form .tile { align-self: center; }
.mtg-rows { display: flex; flex-direction: column; }
.mtg-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) 150px 76px 108px minmax(130px, 1.1fr) minmax(110px, .9fr) 104px; gap: 8px 12px; align-items: end;
  padding: 10px 0; border-top: 1px solid var(--line-2); }
.mtg-row:first-child { border-top: 0; }
.mtg-row.has-err { background: var(--bad-soft); border-radius: 12px; padding: 10px; }
.mtg-row .who-cell { display: flex; align-items: center; gap: 10px; min-width: 0; align-self: center; cursor: pointer; }
.mtg-row .who-cell .grow { min-width: 0; }
.mtg-row .who-cell .t { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg-row .who-cell .s { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mtg-row .cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mtg-row .cell .lbl { font-size: .72rem; }
.mtg-row .cell.tick { flex-direction: row; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; align-self: center; }
.mtg-row select, .mtg-row input.money { min-height: 38px; padding: 6px 9px; }
@media (max-width: 1240px) {
  .mtg-row { grid-template-columns: 150px 76px 108px minmax(130px, 1.1fr) minmax(110px, .9fr) 104px; }
  .mtg-row .who-cell { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mtg-row { grid-template-columns: 1fr 1fr; }
}
.mtg-row .charged { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.mtg-row .owes { color: var(--bad); font-weight: 700; }

.mtg-row.past-row { grid-template-columns: minmax(160px, 2fr) minmax(110px, 1fr) minmax(110px, 1fr) 80px minmax(110px, 1fr); }
.mtg-row.past-row .cell.wide { grid-column: span 2; }
@media (max-width: 760px) { .mtg-row.past-row { grid-template-columns: 1fr 1fr; } }

/* How-to steps (spreadsheet of past meetings) */
.how-steps { margin: 4px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2, inherit); font-size: .92rem; }
.how-steps li::marker { font-weight: 800; color: var(--brand); }
.meeting-form select[multiple] { min-height: 84px; padding: 4px; }
.mtg-row .cell.funds { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.mtg-row .cell.funds .tick { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; }
.mtg-row .cell.funds .inline-money { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; }
.mtg-row .cell.funds .inline-money input { width: 110px; min-height: 36px; padding: 5px 8px; }

/* Member photos */
.av.xl { width: 88px; height: 88px; border-radius: 26px; font-size: 1.6rem; }
img.av.photo { object-fit: cover; background: var(--line-2); padding: 0; }
.photo-field { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.photo-field .field { flex: 1 1 auto; margin: 0; }

/* ---------- Charts (Dashboard) ----------
   Series colours were checked for colour blindness and contrast on the card (validate_palette: light on #ffffff, dark on #19201d). */
:root { --series-1: #0f8a63; --series-2: #e08a1e; --series-3: #2f6fbf; --series-4: #c2557a; --chart-grid: #ece8de; --chart-base: #cfc8b8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --series-1: #24a072; --series-2: #c8741f; --series-3: #4a88d8; --series-4: #d0648c; --chart-grid: #26302c; --chart-base: #3a4540; }
}
:root[data-theme="dark"] { --series-1: #24a072; --series-2: #c8741f; --series-3: #4a88d8; --series-4: #d0648c; --chart-grid: #26302c; --chart-base: #3a4540; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font-weight: 700; font-size: .86rem; text-decoration: none; }
.chip:hover { background: var(--line-2); }
.chip.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-softer); }
.chip .i { width: 16px; height: 16px; stroke-width: 3; }
.section-title { margin: 22px 0 10px; font-size: 1.05rem; color: var(--ink-2); }
.chart-card h2 { margin-bottom: 2px; }
.chart { position: relative; margin-top: 8px; }
svg.cv { display: block; width: 100%; height: auto; overflow: visible; }
svg.cv.narrow { display: none; }
@media (max-width: 560px) { svg.cv.wide { display: none; } svg.cv.narrow { display: block; } }
.cv text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.cv .yt { text-anchor: end; font-variant-numeric: tabular-nums; }
.cv .xt { text-anchor: middle; }
.cv .el { fill: var(--ink-2); font-weight: 700; }
.cv .grid { stroke: var(--chart-grid); stroke-width: 1; }
.cv .base { stroke: var(--chart-base); stroke-width: 1; }
.cv .s1 { fill: var(--series-1); } .cv .s2 { fill: var(--series-2); } .cv .s3 { fill: var(--series-3); } .cv .s4 { fill: var(--series-4); }
.cv .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cv .l1 { stroke: var(--series-1); } .cv .l2 { stroke: var(--series-2); } .cv .l3 { stroke: var(--series-3); } .cv .l4 { stroke: var(--series-4); }
.cv .wash { opacity: .1; }
.cv .dot { stroke: var(--card); stroke-width: 2; }
.cv .hit { fill: transparent; }
.cv .hair { stroke: var(--muted); stroke-width: 1; opacity: 0; }
.cv .col { outline: none; cursor: default; }
.cv .col:hover .hair, .cv .col:focus .hair { opacity: .7; }
.cv .col:hover .seg, .cv .col:focus .seg { opacity: .82; }
.cv .col:focus-visible .hit { stroke: var(--focus); stroke-width: 1.5; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; flex: none; }
.key.rect { width: 10px; height: 10px; border-radius: 3px; }
.key.line { width: 16px; height: 2px; border-radius: 2px; }
.key.s1 { background: var(--series-1); } .key.s2 { background: var(--series-2); } .key.s3 { background: var(--series-3); } .key.s4 { background: var(--series-4); }
.chart-table { margin-top: 10px; font-size: .84rem; }
.chart-table summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.chart-table .table td, .chart-table .table th { font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; outline: none; border-radius: 8px; }
.hbar:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.hbar .hl { color: var(--ink-2); font-weight: 600; }
.hbar .track { height: 12px; display: block; }
.hbar .track > i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series-1); }
.hbar:hover .track > i { opacity: .82; }
.hbar .hv { font-variant-numeric: tabular-nums; color: var(--ink); }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .16); padding: 8px 10px; font-size: .8rem; min-width: 140px; }
.chart-tip .tt { color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.chart-tip .tr { display: flex; align-items: center; gap: 8px; }
.chart-tip .tr b { font-variant-numeric: tabular-nums; }
.chart-tip .tr span { color: var(--ink-2); }

.hbar .track > i.p0 { width: 0%; }
.hbar .track > i.p1 { width: 1%; }
.hbar .track > i.p2 { width: 2%; }
.hbar .track > i.p3 { width: 3%; }
.hbar .track > i.p4 { width: 4%; }
.hbar .track > i.p5 { width: 5%; }
.hbar .track > i.p6 { width: 6%; }
.hbar .track > i.p7 { width: 7%; }
.hbar .track > i.p8 { width: 8%; }
.hbar .track > i.p9 { width: 9%; }
.hbar .track > i.p10 { width: 10%; }
.hbar .track > i.p11 { width: 11%; }
.hbar .track > i.p12 { width: 12%; }
.hbar .track > i.p13 { width: 13%; }
.hbar .track > i.p14 { width: 14%; }
.hbar .track > i.p15 { width: 15%; }
.hbar .track > i.p16 { width: 16%; }
.hbar .track > i.p17 { width: 17%; }
.hbar .track > i.p18 { width: 18%; }
.hbar .track > i.p19 { width: 19%; }
.hbar .track > i.p20 { width: 20%; }
.hbar .track > i.p21 { width: 21%; }
.hbar .track > i.p22 { width: 22%; }
.hbar .track > i.p23 { width: 23%; }
.hbar .track > i.p24 { width: 24%; }
.hbar .track > i.p25 { width: 25%; }
.hbar .track > i.p26 { width: 26%; }
.hbar .track > i.p27 { width: 27%; }
.hbar .track > i.p28 { width: 28%; }
.hbar .track > i.p29 { width: 29%; }
.hbar .track > i.p30 { width: 30%; }
.hbar .track > i.p31 { width: 31%; }
.hbar .track > i.p32 { width: 32%; }
.hbar .track > i.p33 { width: 33%; }
.hbar .track > i.p34 { width: 34%; }
.hbar .track > i.p35 { width: 35%; }
.hbar .track > i.p36 { width: 36%; }
.hbar .track > i.p37 { width: 37%; }
.hbar .track > i.p38 { width: 38%; }
.hbar .track > i.p39 { width: 39%; }
.hbar .track > i.p40 { width: 40%; }
.hbar .track > i.p41 { width: 41%; }
.hbar .track > i.p42 { width: 42%; }
.hbar .track > i.p43 { width: 43%; }
.hbar .track > i.p44 { width: 44%; }
.hbar .track > i.p45 { width: 45%; }
.hbar .track > i.p46 { width: 46%; }
.hbar .track > i.p47 { width: 47%; }
.hbar .track > i.p48 { width: 48%; }
.hbar .track > i.p49 { width: 49%; }
.hbar .track > i.p50 { width: 50%; }
.hbar .track > i.p51 { width: 51%; }
.hbar .track > i.p52 { width: 52%; }
.hbar .track > i.p53 { width: 53%; }
.hbar .track > i.p54 { width: 54%; }
.hbar .track > i.p55 { width: 55%; }
.hbar .track > i.p56 { width: 56%; }
.hbar .track > i.p57 { width: 57%; }
.hbar .track > i.p58 { width: 58%; }
.hbar .track > i.p59 { width: 59%; }
.hbar .track > i.p60 { width: 60%; }
.hbar .track > i.p61 { width: 61%; }
.hbar .track > i.p62 { width: 62%; }
.hbar .track > i.p63 { width: 63%; }
.hbar .track > i.p64 { width: 64%; }
.hbar .track > i.p65 { width: 65%; }
.hbar .track > i.p66 { width: 66%; }
.hbar .track > i.p67 { width: 67%; }
.hbar .track > i.p68 { width: 68%; }
.hbar .track > i.p69 { width: 69%; }
.hbar .track > i.p70 { width: 70%; }
.hbar .track > i.p71 { width: 71%; }
.hbar .track > i.p72 { width: 72%; }
.hbar .track > i.p73 { width: 73%; }
.hbar .track > i.p74 { width: 74%; }
.hbar .track > i.p75 { width: 75%; }
.hbar .track > i.p76 { width: 76%; }
.hbar .track > i.p77 { width: 77%; }
.hbar .track > i.p78 { width: 78%; }
.hbar .track > i.p79 { width: 79%; }
.hbar .track > i.p80 { width: 80%; }
.hbar .track > i.p81 { width: 81%; }
.hbar .track > i.p82 { width: 82%; }
.hbar .track > i.p83 { width: 83%; }
.hbar .track > i.p84 { width: 84%; }
.hbar .track > i.p85 { width: 85%; }
.hbar .track > i.p86 { width: 86%; }
.hbar .track > i.p87 { width: 87%; }
.hbar .track > i.p88 { width: 88%; }
.hbar .track > i.p89 { width: 89%; }
.hbar .track > i.p90 { width: 90%; }
.hbar .track > i.p91 { width: 91%; }
.hbar .track > i.p92 { width: 92%; }
.hbar .track > i.p93 { width: 93%; }
.hbar .track > i.p94 { width: 94%; }
.hbar .track > i.p95 { width: 95%; }
.hbar .track > i.p96 { width: 96%; }
.hbar .track > i.p97 { width: 97%; }
.hbar .track > i.p98 { width: 98%; }
.hbar .track > i.p99 { width: 99%; }
.hbar .track > i.p100 { width: 100%; }

/* Savings receipts and payment vouchers */
.doc-link { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.doc-link .i { width: 15px; height: 15px; }
@media (max-width: 560px) { .doc-link span { display: none; } }
.kv.lines td.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv.lines tr.total th, .kv.lines tr.total td { border-top: 2px solid #111; border-bottom: 0; }
.sign-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 560px) { .sign-row { grid-template-columns: 1fr; } }
.rows .item.cancelled .t, .rows .item.cancelled .r { text-decoration: line-through; color: var(--muted); }
.count-rows { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.count-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, 1fr) minmax(180px, 1.6fr); gap: 8px 14px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line-2); }
.count-row:first-child { border-top: 0; }
.count-row .who { display: flex; flex-direction: column; align-self: center; }
.count-row .field { margin: 0; }
@media (max-width: 700px) { .count-row { grid-template-columns: 1fr; } }

/* The hidden attribute always wins over a layout class (e.g. extra guarantor rows). */
[hidden] { display: none !important; }
.keys-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.keys-row .lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; }
.keys-row select { width: auto; min-width: 160px; min-height: 38px; padding: 6px 9px; }

/* Offline */
.offline-bar { position: sticky; top: 0; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 8px 14px; background: #3a2e14; color: #fdf0d8; font-size: .86rem; font-weight: 600; text-align: center; }
.offline-bar .btn { background: #fdf0d8; color: #3a2e14; border: 0; }
.quick-card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.quick-card > summary .i { width: 18px; height: 18px; }
.quick-card[open] > summary { margin-bottom: 10px; }
.quick-lists select[multiple] { min-height: 120px; padding: 4px; }
.quick-lists .check { display: flex; align-items: center; gap: 6px; font-size: .86rem; margin: 2px 0; }

/* First sign-in: small links under the form */
.row-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

/* Password boxes: an eye button shows or hides what was typed */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { padding-right: 48px; }
.pw-eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 40px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--ink); background: var(--brand-soft); }
.pw-eye:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 0; }
.pw-eye .i { width: 20px; height: 20px; }

/* A meeting, member by member */
.by-member .card-head { flex-wrap: wrap; gap: 8px; }
.by-member-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 16px; }
.by-member-tools .field { flex: 1 1 260px; margin-bottom: 10px; }
.by-member-tools .check { margin-bottom: 14px; }
.mem-list { display: flex; flex-direction: column; gap: 8px; }
.mem-rec { border: 1px solid var(--line); border-radius: 14px; background: var(--card); scroll-margin-top: 80px; }
.mem-rec[open] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mem-rec > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; min-height: 56px; }
.mem-rec > summary::-webkit-details-marker { display: none; }
.mem-rec > summary .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mem-rec > summary .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-rec > summary .s { color: var(--muted); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.mem-rec .owes { color: var(--bad); font-weight: 700; }
.mem-state { margin-left: auto; text-align: right; flex: none; }
.due-amt { display: flex; flex-direction: column; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.due-amt small { font-size: .66rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mem-body { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.due-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 4px; }
.due-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 10px; background: var(--bg); font-size: .9rem; }
.due-list li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-list li.bad { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.due-list li.warn { background: var(--warn-soft); }
.due-list li.total { background: transparent; border-top: 1px solid var(--line-strong); border-radius: 0; font-weight: 800; font-size: 1rem; }
.mem-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.mem-fields .att { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mem-fields .att legend { margin-bottom: 6px; padding: 0; }
.pick { position: relative; display: inline-flex; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: .86rem; cursor: pointer; min-height: 40px; line-height: 22px; }
.pick input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
:root[data-theme="dark"] .pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #07130f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #07130f; } }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.mem-ticks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 2px 0 10px; }
.mem-ticks .check { margin-bottom: 6px; align-items: center; }
.mem-ticks .inline-money { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mem-ticks .inline-money input { max-width: 130px; }
.mem-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); margin-bottom: 10px; font-weight: 700; }
.mem-total b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.mem-done { margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mem-body .charged { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.bulk-card > summary { cursor: pointer; padding: 2px 0; }
.bulk-card[open] > summary { margin-bottom: 12px; }

/* The member's account menu (name at the top): profile, password and sign out, on phones too */
.me-menu > summary.me-chip { padding: 4px 6px 4px 4px; border-radius: 99px; }
.switcher .menu-form { margin: 0; }
.switcher .menu-form button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none;
  color: var(--bad); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-align: left; }
.switcher .menu-form button:hover { background: var(--line-2); }

/* Savings so far: one row per member, scrolled sideways on a phone */
.opening-table td:first-child { min-width: 150px; }
.opening-table input, .opening-table select { min-width: 110px; padding: 8px 10px; min-height: 40px; }
.opening-table input.short { min-width: 70px; }
.opening-table input[type="date"] { min-width: 140px; }
.opening-table tr.bad td { background: var(--bad-soft); }

/* The member's share value line under "My savings": a link to how the group is growing. */
.panel .share-now { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: inherit; text-decoration: none; font-size: .86rem; }
.panel .share-now span { flex: 1; }
.panel .share-now:hover, .panel .share-now:focus-visible { background: rgba(255, 255, 255, .2); }

/* Assets and debts: one block per entry, with its small forms folded away. */
.liab { padding: 10px 0; border-top: 1px solid var(--line); }
.liab:first-of-type { border-top: 0; }
.liab .details.compact { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 6px 52px; font-size: .88rem; }
.liab .details.compact dt { color: var(--ink-2); }
.liab .details.compact dd { margin: 0; }
details.mini { margin: 6px 0 6px 52px; }
details.mini > summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--brand-ink); }
details.mini .form { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
details.card > summary { cursor: pointer; list-style: none; }
details.card > summary h2 { display: inline; }
details.card > summary::before { content: '+ '; font-weight: 800; color: var(--brand-ink); }
details.card[open] > summary::before { content: '− '; }
@media (max-width: 640px) { .liab .details.compact, details.mini { margin-left: 0; } }

/* Photo pickers: two buttons over hidden file inputs, and the preview of the photo picked. */
.photo-pick .pick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.photo-pick .pick-btns label { position: relative; cursor: pointer; }
.photo-pick .pick-btns label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-pick .pick-input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pick-preview { width: 88px; height: 88px; border-radius: 26px; object-fit: cover; flex: 0 0 auto; }

/* Books of accounts: compact tables that print on paper (or to PDF) without the app around them. */
.book .table td, .book .table th { white-space: nowrap; }
.book .table td:nth-child(2) { white-space: normal; min-width: 180px; }
@media print {
  .book { break-inside: auto; box-shadow: none; border: 0; padding: 0; }
  .book .table { font-size: 9pt; }
  .book .table-wrap { overflow: visible; }
}

/* Joining: the QR code, invitation links, and the groups open to new members. */
.qr-box { display: inline-block; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); margin: 6px 0 10px; }
.qr-box .qr { display: block; width: 240px; height: 240px; max-width: 70vw; max-height: 70vw; }
.copy-field { width: 100%; font: inherit; font-size: .8rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-2); }
.join-card { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; }
.join-card:hover { border-color: var(--brand); }
.join-card .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand-ink); }
.join-summary .stats { margin: 8px 0; }

/* Chat: messages as bubbles, mine on the right; the count of new messages on the Chat tab. */
.chat-box { padding: 12px; }
.chat-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.msg { align-self: flex-start; max-width: 82%; background: var(--bg); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg.mine { align-self: flex-end; background: var(--ok-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.msg .who { display: block; font-size: .78rem; font-weight: 800; color: var(--brand-ink); }
.msg .body { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .at { display: block; font-size: .72rem; color: var(--ink-2); margin-top: 2px; }
.msg .at form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font: inherit; cursor: pointer; }
.chat-form textarea { width: 100%; }
.tabbar .ic { position: relative; }
.dot-count { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .68rem; font-style: normal; font-weight: 800; line-height: 18px; text-align: center; }

/* Invitation code and the share buttons under a QR code. */
.invite-code { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 10px; }
.invite-code span { font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.invite-code b { font-size: 1.5rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.invite-code small { font-size: .75rem; color: var(--ink-2); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.code-input { text-transform: uppercase; letter-spacing: .1em; }

/* Sign-in pages: "First time" and "Forgotten your password" in their own card, well apart from the Google button,
   so a tap meant for one does not land on the other. */
.signin-more { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.signin-more .btn.block { min-height: 48px; justify-content: center; }
.signin-more .help { margin: 0 0 14px; }
.signin-more .help:last-child { margin-bottom: 0; }

/* Sign-in pages in three blocks with space between: the form (full-width Sign in), "or" and Google in its own card,
   then first time / forgotten password. Each target is large, and none sits against another. */
.signin-or { margin: 22px 4px; }
.signin-alt { display: flex; flex-direction: column; gap: 8px; }
.signin-alt .btn.google { width: 100%; min-height: 48px; justify-content: center; }
.signin-alt .help { margin: 0; }
.form .actions .btn.block { min-height: 48px; justify-content: center; }

/* Reports: the head (the group and its details, the report and its period) and the sign-off. */
.report-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 0 12px; margin: 0 0 14px; border-bottom: 2px solid var(--ink); }
.report-head .rh-group, .report-head .rh-report { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.report-head .rh-name { font-size: 1.15rem; }
.report-head .rh-report { text-align: right; }
.report-head .rh-report b { font-size: 1.05rem; }
.rh-line { display: block; }
.signoff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.signoff-box { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.signoff-box .lbl { font-size: .8rem; font-weight: 800; color: var(--ink-2); }
.signoff-box .sign-line { display: none; margin-top: 18px; font-size: .85rem; }
@media print {
  .report-head { border-color: #000; }
  .signoff { break-inside: avoid; margin-top: 18px; }
  .signoff-box { border: 0; padding: 0; }
  .signoff-box .sign-line { display: block; }
  .page-head.no-print { display: none !important; }
}
@media (max-width: 640px) { .report-head .rh-report { text-align: left; } }

/* Validating a report: the QR code and code beside the sign-off, and the public validation page. */
.verify-box { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 14px; }
.verify-box > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.qr-box.small { padding: 4px; margin: 0; border-radius: 10px; }
.qr-box.small .qr { width: 116px; height: 116px; }
.verify-code { font-size: 1.2rem; font-weight: 800; letter-spacing: .1em; }
a.verify-code { color: inherit; text-decoration: none; }
.verify-box a { overflow-wrap: anywhere; }
.verify-badge { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin: 0 0 14px; }
.verify-badge > div { display: flex; flex-direction: column; gap: 2px; }
.verify-badge.ok { background: var(--ok-soft); color: var(--ok); }
.verify-badge.warn { background: var(--warn-soft); color: var(--ink); }
.verify-badge span { color: var(--ink); font-size: .9rem; }
.verify-figures dd { font-variant-numeric: tabular-nums; }
@media print { .verify-box { border: 1px solid #000; break-inside: avoid; } }

/* Picking members (e.g. for a notice): a filter box over a scrolling list of ticks. */
.pick-people { margin: 4px 0 10px; }
.pick-people .list-filter { width: 100%; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
.pick-item { display: flex; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-item:last-child { border-bottom: 0; }
.pick-item input { width: 18px; height: 18px; flex: 0 0 auto; }

/* The group's logo beside its name on reports and documents (only when it has one). */
.group-logo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.group-logo.big { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.rh-group.with-logo { flex-direction: row; align-items: center; gap: 12px; }
.rh-group .rh-text { display: flex; flex-direction: column; gap: 2px; }
.sheet-group { display: flex; align-items: center; gap: 12px; }
.logo-field { display: flex; gap: 14px; align-items: center; }
.logo-field .field { flex: 1 1 auto; margin: 0; }

/* Tags added from a search box (qualifications, professional certificates). */
.chips .chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 99px; background: var(--ok-soft); font-size: .86rem; font-weight: 600; }
.chip-x { border: 0; background: rgba(0, 0, 0, .08); color: inherit; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.chip-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-add select, .chip-add input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.chip-add input { flex: 1 1 200px; min-width: 0; }
.edu-fields { margin: 6px 0 4px; }
/* Payment choices with the network's logo (official file in assets/pay, else its name on its colour). */
.choices .choice.with-logo { align-items: center; }
.paylogo { flex: none; width: 54px; height: 38px; border-radius: 9px; display: grid; place-items: center; align-content: center; font-weight: 800; font-size: .82rem; line-height: 1; text-align: center; letter-spacing: -.01em; }
.paylogo small { display: block; font-size: .62rem; font-weight: 700; margin-top: 2px; color: inherit; }
.paylogo.mtn { background: #ffcb05; color: #000; }
.paylogo.airtel { background: #e40000; color: #fff; }
.paylogo.card { background: var(--brand-softer); color: var(--brand); }
.paylogo.card .i { width: 22px; height: 22px; }
.paylogo-img { flex: none; height: 38px; width: auto; max-width: 70px; object-fit: contain; border-radius: 9px; }
.choices .choice .paylogo { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.choices .choice .paylogo small { color: inherit; font-weight: 700; }

/* ---------- Our rules (cards numbered like the constitution, changes approved by the executive) ---------- */
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: var(--brand); font-weight: 700; text-decoration: none; }
.rules-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 16px; }
.seg-tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg-tabs a { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg-tabs a em { font-style: normal; font-size: .76rem; color: var(--muted); margin-left: 3px; }
.seg-tabs a.on { background: var(--forest); color: #fff; }
.seg-tabs a.on em { color: #b9d8cc; }
.rules-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 14px; color: var(--muted); }
.rules-search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 6px 0; width: 100%; min-width: 0; }
.rules-search .i { width: 17px; height: 17px; flex: none; }
.coming { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border: 1px solid #f3dcae; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 14px; }
.coming-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.coming-ic .i { width: 17px; height: 17px; }
.coming p { margin: 0; flex: 1; font-size: .92rem; color: var(--ink); }
.coming small { display: block; color: var(--warn); font-size: .82rem; }
.year { padding: 16px 18px; }
.year-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.year-h h2 { margin: 0; font-size: 1.05rem; }
.year-h .muted { font-size: .82rem; }
.tl-wrap { overflow-x: auto; }
.tl { display: grid; column-gap: 8px; min-width: 560px; }
.tl-cols-1 { grid-template-columns: 120px repeat(1, minmax(84px, 1fr)); }
.tl-cols-2 { grid-template-columns: 120px repeat(2, minmax(84px, 1fr)); }
.tl-cols-3 { grid-template-columns: 120px repeat(3, minmax(84px, 1fr)); }
.tl-cols-4 { grid-template-columns: 120px repeat(4, minmax(84px, 1fr)); }
.tl-cols-5 { grid-template-columns: 120px repeat(5, minmax(84px, 1fr)); }
.tl-cols-6 { grid-template-columns: 120px repeat(6, minmax(84px, 1fr)); }
.tl-cols-7 { grid-template-columns: 120px repeat(7, minmax(84px, 1fr)); }
.tl .tw { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 6px; white-space: nowrap; }
.tl .lane { font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.tl .lane i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #0f8a63; }
.tl .lane-late i { background: var(--bad); }
.tl .cell { position: relative; padding: 22px 4px 10px; text-align: center; }
.tl .cell::before { content: ""; position: absolute; left: -8px; right: 0; top: 9px; height: 3px; background: #bfe5d3; }
.tl .cell-late::before { background: #f4c9bd; }
.tl .cell.first::before { left: 50%; }
.tl .cell.last::before { right: 50%; }
.tl .dot { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line-strong); background: #0f8a63; }
.tl .cell-late .dot { background: var(--bad); }
.tl .cell.none .dot { display: none; }
.tl .ev { font-size: .78rem; line-height: 1.35; color: var(--ink-2); }
.tl .ev b { display: block; font-size: .84rem; color: var(--ink); }
.section-h { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.decides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.decide { background: var(--hero); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.decide .q { font-weight: 800; font-size: .95rem; }
.decide .a { font-size: .8rem; color: #cfe7dd; }
.decide:hover { color: #fff; filter: brightness(1.08); }
.acs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.ac { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 80px; }
.ac[hidden] { display: none; }
.ac.waiting { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.ac.quiet { background: var(--bg); box-shadow: none; border-style: dashed; }
.ac:target { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.ac-top { display: flex; align-items: center; gap: 10px; }
.ac-top h3 { margin: 0; font-size: 1.02rem; flex: 1; }
.ano { font-weight: 800; font-size: .78rem; background: var(--forest); color: #fff; border-radius: 8px; padding: 5px 8px; flex: none; white-space: nowrap; }
.ac-text p { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 1.01rem; line-height: 1.7; color: var(--ink); }
.ac-text p:last-child { margin-bottom: 0; }
a.v { font-family: inherit; font-weight: 700; font-size: .92em; background: var(--brand-softer); color: var(--brand-ink); border: 1px dashed #9fd2bb; border-radius: 7px; padding: 1px 6px; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }
a.v:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
b.rv { font-weight: 700; }
.ac .meta { margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ac .meta .soon { color: var(--warn); font-weight: 800; }
.ac .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac .chip { padding: 3px 10px; background: var(--line-2); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); }
.mini-t { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .78rem; }
.mini-t > div { display: grid; grid-template-columns: minmax(78px, 1.4fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.mini-t span { padding: 5px 6px; text-align: center; border-left: 1px solid var(--line-2); }
.mini-t span:first-child { border-left: 0; text-align: left; font-weight: 700; color: var(--ink-2); }
.mini-t > div:first-child { background: var(--line-2); font-weight: 700; color: var(--muted); }
.contrib3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cb { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.cb .n { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cb .t { font-family: Georgia, serif; font-size: .92rem; line-height: 1.55; }
.cb .goes { font-size: .74rem; font-weight: 700; color: var(--ink-2); }
.rules-links { margin: 16px 0; font-size: .88rem; color: var(--muted); }
.rules-links a { color: var(--brand); font-weight: 700; }
.waitbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--forest); color: #fff; padding: 12px 16px; border-radius: 16px; margin-top: 18px; box-shadow: 0 10px 30px rgba(11, 59, 46, .3); }
.waitbar .cnt { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; flex: none; }
.waitbar p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.waitbar p span { display: block; color: #b9d8cc; font-size: .8rem; }
.waitbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.order-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.order-pick label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.order-pick select { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); }
.preview { margin-bottom: 6px; }
.plain-card { background: var(--brand-softer); border-color: #cfe9dc; }
.lbl-up { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.lbl-up .i { width: 15px; height: 15px; }
/* What a change does */
.impact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.impact-h { background: var(--hero); color: #fff; padding: 14px 18px; }
.impact-h h3 { margin: 0; font-size: 1rem; }
.impact-h p { margin: 2px 0 0; color: #cfe7dd; font-size: .8rem; }
.impact .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.impact .nums div { background: var(--card); padding: 10px 14px; }
.impact .nums b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.impact .nums b.good { color: var(--ok); }
.impact .nums b.bad { color: var(--bad); }
.impact .nums span { font-size: .78rem; color: var(--muted); }
.impact .people { list-style: none; margin: 0; padding: 4px 18px; }
.impact .people li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.impact .people li:last-child { border-bottom: 0; }
.arrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .76rem; font-weight: 700; margin-top: 3px; }
.arrow .i { width: 13px; height: 13px; }
.arrow .from { color: var(--bad); background: var(--bad-soft); padding: 2px 8px; border-radius: 999px; }
.arrow .to { color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.impact-p { margin: 10px 18px; font-size: .9rem; }
.impact-note { margin: 8px 18px 12px; font-size: .82rem; color: var(--ink-2); display: flex; gap: 6px; align-items: flex-start; }
.impact-note .i { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
/* Changes and approvals */
.ap-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.side-col { display: flex; flex-direction: column; }
.diff-i { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.diff-i:last-of-type { border-bottom: 0; }
.diff-a { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.diff-i .old, .diff-i .new { font-family: Georgia, serif; font-size: .96rem; line-height: 1.6; padding: 8px 12px; border-radius: 10px; display: flex; gap: 10px; }
.diff-i .old { background: var(--bad-soft); color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(181, 64, 42, .45); }
.diff-i .new { background: var(--ok-soft); color: var(--ink); margin-top: 6px; }
.diff-i em { font: 800 .66rem/1.9 'Plus Jakarta Sans', system-ui, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; display: inline-block; flex: none; width: 46px; }
.change-list { margin-top: 10px; font-size: .88rem; }
.change-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 4px 0; }
.startpick { border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.startpick legend { font-weight: 700; margin-bottom: 6px; }
.pick-card { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.pick-card:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-softer); padding: 9px 11px; }
.pick-card b { display: block; font-size: .92rem; }
.pick-card small { color: var(--muted); }
.right-actions { text-align: right; }
.prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px; }
.pstep { position: relative; padding-top: 34px; text-align: center; font-size: .8rem; color: var(--muted); }
.pstep b { display: block; color: var(--ink); font-size: .9rem; }
.pstep .c { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 800; font-size: .8rem; z-index: 1; }
.pstep .c .i { width: 14px; height: 14px; }
.pstep.done .c { background: var(--ok); color: #fff; }
.pstep.now .c { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.pstep.stop .c { background: var(--bad); color: #fff; }
.pstep::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 3px; background: var(--line); }
.pstep:first-child::before { left: 50%; }
.pstep:last-child::before { right: 50%; }
.pstep.done::before { background: var(--ok); }
.appr-list { list-style: none; margin: 0 0 10px; padding: 0; }
.appr-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.appr-list li > div { flex: 1; min-width: 0; }
.appr-list li b { display: block; font-size: .9rem; }
.appr-list li .muted { font-size: .78rem; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.override { background: var(--accent-soft); border: 2px solid var(--accent); }
.override h3 { margin: 0 0 4px; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.override h3 .i { width: 18px; height: 18px; }
.override p { margin: 0 0 10px; font-size: .84rem; color: var(--warn); }
.member-msg { background: var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: var(--ink-2); }
.msg-from { font-size: .76rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.msg-from .i { width: 14px; height: 14px; }
/* The summary constitution, in the layout of the NFWA constitution */
.doc-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.vers { display: flex; flex-direction: column; gap: 4px; }
.vers h3 { margin: 0 0 6px; font-size: .95rem; }
.ver { border-radius: 10px; padding: 8px 10px; font-size: .82rem; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
.ver b { display: block; color: var(--ink); font-size: .88rem; }
.ver.on { background: var(--brand-softer); border-color: #cfe9dc; }
.ver .soon { display: inline-block; font-size: .7rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); padding: 1px 7px; border-radius: 999px; }
.switch { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; padding: 10px 2px 2px; border-top: 1px solid var(--line-2); margin-top: 6px; color: var(--ink); text-decoration: none; }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--brand); }
.toggle.on::after { left: auto; right: 3px; }
.paper-area { background: #d9d4c8; border-radius: var(--radius); padding: 22px; display: flex; justify-content: center; min-width: 0; }
.a4 { width: 100%; max-width: 780px; background: #fff; color: #1a1a1a; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); padding: 36px 60px 26px; font: 15px/1.5 Calibri, Carlito, 'Segoe UI', Arial, sans-serif; position: relative; }
.a4 .run-h, .a4 .run-f { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #808080; }
.a4 .run-h { border-bottom: 1px solid #e3e3e3; padding-bottom: 6px; margin-bottom: 8px; }
.a4 .run-f { border-top: 1px solid #e3e3e3; padding-top: 6px; margin-top: 16px; }
.a4 .tb { text-align: center; padding: 24px 0 16px; border-bottom: 3px double #1F3864; margin-bottom: 8px; }
.a4 .tb-k { color: #1F3864; font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.a4 .tb-nm { color: #1F3864; font-weight: 700; font-size: 24px; margin: 8px 0 4px; line-height: 1.2; }
.a4 .tb-mt { color: #B08D2B; font-style: italic; font-size: 16px; }
.a4 .tb-st { color: #555; font-size: 14px; margin-top: 4px; }
.a4 .tb-vr { display: inline-block; margin-top: 12px; color: #fff; background: #1F3864; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 3px; }
.a4 .tb-ap { color: #666; font-size: 12px; margin-top: 8px; }
.a4 h4 { color: #2E74B5; font-size: 20px; font-weight: 400; margin: 18px 0 6px; }
.a4 h5 { color: #2E74B5; font-size: 16px; font-weight: 400; margin: 12px 0 4px; }
.a4 p { margin: 0 0 8px; }
.a4 p.li { padding-left: 20px; position: relative; }
.a4 p.li::before { content: "•"; position: absolute; left: 6px; }
.a4 p.note { color: #808080; font-size: 12.5px; }
.a4 p.changed, .a4 .doc-table.changed { box-shadow: -10px 0 0 -6px #f2a93b; }
.a4 mark.chg { background: #fff3c4; color: inherit; font-weight: 700; padding: 0 2px; box-shadow: inset 0 -2px 0 #f2a93b; }
.a4 .doc-table { overflow-x: auto; margin: 6px 0 10px; }
.a4 table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a4 th { background: #1F3864; color: #fff; text-align: left; padding: 6px 9px; font-weight: 700; }
.a4 td { padding: 5px 9px; border-bottom: 1px solid #d9d9d9; }
.a4 tr:nth-child(odd) td { background: #F2F2F2; }
.a4 tr.today td { background: #fff7d6; font-weight: 700; }
.constitution-print { background: #fff; }
.constitution-print .a4 { box-shadow: none; margin: 0 auto; padding: 10px 0; max-width: 760px; }
/* Paying a claim from the funds */
.paycheck { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0 12px; background: var(--bg); }
.paycheck h3 { margin: 0 0 8px; font-size: .95rem; }
.need3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 10px; }
.need3 div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.need3 span { display: block; font-size: .74rem; color: var(--muted); font-weight: 700; }
.need3 b { font-size: 1.05rem; }
.need3 small { display: block; color: var(--muted); font-size: .72rem; }
.table tr.skip td { color: var(--muted); }
.fd { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: middle; background: #8fa39a; }
.fd-running { background: #2f6fbf; } .fd-emergency { background: #c2557a; } .fd-sinking { background: #0f8a63; } .fd-admin { background: #e08a1e; }
/* Burial Date Expenses */
.stat4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin: 10px 0; }
.stat4 div { background: var(--card); padding: 10px 12px; }
.stat4 span { display: block; font-size: .74rem; color: var(--muted); font-weight: 700; }
.stat4 b { font-size: 1.15rem; }
.stat4 b.good { color: var(--ok); }
.stat4 small { display: block; color: var(--muted); font-size: .74rem; }
.prog-bar { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 6px 0 2px; }
.prog-bar i { display: block; height: 100%; background: #0f8a63; width: 0; }
.prog-bar i.w-5 { width: 5%; } .prog-bar i.w-10 { width: 10%; } .prog-bar i.w-15 { width: 15%; } .prog-bar i.w-20 { width: 20%; } .prog-bar i.w-25 { width: 25%; }
.prog-bar i.w-30 { width: 30%; } .prog-bar i.w-35 { width: 35%; } .prog-bar i.w-40 { width: 40%; } .prog-bar i.w-45 { width: 45%; } .prog-bar i.w-50 { width: 50%; }
.prog-bar i.w-55 { width: 55%; } .prog-bar i.w-60 { width: 60%; } .prog-bar i.w-65 { width: 65%; } .prog-bar i.w-70 { width: 70%; } .prog-bar i.w-75 { width: 75%; }
.prog-bar i.w-80 { width: 80%; } .prog-bar i.w-85 { width: 85%; } .prog-bar i.w-90 { width: 90%; } .prog-bar i.w-95 { width: 95%; } .prog-bar i.w-100 { width: 100%; }
.spend { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .9rem; }
.spend .amt { margin-left: auto; font-weight: 800; }
.spend-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); flex: none; }
.spend-ic .i { width: 16px; height: 16px; }
.burial-due { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.burial-due .k { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.burial-due .amt { display: block; font-size: 1.4rem; margin: 2px 0; }
.burial-due p { margin: 0 0 4px; }
@media (max-width: 900px) {
  .acs, .ap-grid, .doc-wrap, .contrib3, .decides { grid-template-columns: minmax(0, 1fr); }
  .a4 { padding: 24px 18px; }
  .paper-area { padding: 10px; }
  .need3, .stat4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .startpick { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .constitution-print .a4 { padding: 0; }
  .a4 th, .a4 tr:nth-child(odd) td, .a4 tr.today td, .a4 .tb-vr { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The money switch on the Rules page: which of the two ways a group handles its money. */
.money-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.money-ways .way { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--bg); color: var(--muted); }
.money-ways .way b { display: block; font-size: .88rem; color: var(--ink-2); }
.money-ways .way span { font-size: .76rem; }
.money-ways .way.on { border: 2px solid var(--brand); background: var(--brand-softer); padding: 8px 11px; }
.money-ways .way.on b { color: var(--brand-ink); }
.money-ways .way.on b::before { content: "\2713  "; color: var(--brand); }
.money-switch { margin-bottom: 14px; }
/* A clean page with faded screens of the UMOJA app and its report charts behind it, on computer-size screens.
   Cards and the side menu stay solid, so the screens only show in the open space. Off on phones and in print. */
@media (min-width: 900px) {
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: url("bg/screens.webp") center / cover no-repeat; opacity: .1;
    /* Clear behind the page headings at the top, fading in below them. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 120px, #000 360px);
    mask-image: linear-gradient(to bottom, transparent 0, transparent 120px, #000 360px); }
  :root[data-theme="dark"] body::before { opacity: .04; }
}
@media (min-width: 900px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .04; } }
@media print { body::before { display: none; } }
/* The Studio 13 Developers sign-off at the foot of every page (the white logo in dark mode). */
.signoff-row { margin-top: 12px; text-align: center; }
.signoff { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 600; }
.signoff:hover { color: var(--ink-2); }
.signoff b { font-weight: 700; color: var(--ink-2); }
.signoff-logo { display: block; height: 32px; width: auto; }
.signoff-logo.for-dark { display: none; }
:root[data-theme="dark"] .signoff-logo.for-light { display: none; }
:root[data-theme="dark"] .signoff-logo.for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .signoff-logo.for-light { display: none; }
  :root:not([data-theme="light"]) .signoff-logo.for-dark { display: block; }
}
/* My family */
.crumbs { font-size: .84rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.crumbs a { color: var(--brand); text-decoration: none; }
.fam-group .card-head { margin-bottom: 4px; }
.rows > .item.dim { opacity: .75; }
.rows > .item.standin { border-left: 3px solid var(--info); padding-left: 10px; }
.rows > .item.pending { background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; border-top: 0; margin-top: 6px; }
.item .s.warn-t { color: var(--warn); white-space: normal; }
.note-line { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font-size: .88rem; color: var(--ink-2); }
.note-line svg { color: var(--brand); flex: none; margin-top: 2px; }
.standin-box { border: 1.5px dashed var(--accent); background: var(--warn-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0 12px; }
.standin-box .lbl, .place-fields > .lbl { font-weight: 700; color: var(--ink-2); font-size: .86rem; margin: 0 0 6px; }
.fam-change { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; background: var(--card); display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
.fam-change h3 { margin: 4px 0 4px; font-size: 1rem; }
.fam-change .who { display: flex; gap: 10px; align-items: center; }
.fam-change .side { border-left: 1px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 8px; font-size: .84rem; color: var(--muted); }
.fam-change .side form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fam-change .side textarea { font: inherit; font-size: .85rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; min-height: 52px; resize: vertical; background: var(--card); color: var(--ink); }
.appr-bar { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.appr-bar i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-strong); display: block; }
.appr-bar i.on { background: var(--brand); }
@media (max-width: 760px) { .fam-change { grid-template-columns: 1fr; } .fam-change .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; } }
.danger-t { color: var(--bad) !important; }
.tabs a .count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: .74rem; text-align: center; }
.fam-change details summary { cursor: pointer; color: var(--brand); font-weight: 700; }
/* Tidier pages (12 Nov 2026): longer lists open on the spot, and the footer is centred like the sign-off. */
details.more-rows { margin-top: 6px; }
details.more-rows > summary { cursor: pointer; color: var(--brand); font-weight: 700; font-size: .88rem; padding: 6px 0; list-style: none; }
details.more-rows > summary::-webkit-details-marker { display: none; }
details.more-rows[open] > summary { color: var(--muted); }
.site-foot .wrap, .app-foot .wrap { text-align: center; }
/* Calculator: benefits proposed from the people covered and a fatality rate. */
.calc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.calc-steps > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-steps .k { font-size: .78rem; font-weight: 700; color: var(--muted); }
.calc-steps b { font-size: 1.15rem; }
.calc-steps small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.ok-t { color: var(--ok); font-size: .8rem; font-weight: 700; }
.bad-t { color: var(--bad); font-size: .8rem; font-weight: 700; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 8px 0 4px; }
.inline-fields .field { margin: 0; min-width: 240px; }
.send-proposal { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
@media (max-width: 760px) { .calc-steps { grid-template-columns: 1fr 1fr; } }

/* Registration fees page */
.reg-table input, .reg-table select { padding: 8px 10px; min-height: 40px; }
.reg-table input.money { width: 110px; min-width: 90px; }
.reg-table td:first-child { min-width: 180px; }
.reg-table td:nth-child(2) { white-space: nowrap; }
.reg-table select { min-width: 120px; }
.reg-table input:not(.money) { min-width: 130px; }

/* Constitution: page breaks and signature rows (18 Nov 2026) */
.a4 .page-break { border-top: 1px dashed #c8c8c8; margin: 28px -60px 18px; }
.a4 .doc-table.sign td { height: 34px; }
@media print {
  .a4 .page-break { break-before: page; page-break-before: always; border: 0; margin: 0; }
  .a4 .doc-table.sign tr { break-inside: avoid; }
}
