/* Shyam Seva Sangh — clean white theme, dark navy text and accents, flat colors only. */
.sss-app, .sss-auth, .sss-public {
	--ink:#000; --navy:#0b1f4d; --navy2:#17327a; --bg:#fff; --panel:#f4f6fc; --panel2:#e8edf9; --line:#d3dbee;
	--gold:#d99a1d; --green:#15803d; --red:#b91c1c; --amber:#b45309;
	color:var(--ink); font-size:16px; line-height:1.55; box-sizing:border-box;
	font-family:"Noto Sans Devanagari","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
}
.sss-app *, .sss-auth *, .sss-public * { box-sizing:border-box; }
.sss-app a, .sss-auth a, .sss-public a { color:#000; }
.sss-app h2, .sss-app h3, .sss-auth h2, .sss-public h3 { color:#000; margin:0 0 14px; }

/* page canvas: white, theme title hidden, portal wide */
body.sss-page { background:#fff !important; }
body.sss-page .wp-block-post-title, body.sss-page .entry-title, body.sss-page .page-title { display:none; }
body.sss-page .sss-app { max-width:min(1240px,100%) !important; margin-left:auto !important; margin-right:auto !important; }

.sss-logo { display:block; border-radius:50%; background:#fff; }
.sss-logo-lg { width:150px; height:150px; margin:0 auto 14px; }
.sss-logo-sm { width:60px; height:60px; flex:none; }

/* two-pane dashboard */
.sss-app { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:78vh; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--bg); margin:24px 0; box-shadow:0 2px 14px rgba(11,31,77,.08); }
.sss-side { min-width:0; background:var(--panel); border-right:1px solid var(--line); padding:20px 0; }
.sss-brand { display:flex; align-items:center; gap:12px; padding:0 18px 16px; }
.sss-brand b { font-size:15px; line-height:1.3; color:#000; }
.sss-side nav a { display:block; padding:11px 18px; text-decoration:none; border-left:4px solid transparent; font-weight:500; color:var(--ink); }
.sss-side nav a:hover { background:var(--panel2); }
.sss-side nav a.on { background:var(--panel2); border-left-color:var(--navy); font-weight:700; color:#000; }
.sss-main { padding:28px 32px; min-width:0; background:var(--bg); }
.sss-main > h2:first-of-type { font-size:26px; }

/* stat cards */
.sss-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px; margin:14px 0 22px; }
.sss-card { display:block; background:var(--panel); border:1px solid var(--line); border-top:4px solid var(--navy); border-radius:12px; padding:16px 18px; text-decoration:none; color:var(--ink) !important; }
.sss-card b { display:block; font-size:34px; line-height:1.1; margin-bottom:4px; color:#000; }
a.sss-card:hover { background:var(--panel2); }
.sss-card.sss-c-pending { border-top-color:var(--amber); }
.sss-card.sss-c-approved { border-top-color:var(--green); }
.sss-card.sss-c-rejected { border-top-color:var(--red); }

/* forms */
.sss-form { max-width:460px; }
.sss-form.sss-wide { max-width:860px; }
.sss-form label, .sss-auth label { display:block; margin-bottom:14px; font-weight:600; }
.sss-app input[type=text], .sss-app input[type=tel], .sss-app input[type=number], .sss-app input[type=email], .sss-app select, .sss-app textarea,
.sss-public input[type=text], .sss-public input[type=tel], .sss-public select, .sss-public input[type=file],
.sss-auth input[type=text], .sss-auth input[type=email], .sss-auth input[type=tel], .sss-auth input[type=password] {
	display:block; width:100%; margin-top:5px; padding:11px 12px; background:#fff; color:var(--ink); border:1px solid #b9c4e0; border-radius:8px; font:inherit; font-weight:400;
}
.sss-app input::placeholder, .sss-public input::placeholder, .sss-auth input::placeholder { color:#000; opacity:1; font-style:italic; }
.sss-app input:focus, .sss-app select:focus, .sss-app textarea:focus, .sss-public input:focus, .sss-public select:focus, .sss-auth input:focus { outline:2px solid var(--navy2); outline-offset:1px; }
.sss-inline { font-weight:400 !important; }
.sss-hp { position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; }
.sss-btn { display:inline-block; background:var(--navy); color:#fff !important; border:0; border-radius:8px; padding:11px 20px; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; }
.sss-btn:hover { background:var(--navy2); }
.sss-ghost { background:#fff; color:#000 !important; border:1px solid var(--navy); }
.sss-ghost:hover { background:var(--panel2); }
.sss-ok-btn { background:var(--green); }
.sss-ok-btn:hover { background:#16a34a; }
.sss-no-btn { background:var(--red); }
.sss-no-btn:hover { background:#dc2626; }
.sss-photo-preview { display:block; width:130px; height:130px; object-fit:cover; border-radius:12px; margin:0 0 14px; border:2px solid var(--line); }
.sss-committee-line { background:var(--panel); border-left:4px solid var(--gold); border-radius:8px; padding:10px 14px; }

/* auth + public */
.sss-auth, .sss-public { max-width:480px; margin:28px auto; background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; box-shadow:0 2px 14px rgba(11,31,77,.08); }
.sss-auth h2 { text-align:center; }
.sss-tabs { display:flex; margin-bottom:18px; background:var(--panel); border-radius:10px; padding:4px; }
.sss-tabs a { flex:1; text-align:center; padding:10px; text-decoration:none; border-radius:8px; font-weight:600; color:var(--ink); }
.sss-tabs a.on { background:#fff; color:#000; box-shadow:0 0 0 2px var(--navy) inset; font-weight:700; }
.sss-muted, .sss-small, .sss-app small { font-size:13px; }
.sss-small { text-decoration:underline; }
.sss-public-title { text-align:center; margin-bottom:6px; }

/* notices + badges */
.sss-notice { padding:12px 16px; border-radius:8px; margin-bottom:16px; border-left:4px solid; background:var(--panel); }
.sss-ok { border-color:var(--green); }
.sss-err { border-color:var(--red); }
.sss-badge { display:inline-block; padding:3px 11px; border-radius:99px; font-size:12px; font-weight:700; color:#fff; }
.sss-b-pending { background:var(--amber); }
.sss-b-approved { background:var(--green); }
.sss-b-rejected { background:var(--red); }
.sss-b-draft { background:#475569; }

/* tables */
.sss-tablewrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.sss-table { width:100%; border-collapse:collapse; background:#fff; }
.sss-table th, .sss-table td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:middle; color:var(--ink); }
.sss-table th { background:var(--panel2); color:#000; border-bottom:2px solid var(--navy); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.sss-table tbody tr:nth-child(even) td { background:var(--panel); }
.sss-table tr:last-child td { border-bottom:0; }
.sss-thumb { width:56px; height:56px; object-fit:cover; border-radius:10px; display:block; border:1px solid var(--line); }
.sss-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:16px; }
.sss-filters a { padding:6px 14px; border:1px solid var(--line); border-radius:99px; text-decoration:none; color:var(--ink); background:#fff; }
.sss-filters a.on { background:var(--panel2); border-color:var(--navy); color:#000; font-weight:700; }
.sss-filters select { width:auto; margin:0; padding:7px 10px; }
.sss-inline-form { display:flex; gap:6px; margin:0 0 6px; }
.sss-inline-form input[type=text] { margin:0; padding:7px 10px; min-width:0; }
.sss-inline-form .sss-btn { padding:7px 14px; }

/* articles */
.sss-article { background:#fff; border:1px solid var(--line); border-left:4px solid var(--navy); border-radius:12px; padding:16px 18px; margin-bottom:14px; }
.sss-article-body { background:var(--panel); padding:12px 16px; border-radius:8px; margin:12px 0; max-height:320px; overflow:auto; }
.sss-main .wp-editor-wrap { margin-bottom:16px; }

/* receipt + pass */
.sss-receipt, .sss-pass { background:#fff; border:2px solid var(--navy); border-radius:14px; padding:22px 26px; max-width:540px; }
.sss-doc-head { display:flex; align-items:center; gap:14px; margin-bottom:12px; padding-bottom:12px; border-bottom:2px solid var(--gold); }
.sss-doc-head h3 { margin:0; font-size:17px; }
.sss-receipt table { width:100%; border-collapse:collapse; }
.sss-receipt th { text-align:left; width:38%; padding:8px 0; font-weight:600; }
.sss-receipt td { padding:8px 0; }
.sss-receipt tr { border-bottom:1px solid var(--line); }
.sss-pass { text-align:center; }
.sss-pass .sss-doc-head { justify-content:center; }
.sss-pass img.sss-pass-photo { width:150px; height:180px; object-fit:cover; border-radius:12px; border:3px solid var(--navy); }
.sss-pass-name { font-size:24px; font-weight:700; margin:10px 0; color:#000; }
.sss-pass-code { font-family:monospace; letter-spacing:1px; }

@media (max-width:760px) {
	.sss-app { grid-template-columns:minmax(0,1fr); border-radius:0; }
	.sss-side { border-right:0; border-bottom:1px solid var(--line); padding:12px 0 0; }
	.sss-side nav { display:flex; overflow-x:auto; }
	.sss-side nav a { white-space:nowrap; border-left:0; border-bottom:4px solid transparent; }
	.sss-side nav a.on { border-bottom-color:var(--navy); }
	.sss-main { padding:18px 16px; }
	.sss-inline-form { flex-wrap:wrap; }
}

@media print {
	body * { visibility:hidden; }
	.sss-receipt, .sss-receipt *, .sss-pass, .sss-pass * { visibility:visible; }
	.sss-receipt, .sss-pass { position:absolute; left:0; top:0; }
	.sss-noprint { display:none !important; }
}

/* ---- v0.2: richer left pane, home page, black-only text ---- */
.sss-app, .sss-app *, .sss-auth, .sss-auth *, .sss-public, .sss-public *, .sss-home, .sss-home h1, .sss-home h3, .sss-home p { --ink:#000; }
.sss-home, .sss-home p, .sss-home h1, .sss-home h3 { color:#000; }
.sss-app li::marker, .sss-main li::marker, .sss-public li::marker { color:#000; }
.sss-app ul, .sss-app ol { color:#000; }
.sss-app code { background:var(--panel2); color:#000; padding:2px 6px; border-radius:4px; }
.sss-logo-xl { width:200px; height:200px; margin:0 auto 18px; }

.sss-side { display:flex; flex-direction:column; padding:20px 0 14px; }
.sss-side-title { font-size:12px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#000; padding:16px 20px 6px; }
.sss-profile { margin:0 14px; padding:14px; background:#fff; border:1px solid var(--line); border-radius:12px; display:grid; grid-template-columns:auto 1fr; gap:4px 12px; align-items:center; }
.sss-avatar { width:46px; height:46px; border-radius:50%; background:var(--panel2); border:2px solid var(--navy); color:#000; font-weight:800; font-size:20px; display:flex; align-items:center; justify-content:center; }
.sss-profile-txt { display:flex; flex-direction:column; min-width:0; }
.sss-profile-txt strong { font-size:16px; overflow-wrap:anywhere; }
.sss-role { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:600; }
.sss-role .sss-ico { width:14px; height:14px; }
.sss-profile-meta { grid-column:1 / -1; margin:8px 0 0; padding-top:8px; border-top:1px solid var(--line); font-size:13px; display:grid; grid-template-columns:auto 1fr; gap:2px 10px; }
.sss-profile-meta dt { font-weight:700; }
.sss-profile-meta dd { margin:0; overflow-wrap:anywhere; }
.sss-side nav a { display:flex; align-items:center; gap:10px; }
.sss-side nav a .sss-lbl { flex:1; }
.sss-ico { flex:none; }
.sss-count { font-style:normal; font-size:12px; font-weight:800; background:var(--amber); color:#fff; border-radius:99px; padding:1px 8px; min-width:22px; text-align:center; }
.sss-signout { padding:4px 18px 0; display:flex; flex-direction:column; gap:10px; }
.sss-signout-btn { display:flex !important; align-items:center; justify-content:center; gap:8px; }
.sss-signout-btn .sss-ico { stroke:#fff; }
.sss-signout form { margin:0; text-align:center; }
.sss-linkbtn { background:none; border:0; padding:4px; font:inherit; font-size:13px; color:#000; text-decoration:underline; cursor:pointer; }
.sss-side-foot { margin:auto 0 0; padding:18px 20px 0; font-size:12px; color:#000; }

.sss-auth-sub { text-align:center; margin:-8px 0 16px; font-weight:600; }
.sss-pw { position:relative; display:block; }
.sss-pw input { padding-right:68px !important; }
.sss-pw-toggle { position:absolute; right:8px; top:50%; transform:translateY(-35%); background:none; border:0; font:inherit; font-size:13px; font-weight:700; color:#000; cursor:pointer; text-decoration:underline; }

/* landing page */
body.sss-page .sss-home { max-width:1000px; margin:0 auto; padding:24px 16px 48px; }
.sss-hero { text-align:center; padding:28px 12px 34px; }
.sss-hero h1 { font-size:clamp(32px,6vw,52px); margin:0; line-height:1.2; }
.sss-hero-sub { font-size:22px; font-weight:600; margin:4px 0 14px; }
.sss-hero-text { max-width:560px; margin:0 auto 24px; font-size:18px; }
.sss-hero-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.sss-hero-actions .sss-btn { padding:13px 28px; font-size:17px; }
.sss-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.sss-steps div { background:var(--panel); border:1px solid var(--line); border-top:4px solid var(--navy); border-radius:12px; padding:20px; }
.sss-steps b { display:inline-flex; width:34px; height:34px; border-radius:50%; background:var(--navy); color:#fff; align-items:center; justify-content:center; margin-bottom:10px; }
.sss-steps h3 { margin:0 0 6px; font-size:18px; }
.sss-steps p { margin:0; }
@media (max-width:760px) {
	.sss-profile-meta, .sss-side-title { display:none; }
	.sss-side { display:block; }
	.sss-side nav { margin-bottom:6px; }
	.sss-side-foot { display:none; }
	.sss-signout { flex-direction:row; align-items:center; justify-content:space-between; padding:10px 14px 14px; }
}

/* ---- v0.3: standalone pages (theme fully bypassed) ---- */
body.sss-standalone { margin:0; background:#fff; color:#000; font-family:"Noto Sans Devanagari","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif; font-size:16px; line-height:1.55; -webkit-text-size-adjust:100%; }
.sss-standalone .sss-app { margin:0; border:0; border-radius:0; box-shadow:none; min-height:100vh; max-width:none; }
.sss-standalone .sss-side { position:sticky; top:0; align-self:start; height:100vh; overflow-y:auto; }
.sss-trust-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; justify-content:center; padding:10px 16px; background:#f4f6fc; border-bottom:1px solid #d3dbee; font-size:14px; color:#000; text-align:center; }
.sss-trust-lock .sss-ico { display:block; }
.sss-trust-host { font-weight:700; background:#fff; border:1px solid #d3dbee; border-radius:99px; padding:2px 12px; }
.sss-stage { min-height:calc(100vh - 150px); display:flex; justify-content:center; align-items:flex-start; padding:28px 16px; }
.sss-stage > * { width:100%; }
.sss-trust-foot { text-align:center; padding:18px 16px 28px; font-size:14px; color:#000; border-top:1px solid #d3dbee; background:#f4f6fc; }
.sss-trust-foot p { margin:2px 0; }
.sss-block { display:block; width:100%; text-align:center; }
.sss-auth-help { margin-top:16px; font-size:14px; text-align:center; }
.sss-verified { display:flex; align-items:center; justify-content:center; gap:8px; font-weight:700; background:#e7f6ec; border:1px solid #15803d; border-radius:10px; padding:10px 12px; margin:0 0 16px; color:#000; }
.sss-public .sss-pass { margin:0 auto; }

/* built-in article editor */
.sss-editor { border:1px solid #b9c4e0; border-radius:10px; overflow:hidden; margin-bottom:16px; background:#fff; }
.sss-toolbar { display:flex; flex-wrap:wrap; gap:4px; padding:8px; background:var(--panel); border-bottom:1px solid var(--line); }
.sss-toolbar button { background:#fff; color:#000; border:1px solid var(--line); border-radius:6px; padding:5px 11px; font:inherit; font-size:14px; cursor:pointer; }
.sss-toolbar button:hover { background:var(--panel2); border-color:var(--navy); }
.sss-editable { min-height:260px; max-height:60vh; overflow:auto; padding:14px 16px; color:#000; outline:none; }
.sss-editable:focus { box-shadow:inset 0 0 0 2px var(--navy2); }
.sss-editable h3 { margin:12px 0 6px; }
.sss-editable ul, .sss-editable ol { padding-left:24px; }

@media (max-width:760px) {
	.sss-standalone .sss-side { position:static; height:auto; }
}

/* ---- v0.4: top bar, funnel, stakeholders, applicant page ---- */
.sss-content { display:flex; flex-direction:column; min-width:0; background:#fff; }
.sss-standalone .sss-app { grid-template-columns:270px minmax(0,1fr); }
.sss-topbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 32px; background:#fff; border-bottom:1px solid var(--line); }
.sss-topbar-left { font-size:15px; }
.sss-topbar-right { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.sss-userchip { display:inline-flex; align-items:center; gap:10px; font-weight:700; }
.sss-topbar .sss-avatar { width:38px; height:38px; font-size:17px; }
.sss-avatar { width:46px; height:46px; border-radius:50%; background:var(--panel2); border:2px solid var(--navy); color:#000; font-weight:800; font-size:20px; display:flex; align-items:center; justify-content:center; flex:none; }
.sss-avatar-lg { width:56px; height:56px; font-size:24px; }
.sss-rolepill { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:99px; font-size:13px; font-weight:700; color:#000; border:1.5px solid var(--navy); background:var(--panel2); }
.sss-rolepill .sss-ico { width:14px; height:14px; }
.sss-role-administrator { background:#fdf0cf; border-color:var(--gold); }
.sss-lang { display:inline-flex; border:1.5px solid var(--navy); border-radius:99px; overflow:hidden; }
.sss-lang a { padding:4px 12px; text-decoration:none; font-size:14px; font-weight:600; color:#000 !important; background:#fff; }
.sss-lang a.on { background:var(--navy); color:#fff !important; }
.sss-main { padding:26px 32px 40px; }
.sss-pagehead { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.sss-pagehead h2 { margin:0 0 4px; font-size:28px; }
.sss-pagehead p { margin:0; }
.sss-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sss-sm { padding:6px 12px; font-size:14px; }
.sss-signed-as { margin:0; font-size:13px; }
.sss-card.sss-c-attended { border-top-color:#7c3aed; }
.sss-card small { display:block; font-size:14px; font-weight:700; }
.sss-b-attended { background:#6d28d9; }
.sss-panel { border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin:6px 0 24px; background:#fff; }
.sss-panel h3 { margin-top:0; }
.sss-bar { margin-bottom:14px; }
.sss-bar-label { display:flex; justify-content:space-between; font-weight:600; }
.sss-bar-track { height:14px; background:var(--panel2); border-radius:99px; overflow:hidden; margin:4px 0; }
.sss-bar-fill { height:100%; background:var(--navy); border-radius:99px; }
.sss-note { margin:6px 0 0; font-weight:600; }
.sss-people { display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:14px; margin-bottom:22px; }
.sss-person { display:flex; gap:14px; border:1px solid var(--line); border-radius:12px; padding:16px; background:#fff; }
.sss-person > div { min-width:0; }
.sss-person strong { display:block; font-size:17px; margin-bottom:4px; }
.sss-kv { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; margin:10px 0 0; font-size:14px; }
.sss-kv dt { font-weight:700; }
.sss-kv dd { margin:0; overflow-wrap:anywhere; }

/* applicant page */
.sss-center { text-align:center; }
.sss-logo-md { width:96px; height:96px; margin:0 auto 12px; }
.sss-steps-bar { display:flex; list-style:none; padding:0; margin:0 0 18px; gap:6px; }
.sss-steps-bar li { flex:1; text-align:center; font-size:13px; font-weight:600; padding:8px 4px; border-radius:8px; background:var(--panel); border:1px solid var(--line); }
.sss-steps-bar li span { display:inline-flex; width:22px; height:22px; border-radius:50%; background:#fff; border:1.5px solid var(--navy); align-items:center; justify-content:center; margin-right:4px; font-size:12px; }
.sss-steps-bar li.done { background:#e7f6ec; border-color:var(--green); }
.sss-steps-bar li.now { background:#fdf0cf; border-color:var(--gold); }
.sss-steps-bar li.bad { background:#fde8e8; border-color:var(--red); }
.sss-notice p { margin:2px 0; }
.sss-pass-mobile { font-size:20px; font-weight:600; margin:0 0 4px; }
.sss-qr { width:190px; margin:14px auto 6px; padding:8px; border:2px solid var(--navy); border-radius:10px; background:#fff; }
.sss-qr svg { display:block; width:100%; height:auto; }
.sss-staff { margin-top:18px; padding:14px; border:1px dashed var(--navy); border-radius:10px; background:var(--panel); text-align:center; }
.sss-track { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.sss-track span { display:flex; gap:8px; margin-top:6px; }
.sss-track input { flex:1; margin:0 !important; }
.sss-trust-bar .sss-lang { margin-left:auto; }

@media (max-width:760px) {
	.sss-standalone .sss-app { grid-template-columns:minmax(0,1fr); }
	.sss-topbar { padding:10px 16px; position:static; }
	.sss-main { padding:18px 16px 32px; }
	.sss-userchip .sss-username { display:none; }
	.sss-trust-bar .sss-lang { margin-left:0; }
}
@media print {
	.sss-topbar, .sss-side, .sss-trust-bar, .sss-trust-foot, .sss-steps-bar, .sss-verified { display:none !important; }
}
.sss-main h3 { margin-top:26px; }
body.sss-standalone { --ink:#000; --navy:#0b1f4d; --navy2:#17327a; --panel:#f4f6fc; --panel2:#e8edf9; --line:#d3dbee; --gold:#d99a1d; --green:#15803d; --red:#b91c1c; --amber:#b45309; }
.sss-role-manager { background:#e3f1ff; border-color:#1d6fb8; }
.sss-viewonly { font-size:12px; font-weight:700; border:1.5px dashed #000; border-radius:99px; padding:3px 10px; }

/* ---- v0.5: simpler layout ---- */
.sss-topbar { justify-content:flex-end; }
.sss-signout { margin-top:auto; padding:18px 18px 4px; }
.sss-side nav { margin-top:14px; }
.sss-app textarea[hidden], .sss-editor textarea[hidden] { display:none !important; }

/* ---- v1.2: responsive (phones to large desktops) ---- */
.sss-main { max-width:1500px; }
.sss-filters a em { font-style:normal; font-weight:800; background:#fff; border:1px solid var(--line); border-radius:99px; padding:0 8px; margin-left:4px; font-size:13px; }
.sss-filters a.on em { border-color:var(--navy); }
.sss-pager { display:flex; align-items:center; justify-content:center; gap:14px; margin:18px 0; font-weight:700; }
.sss-td-photo { width:72px; }
.sss-table td, .sss-table th { overflow-wrap:break-word; }
.sss-table td[data-label="Mobile"] { white-space:nowrap; }

@media (max-width:1100px) {
	.sss-standalone .sss-app { grid-template-columns:220px minmax(0,1fr); }
	.sss-main { padding:22px 20px 36px; }
	.sss-topbar { padding:10px 20px; }
}

@media (max-width:760px) {
	/* sidebar becomes a compact header + scrollable tab bar */
	.sss-standalone .sss-app { display:block; }
	.sss-standalone .sss-side { position:sticky; top:0; z-index:20; height:auto; overflow:visible; display:flex; flex-wrap:wrap; align-items:center; padding:8px 12px 0; border-right:0; border-bottom:1px solid var(--line); background:var(--panel); }
	.sss-brand { padding:0; flex:1; }
	.sss-brand .sss-logo { width:40px; height:40px; }
	.sss-brand b { font-size:13px; }
	.sss-signout { order:2; margin:0; padding:0; }
	.sss-signout-btn { padding:7px 12px !important; font-size:14px; }
	.sss-signout-btn svg { display:none; }
	.sss-side nav { order:3; width:100%; display:flex; overflow-x:auto; margin:8px -12px 0; padding:0 12px; -webkit-overflow-scrolling:touch; }
	.sss-side nav a { flex:none; padding:10px 14px; border-left:0; border-bottom:4px solid transparent; white-space:nowrap; }
	.sss-side nav a.on { border-bottom-color:var(--navy); background:transparent; }
	.sss-side nav a svg { display:none; }
	.sss-topbar { position:static; padding:8px 14px; justify-content:space-between; }
	.sss-main { padding:16px 14px 32px; }
	.sss-pagehead { flex-direction:column; align-items:stretch; }
	.sss-pagehead .sss-btn { display:block; text-align:center; }
	.sss-cards { grid-template-columns:repeat(2,1fr); gap:10px; }
	.sss-card b { font-size:28px; }

	/* tables turn into cards */
	.sss-tablewrap { border:0; }
	.sss-stack, .sss-stack tbody, .sss-stack tr, .sss-stack td { display:block; width:100%; }
	.sss-stack thead { display:none; }
	.sss-stack tr { border:1px solid var(--line); border-radius:12px; margin-bottom:12px; padding:6px 12px; background:#fff; }
	.sss-stack tbody tr:nth-child(even) td { background:transparent; }
	.sss-stack td { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--line); padding:9px 0; text-align:right; }
	.sss-stack td:last-child { border-bottom:0; }
	.sss-stack td[data-label]::before { content:attr(data-label); font-weight:700; text-align:left; flex:none; }
	.sss-stack .sss-td-photo { justify-content:flex-start; width:auto; }
	.sss-stack .sss-td-action { justify-content:flex-start; flex-wrap:wrap; }
	.sss-stack .sss-inline-form { margin:0; }
	.sss-people { grid-template-columns:1fr; }
	.sss-form, .sss-form.sss-wide { max-width:none; }
	.sss-receipt, .sss-pass { max-width:none; padding:16px; }
}

@media (max-width:420px) {
	.sss-auth, .sss-public { margin:14px 10px; padding:20px 16px; }
	.sss-stage { padding:14px 4px; }
	.sss-trust-bar { font-size:13px; padding:8px 10px; }
	.sss-logo-lg { width:120px; height:120px; }
}
@media (min-width:1700px) {
	.sss-standalone .sss-app { grid-template-columns:300px minmax(0,1fr); }
	.sss-main { padding:34px 48px 56px; }
}

/* tablets: table rows become cards a little earlier so nothing gets squeezed */
@media (max-width:900px) {
	.sss-tablewrap { border:0; }
	.sss-stack, .sss-stack tbody, .sss-stack tr, .sss-stack td { display:block; width:100%; }
	.sss-stack thead { display:none; }
	.sss-stack tr { border:1px solid var(--line); border-radius:12px; margin-bottom:12px; padding:6px 14px; background:#fff; }
	.sss-stack tbody tr:nth-child(even) td { background:transparent; }
	.sss-stack td { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--line); padding:9px 0; text-align:right; }
	.sss-stack td:last-child { border-bottom:0; }
	.sss-stack td[data-label]::before { content:attr(data-label); font-weight:700; text-align:left; flex:none; }
	.sss-stack .sss-td-photo { justify-content:flex-start; width:auto; }
	.sss-stack .sss-td-action { justify-content:flex-start; flex-wrap:wrap; }
	.sss-stack .sss-inline-form { margin:0; }
}
@media (max-width:900px) { .sss-stack td[data-label]::before { margin-right:auto; } .sss-stack td .sss-badge { margin-left:6px; } }
@media (max-width:760px) { .sss-standalone .sss-side { flex-direction:row; justify-content:space-between; } .sss-brand { justify-content:flex-start; } .sss-signout { margin-top:0; } }
.sss-photo-preview[hidden], .sss-public [hidden] { display:none !important; }

/* ---- entry scanner (mobile) ---- */
.sss-scan { max-width:520px; margin:0 auto; padding:12px 14px 24px; min-height:100vh; display:flex; flex-direction:column; gap:12px; color:#000; }
.sss-scan-head { display:flex; align-items:center; gap:10px; }
.sss-scan-head > div { flex:1; display:flex; flex-direction:column; }
.sss-scan-head strong { font-size:18px; }
.sss-scan-view { position:relative; background:#000; border-radius:16px; overflow:hidden; aspect-ratio:1/1; display:none; }
.sss-scan.live .sss-scan-view { display:block; }
.sss-scan-view video { width:100%; height:100%; object-fit:cover; display:block; }
.sss-scan-frame { position:absolute; inset:16%; border:4px solid #fff; border-radius:20px; box-shadow:0 0 0 999px rgba(0,0,0,.35); pointer-events:none; }
.sss-scan-msg { padding:16px; border-radius:14px; border:2px solid #d3dbee; background:#f4f6fc; text-align:center; font-size:18px; font-weight:600; color:#000; }
.sss-scan-msg.good { background:#dff5e5; border-color:#15803d; }
.sss-scan-msg.warn { background:#fff0cf; border-color:#d99a1d; }
.sss-scan-msg.bad { background:#fde2e2; border-color:#b91c1c; }
.sss-scan-title { font-size:26px; font-weight:800; line-height:1.2; }
.sss-scan-sub { font-size:18px; margin-top:4px; }
.sss-scan-person { display:flex; gap:14px; align-items:center; margin-top:12px; text-align:left; }
.sss-scan-person img { width:96px; height:120px; object-fit:cover; border-radius:10px; border:2px solid #000; flex:none; }
.sss-scan-who { display:flex; flex-direction:column; font-size:16px; font-weight:500; }
.sss-scan-who strong { font-size:20px; }
.sss-scan-count { text-align:center; margin:4px 0 0; font-size:16px; }
.sss-scan-count strong { font-size:22px; }

.sss-scan-manual { display:flex; gap:8px; }
.sss-scan-manual input { flex:1; min-width:0; padding:10px 12px; border:1px solid #b9c4e0; border-radius:8px; font:inherit; color:#000; background:#fff; }

/* ---- v1.7: premium pass request form ---- */
body.sss-mode-card { background:#f4f6fc; }
.sss-mode-card .sss-stage { padding:22px 14px 48px; }
.sss-apply { width:100%; max-width:580px; margin:0 auto; color:#000; font-family:"Noto Sans Devanagari","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif; }
.sss-apply-hero { text-align:center; padding:14px 8px 22px; }
.sss-ring { display:inline-block; padding:5px; border-radius:50%; background:#fff; border:3px solid #d99a1d; box-shadow:0 8px 28px rgba(11,31,77,.18); }
.sss-ring .sss-logo { width:118px; height:118px; margin:0; }
.sss-apply-hero h1 { margin:16px 0 2px; font-size:clamp(26px,6vw,34px); line-height:1.2; color:#0b1f4d; }
.sss-apply-city { margin:0 0 12px; font-size:18px; font-weight:600; }
.sss-pill { display:inline-block; background:#0b1f4d; color:#fff; font-weight:700; font-size:14px; letter-spacing:.04em; padding:6px 18px; border-radius:99px; }
.sss-apply-card, .sss-thanks-card { background:#fff; border-radius:22px; padding:28px 26px 24px; box-shadow:0 14px 44px rgba(11,31,77,.12); border:1px solid #e1e7f5; }
.sss-apply-card.sss-form { max-width:none; }
.sss-field { margin-bottom:20px; }
.sss-field > label:first-child { display:block; margin:0 0 7px; font-size:15px; font-weight:700; color:#000; }
.sss-input { display:flex; align-items:center; gap:10px; background:#fff; border:1.8px solid #c9d3ec; border-radius:14px; padding:0 14px; min-height:56px; transition:border-color .15s, box-shadow .15s; }
.sss-input:focus-within { border-color:#0b1f4d; box-shadow:0 0 0 4px rgba(11,31,77,.12); }
.sss-fi { flex:none; }
.sss-prefix { font-weight:700; padding-right:10px; border-right:1.5px solid #d3dbee; }
.sss-apply .sss-input input, .sss-apply .sss-input select { flex:1; min-width:0; width:100%; border:0 !important; outline:0 !important; box-shadow:none !important; background:transparent !important; margin:0 !important; padding:14px 0 !important; font:inherit; font-size:17px; color:#000; }
.sss-apply .sss-input input::placeholder { color:#000; opacity:.45; font-style:normal; }
.sss-select select { appearance:none; -webkit-appearance:none; cursor:pointer; }
.sss-select::after { content:""; width:9px; height:9px; border-right:2.5px solid #0b1f4d; border-bottom:2.5px solid #0b1f4d; transform:rotate(45deg) translateY(-3px); margin-left:auto; flex:none; pointer-events:none; }
.sss-field-err { display:block; margin-top:6px; color:#b91c1c; font-weight:600; font-size:14px; }
.sss-field-err:empty { display:none; }
.sss-field.has-err .sss-input, .sss-field.has-err .sss-drop { border-color:#b91c1c; }

.sss-members { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; }
.sss-member { position:relative; display:flex; align-items:center; gap:12px; padding:12px 14px; border:1.8px solid #c9d3ec; border-radius:14px; cursor:pointer; background:#fff; margin:0; font-weight:600; transition:border-color .15s, background .15s, box-shadow .15s; }
.sss-member input { position:absolute; opacity:0; pointer-events:none; }
.sss-member:hover { border-color:#0b1f4d; }
.sss-member:has(input:checked) { border-color:#0b1f4d; background:#eef2fb; box-shadow:0 0 0 3px rgba(11,31,77,.12); }
.sss-member:has(input:checked)::after { content:"✓"; position:absolute; right:12px; top:50%; transform:translateY(-50%); width:24px; height:24px; border-radius:50%; background:#0b1f4d; color:#fff; font-size:14px; display:flex; align-items:center; justify-content:center; }
.sss-mav { width:42px; height:42px; border-radius:50%; background:#e8edf9; border:2px solid #0b1f4d; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; flex:none; }
.sss-mname { padding-right:26px; overflow-wrap:anywhere; }

.sss-file { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.sss-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:170px; padding:18px; border:2px dashed #7f93c4; border-radius:18px; background:#f7f9fe; cursor:pointer; text-align:center; transition:background .15s, border-color .15s; margin:0; }
.sss-drop:hover, .sss-drop:focus-within { background:#eef2fb; border-color:#0b1f4d; }
.sss-drop-empty { display:flex; flex-direction:column; align-items:center; gap:6px; }
.sss-drop-empty strong { font-size:16px; }
.sss-drop-empty em { font-style:normal; font-size:14px; }
.sss-drop.has-photo .sss-drop-empty { display:none; }
.sss-drop-preview { width:150px; height:150px; border-radius:50%; object-fit:cover; border:4px solid #0b1f4d; box-shadow:0 6px 18px rgba(11,31,77,.2); }
.sss-drop-preview[hidden], .sss-drop-change[hidden] { display:none !important; }
.sss-drop-change { font-weight:700; text-decoration:underline; }

.sss-submit { width:100%; display:flex; align-items:center; justify-content:center; gap:12px; min-height:60px; border:0; border-radius:16px; background:#0b1f4d; color:#fff; font:inherit; font-size:18px; font-weight:700; cursor:pointer; box-shadow:0 10px 24px rgba(11,31,77,.28); transition:transform .12s, box-shadow .12s, background .12s; }
.sss-submit:hover { background:#17327a; transform:translateY(-1px); box-shadow:0 14px 28px rgba(11,31,77,.32); }
.sss-submit:active { transform:translateY(0); }
.sss-submit:disabled { cursor:wait; opacity:.85; }
.sss-submit.loading svg { animation:sss-pulse 1s infinite; }
@keyframes sss-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.sss-apply-note { text-align:center; margin:16px 0 0; font-size:14px; }

.sss-thanks-card { text-align:center; padding-top:34px; }
.sss-thanks-card h1 { margin:16px 0 8px; font-size:26px; color:#0b1f4d; }
.sss-thanks-card p { margin:0 0 6px; font-size:17px; }
.sss-check { display:inline-flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:50%; background:#15803d; box-shadow:0 8px 20px rgba(21,128,61,.35); }
.sss-check-sm { width:42px; height:42px; flex:none; }
.sss-linkbox { margin-top:22px; padding:16px; border:1.8px dashed #7f93c4; border-radius:16px; background:#f7f9fe; text-align:left; }
.sss-linkbox input { width:100%; box-sizing:border-box; margin:8px 0 10px; padding:12px; border:1px solid #c9d3ec; border-radius:10px; font:inherit; font-size:14px; background:#fff; color:#000; }
.sss-approved { display:flex; align-items:center; gap:12px; background:#e7f6ec; border:1px solid #15803d; border-radius:14px; padding:12px 14px; margin-bottom:14px; text-align:left; }
.sss-approved strong { display:block; }
.sss-btn-lg { padding:15px 34px; font-size:18px; border-radius:14px; }
.sss-btn.loading { opacity:.7; cursor:wait; }
@media (max-width:480px) {
	.sss-apply-card, .sss-thanks-card { padding:22px 16px 18px; border-radius:18px; }
	.sss-ring .sss-logo { width:96px; height:96px; }
}

.sss-apply .sss-drop { display:flex; }
.sss-apply .sss-drop-empty { flex:1; justify-content:center; }

/* ---- v1.8: numbered steps + committee-member dropdown ---- */
.sss-step { display:flex; align-items:center; gap:12px; margin:26px 0 12px; }
.sss-step:first-of-type { margin-top:0; }
.sss-step h2 { margin:0; font-size:19px; line-height:1.25; color:#0b1f4d; }
.sss-num { flex:none; width:34px; height:34px; border-radius:50%; background:#0b1f4d; color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.sss-apply .sss-field:last-of-type { margin-bottom:24px; }

.sss-dd { position:relative; }
.sss-dd-btn { width:100%; display:flex; align-items:center; gap:12px; min-height:66px; padding:8px 14px; background:#fff; border:1.8px solid #c9d3ec; border-radius:14px; font:inherit; font-size:17px; color:#000; cursor:pointer; text-align:left; transition:border-color .15s, box-shadow .15s; }
.sss-dd-btn:hover:not(:disabled), .sss-dd.open .sss-dd-btn, .sss-dd-btn:focus-visible { border-color:#0b1f4d; box-shadow:0 0 0 4px rgba(11,31,77,.12); outline:0; }
.sss-dd-btn:disabled { background:#f4f6fc; cursor:not-allowed; }
.sss-dd-val { flex:1; min-width:0; display:flex; align-items:center; }
.sss-dd-chev { flex:none; width:9px; height:9px; border-right:2.5px solid #0b1f4d; border-bottom:2.5px solid #0b1f4d; transform:rotate(45deg) translateY(-3px); transition:transform .15s; }
.sss-dd.open .sss-dd-chev { transform:rotate(225deg) translateY(-3px); }
.sss-dd-list { position:absolute; z-index:30; left:0; right:0; top:calc(100% + 6px); margin:0; padding:6px; list-style:none; background:#fff; border:1.8px solid #0b1f4d; border-radius:16px; box-shadow:0 18px 40px rgba(11,31,77,.22); max-height:min(360px,60vh); overflow:auto; }
.sss-dd-list[hidden] { display:none; }
.sss-dd-list li { padding:10px; border-radius:12px; cursor:pointer; outline:0; }
.sss-dd-list li:hover, .sss-dd-list li:focus { background:#eef2fb; }
.sss-dd-list li[aria-selected="true"] { background:#e3e9f8; }
.sss-dd-person { display:flex; align-items:center; gap:12px; min-width:0; }
.sss-dd-text { display:flex; flex-direction:column; min-width:0; }
.sss-dd-text strong { font-size:17px; overflow-wrap:anywhere; }
.sss-dd-text small { font-size:15px; font-weight:600; letter-spacing:.02em; }
.sss-dd-av { flex:none; width:50px; height:50px; border-radius:50%; background:#e8edf9; border:2px solid #0b1f4d; overflow:hidden; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:20px; }
.sss-dd-av img { width:100%; height:100%; object-fit:cover; display:block; }

.sss-mylink p { margin:0 0 10px; }
.sss-linkrow { display:flex; gap:10px; flex-wrap:wrap; }
.sss-linkrow input { flex:1; min-width:220px; padding:11px 12px; border:1px solid #b9c4e0; border-radius:8px; font:inherit; background:#fff; color:#000; }

/* ---- v1.11.1: nicer form, same dropdown for Kshetra ---- */
.sss-native { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; overflow:hidden; }
.sss-dd-pin { flex:none; display:flex; }
.sss-dd-val.is-set { font-weight:600; }
#sss-kdd .sss-dd-btn { min-height:58px; }
#sss-kdd-list li { display:flex; align-items:center; gap:10px; padding:13px 14px; font-size:17px; font-weight:600; }
#sss-kdd-list li::before { content:""; flex:none; width:8px; height:8px; border-radius:50%; background:#d99a1d; }
#sss-kdd-list li[aria-selected="true"]::after { content:"✓"; margin-left:auto; width:24px; height:24px; border-radius:50%; background:#0b1f4d; color:#fff; font-size:14px; display:flex; align-items:center; justify-content:center; }
.sss-apply .sss-drop { min-height:130px; padding:14px; gap:6px; }
.sss-apply .sss-drop-empty { gap:4px; }
.sss-apply .sss-drop-empty .sss-fi { width:30px; height:30px; margin-bottom:4px; }
.sss-apply .sss-drop.has-photo { min-height:0; padding:12px; }
.sss-apply-card { position:relative; }
.sss-apply-card::before { content:""; position:absolute; left:26px; right:26px; top:0; height:4px; border-radius:0 0 6px 6px; background:#d99a1d; }
.sss-step { padding-top:4px; }
.sss-step + .sss-field { margin-top:2px; }
@media (max-width:480px) {
	.sss-apply-card::before { left:16px; right:16px; }
	.sss-apply-hero { padding:6px 4px 16px; }
	.sss-apply-hero h1 { font-size:26px; }
	.sss-step h2 { font-size:17px; }
	.sss-num { width:30px; height:30px; font-size:15px; }
	.sss-input, .sss-dd-btn { min-height:54px; }
	.sss-apply .sss-input input { font-size:16px; }
	.sss-submit { min-height:56px; font-size:17px; }
	.sss-dd-list { max-height:55vh; }
	.sss-dd-av { width:44px; height:44px; }
}

.sss-bar-note { display:block; font-weight:600; font-size:13px; }
.sss-demo-banner { background:#fff0cf; border:2px dashed #d99a1d; border-radius:12px; padding:10px 12px; text-align:center; font-size:15px; }

/* printable login list */
.sss-print-title { margin:0 0 4px; font-size:18px; }
.sss-print-sub { margin:0 0 12px; font-size:14px; }
.sss-table code { background:#eef2fb; color:#000; padding:2px 7px; border-radius:5px; font-size:14px; }
@media print {
	.sss-print-area, .sss-print-area * { visibility:visible !important; color:#000 !important; }
	.sss-print-area { position:absolute; left:0; top:0; width:100%; }
	.sss-print-area .sss-table { display:table !important; width:100%; border-collapse:collapse; }
	.sss-print-area .sss-table thead { display:table-header-group !important; }
	.sss-print-area .sss-table tr { display:table-row !important; border:0; padding:0; margin:0; page-break-inside:avoid; }
	.sss-print-area .sss-table th, .sss-print-area .sss-table td { display:table-cell !important; border:1px solid #888; padding:5px 8px; font-size:12px; text-align:left; background:#fff !important; }
	.sss-print-area .sss-table td::before { content:none !important; }
	.sss-tablewrap { border:0; overflow:visible; }
}

.sss-yt { margin:18px 0 4px; padding:16px; border:2px solid #0b1f4d; border-radius:14px; text-align:center; background:#fff; }
.sss-yt strong { font-size:18px; color:#0b1f4d; }
.sss-yt p { margin:4px 0 12px; font-size:16px; }
.sss-yt-line { text-align:center; margin:10px 0 0; font-size:15px; }
.sss-yt-line a { font-weight:700; color:#0b1f4d; text-decoration:underline; }

.sss-receiptview { max-width:560px; margin:0 auto; }
.sss-rc-canvas { display:block; width:100%; height:auto; border:2px solid #0b1f4d; border-radius:10px; background:#fff; margin:12px 0; }
.sss-rc-actions .sss-btn { margin:4px 3px; }
.sss-rc-status { font-weight:700; }
@media print { .sss-receiptview { max-width:none; } .sss-rc-canvas { border:0; border-radius:0; margin:0; } }

.sss-yt { box-sizing:border-box; width:100%; }
.sss-yt-btn { box-sizing:border-box; display:flex; align-items:center; justify-content:center; gap:12px; width:100%; max-width:100%; padding:15px 20px; border-radius:999px; border:2px solid #fff; background:linear-gradient(135deg,#ff2d2d,#b30000); color:#fff !important; font-size:18px; font-weight:800; text-decoration:none; box-shadow:0 0 0 0 rgba(255,40,40,.55), 0 6px 22px rgba(220,0,0,.55); animation:sss-yt-glow 1.8s ease-in-out infinite; }
.sss-yt-btn span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sss-yt-btn:hover { filter:brightness(1.08); }
@keyframes sss-yt-glow { 0%,100% { box-shadow:0 0 0 0 rgba(255,40,40,.5), 0 6px 20px rgba(220,0,0,.5); } 50% { box-shadow:0 0 0 8px rgba(255,40,40,0), 0 8px 34px rgba(255,30,30,.85); } }
@media (prefers-reduced-motion: reduce) { .sss-yt-btn { animation:none; } }

.sss-scan-photo { margin-top:10px; text-align:center; cursor:pointer; box-sizing:border-box; }

.sss-scan-actions { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.sss-scan-actions .sss-btn { width:100%; box-sizing:border-box; }
.sss-scan-mark { background:#15803d !important; border-color:#15803d !important; color:#fff !important; font-size:20px; padding:16px; }

.sss-scan-next { background:#0b1f4d !important; color:#fff !important; font-size:20px; padding:16px; }

.sss-bank { border:2px solid #0b1f4d; border-radius:14px; padding:14px 16px; margin:14px 0; background:#fff; }
.sss-bank strong { display:block; margin-bottom:6px; color:#0b1f4d; font-size:17px; }
.sss-bank dl { margin:0; }
.sss-bank dt { float:left; clear:left; width:42%; margin:0; padding:7px 0; border-top:1px dashed #d99a1d; font-weight:600; }
.sss-bank dd { margin:0 0 0 42%; padding:7px 0; border-top:1px dashed #d99a1d; font-weight:800; text-align:right; word-break:break-word; }
