:root {
  --navy: #1e293b; --navy-2: #334155; --gold: #b8892d; --bg: #f6f7f9; --card: #fff;
  --text: #1f2937; --muted: #6b7280; --line: #e5e7eb; --ok: #166534; --ok-bg: #dcfce7;
  --err: #991b1b; --err-bg: #fee2e2; --warn: #92400e; --warn-bg: #fef3c7; --link: #1d4ed8;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--link); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 70vh; }

.top { background: var(--navy); color: #fff; }
body.admin .top { background: #111827; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo { width: 30px; height: 30px; border-radius: 6px; background: var(--gold); display: grid; place-items: center; font-weight: 800; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: #e5e7eb; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 15px; }
.top nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Member pages: styled like the main website (Executive Committee page) ---------- */
body.member { font-family: 'Poppins', system-ui, sans-serif; background: #f5f5f5; color: #333; --ink: #182235; --blue: #173f73; --gold: #b88a2b; }
body.member main.wrap { max-width: 1200px; padding-top: 28px; }
body.member main a, .account-strip a { color: var(--blue); }
body.member h1, body.member h2 { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); letter-spacing: -.3px; }
body.member h2 { font-size: 26px; color: #29384d; }
body.member .lead { color: #5b6474; }
.account-strip { background: #fff; border-bottom: 1px solid #eceff3; font-size: 14px; color: #5b6474; }
.account-strip .wrap { max-width: 1200px; padding-top: 7px; padding-bottom: 7px; text-align: right; }
.page-head { max-width: 820px; margin: 4px auto 28px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 26px 24px 24px; text-align: center; }
.page-head .kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--blue, #173f73); margin-bottom: 6px; }
.page-head h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 44px; line-height: 1.1; margin: 0; color: #182235; letter-spacing: -1px; }
.page-head p { margin: 10px auto 0; color: #5b6474; max-width: 640px; }
@media (max-width: 600px) { .page-head h1 { font-size: 32px; } .page-head { padding: 20px 16px; } }
body.member .card { border: 0; border-radius: 12px; box-shadow: 0 3px 14px rgba(20,32,51,.06); }
body.member .btn { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); box-shadow: 0 2px 6px rgba(30,64,175,.25); color: #fff; }
body.member .btn:hover { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); }
body.member .btn.green { background: #15803d; box-shadow: none; }
body.member .btn.green:hover { background: #166534; }
body.member .btn.red { background: #b91c1c; box-shadow: none; }
body.member .btn.light { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px #c9d3e2; }
body.member .btn.light:hover { background: #f3f6fa; }
body.member th { color: var(--ink); }
body.member input[type=text], body.member input[type=email], body.member input[type=tel], body.member input[type=password], body.member input[type=search], body.member input[type=url], body.member input[type=month], body.member select, body.member textarea { border-color: #d5dbe4; }

/* Directory: navy header with search, members grouped by batch, large photos */
.dh { background: #173f73; color: #fff; border-radius: 18px; padding: 22px 26px; margin: 4px 0 14px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 10px 28px rgba(15,31,61,.18), inset 0 0 0 1px rgba(232,190,90,.35); }
.dh-main { flex: 1 1 340px; min-width: 0; }
.dh-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #e8be5a; }
.dh-short { display: none; }
body.member .dh h1 { font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.15; margin: 4px 0 14px; color: #fff; letter-spacing: -.5px; }
.dh-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 4px 4px 16px; color: #6b7280; }
body.member .dh-search input { border: 0; outline: 0; padding: 8px 0; font-size: 15px; background: transparent; flex: 1; min-width: 0; }
.dh-search button { border: 0; border-radius: 999px; background: #e8be5a; color: #0f1f3d; font: inherit; font-weight: 600; font-size: 14px; padding: 9px 18px; cursor: pointer; }
.dh-search button:hover { background: #f0cc72; }
.dh-stats { display: flex; gap: 10px; }
.dh-stats > * { background: rgba(255,255,255,.1); border: 1px solid rgba(232,190,90,.35); border-radius: 12px; padding: 9px 14px; min-width: 96px; color: rgba(255,255,255,.88); text-decoration: none; font-size: 12px; }
body.member .dh-stats a { color: rgba(255,255,255,.88); }
.dh-stats a:hover { background: rgba(255,255,255,.18); }
.dh-stats b { display: block; font-size: 22px; line-height: 1.2; color: #e8be5a; }
.dbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.dseg { display: inline-flex; background: #e9ecf1; border-radius: 999px; padding: 3px; }
body.member .dseg a { padding: 7px 16px; border-radius: 999px; font-size: 14px; color: #5b6474; text-decoration: none; }
body.member .dseg a.on { background: #fff; color: #173f73; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
body.member a.dlife { color: #8a6114; font-weight: 600; font-size: 14px; text-decoration: none; }
body.member a.dlife:hover { text-decoration: underline; }
.dbatch { margin-left: auto; }
body.member .dbatch select { width: auto; min-width: 190px; border-radius: 10px; padding: 8px 12px; }
.dtip { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; padding: 10px 14px; background: #fdf6e6; border: 1px solid #f0e2bd; border-radius: 12px; font-size: 14px; color: #7a5410; }
.dtip svg { flex: none; }
body.member .dtip a { color: #7a5410; font-weight: 600; }
.dfound { margin: 14px 2px 0; color: #5b6474; font-size: 14px; }
.dlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.member .dbh { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 0; padding-bottom: 6px;
  border-bottom: 2px solid #f0e2bd; font-size: 21px; color: #0f1f3d; }
.dbh em { font-style: normal; font-family: 'Poppins', system-ui, sans-serif; font-size: 14px; font-weight: 600; color: #8a6114; margin-left: 4px; }
.dbh small { font-family: 'Poppins', system-ui, sans-serif; font-size: 12px; font-weight: 400; color: #8a93a3; }
body.member a.dm { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; padding: 12px; text-decoration: none; color: inherit;
  min-width: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
body.member a.dm:hover, body.member a.dm:focus { border-color: #b9c7dd; box-shadow: 0 6px 18px rgba(15,31,61,.1); transform: translateY(-1px); }
.dav { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; object-fit: cover; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 19px; background: #eef1f5; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dfe4ea; }
.dm.life .dav { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e8be5a; }
.ini.t0 { background: #ecebfb; color: #3c3489; } .ini.t1 { background: #e1f5ee; color: #085041; }
.ini.t2 { background: #e6f1fb; color: #0c447c; } .ini.t3 { background: #fbeef0; color: #72243e; }
.dtx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dnm { font-weight: 600; color: #0f1f3d; font-size: 14px; }
.dstar { color: #c9962e; }
.did { font-size: 12px; color: #8a93a3; margin-top: 1px; }
.dtag { align-self: flex-start; font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 999px; margin-top: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtag.jus { background: #ecebfb; color: #3c3489; } .dtag.jud { background: #e1f5ee; color: #085041; }
.dtag.adv { background: #e6f1fb; color: #0c447c; } .dtag.oth { background: #f1efe8; color: #444441; }
.dfoot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding: 14px 18px;
  background: #fdf6e6; border: 1px solid #f0e2bd; border-radius: 14px; }
.dcta { margin: 0; font-size: 14px; color: #7a5410; }
body.member .dcta a { color: #7a5410; }
body.member a.dmore, body.member a.dback { display: inline-block; background: #fff; border: 1px solid #d5dbe4; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; color: #173f73; text-decoration: none; }
body.member a.dmore:hover { border-color: #173f73; }
@media (max-width: 900px) { .dlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dh { border-radius: 14px; padding: 18px 16px 16px; gap: 12px; }
  .dh-long { display: none; } .dh-short { display: inline; }
  body.member .dh h1 { font-size: 27px; margin-bottom: 12px; }
  .dh-search button { padding: 8px 14px; }
  .dh-stats { width: 100%; gap: 6px; }
  .dh-stats > * { flex: 1 1 0; min-width: 0; padding: 7px 8px; font-size: 11px; text-align: center; }
  .dh-stats b { font-size: 17px; }
  .dbar { gap: 8px 12px; }
  .dseg { width: 100%; } body.member .dseg a { flex: 1; text-align: center; padding: 7px 8px; }
  .dbatch { margin-left: auto; } body.member .dbatch select { min-width: 0; }
  .dlist { grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 14px; overflow: hidden; margin-top: 12px; box-shadow: 0 2px 10px rgba(15,31,61,.06); }
  body.member .dbh { margin: 0; padding: 14px 14px 6px; font-size: 18px; }
  body.member a.dm { border: 0; border-bottom: 1px solid #eef0f3; border-radius: 0; padding: 12px 14px; }
  body.member a.dm:hover { transform: none; box-shadow: none; background: #f8f9fb; }
  .dav { width: 56px; height: 56px; flex-basis: 56px; font-size: 17px; }
  .dfoot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Public member profile: photo, name and designation lead */
.back-link { margin: 0 0 12px; font-size: 14px; }
.pf-head { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px 26px; align-items: center; padding: 24px; }
.pf-photo { grid-row: span 2; width: 168px; height: 168px; border-radius: 16px; overflow: hidden; background: #eef1f5; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo .ph { width: 100%; height: 100%; padding: 20%; }
.pf-name { font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.5px; }
.pf-headline { margin: 6px 0 0; font-size: 19px; font-weight: 600; color: var(--blue); }
.pf-meta { margin: 6px 0 0; color: #5b6474; font-size: 14px; }
.pf-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pf-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: #166534; background: #dcfce7; padding: 3px 10px; border-radius: 999px; }
.pf-type { font-size: 13px; font-weight: 600; color: #374151; background: #eef1f5; padding: 3px 10px; border-radius: 999px; }
.pf-type.life { color: #8a6114; background: #fdf3dc; }
.pf-actions { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; margin-top: -8px; }
.pf-actions .btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 9px 18px; }
.pf-section h2 { margin: 0 0 12px; font-size: 22px; }
.pf-about { margin: 0; white-space: pre-line; line-height: 1.7; color: #374151; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
.pf-grid dt { font-size: 13px; color: #5b6474; margin-bottom: 2px; }
.pf-grid dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pf-empty p { margin: 0; color: #5b6474; }
.pf-empty { border: 1.5px dashed #c9d3e2; box-shadow: none; }
.pf-updates { list-style: none; margin: 0; padding: 0; }
.pf-updates li { border-left: 3px solid var(--gold); border-radius: 0; padding: 2px 0 2px 14px; margin-bottom: 16px; }
.pf-updates li:last-child { margin-bottom: 0; }
.pf-updates p { margin: 4px 0 0; color: #4b5563; white-space: pre-line; }
.pf-when { display: block; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
.pf-share { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.pf-share[hidden] { display: none; }
.qr-box { width: 170px; height: 170px; background: #fff; }
.qr-box svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .pf-head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 16px; align-items: start; }
  .pf-photo { grid-row: auto; width: 96px; height: 96px; border-radius: 14px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
  .pf-name { font-size: 24px; }
  .pf-headline { font-size: 16px; }
  .pf-meta { font-size: 13px; }
  .pf-actions { grid-column: 1 / -1; margin-top: 0; }
  .pf-actions .btn { flex: 1 1 auto; justify-content: center; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-share { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Life members honour roll: navy and gold, cards like the home page's Discover cards */
.lm-hero { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 20px; padding: 34px 20px 30px; margin: 4px 0 22px;
  background: radial-gradient(circle at 50% 0%, rgba(232,190,90,.28), transparent 60%), linear-gradient(160deg, #0f1f3d 0%, #173f73 100%);
  box-shadow: 0 10px 30px rgba(15,31,61,.25), inset 0 0 0 1px rgba(232,190,90,.45); }
.lm-hero::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(232,190,90,.35); border-radius: 14px; pointer-events: none; }
.lm-crest { width: 110px; height: 58px; color: #e8be5a; display: block; margin: 0 auto 6px; }
.lm-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #e8be5a; }
body.member .lm-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: 48px; line-height: 1.1; margin: 6px 0 0; color: #fff; letter-spacing: -.5px; }
.lm-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.lm-stats div { min-width: 160px; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(232,190,90,.35); }
.lm-stats b { display: block; font-size: 26px; color: #e8be5a; line-height: 1.2; }
.lm-stats span { display: block; font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.8); }
.lm-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
body.member .lm-tools input { max-width: 380px; border-radius: 999px; padding: 11px 18px; border: 1.5px solid #e2cf9f; }
body.member a.lm-link { color: #8a6114; font-weight: 600; text-decoration: none; }
body.member a.lm-link:hover { text-decoration: underline; }
.lm-none { text-align: center; color: #5b6474; margin: 24px 0; }
.lm-batch { margin-top: 26px; }
.lm-batch[hidden], .lm-card[hidden] { display: none; }
body.member .lm-batch-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 22px; color: #0f1f3d; }
.lm-batch-h::after { content: ''; flex: 1; height: 2px; align-self: center; background: linear-gradient(90deg, #e8be5a, transparent); }
.lm-batch-y { font-family: 'Poppins', system-ui, sans-serif; font-size: 15px; font-weight: 600; color: #8a6114; }
.lm-batch-c { order: 3; font-family: 'Poppins', system-ui, sans-serif; font-size: 12px; font-weight: 700; color: #8a6114; background: #fdf3dc; border-radius: 999px; padding: 2px 9px; }
.lm-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
body.member a.lm-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 16px 20px; background: #fff;
  border-radius: 16px; text-decoration: none; color: inherit; box-shadow: 0 4px 14px rgba(15,31,61,.08); border-top: 3px solid #e8be5a;
  transition: transform .2s, box-shadow .2s; }
body.member a.lm-card:hover, body.member a.lm-card:focus { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(15,31,61,.16); }
.lm-photo { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #eef1f5; margin-bottom: 10px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e8be5a; }
.lm-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.lm-photo .ph { width: 100%; height: 100%; padding: 18%; border-radius: 50%; overflow: hidden; }
.lm-star { position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #f5d27a, #c9962e); color: #fff; font-size: 15px; box-shadow: 0 0 0 2px #fff; }
.lm-name { font-weight: 600; font-size: 16px; line-height: 1.3; color: #0f1f3d; }
.lm-des { font-size: 13px; color: #173f73; line-height: 1.35; }
.lm-id { font-size: 12px; color: #6b7280; letter-spacing: .3px; }
body.member .lm-btn { display: inline-block; margin-top: auto; padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #f5d27a, #e8be5a); color: #0f1f3d; text-decoration: none; }
.lm-card .lm-btn { margin-top: 12px; }
.lm-card:hover .lm-btn { background: linear-gradient(135deg, #f8dc8f, #edc76a); }
.lm-cta { margin-top: 40px; text-align: center; color: #fff; border-radius: 20px; padding: 30px 20px;
  background: linear-gradient(160deg, #0f1f3d 0%, #173f73 100%); box-shadow: inset 0 0 0 1px rgba(232,190,90,.45); }
body.member .lm-cta h2 { margin: 0; color: #fff; }
.lm-cta p { color: rgba(255,255,255,.85); margin: 8px auto 0; max-width: 560px; }
.lm-cta-actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 18px; }
body.member .lm-cta a.lm-link { color: #e8be5a; }
@media (max-width: 600px) {
  body.member .lm-hero h1 { font-size: 36px; }
  .lm-hero { padding: 28px 16px 24px; }
  .lm-stats b { font-size: 21px; }
  .lm-stats span { font-size: 11px; }
  body.member .lm-tools input { max-width: none; }
  .lm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.member a.lm-card { padding: 18px 10px 16px; }
  .lm-photo { width: 76px; height: 76px; }
  .lm-name { font-size: 14px; }
  body.member .lm-card .lm-btn { padding: 6px 14px; font-size: 13px; }
}

/* Directory and profile links to the honour roll */
body.member a.life-link { color: #8a6114; font-weight: 600; }
body.member a.pf-type.life { text-decoration: none; }
body.member a.pf-type.life:hover { background: #f8e6b8; }

/* Profile */
.pp { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
.pp-form { text-align: center; }
.pp-photo { position: relative; display: block; width: 172px; height: 172px; margin: 6px auto 0; border-radius: 50%; cursor: pointer; background: #eef1f5;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #e8be5a; }
.pp-photo.empty { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #e8be5a; outline: 2px dashed #c9962e; outline-offset: 8px; }
.pp-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pp-photo img[hidden] { display: none; }
.pp-photo img:not([hidden]) + .ph { display: none; }
.pp-photo .ph { width: 100%; height: 100%; padding: 22%; border-radius: 50%; overflow: hidden; }
.pp-photo:hover { filter: brightness(.96); }
.pp-cam { position: absolute; right: 2px; bottom: 6px; width: 46px; height: 46px; border-radius: 50%; background: #173f73; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff; }
.pp-wait { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pp-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.member .pp-btn { margin-top: 22px; border-radius: 999px; padding: 11px 26px; font-size: 15px; cursor: pointer; display: inline-block; }
.pp-btn.busy { opacity: .6; pointer-events: none; }
.pp-input:focus-visible + .pp-btn { outline: 3px solid #93c5fd; }
.pp-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8a6114; margin-bottom: 2px; }
.pp-status { margin: 10px 0 0; font-weight: 600; color: #173f73; }
.pp-hint { margin: 10px auto 0; max-width: 260px; }
@media (max-width: 700px) { .pp { grid-template-columns: 1fr; gap: 18px; } .pp-info h2, .pp-kicker { text-align: center; } }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0; }

h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.span-2 { grid-column: 1 / -1; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.req { color: var(--err); }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=month], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
textarea { min-height: 70px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }

.btn { display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--navy); color: #fff; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn.green { background: #15803d; } .btn.green:hover { background: #166534; }
.btn.red { background: #b91c1c; } .btn.red:hover { background: #991b1b; }
.btn.light { background: #e5e7eb; color: var(--text); } .btn.light:hover { background: #d1d5db; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.armed, body.member .btn.armed { background: #7f1d1d; outline: 3px solid #fca5a5; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.flash ul { margin: 6px 0 0 18px; padding: 0; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th { background: #f1f5f9; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--navy-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; color: #374151; white-space: nowrap; }
.badge.gold { background: #fdf3dc; color: #8a6114; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e5e7eb; display: inline-grid; place-items: center;
  color: #64748b; font-weight: 700; font-size: 16px; }
.avatar.big { width: 110px; height: 110px; font-size: 34px; }
.filters { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; margin-bottom: 14px; }
.filters.five { grid-template-columns: 2fr 1.4fr 1.4fr 1fr auto; }
@media (max-width: 700px) { .filters, .filters.five { grid-template-columns: 1fr; } th, td { font-size: 14px; } }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.stat b { display: block; font-size: 28px; }
.stat.attn { border-color: #f59e0b; background: #fffbeb; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.diff td:nth-child(2) { color: var(--muted); text-decoration: line-through; }
.diff td:nth-child(3) { color: var(--ok); font-weight: 600; }
.steps { margin: 0; padding-left: 20px; }
.muted { color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 6px; } }

/* Registration complete */
.rd { max-width: 440px; margin: 8px auto 0; text-align: center; padding: 28px 22px 24px; }
.rd-tick { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #166534; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
body.member .rd h1 { font-family: Georgia, "Times New Roman", serif; font-size: 27px; color: #0f1f3d; margin: 0 0 6px; }
.rd-lead { margin: 0 0 16px; color: #374151; }
.rd-ref { display: inline-block; background: #f1f5f9; border-radius: 10px; padding: 8px 16px; font-size: 14px; color: #5b6474; margin: 0 0 18px; }
.rd-ref b { color: #0f1f3d; font-size: 18px; letter-spacing: .5px; }
.rd-wait { background: #fdf6e6; border: 1px solid #f0e2bd; border-radius: 12px; padding: 14px; text-align: left; margin-bottom: 14px; }
.rd-wait b { display: block; color: #7a5410; font-size: 16px; margin-bottom: 4px; }
.rd-wait p { margin: 0; font-size: 14px; color: #6b5420; line-height: 1.5; }
.rd-help { border: 1px solid #e6e9ee; border-radius: 12px; padding: 14px; text-align: left; margin-bottom: 16px; font-size: 14px; color: #374151; line-height: 1.5; }
body.member a.rd-call { display: block; margin-top: 10px; background: #173f73; color: #fff; border-radius: 999px; padding: 11px; font-weight: 600; text-decoration: none; font-size: 16px; text-align: center; }
body.member a.rd-call:hover { background: #0f2f57; }
.rd-after { font-size: 13px; color: #6b7280; margin: 0 0 16px; }
body.member a.rd-btn { display: block; border: 1.5px solid #173f73; color: #173f73; border-radius: 999px; padding: 10px; font-weight: 600; text-decoration: none; font-size: 14px; }
