:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5d6676;
  --line: #e3dfd6;
  --primary: #0f5c4d;
  --primary-ink: #ffffff;
  --primary-soft: #e3f0ec;
  --accent: #d9822b;
  --danger: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 4px 16px rgba(20, 30, 40, .05);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1b212a;
    --ink: #e8ebf0;
    --muted: #9aa3b2;
    --line: #2c3440;
    --primary: #3fb39a;
    --primary-ink: #0b1512;
    --primary-soft: #18302b;
    --accent: #f0a050;
    --danger: #f2706a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Oriya", "Noto Sans", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.25rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.main { flex: 1; padding-block: 32px 56px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.odia { font-weight: 400; color: var(--muted); font-size: .9em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--accent); margin: 0 0 .5em; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 6px; object-fit: cover; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .btn-link {
  padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.nav a:hover, .btn-link:hover { background: var(--primary-soft); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav .btn { color: var(--primary-ink); }
.nav-user { font-weight: 600; }
.btn-link { background: none; border: 0; font: inherit; cursor: pointer; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 820px) {
  .brand small { display: none; }
  .nav-burger { display: block; width: 40px; height: 40px; cursor: pointer; position: relative; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); content: "";
  }
  .nav-burger span { top: 19px; }
  .nav-burger span::before { top: -6px; left: 0; }
  .nav-burger span::after { top: 6px; left: 0; }
  .nav:not(.nav-plain) { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--primary); color: var(--primary-ink); border: 1px solid var(--primary);
  padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2em 0; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid-2 > .card, .grid-3 > .card { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h1, .section-head h2 { margin: 0; }

/* Landing */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 24px 40px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.hero-logo { border-radius: 20px; box-shadow: var(--shadow); justify-self: center; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-logo { max-width: 240px; order: -1; } }

/* Auth */
.auth-card { max-width: 440px; margin: 24px auto; padding: 28px; }
.auth-card.wide { max-width: 640px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > label { flex: 1 1 180px; }
.row > label.grow { flex: 3 1 220px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert-error { color: var(--danger); border-color: currentColor; background: color-mix(in srgb, var(--danger) 8%, transparent); }
.alert-success { color: var(--primary); border-color: currentColor; background: var(--primary-soft); }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--muted); font-size: .9rem; }
.stat span { display: block; font-size: 1.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-balance { border-color: var(--primary); }
.stat span.negative { color: var(--danger); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot th { color: var(--ink); font-size: .93rem; text-transform: none; letter-spacing: 0; border-bottom: 0; }
.notice { border-left: 4px solid var(--accent); }
.about { margin-top: 40px; }
.about .lead { margin-bottom: 20px; }
.about .grid-2 { margin-bottom: 16px; }
.about-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.notice-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.notice-list a { font-weight: 600; }
.notice-list span { display: block; }
.news-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
.news-card:hover { border-color: var(--primary); }
.news-card time, .article time { color: var(--accent); font-size: .82rem; font-weight: 600; display: block; margin-bottom: 4px; }
.news-card p { color: var(--muted); margin: 0; }
.article { max-width: 760px; padding: 32px; }
.article time { margin-top: 16px; }

/* Team */
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input, .search select { width: auto; flex: 1 1 180px; padding: 7px 12px; }
.doc-filter { margin-bottom: 8px; }
.doc-filter input[type="search"] { flex: 2 1 220px; }
.district h2 { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.person { display: flex; gap: 14px; align-items: center; margin: 0; padding: 14px 16px; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .9rem; text-transform: uppercase;
}

/* Services */
.service { display: block; color: inherit; text-decoration: none; }
.service:hover { border-color: var(--primary); }
.service p { color: var(--muted); }
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.link-list .card { margin: 0; padding: 14px 16px; }
.link-list h3 { margin: 0 0 2px; color: var(--primary); }
.link-list p { margin: 0; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn, .actions-cell form { margin: 2px 0; }

/* Admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.pill { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; background: var(--surface); }
.pill.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* Digital signatures — always on white, since signatures are dark ink */
.sig-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 14px; text-align: center; }
.sig-box img { max-height: 140px; object-fit: contain; }
.sig-thumb { width: 180px; padding: 4px; margin: 0; }
.sign-preview { display: grid; gap: 6px; justify-items: start; }
.sign-error { color: var(--danger); border: 1px solid currentColor; border-radius: 10px; padding: 10px 14px; margin: 0;
  background: color-mix(in srgb, var(--danger) 8%, transparent); font-size: .9rem; }
.sign-error ul { margin: 6px 0 0; padding-left: 1.2em; color: var(--ink); }
.sig-standard { width: min(100%, 360px); padding: 0; margin: 0; overflow: hidden; }
.sig-standard img { display: block; width: 100%; aspect-ratio: 3 / 1; max-height: none; object-fit: contain; }
.camera { display: grid; gap: 8px; justify-items: start; }
.camera-panel { width: 100%; max-width: 520px; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.camera-panel video, .camera-shot { display: block; width: 100%; border-radius: 8px; background: #000; }
.camera-view { position: relative; overflow: hidden; border-radius: 8px; }
.camera-panel video.mirrored { transform: scaleX(-1); }
.camera-guide.passport span { bottom: 6px; margin: 0; }   /* inside the tall frame, so it is never cut off */
.camera-guide.passport::after { content: ''; position: absolute; left: 14%; top: 8%; width: 72%; height: 70%;
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.camera-shot.photo-shot { width: auto; max-width: 100%; max-height: 360px; justify-self: center; }
.photo-options { flex: 1 1 280px; display: grid; gap: 10px; }
.photo-preview { display: grid; gap: 6px; justify-items: start; }
/* Guide box: the only area captured. Position must match CAMERA_GUIDE in app.js. */
.camera-guide { position: absolute; left: 10%; top: 30%; width: 80%; height: 40%; border: 3px dashed #fff; border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); pointer-events: none; }
.camera-guide span { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 6px; text-align: center; color: #fff;
  font-weight: 600; font-size: .85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.camera-panel .actions { margin: 0; }
.sig-thumb img { max-height: 60px; }
.sheet-page { background: #fff; color: #000; }
.sheet { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.sheet-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sheet-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 12px; }
.sheet table { font-size: .85rem; }
.sheet th, .sheet td { border: 1px solid #999; padding: 6px 8px; color: #000; }
.sheet th { background: #eee; }
.sheet tr { break-inside: avoid; }
.sheet-sig { width: 160px; max-height: 60px; object-fit: contain; }
@media print {
  .sheet-toolbar { display: none; }
  .sheet { max-width: none; padding: 0; }
  @page { margin: 12mm; }
}

/* Employee photo (passport size, 35 × 45 mm) */
.photo { width: 120px; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
.photo-empty { display: grid; place-items: center; }
.photo-thumb { width: 44px; display: block; }
.photo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-field label { flex: 1 1 240px; }
.form label .hint { font-weight: 400; }
.forgot-link { margin: -6px 0 0; text-align: right; }
.pw-rules { list-style: none; margin: -4px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--bg); color: var(--muted); display: grid; gap: 2px; }
.pw-rules li::before { content: '○'; display: inline-block; width: 1.4em; }
.pw-rules li.ok { color: var(--primary); }
.pw-rules li.ok::before { content: '✓'; font-weight: 700; }
.pw-rules li.bad { color: var(--danger); }
.pw-rules li.bad::before { content: '✗'; }
.employee-card { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.employee-card .details { flex: 1 1 300px; }
.employee-card .actions { flex-basis: 100%; margin-bottom: 0; }

/* Finance page */
.bank-card {
  position: relative; overflow: hidden; padding: 18px 20px; border: 0; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(240, 160, 80, .55), transparent 45%),
              linear-gradient(135deg, #0b4a3e 0%, #0f5c4d 45%, #1a8a6e 100%);
  box-shadow: 0 6px 22px rgba(15, 92, 77, .28);
}
.bank-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.bank-head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.bank-head .odia, .bank-head .muted { color: rgba(255, 255, 255, .78); }
.bank-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
/* Each detail is a frosted tile with its own colour marker. */
.bank-grid > div { --dot: #f0a050; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.bank-grid > div:nth-child(2) { --dot: #ffd166; }
.bank-grid > div:nth-child(3) { --dot: #7dd3fc; }
.bank-grid > div:nth-child(4) { --dot: #f9a8d4; }
.bank-grid dt { color: rgba(255, 255, 255, .78); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; }
.bank-grid dt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 30%, transparent); flex: none; }
.bank-grid dd { margin: 4px 0 0; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #fff; }
.bank-grid .copy-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: #ffe8c7; }
.bank-grid .btn-sm { padding: 2px 10px; font-size: .76rem; background: #fff; color: #0f5c4d; border-color: #fff; }
.bank-card > p { margin: 0; color: rgba(255, 255, 255, .82); }
.bank-card > p strong { color: #fff; }
.fin-stats { margin: 0 0 8px; }
.fin-stats .stat { padding: 12px 18px; }
.fin-stats .stat span { font-size: 1.5rem; }
.show-sm { display: none; }
@media (max-width: 860px) { .bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bank-card { padding: 16px; }
  /* One tile per line, label above value; Copy buttons sit on the right. */
  .bank-grid { grid-template-columns: 1fr; gap: 8px; }
  .bank-grid > div { padding: 9px 12px; }
  .bank-grid dd { margin-top: 3px; justify-content: space-between; flex-wrap: nowrap; }
  .fin-stats { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .fin-stats .stat { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; background: none; }
  .fin-stats .stat:last-child { border-bottom: 0; }
  .fin-stats .stat span { font-size: 1.1rem; }
  .fin-stats .stat-balance span { color: var(--primary); }
  .fin-table th, .fin-table td { padding: 9px 8px; font-size: .86rem; }
  .fin-table th { font-size: .7rem; }
  .fin-table tfoot th { font-size: .86rem; }
  .fin-table .hide-sm { display: none; }
  .fin-table .show-sm { display: block; }
}
.bank-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { flex: 0 0 9em; color: var(--muted); font-size: .9rem; }
.bank-row dd { margin: 0; flex: 1 1 12em; font-weight: 600; font-size: 1.05rem; }
.bank-row .copy-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; letter-spacing: .03em; }
.bank-row .reset-link { flex: 1 1 16em; font-size: .9rem; letter-spacing: 0; overflow-wrap: anywhere; }

/* e-Abhiyog */
.pre { white-space: pre-line; }
.badge-open { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.badge-closed { background: var(--line); color: var(--muted); }
.badge-reply { background: var(--primary); color: var(--primary-ink); }
.badge-wait { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.badge-lg { font-size: .9rem; padding: 4px 12px; }
.thread { display: grid; gap: 12px; margin-bottom: 16px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.msg p { margin: 6px 0; }
.msg-admin { border-left: 4px solid var(--primary); background: color-mix(in srgb, var(--primary-soft) 60%, var(--surface)); }
.msg-member { border-left: 4px solid var(--accent); }
.msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sig-on-record { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sig-on-record label { flex: 1 1 260px; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.form label.check input { width: auto; }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin: 0; display: flex; gap: 6px 24px; flex-wrap: wrap; align-items: center; }
.choice legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.req { color: var(--danger); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; padding-block: 32px 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; margin-bottom: 12px; font-size: 1rem; }
.footer-brand img { border-radius: 6px; object-fit: cover; }
.footer-title { display: inline-block; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin: 0 0 14px; padding-bottom: 4px; border-bottom: 3px solid var(--accent); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-list li { display: flex; align-items: center; gap: 10px; }
.footer-list a, .footer-list span { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--primary); text-decoration: underline; }
.footer-list .icon { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; color: var(--primary-ink); background: var(--primary); }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Social buttons always show their brand colour; hover lifts them slightly. */
.social { display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .15s, box-shadow .15s; }
.social .icon { width: 22px; height: 22px; }
.social a:hover, .social a:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.social-fb { background: #1877f2; }
.social-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-yt { background: #ff0000; }
.social-x { background: #000; border: 1px solid rgba(255, 255, 255, .25); }
.social .icon-fill { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 14px; }

/* Election */
.steps { margin: 0 0 4px; padding-left: 1.3em; color: var(--muted); }
.steps li { margin: 3px 0; }
.steps li.current { color: var(--ink); font-weight: 600; }
.steps li.done { text-decoration: line-through; }
th.post-cell { background: var(--surface); color: var(--ink); font-size: .93rem; text-transform: none; letter-spacing: 0; border-right: 1px solid var(--line); }
tr.winner td { background: var(--primary-soft); font-weight: 600; }
.ballot-post { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px 12px; margin: 0; display: grid; gap: 8px; }
.ballot-post legend { font-weight: 700; padding: 0 6px; }
.ballot-post label.check { font-weight: 400; }
.card .details + .form { margin-top: 14px; }

/* My account */
.tab-title { margin-top: 0; }
.dot-todo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-left: 2px; }
.record-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 18px; border-left: 4px solid var(--accent); }
.record-check ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.record-check li::before { content: '✗'; color: var(--danger); font-weight: 700; margin-right: 6px; }
.record-check li.ok::before { content: '✓'; color: var(--primary); }
.alert-todo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 600px) {
  .account-tabs { gap: 0; }
  .account-tabs a { padding: 9px 9px; font-size: .9rem; }
  .record-check { padding: 10px 14px; }
}

/* Treasury: view-only pages for members (see public/js/protect.js) */
body.protected { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.viewer { display: grid; gap: 14px; }
.viewer-title { margin-bottom: .2em; }
.viewer-page { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); pointer-events: none; }
@media print {
  body.protected > * { display: none !important; }
  body.protected::after { content: 'Printing is not allowed for Treasury records.'; display: block; padding: 2cm; font: 600 16pt system-ui, sans-serif; }
}
