/* Shared tokens, reset, buttons, inputs, login — committee theme (maroon + gold). */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --primary: #9E2B25;
  --primary-soft: #F7E9E5;
  --gold: #C08A2D;
  --gold-soft: #F8EEDA;
  --green: #2E7D46;
  --green-soft: #E5F2E8;
  --amber: #C9862B;
  --amber-soft: #FBF1DA;
  --red: #C0392B;
  --ink: #2A1E1A;
  --muted: #7A6E66;
  --faint: #A99E95;
  --line: #EDE6DB;
  --bg: #FBF8F2;
  --card: #ffffff;
  --wa: #25A366;
  --shadow: 0 1px 2px rgba(40,26,20,.04), 0 12px 30px rgba(40,26,20,.07);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
img, canvas, table { max-width: 100%; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body { font-family: 'Hind Siliguri', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Baloo Da 2', system-ui, sans-serif; margin: 0; font-weight: 700; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #7e1f1b; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

.btn { font-family: 'Baloo Da 2', sans-serif; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 10px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: box-shadow .15s ease, background .15s ease, transform .05s ease; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #8c2620; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: #fff; }
.btn.warn { background: #fff; border-color: #E7C4C0; color: var(--red); }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 11px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.input, .ta, select.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-family: 'Hind Siliguri', sans-serif; font-size: 14px; color: var(--ink); background: #FCFAF6; }
.input:focus, .ta:focus { outline: none; border-color: var(--primary); }
.ta { resize: vertical; min-height: 80px; }

.lang-toggle { border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: 'Baloo Da 2', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 8px 12px; cursor: pointer; }

.brandmark { display: flex; align-items: center; gap: 10px; }
.emblem { width: 48px; height: 48px; border-radius: 50%; background: #7E1F1B url('/logo.png') center/cover no-repeat; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: transparent; font-family: 'Baloo Da 2', sans-serif; font-weight: 800; font-size: 0; flex: 0 0 auto; }
.brandmark .name { font-family: 'Baloo Da 2', sans-serif; font-weight: 700; font-size: 15px; }

.pill { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; width: max-content; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; width: max-content; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.muted { background: #F1EADF; color: #8a7c6c; }
.badge.gold { background: var(--gold-soft); color: var(--amber); }
.badge.role { background: var(--primary-soft); color: var(--primary); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.form-error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; font-weight: 500; }

/* Login / centered auth screens */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 32px 30px; width: 100%; max-width: 390px; }
.auth-card .brandmark { justify-content: center; margin-bottom: 16px; }
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; text-align: center; margin: 8px 0 20px; }
.auth-card label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: block; margin: 12px 0 6px; }
.auth-hint { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 14px; line-height: 1.5; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 90; opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
