:root{color-scheme:light;--bg:#f9fafb;--surface:#fff;--ink:#202238;--muted:#576178;--line:#e5e7eb;--subtle:#f1f3f7;--accent:#c91b35;--brand:#ef233c;--nav:#2b2d42;--sidebar:#24263b;--shadow:0 2px 5px #25284206,0 9px 24px #25284206;--map-land:#e9edef;--map-block:#dfe5e8;--map-green:#c9dfcb;--map-road:#fff;--map-edge:#d5dce1;--map-text:#586477;font:16px/1.5 "Segoe UI",system-ui,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#161827;--surface:#212437;--ink:#f5f6fb;--muted:#b3bdd0;--line:#373b52;--subtle:#2a2e43;--accent:#ff8998;--shadow:0 6px 20px #05061128;--map-land:#303849;--map-block:#394352;--map-green:#365848;--map-road:#515c71;--map-edge:#252c3b;--map-text:#e1e9f3}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
button,a,input,select,textarea,[tabindex="0"]{outline-offset:3px}
:focus-visible{outline:3px solid #657efa}
h1:focus,main:focus{outline:none}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.8rem,3vw,2.35rem);line-height:1.12;letter-spacing:-.045em;font-weight:750}
h2{font-size:1.18rem;line-height:1.24;letter-spacing:-.022em}
h3{font-size:1.04rem}
p{color:var(--muted);overflow-wrap:anywhere}
small,.muted{color:var(--muted)}
svg{flex:none;vertical-align:middle}
.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:8px;left:12px;z-index:20;background:var(--surface);padding:12px}
.sidebar{display:none}
.topbar{min-height:68px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:8px 14px;gap:12px}
.top-actions,.desktop-context{display:flex;align-items:center;gap:9px}
.desktop-context,.top-alert{display:none!important}
.mobile-brand .brand{font-size:.93rem;gap:7px}
.mobile-brand .brand img{width:34px;height:34px}
.mobile-brand .brand small{display:none}
.brand{display:flex;align-items:center;min-height:44px;gap:11px;font-weight:750;letter-spacing:-.035em;font-size:1.12rem;line-height:1.1;white-space:nowrap}
.brand img{border-radius:12px}
.brand-accent{color:var(--accent)}
.brand small{display:block;margin-top:5px;font-weight:500;font-size:.68rem;letter-spacing:.02em}
.demo-label{color:var(--muted);display:none;align-items:center;gap:6px;border-radius:30px;border:1px solid var(--line);padding:5px 11px;font-size:.75rem;font-weight:650;white-space:nowrap}
.demo-label i{width:7px;height:7px;border-radius:50%;background:#b47c14}
.content{max-width:1520px;margin:0 auto;padding:23px 15px 28px}
footer{max-width:1520px;margin:0 auto;padding:8px 15px 84px;color:var(--muted);font-size:.77rem}
footer span{padding:0 4px;color:#8d99ae}
.mobile-nav{position:fixed;z-index:5;inset:auto 0 0;background:var(--surface);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:3px 2px max(3px,env(safe-area-inset-bottom))}
.nav-link{min-height:44px;display:flex;align-items:center;gap:10px;border-radius:8px}
.mobile-nav .nav-link{flex-direction:column;justify-content:center;gap:3px;font-size:.66rem;min-height:54px;color:var(--muted)}
.mobile-nav .nav-link[aria-current]{color:var(--accent);font-weight:700}
.welcome,.page-title{margin-bottom:20px}
.welcome p,.page-title p{margin-top:7px}
.location{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--muted);font-size:.8rem;margin-bottom:9px;font-weight:600}
.location svg{color:var(--accent)}
.location span{color:#8d99ae}
.page-title{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:13px}
.hero{position:relative;overflow:hidden;isolation:isolate;border-radius:17px;background:linear-gradient(112deg,#292b44,#343652 68%,#434461);color:white;min-height:207px;display:flex;align-items:center;padding:22px;margin-bottom:22px}
.hero-content{position:relative;z-index:1}
.hero h2{font-size:clamp(1.7rem,4vw,2.5rem);letter-spacing:-.05em;margin:8px 0 3px}
.hero p{color:#e3e4ed;margin-bottom:15px}
.hero-state{background:#fff2!important;color:#fff!important;border:1px solid #ffffff38}
.hero-state span{color:#a3edb9}
.hero-art{position:absolute;z-index:-1;inset:0 0 0 auto;width:min(55%,520px);overflow:hidden;background:radial-gradient(ellipse at right bottom,#aa335a55,transparent 65%)}
.hero-art i{position:absolute;width:330px;aspect-ratio:1;border:1px solid #d3d8f130;border-radius:50%;right:-110px;top:-70px}
.hero-art i:nth-child(2){width:280px;right:-53px;top:-33px}
.hero-art i:nth-child(3){width:210px;right:-6px;top:5px;border-color:#ff7e945a}
.hero-art i:nth-child(4){width:390px;right:-158px;top:-98px}
.hero-art img{position:absolute;width:120px;right:24px;top:47px;opacity:.32;transform:rotate(-10deg);border-radius:28px;box-shadow:0 8px 32px #11142e55}
.btn{min-height:44px;min-width:44px;border-radius:9px;padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;font-size:.88rem;font-weight:650;line-height:1.28;text-align:center;background:transparent;color:inherit}
.btn:hover{filter:brightness(.94)}
.primary{background:#c81e37;color:white;border-color:var(--brand)}
.secondary,.icon-btn{background:var(--surface);border-color:var(--line);color:var(--ink)}
.icon-btn{padding:0;width:44px;height:44px}
.danger{background:var(--surface);border-color:var(--accent);color:var(--accent)}
.hero-link{background:#fff;color:#282a40}
.text-btn{color:var(--accent);padding-inline:4px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px;min-height:35px}
.card{padding:17px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:var(--shadow);min-width:0}
.card>h2+*,.card>p+*,.card>.badge+h2{margin-top:10px}
.quick-grid,.dashboard-grid,.split,.stats,.map-layout{display:grid;gap:13px;grid-template-columns:minmax(0,1fr)}
.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:21px}
.quick{display:flex;align-items:flex-start;flex-direction:column;gap:7px;min-height:110px;padding:12px}
.quick:hover,.report-row:hover{border-color:var(--accent);background:var(--subtle)}
.quick strong,.quick small,.item-copy strong,.item-copy small{display:block;overflow-wrap:anywhere}
.quick strong,.item-copy strong{line-height:1.28;font-size:.91rem}
.quick small,.item-copy small{font-size:.76rem;margin-top:4px}
.quick>svg{display:none;color:var(--muted)}
.pict{width:42px;height:42px;border-radius:10px;display:inline-grid;place-items:center;flex:none;background:var(--subtle);color:var(--muted)}
.rose{--tone-bg:#fce7eb;--tone-fg:#a6233b}.amber{--tone-bg:#fff2d9;--tone-fg:#855209}.green{--tone-bg:#dff4e8;--tone-fg:#206043}.blue{--tone-bg:#e4efff;--tone-fg:#2b5496}.purple{--tone-bg:#eee8fc;--tone-fg:#6443a0}
[data-theme=dark] .rose{--tone-bg:#4d2537;--tone-fg:#ffa0ae}[data-theme=dark] .amber{--tone-bg:#4a3b27;--tone-fg:#ffdc95}[data-theme=dark] .green{--tone-bg:#25473f;--tone-fg:#a0edc4}[data-theme=dark] .blue{--tone-bg:#263b60;--tone-fg:#abcaff}[data-theme=dark] .purple{--tone-bg:#3c315a;--tone-fg:#d4baff}
.pict,.badge{background:var(--tone-bg,var(--subtle));color:var(--tone-fg,var(--muted))}
.badge{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;border-radius:22px;padding:4px 8px;font-size:.71rem;font-weight:700;line-height:1.25}
.badge span{font-size:.58rem}
.list-card{padding:0;overflow:hidden}
.item{display:flex;align-items:center;gap:10px;min-height:68px;padding:10px 12px}
.item+.item{border-top:1px solid var(--line)}
.report-row:focus-visible{outline-offset:-3px}
.item-copy{min-width:0;flex:1}
.item-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.item>svg{color:var(--muted)}
.map-card{padding:0;overflow:hidden}
.map{position:relative;overflow:hidden;min-height:300px;border-radius:10px;background:var(--map-land);touch-action:none;cursor:grab}
.mini-map{min-height:205px;border-radius:0;touch-action:auto;cursor:default}
.map-layer,.map-art{position:absolute;inset:0;width:100%;height:100%}
.map-art{pointer-events:none}
.pin{display:grid;place-items:center;position:absolute;left:var(--x);top:var(--y);translate:-50% -50%;border-radius:100%;width:44px;height:44px;border:2px solid var(--surface);background:var(--tone-bg,var(--subtle));color:var(--tone-fg,var(--ink));box-shadow:0 2px 10px #27304436}
.pin.selected{outline:3px solid var(--accent)}
.map-note{position:absolute;left:8px;bottom:8px;pointer-events:none;background:var(--surface);color:var(--muted);padding:3px 6px;border-radius:5px;font-size:.68rem}
.map-controls{position:absolute;top:8px;right:8px;display:grid;gap:4px}
.map-page>.field{max-width:350px;margin-bottom:13px}
.legend{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:12px}
.legend-item{display:flex;align-items:center;gap:5px;font-size:.78rem;color:var(--muted)}
.legend .pict{width:23px;height:23px;border-radius:6px}
.legend svg{width:14px;height:14px}
.map-list{margin-top:12px}
.stack{display:grid;gap:13px;align-content:start}
.form-card{max-width:680px;margin-bottom:15px}
form{display:grid;gap:15px}
form>.btn{justify-self:start}
.field{display:grid;gap:5px;font-weight:650;font-size:.88rem;min-width:0}
.field small,.choice small{font-weight:400}
.field input,.field textarea,.field select{min-width:0;width:100%;min-height:45px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);padding:9px 11px;font-size:1rem}
.field textarea{resize:vertical}
.check,.choice{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}
.check input,.choice input{width:19px;height:19px;flex:none;accent-color:#c91b35}
.choice{padding:10px;border:1px solid var(--line);border-radius:9px}
.choice small{display:block}
.notice{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:9px;background:var(--subtle);margin-bottom:12px;overflow-wrap:anywhere}
.notice p{margin:2px 0 0}
form .notice{margin:0}
.actions,.tabs,.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.actions:first-child{margin-top:0}
.filters{margin:0 0 14px}
.filters>.field{flex:1 1 180px}
.tabs{margin:0 0 13px}
.tab{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);padding:6px 12px;min-height:44px;font-weight:650;font-size:.88rem}
.tab[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.community-meta{margin-bottom:12px}
.rules{padding-left:20px;margin-bottom:0}
.rules li+li{margin-top:8px}
.empty{text-align:center;padding:25px 10px;color:var(--muted)}
.empty h3{color:var(--ink);margin-top:9px}
.empty p{margin-top:3px}
.stats{margin-bottom:15px}
.stat-number,.phone-number{display:block;font-size:2rem;font-weight:750;letter-spacing:-.045em;margin-top:5px;color:var(--ink)}
.emergency .card{text-align:center}
.emergency .card p{margin-bottom:8px}
.emergency .btn{margin-top:8px}
.details{margin:0 0 19px}
.details div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:8px 0}
.details dt{font-weight:650;color:var(--muted)}
.details dd{margin:0;text-align:right}
.timeline{list-style:none;padding-left:8px;margin-bottom:0}
.timeline li{border-left:2px solid var(--line);position:relative;padding:0 0 17px 16px}
.timeline li::before{content:'';position:absolute;left:-6px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.timeline li small{display:block}
.timeline li:last-child{padding-bottom:0}
.table-wrap{overflow:auto;max-width:100%}
table{border-collapse:collapse;width:100%;text-align:left}
td,th{border-bottom:1px solid var(--line);padding:10px 9px;vertical-align:middle}
th{font-size:.8rem;color:var(--muted)}
td{font-size:.9rem}
dialog{border:1px solid var(--line);border-radius:15px;padding:0;background:var(--surface);color:var(--ink);width:min(540px,calc(100% - 26px));max-height:90dvh;box-shadow:0 24px 70px #13142366}
dialog::backdrop{background:#16192bb8}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--line)}
.dialog-body{padding:16px}
.dialog-body p+p,.case-summary+form{margin-top:10px}
.dialog-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:7px}
.dialog-nav .btn{justify-content:flex-start;text-align:left}
#toast{position:fixed;bottom:72px;right:12px;z-index:15;max-width:calc(100% - 24px);padding:12px 16px;background:#252740;color:#fff;border:1px solid #686d8d;border-radius:10px;box-shadow:0 8px 24px #1114;pointer-events:none;opacity:0}
#toast.show{opacity:1}
.skeleton{height:190px;border-radius:15px;margin-bottom:12px;background:linear-gradient(100deg,var(--subtle) 25%,var(--surface) 45%,var(--subtle) 65%);background-size:250% 100%;animation:shimmer 1.6s linear infinite}
.skeleton.small{height:75px}
@keyframes shimmer{to{background-position:-250% 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
@media(min-width:430px){.demo-label{display:inline-flex}}
@media(max-width:480px){.report-row .pict{width:34px;height:34px}.report-row .badge{font-size:.65rem}.item:not(.report-row){flex-wrap:wrap}.item-actions{max-width:100%}}
@media(min-width:640px){.content{padding:26px 25px 28px}.topbar{padding-inline:25px}footer{padding-inline:25px}.quick{flex-direction:row;align-items:center;min-height:74px}.quick>svg{display:block;margin-left:auto}.quick-grid{gap:12px}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.split{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}.hero-art img{width:150px;right:80px;top:30px;opacity:.75}.hero{padding:26px 30px}}
@media(min-width:760px){.dashboard-grid{grid-template-columns:minmax(0,1.32fr) minmax(0,1fr)}.map-layout{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.map-page .map{min-height:390px}}
@media(min-width:1050px){.sidebar{position:fixed;inset:0 auto 0 0;z-index:4;width:231px;background:var(--sidebar);color:#f9fafb;display:flex;flex-direction:column;padding:23px 15px 12px;overflow:auto}.sidebar .brand{padding:0 5px}.sidebar .brand img{outline:1px solid #ffffff16}.sidebar .brand-accent{color:#ff7b8b}.sidebar small{color:#bdc5d7}.sidebar nav{margin-top:19px}.nav-group{margin-bottom:13px}.nav-group>span{display:block;color:#b4bdd1;font-size:.65rem;font-weight:700;letter-spacing:.095em;text-transform:uppercase;padding:0 10px 4px}.sidebar .nav-link{padding:5px 10px;color:#e1e5f0;font-weight:550;font-size:.86rem;gap:10px}.sidebar .nav-link:hover,.sidebar .nav-link[aria-current]{background:#3a3d55;color:#fff}.sidebar .nav-link[aria-current] svg{color:#ff8493}.sidebar em{font-style:normal;font-size:.69rem;border-radius:20px;background:#4a4057;padding:1px 7px;margin-left:auto}.sidebar-bottom{margin-top:auto}.identity{display:flex;align-items:center;gap:8px;padding:10px 5px 0;border-top:1px solid #ffffff24;font-size:.83rem;margin-top:6px;min-height:50px}.identity small{display:block;font-size:.68rem}.identity>svg{margin-left:auto}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ffdce3;color:#862a46;font-weight:750}.shell{margin-left:231px}.mobile-nav,.mobile-brand,.menu-btn{display:none}.desktop-context,.top-alert{display:flex!important}.desktop-context{font-size:.82rem;color:var(--muted)}.desktop-context strong{color:var(--ink)}.topbar{padding:8px 32px}.content{padding:24px 32px 29px}footer{padding:2px 32px 22px}#toast{bottom:20px}.hero{min-height:205px;margin-bottom:20px}.hero-art img{width:159px;right:116px;top:23px;opacity:.9}.hero-art i{right:-10px}.hero-art i:nth-child(2){right:35px}.hero-art i:nth-child(3){right:74px}.hero-art i:nth-child(4){right:-55px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quick{padding:9px;gap:7px}.quick small{font-size:.72rem}.quick strong{font-size:.86rem}.quick .pict{width:35px;height:35px}.quick>svg{display:none}}
@media(min-width:1280px){.sidebar{width:245px}.shell{margin-left:245px}.content{padding:26px 36px 28px}.topbar{padding-inline:36px}.quick{padding:12px;gap:10px}.quick>svg{display:block}.quick .pict{width:42px;height:42px}.item{padding-inline:14px}.map-page .map{min-height:470px}}

