/* sc — public SmartCity app website (PeruConecta, GTConecta …).
   --c / --cd / --ct (brand, darker, tint) and --cover come from index.php. */
:root {
	--bg:#f6f7f9; --card:#fff; --ink:#0f1728; --ink2:#344054; --mut:#667085; --line:#eaecf0;
	--emer:#d92d20; --warn:#dc6803; --ok:#039855; --info:#1570ef;
	--r:20px; --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
	--display:"Plus Jakarta Sans", Inter, system-ui, sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing:antialiased; }
h1, h2, h3, .brand { font-family:var(--display); letter-spacing:-.02em; }
a { color:var(--c); text-decoration:none; }
button { font:inherit; cursor:pointer; color:inherit; }
[hidden] { display:none !important; }
.muted { color:var(--mut); }
.small { font-size:12.5px; }
.center { text-align:center; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 20px; border-radius:999px; border:0; background:var(--c); color:#fff; font-weight:600; white-space:nowrap; transition:transform .15s, box-shadow .15s, background .15s; box-shadow:0 6px 16px -6px var(--c); }
.btn:hover { transform:translateY(-1px); background:var(--cd); }
.btn.sm { height:36px; padding:0 16px; font-size:14px; box-shadow:none; }
.btn.ghost { background:#fff; color:var(--cd); border:1px solid var(--line); box-shadow:none; }
.btn.ghost:hover { background:var(--ct); }
.btn.white { background:#fff; color:var(--cd); box-shadow:0 8px 24px rgba(0,0,0,.18); }
.btn.wide { width:100%; height:48px; }
.btn:disabled { opacity:.6; }
.linkbtn { border:0; background:none; color:var(--c); font-weight:600; padding:6px; }

/* search box */
.sbox { display:flex; align-items:center; gap:10px; height:48px; padding:0 16px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--mut); transition:border-color .15s, box-shadow .15s; }
.sbox:focus-within { border-color:var(--c); box-shadow:0 0 0 4px var(--ct); }
.sbox input { flex:1; min-width:0; border:0; outline:none; font:inherit; font-size:15.5px; color:var(--ink); background:none; height:100%; }
.sbox.big { height:56px; border-radius:16px; box-shadow:var(--shadow); }

/* top bar: over the cover on the home page, solid once scrolled */
.top { position:fixed; top:0; left:0; right:0; z-index:600; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px max(20px, calc(50% - 580px)); transition:background .2s, box-shadow .2s, padding .2s; color:#fff; }
.top.solid, body.on-muni .top { background:rgba(255,255,255,.92); backdrop-filter:saturate(1.5) blur(14px); -webkit-backdrop-filter:saturate(1.5) blur(14px); color:var(--ink); box-shadow:0 1px 0 var(--line); padding-top:10px; padding-bottom:10px; }
.brand { display:flex; align-items:center; gap:10px; color:inherit; font-weight:800; font-size:18px; }
.brand img { width:34px; height:34px; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.topr { display:flex; align-items:center; gap:8px; }
.lang { border:1px solid rgba(255,255,255,.4); background:rgba(255,255,255,.12); color:inherit; border-radius:999px; height:36px; padding:0 13px; font-weight:600; font-size:13px; }
.top.solid .lang, body.on-muni .top .lang { border-color:var(--line); background:#fff; color:var(--mut); }
.userbox { position:relative; }
.userbtn { display:flex; align-items:center; gap:8px; border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; height:38px; padding:0 14px 0 4px; font-weight:600; max-width:220px; }
.userbtn #username { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.menu { position:absolute; right:0; top:46px; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:14px; box-shadow:0 16px 40px rgba(16,24,40,.16); min-width:250px; padding:6px; z-index:900; }
.menu a { display:block; padding:10px 12px; border-radius:9px; color:var(--ink); font-weight:500; }
.menu a:hover { background:var(--bg); }

/* phone "open the app" bar */
.openbar { position:relative; z-index:700; display:flex; align-items:center; gap:10px; padding:8px 16px; background:#fff; border-bottom:1px solid var(--line); }
.openbar img { width:38px; height:38px; border-radius:10px; }
.openbar div { flex:1; line-height:1.25; }
.openbar small { display:block; color:var(--mut); }
body.has-openbar .top { top:55px; }

/* hero with the cover photo */
.hero { position:relative; min-height:min(720px, 92vh); display:flex; align-items:flex-end; color:#fff; overflow:hidden; background:var(--cd); }
.hero-bg { position:absolute; inset:0; background:var(--cover) var(--coverpos) / cover no-repeat; transform:scale(1.03); }
.hero::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(8,12,24,.55) 0%, rgba(8,12,24,.15) 30%, rgba(8,12,24,.25) 55%, rgba(8,12,24,.82) 100%), linear-gradient(90deg, rgba(8,12,24,.55), rgba(8,12,24,0) 65%); }
.hero-in { position:relative; z-index:2; width:100%; max-width:1160px; margin:0 auto; padding:120px 20px 96px; display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, .85fr); gap:48px; align-items:end; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:6px 14px 6px 6px; border-radius:999px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(8px); font-weight:700; font-size:14px; }
.eyebrow img { width:26px; height:26px; border-radius:8px; }
.hero h1 { font-size:clamp(36px, 5.4vw, 62px); line-height:1.04; margin:18px 0 14px; font-weight:800; text-shadow:0 2px 24px rgba(0,0,0,.25); }
.lead { font-size:clamp(16px, 1.6vw, 19px); line-height:1.55; max-width:560px; margin:0 0 28px; color:rgba(255,255,255,.9); }
.stores { display:flex; flex-wrap:wrap; gap:12px; }
.store { display:inline-flex; align-items:center; gap:11px; min-width:184px; height:56px; padding:0 18px; border-radius:14px; background:#0b0c0f; color:#fff; border:1px solid rgba(255,255,255,.18); font-weight:600; font-size:17.5px; line-height:1.1; transition:transform .15s; }
.store:hover { transform:translateY(-2px); }
.store small { display:block; font-size:10.5px; font-weight:500; opacity:.8; }
.store .tag { margin-left:auto; font-size:9.5px; font-weight:800; letter-spacing:.05em; background:rgba(255,255,255,.18); padding:3px 7px; border-radius:6px; }
.beta { font-size:12.5px; color:rgba(255,255,255,.75); margin:12px 0 0; }
.hero-search { background:rgba(255,255,255,.96); color:var(--ink); border-radius:24px; padding:24px; box-shadow:0 30px 60px -20px rgba(0,0,0,.45); display:flex; flex-direction:column; gap:12px; }
.hero-search b { font-family:var(--display); font-size:19px; }
.credit { position:absolute; z-index:2; right:14px; bottom:10px; font-size:10.5px; color:rgba(255,255,255,.65); }

/* feature cards (buttons) */
.feats { position:relative; z-index:3; max-width:1160px; margin:-44px auto 0; padding:0 20px; display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.feat { text-align:left; background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:6px; transition:transform .18s, box-shadow .18s, border-color .18s; }
.feat:hover { transform:translateY(-3px); box-shadow:0 18px 40px -12px rgba(16,24,40,.18); border-color:var(--c); }
.feat i { width:44px; height:44px; border-radius:14px; background:var(--ct); display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.feat i svg { width:22px; height:22px; fill:var(--c); }
.feat b { font-family:var(--display); font-size:16px; line-height:1.3; }
.feat span { color:var(--mut); font-size:13.5px; line-height:1.5; flex:1; }
.feat em { font-style:normal; font-weight:600; font-size:13.5px; color:var(--c); margin-top:6px; }

/* sections */
.hmap, .find, .emerg { max-width:1160px; margin:56px auto 0; padding:0 20px; }
.sec-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.sec-head h2 { font-size:28px; margin:0; font-weight:800; }
.sec-head p { margin:4px 0 0; }
.mapwrap { position:relative; }
.map { height:380px; border-radius:var(--r); overflow:hidden; background:#e8ecf1; z-index:1; }
.map.big { height:520px; border:1px solid var(--line); box-shadow:var(--shadow); }
.hpick { position:absolute; z-index:500; left:16px; right:16px; bottom:16px; max-width:520px; display:flex; align-items:center; gap:14px; background:#fff; border-radius:18px; padding:14px; box-shadow:0 20px 40px -12px rgba(16,24,40,.3); }
.hpick img { width:52px; height:52px; border-radius:14px; object-fit:cover; background:var(--ct); }
.hpick div { flex:1; min-width:0; }
.hpick b { display:block; font-family:var(--display); font-size:16px; }
.hpick span { color:var(--mut); font-size:13px; }
.emerlist { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.emerlist a { display:flex; align-items:center; gap:14px; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:16px; color:var(--ink); box-shadow:var(--shadow); transition:transform .15s, border-color .15s; }
.emerlist a:hover { transform:translateY(-2px); border-color:var(--emer); }
.emerlist strong { font-family:var(--display); font-size:26px; color:var(--emer); min-width:58px; }
.emerlist span { font-weight:600; line-height:1.3; }
.chips { display:flex; gap:8px; overflow-x:auto; padding:14px 0 6px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:0 0 auto; height:36px; padding:0 15px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink2); font-size:13.5px; font-weight:500; transition:all .15s; }
.chip:hover { border-color:var(--c); }
.chip.on { background:var(--ink); border-color:var(--ink); color:#fff; }
.chip em { font-style:normal; opacity:.55; margin-left:5px; font-size:12.5px; }
.chips.small .chip { height:32px; font-size:12.5px; padding:0 12px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; margin:12px 0 20px; }
.mcard { display:flex; align-items:center; gap:14px; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:14px; color:var(--ink); transition:transform .15s, box-shadow .15s, border-color .15s; }
.mcard:hover { transform:translateY(-2px); border-color:var(--c); box-shadow:var(--shadow); }
.mcard img { width:48px; height:48px; border-radius:13px; object-fit:cover; background:var(--ct); flex:0 0 auto; }
.mcard b { display:block; font-size:14.5px; line-height:1.3; font-weight:600; }
.mcard span { color:var(--mut); font-size:12.5px; }
#more { display:flex; margin:0 auto; }

/* municipality */
.mcover { position:relative; color:#fff; background:var(--cd) var(--mcover, var(--cover)) center / cover no-repeat; }
.mcover::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,12,24,.45), rgba(8,12,24,.25) 40%, rgba(8,12,24,.85)); }
.mcover-in { position:relative; max-width:1160px; margin:0 auto; padding:92px 20px 34px; }
.back { display:inline-flex; color:rgba(255,255,255,.9); font-weight:600; font-size:14px; margin-bottom:56px; }
.back:hover { color:#fff; }
.mhead { display:flex; align-items:flex-end; gap:18px; flex-wrap:wrap; }
.mhead img { width:88px; height:88px; border-radius:22px; object-fit:cover; background:#fff; border:3px solid #fff; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.mtitle { flex:1; min-width:220px; }
.mhead h1 { margin:0; font-size:clamp(26px, 3.6vw, 40px); line-height:1.1; font-weight:800; text-shadow:0 2px 16px rgba(0,0,0,.3); }
.mhead p { margin:6px 0 0; color:rgba(255,255,255,.85); }
.mbody { max-width:1160px; margin:0 auto; padding:0 20px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; margin:-24px 0 18px; position:relative; z-index:2; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:14px 16px; box-shadow:var(--shadow); }
.stat b { display:block; font-family:var(--display); font-size:20px; line-height:1.2; }
.stat span { color:var(--mut); font-size:12.5px; }
.mgrid { display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(0, 1fr); gap:18px; align-items:start; }
.mcol { display:flex; flex-direction:column; gap:18px; min-width:0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); }
.card.flush { padding:0; overflow:hidden; }
.card.flush .map { border-radius:0; }
.card h2 { display:flex; align-items:center; gap:8px; font-size:18px; margin:0 0 12px; font-weight:700; }
.ic.live { width:9px; height:9px; border-radius:50%; background:var(--emer); box-shadow:0 0 0 0 rgba(217,45,32,.5); animation:pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow:0 0 0 0 rgba(217,45,32,.45); } 70% { box-shadow:0 0 0 9px rgba(217,45,32,0); } 100% { box-shadow:0 0 0 0 rgba(217,45,32,0); } }
.emer { display:flex; flex-wrap:wrap; gap:8px; }
.emer a { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 13px; border-radius:999px; background:#fef3f2; color:var(--emer); font-weight:700; font-size:13px; }
.links { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.links a { display:inline-flex; align-items:center; height:34px; padding:0 13px; border-radius:999px; background:var(--ct); color:var(--cd); font-weight:600; font-size:13px; }
.about { color:var(--ink2); font-size:14px; margin:12px 0 0; }
.alert { display:flex; gap:12px; padding:14px; border-radius:14px; background:#f9fafb; border:1px solid var(--line); margin-top:10px; }
.alert:first-child { margin-top:0; }
.alert .dot { width:10px; height:10px; border-radius:5px; margin-top:7px; flex:0 0 auto; background:var(--info); }
.alert b { display:block; font-weight:600; }
.alert p { margin:3px 0; color:var(--ink2); white-space:pre-line; font-size:14px; }
.alert small { color:var(--mut); }
.alert.st-emergency { background:#fef3f2; border-color:#fecdca; } .alert.st-warning { background:#fffaeb; border-color:#fedf89; } .alert.st-resolved { background:#ecfdf3; border-color:#abefc6; }
.dot.st-emergency { background:var(--emer) !important; } .dot.st-warning { background:var(--warn) !important; } .dot.st-resolved { background:var(--ok) !important; } .dot.st-notice { background:var(--c) !important; }
.post { padding:16px 0; border-top:1px solid var(--line); }
.post:first-child { border-top:0; padding-top:0; }
.post .ph { display:flex; align-items:center; gap:10px; }
.post .ph img { width:40px; height:40px; border-radius:11px; object-fit:cover; }
.post .ph b { font-weight:600; }
.post .ph small { display:block; color:var(--mut); }
.post p { margin:10px 0 0; white-space:pre-line; color:var(--ink2); }
.post .media { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:6px; margin-top:12px; }
.post .media img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; display:block; }
.person { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--line); }
.person:first-child { border-top:0; padding-top:0; }
.av { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13.5px; flex:0 0 auto; }
.av.sm { width:30px; height:30px; font-size:11.5px; }
.person b { display:block; font-size:14.5px; line-height:1.3; font-weight:600; }
.person span { color:var(--mut); font-size:12.5px; }
.person .role { color:var(--c); font-weight:600; }
.inst { padding:12px 0; border-top:1px solid var(--line); }
.inst:first-of-type { border-top:0; }
.inst b { display:block; font-size:14.5px; line-height:1.35; font-weight:600; }
.inst .addr { color:var(--mut); font-size:12.5px; }
.inst .acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.inst .acts a { display:inline-flex; align-items:center; height:30px; padding:0 11px; border-radius:999px; background:var(--ct); color:var(--cd); font-size:12.5px; font-weight:600; }
.inst .acts a.em { background:#fef3f2; color:var(--emer); }
.inst .kind { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px; }
.inst .kind::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
#insts { max-height:640px; overflow:auto; margin-top:8px; }
#iq { font-size:14.5px; }
.card .sbox { height:44px; }

/* modal */
.modal { position:fixed; inset:0; z-index:1000; background:rgba(15,23,40,.5); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; padding:16px; }
.sheet { position:relative; width:100%; max-width:420px; max-height:calc(100vh - 32px); overflow:auto; background:#fff; border-radius:24px; padding:28px; box-shadow:0 30px 80px rgba(0,0,0,.3); }
.sheet-logo { width:52px; height:52px; border-radius:15px; display:block; margin-bottom:12px; }
.sheet h2 { margin:0 0 4px; font-size:24px; font-weight:800; }
.sheet label { display:block; margin:14px 0 0; font-size:13px; font-weight:600; color:var(--ink2); }
.sheet label input { display:block; width:100%; height:48px; margin-top:6px; border:1px solid var(--line); border-radius:13px; padding:0 14px; font:inherit; outline:none; }
.sheet label input:focus { border-color:var(--c); box-shadow:0 0 0 4px var(--ct); }
.sheet .x { position:absolute; right:14px; top:12px; width:36px; height:36px; border-radius:50%; border:0; background:var(--bg); font-size:22px; color:var(--mut); }
.sheet .btn.wide { margin-top:18px; }
.note { background:var(--ct); color:var(--cd); border-radius:12px; padding:11px 13px; font-size:13.5px; margin:14px 0 0; }
.err { color:var(--emer); font-size:13.5px; margin:12px 0 0; }
.pick { max-height:220px; overflow:auto; margin-top:8px; border:1px solid var(--line); border-radius:13px; }
.pick:empty { display:none; }
.pick button { display:block; width:100%; text-align:left; border:0; border-top:1px solid var(--line); background:#fff; padding:10px 13px; }
.pick button:first-child { border-top:0; }
.pick button:hover { background:var(--bg); }
.pick button.on { background:var(--ct); color:var(--cd); font-weight:600; }
.pick button small { display:block; color:var(--mut); font-weight:400; }

/* footer */
.foot { margin-top:72px; border-top:1px solid var(--line); background:#fff; }
.foot-in { max-width:1160px; margin:0 auto; padding:24px 20px 32px; display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; font-size:13.5px; }
.foot .brand { font-size:15px; color:var(--ink); }
.foot .brand img { width:26px; height:26px; border-radius:8px; }
.leaflet-popup-content { font:13px/1.45 Inter, system-ui, sans-serif; }
.leaflet-popup-content-wrapper { border-radius:12px; }

@media (max-width: 960px) {
	.hero-in { grid-template-columns:1fr; gap:28px; padding-bottom:84px; }
	.feats { grid-template-columns:1fr 1fr; }
	.mgrid { grid-template-columns:1fr; }
}
@media (max-width: 600px) {
	.top { padding-left:16px; padding-right:16px; }
	.brand span { display:none; }
	.hero { min-height:auto; }
	.hero-in { padding:96px 16px 76px; }
	.feats { grid-template-columns:1fr; padding:0 16px; }
	.hmap, .find, .emerg { padding:0 16px; margin-top:44px; }
	.sec-head h2 { font-size:23px; }
	.map.big { height:400px; }
	.hpick { left:10px; right:10px; bottom:10px; flex-wrap:wrap; }
	.hpick .btn { width:100%; }
	.store { min-width:0; flex:1 1 150px; }
	.mbody { padding:0 16px; }
	.mcover-in { padding:84px 16px 28px; }
	.back { margin-bottom:36px; }
	.mhead img { width:68px; height:68px; border-radius:18px; }
	.mhead .btn { width:100%; }
	.map { height:300px; }
	.userbtn { max-width:150px; }
}
.hmap, .find, .emerg { scroll-margin-top:84px; }

/* profile */
#profile { padding-top:76px; }
.pwrap { max-width:720px; margin:0 auto; padding:24px 20px 0; }
.pwrap h1 { font-size:32px; margin:6px 0 18px; font-weight:800; }
.back.dark { color:var(--mut); margin-bottom:0; }
.back.dark:hover { color:var(--ink); }
.pcard { margin-bottom:16px; }
.prow { display:flex; gap:20px; align-items:flex-start; margin-bottom:16px; }
.pav { width:96px; height:96px; border-radius:50%; flex:0 0 auto; overflow:hidden; display:flex; align-items:center; justify-content:center; color:#fff; font:800 30px var(--display); background:var(--c); box-shadow:0 6px 18px rgba(16,24,40,.15); }
.pav img { width:100%; height:100%; object-fit:cover; }
.pmain { flex:1; min-width:0; }
.plabel { display:block; font-size:13px; font-weight:600; color:var(--ink2); }
.plabel input { display:block; width:100%; height:46px; margin-top:6px; border:1px solid var(--line); border-radius:13px; padding:0 14px; font:inherit; outline:none; }
.plabel input:focus { border-color:var(--c); box-shadow:0 0 0 4px var(--ct); }
.pmain .muted { margin:8px 0 0; }
.pacts { display:flex; align-items:center; gap:10px; margin-top:12px; flex-wrap:wrap; }
.filebtn { position:relative; overflow:hidden; }
.filebtn input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.pmuni { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.pmuni img { width:48px; height:48px; border-radius:13px; object-fit:cover; background:var(--ct); }
.pmuni div { flex:1; min-width:180px; }
.pmuni b { display:block; }
.pmuni span { color:var(--mut); font-size:13px; }
.idbox { display:flex; flex-direction:column; gap:12px; }
.idhead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 11px; border-radius:999px; font-size:12.5px; font-weight:700; background:#ecfdf3; color:var(--ok); }
.badge.none { background:var(--bg); color:var(--mut); }
.idimgs { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.idimgs figure { margin:0; }
.idimgs .ph { aspect-ratio:4/3; border-radius:12px; background:var(--bg); border:1px dashed var(--line); display:flex; align-items:center; justify-content:center; overflow:hidden; color:var(--mut); font-size:12.5px; }
.idimgs .ph img { width:100%; height:100%; object-fit:cover; filter:blur(10px); transition:filter .2s; cursor:pointer; }
.idimgs .ph img.shown { filter:none; }
.idimgs figcaption { font-size:12px; color:var(--mut); margin-top:4px; text-align:center; }
.danger h2 { color:var(--emer); }
.btn.danger { background:var(--emer); box-shadow:none; }
.btn.danger:hover { background:#b42318; }
.confirm { margin-top:12px; padding:14px; border-radius:14px; background:#fef3f2; display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.confirm p { flex:1 1 100%; margin:0; color:#912018; font-weight:500; }
.userbtn img { width:30px; height:30px; border-radius:50%; object-fit:cover; }
@media (max-width: 600px) { .prow { flex-direction:column; align-items:center; text-align:center; } .pacts { justify-content:center; } .idimgs { grid-template-columns:1fr 1fr; } }

/* ID verification (same pieces as the online report: ID front + back, live face scan) */
.verify { display:flex; flex-direction:column; gap:12px; margin-top:4px; }
.seg { display:inline-flex; background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:3px; }
.seg button { border:0; background:none; height:34px; padding:0 14px; border-radius:999px; font-weight:600; font-size:13.5px; color:var(--mut); }
.seg button.on { background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(16,24,40,.12); }
.shots { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.shot { position:relative; aspect-ratio:4/3; border:2px dashed var(--line); border-radius:14px; background:#fafbfc; display:flex; align-items:center; justify-content:center; text-align:center; padding:8px; cursor:pointer; overflow:hidden; transition:border-color .15s; color:var(--mut); font-size:13px; }
.shot:hover { border-color:var(--c); }
.shot b { display:flex; width:26px; height:26px; margin:0 auto 6px; border-radius:50%; background:var(--ct); color:var(--cd); align-items:center; justify-content:center; font-size:13px; }
.shot.ok { border-style:solid; border-color:var(--ok); }
.shot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.shot.ok::after { content:"✓"; position:absolute; right:6px; top:6px; width:22px; height:22px; border-radius:50%; background:var(--ok); color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; z-index:1; }
.vacts { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.face { position:fixed; inset:0; z-index:1100; background:#000; display:none; }
.face.on { display:block; }
.face iframe { width:100%; height:100%; border:0; }
.face .x { position:absolute; top:max(14px, env(safe-area-inset-top)); right:14px; width:40px; height:40px; border-radius:50%; border:0; background:rgba(255,255,255,.2); color:#fff; font-size:24px; z-index:2; }
.face.qr { background:var(--bg); display:none; }
.face.qr.on { display:flex; align-items:center; justify-content:center; padding:20px; }
.face.qr .x { background:#eef0f4; color:var(--ink); }
.fq { background:#fff; border-radius:24px; padding:28px; max-width:440px; width:100%; text-align:center; box-shadow:var(--shadow); }
.fq h2 { margin:0 0 6px; font-size:22px; }
.fq .qrb { display:inline-block; padding:12px; border:1px solid var(--line); border-radius:16px; margin:14px 0; background:#fff; }
.fq ol { text-align:left; color:var(--ink2); font-size:14px; padding-left:20px; }
.fq .wait { display:flex; align-items:center; justify-content:center; gap:8px; color:var(--mut); font-size:14px; margin:12px 0; }
.fq .wait i { width:14px; height:14px; border-radius:50%; border:2px solid var(--line); border-top-color:var(--c); animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width: 600px) { .shots { grid-template-columns:1fr 1fr; } }

/* report chat (demo, like the apps) */
.fab { position:fixed; right:max(20px, env(safe-area-inset-right)); bottom:max(22px, env(safe-area-inset-bottom)); z-index:800; display:inline-flex; align-items:center; gap:8px; height:56px; padding:0 22px 0 18px; border-radius:999px; border:0; background:var(--c); color:#fff; font-weight:700; font-size:15.5px; box-shadow:0 14px 32px -8px var(--c), 0 4px 12px rgba(16,24,40,.18); transition:transform .15s; }
.fab:hover { transform:translateY(-2px); }
.rep { position:fixed; inset:0; z-index:1050; background:rgba(15,23,40,.35); display:flex; align-items:flex-end; justify-content:flex-end; padding:20px; }
.rep-in { width:400px; max-width:100%; height:min(620px, calc(100vh - 40px)); background:var(--bg); border-radius:24px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 30px 80px rgba(0,0,0,.3); position:relative; }
.rep-h { display:flex; align-items:center; gap:10px; padding:14px 14px 12px; background:#fff; border-bottom:1px solid var(--line); }
.rep-h img { width:40px; height:40px; border-radius:11px; object-fit:cover; background:var(--ct); }
.rep-h div { flex:1; min-width:0; }
.rep-h b { display:block; font-family:var(--display); font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rep-h small { display:block; color:var(--mut); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rep-h .x { width:36px; height:36px; border-radius:50%; border:0; background:var(--bg); font-size:22px; color:var(--mut); }
.rep-msgs { flex:1; overflow:auto; padding:16px 14px; display:flex; flex-direction:column; gap:8px; }
.bub { max-width:82%; padding:10px 14px; border-radius:18px; font-size:15px; line-height:1.45; white-space:pre-line; }
.bub.theirs { align-self:flex-start; background:#fff; border:1px solid var(--line); border-bottom-left-radius:6px; }
.bub.mine { align-self:flex-end; background:var(--c); color:#fff; border-bottom-right-radius:6px; }
.rep-bar { display:flex; align-items:flex-end; gap:8px; padding:10px; background:#fff; border-top:1px solid var(--line); }
.rep-ic { width:40px; height:44px; border:0; background:none; color:var(--mut); display:flex; align-items:center; justify-content:center; }
.rep-bar textarea { flex:1; min-height:44px; max-height:120px; resize:none; border:0; border-radius:22px; background:var(--bg); padding:12px 16px; font:inherit; font-size:15px; outline:none; }
.rep-send { width:44px; height:44px; border-radius:50%; border:0; background:var(--c); color:#fff; display:flex; align-items:center; justify-content:center; }
.rep-demo { position:absolute; left:16px; right:16px; bottom:76px; z-index:2; background:#fff; border-radius:18px; padding:16px; box-shadow:0 16px 40px rgba(16,24,40,.22); display:flex; flex-direction:column; gap:6px; }
.rep-demo b { font-family:var(--display); font-size:16px; }
.rep-demo span { color:var(--ink2); font-size:14px; }
.rep-demo .btn { align-self:flex-end; margin-top:4px; }
@media (max-width: 600px) { .rep { padding:0; } .rep-in { width:100%; height:100%; border-radius:0; } .rep-h { padding-top:max(14px, env(safe-area-inset-top)); } .rep-bar { padding-bottom:max(10px, env(safe-area-inset-bottom)); } .fab { height:52px; } }

.person .pinfo { flex:1; min-width:0; }
.connect { flex:0 0 auto; height:32px; padding:0 14px; border-radius:999px; border:1px solid var(--c); background:#fff; color:var(--c); font-weight:600; font-size:13px; transition:background .15s, color .15s; }
.connect:hover { background:var(--c); color:#fff; }
.toast { position:fixed; left:50%; bottom:28px; z-index:1200; transform:translate(-50%, 20px); opacity:0; pointer-events:none; max-width:min(440px, calc(100vw - 32px)); background:#101828; color:#fff; padding:13px 18px; border-radius:14px; font-size:14px; box-shadow:0 16px 40px rgba(0,0,0,.25); transition:opacity .2s, transform .2s; text-align:center; }
.toast.on { opacity:1; transform:translate(-50%, 0); }

/* collapsible, scrollable cards (officials, institutions) */
.coll-h { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; border:0; background:none; padding:0; text-align:left; }
.coll-h h2 { margin:0; }
.coll .coll-b { margin-top:12px; }
.coll.closed .coll-b { display:none; }
.cnt { font-style:normal; font-family:Inter, sans-serif; font-size:12px; font-weight:700; color:var(--mut); background:var(--bg); border-radius:999px; padding:2px 8px; margin-left:4px; }
.cnt:empty { display:none; }
.chev { width:30px; height:30px; border-radius:50%; background:var(--bg); flex:0 0 auto; position:relative; transition:transform .2s; }
.chev::before { content:""; position:absolute; left:11px; top:9px; width:7px; height:7px; border-right:2px solid var(--ink2); border-bottom:2px solid var(--ink2); transform:rotate(45deg); }
.coll.closed .chev { transform:rotate(-90deg); }
.scrolly { max-height:380px; overflow-y:auto; overscroll-behavior:contain; padding-right:4px; scrollbar-width:thin; }
#insts.scrolly { max-height:420px; margin-top:8px; }
.scrolly::-webkit-scrollbar { width:6px; } .scrolly::-webkit-scrollbar-thumb { background:#d0d5dd; border-radius:3px; }
