/* MunicipalAlert citizen website. Bootstrap 5.3 underneath (light + dark via data-bs-theme), this on top. */
:root {
    --ma-brand: #0B6E4F;
    --ma-brand-hover: #095c42;
    --ma-brand-active: #074a35;
    --ma-brand-2: #13a374;
    --ma-soft: #e7f4ee;
    --ma-accent: #F9A825;
    --ma-top-h: 60px;
    --ma-panel-w: 380px;
    --ma-radius: 16px;
    --ma-shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 4px 16px rgba(16, 24, 20, .06);
    --ma-st-draft: #9E9E9E; --ma-st-reported: #D32F2F; --ma-st-acknowledged: #F9A825; --ma-st-inprogress: #EF6C00;
    --ma-st-fixpending: #7CB342; --ma-st-fixed: #2E7D32;
    --bs-link-color: #0B6E4F; --bs-link-color-rgb: 11, 110, 79; --bs-link-hover-color: #074a35; --bs-link-hover-color-rgb: 7, 74, 53;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
[data-bs-theme="dark"] {
    --ma-soft: #0f2a21;
    --ma-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
    --bs-link-color: #4fd1a5; --bs-link-color-rgb: 79, 209, 165; --bs-link-hover-color: #7fe3c1; --bs-link-hover-color-rgb: 127, 227, 193;
    --bs-body-bg: #111614; --bs-body-bg-rgb: 17, 22, 20; --bs-tertiary-bg: #161d1a; --bs-secondary-bg: #1d2622;
}
body { background: var(--bs-tertiary-bg); }
.text-brand { color: var(--ma-brand) !important; }
[data-bs-theme="dark"] .text-brand { color: #4fd1a5 !important; }
.mi { font-size: 1.15em; vertical-align: -0.2em; }
.ma-skip { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 8px; }
.ma-offscreen { position: fixed; left: -9999px; top: 0; }
.ma-pre { white-space: pre-wrap; }
:focus-visible { outline: 3px solid var(--ma-accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ── buttons ── */
.btn-brand { --bs-btn-bg: var(--ma-brand); --bs-btn-border-color: var(--ma-brand); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--ma-brand-hover); --bs-btn-hover-border-color: var(--ma-brand-hover); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--ma-brand-active); --bs-btn-active-border-color: var(--ma-brand-active); --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--ma-brand); --bs-btn-disabled-border-color: var(--ma-brand); --bs-btn-disabled-color: #fff; }
.btn-outline-brand { --bs-btn-color: var(--ma-brand); --bs-btn-border-color: var(--ma-brand); --bs-btn-hover-bg: var(--ma-brand);
    --bs-btn-hover-border-color: var(--ma-brand); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--ma-brand-active); --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn-outline-brand { --bs-btn-color: #4fd1a5; --bs-btn-border-color: #2f8f6c; }
.btn-report { --bs-btn-bg: var(--ma-accent); --bs-btn-border-color: var(--ma-accent); --bs-btn-color: #1b1b1b; --bs-btn-font-weight: 700;
    --bs-btn-hover-bg: #f0a011; --bs-btn-hover-border-color: #f0a011; --bs-btn-hover-color: #111; --bs-btn-active-bg: #e09200; --bs-btn-active-color: #111;
    display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding-left: 1rem; padding-right: 1.1rem; }
.btn-whatsapp { --bs-btn-bg: #1f9e55; --bs-btn-border-color: #1f9e55; --bs-btn-color: #fff; --bs-btn-hover-bg: #178245; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #178245; }
.btn-icon { --bs-btn-color: var(--bs-body-color); --bs-btn-hover-bg: var(--bs-secondary-bg); border-radius: 999px; }

/* ── header ── */
.ma-top { background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); position: relative; z-index: 1100; }
.ma-top .navbar { min-height: var(--ma-top-h); padding-top: .35rem; padding-bottom: .35rem; }
.ma-top-inner { max-width: 1400px; }
.ma-brand { display: flex; align-items: center; gap: .5rem; font-weight: 500; letter-spacing: -.01em; color: var(--bs-body-color) !important; }
.ma-brand b { color: var(--ma-brand); font-weight: 800; }
[data-bs-theme="dark"] .ma-brand b { color: #4fd1a5; }
.ma-logo { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(140deg, var(--ma-brand), var(--ma-brand-2)); box-shadow: 0 2px 6px rgba(11, 110, 79, .35); }
.ma-top .nav-link { display: flex; align-items: center; gap: .35rem; border-radius: 10px; padding: .45rem .7rem !important; color: var(--bs-body-color); }
.ma-top .nav-link:hover { background: var(--bs-secondary-bg); }
.ma-top .nav-link.active { background: var(--ma-soft); color: var(--ma-brand); font-weight: 600; }
[data-bs-theme="dark"] .ma-top .nav-link.active { color: #4fd1a5; }
.ma-top .navbar-toggler { padding: .3rem .5rem; }
@media (max-width: 420px) { .ma-brand { font-size: 1.05rem; gap: .4rem; } .ma-logo { width: 32px; height: 32px; } }
.ma-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── pages ── */
.ma-main { max-width: 1200px; }
.card { border: 1px solid var(--bs-border-color-translucent); box-shadow: var(--ma-shadow); border-radius: var(--ma-radius); }
.ma-footer { border-top: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.ma-empty { padding: 3rem 1rem; text-align: center; color: var(--bs-secondary-color); }
.ma-empty .material-icons { font-size: 52px; color: var(--ma-brand-2); }
.ma-alert-emergency { background: #fdecea; color: #6b0f0a; border: 1px solid #f5c2bd; border-radius: 14px; }
[data-bs-theme="dark"] .ma-alert-emergency { background: #3a1513; color: #ffd7d3; border-color: #6b2622; }
.ma-alert-draft { background: #fff7e0; color: #5b4300; border: 1px solid #f3dc9a; border-radius: 14px; }
[data-bs-theme="dark"] .ma-alert-draft { background: #33290c; color: #ffe7a3; border-color: #5d4b14; }
.ma-explain { display: flex; gap: .8rem; padding: 1rem 1.1rem; background: var(--ma-soft); border-radius: 14px; }
.ma-explain > .material-icons { color: var(--ma-brand); }
[data-bs-theme="dark"] .ma-explain > .material-icons { color: #4fd1a5; }

/* status pills (the same colours as the map's rings) */
.ma-pill { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em;
    color: #fff; background: var(--ma-st-reported); white-space: nowrap; }
.ma-st-draft { background: var(--ma-st-draft); }
.ma-st-reported { background: var(--ma-st-reported); }
.ma-st-acknowledged { background: var(--ma-st-acknowledged); color: #2a1f00; }
.ma-st-inprogress { background: var(--ma-st-inprogress); }
.ma-st-fixpending { background: var(--ma-st-fixpending); color: #13240a; }
.ma-st-fixed { background: var(--ma-st-fixed); }
.ma-st-duplicate, .ma-st-hidden { background: #607D8B; }
.ma-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: .5rem; vertical-align: -2px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ma-dot-notice { background: transparent; border: 2px dashed #6A1B9A; box-shadow: none; }
.ma-dot-open { background: var(--ma-st-reported); } .ma-dot-fixed { background: var(--ma-st-fixed); }

/* chips (filters) */
.ma-seg { display: inline-flex; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 999px; padding: 3px; gap: 2px; }
.ma-chip { border: 0; background: transparent; color: var(--bs-body-color); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ma-chip:hover { background: var(--bs-secondary-bg); }
.ma-chip.active { background: var(--ma-brand); color: #fff; }
.ma-catchip { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); padding: .2rem .7rem .2rem .25rem; }
.ma-catchip.active { background: var(--ma-soft); color: var(--ma-brand); border-color: var(--ma-brand); }
[data-bs-theme="dark"] .ma-catchip.active { color: #4fd1a5; }
.ma-catchip .ima-badge { flex: none; }

/* ── the live map (home) ── */
.ma-mapbody { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.ma-mapmain { flex: 1; position: relative; min-height: 0; }
.ma-mapwrap { position: absolute; inset: 0; }
.ma-map { position: absolute; inset: 0 0 58px 0; background: #dfe7e3; }
[data-bs-theme="dark"] .ma-map, [data-bs-theme="dark"] .ma-minimap, [data-bs-theme="dark"] .ma-pickmap { background: #1b2420; }
[data-bs-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.88) saturate(.55); }
[data-bs-theme="dark"] .leaflet-container .leaflet-control-attribution { background: rgba(20, 26, 23, .8); color: #b9c4bf; }
[data-bs-theme="dark"] .leaflet-container .leaflet-control-attribution a { color: #7fe3c1; }
[data-bs-theme="dark"] .leaflet-bar a { background: #1f2824; color: #e6ece9; border-bottom-color: #33403a; }
.ma-tools { position: absolute; top: 10px; left: 56px; right: 150px; z-index: 900; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.ma-tools > * { pointer-events: auto; }
.ma-tools .ma-seg { align-self: flex-start; box-shadow: var(--ma-shadow); }
.ma-catchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ma-catchips .ma-catchip { box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.ma-count { align-self: flex-start; background: var(--bs-body-bg); border-radius: 999px; padding: .15rem .65rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.ma-count:empty { display: none; }
.ma-mapbtns { position: absolute; right: 10px; top: 10px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ma-mapbtn { background: var(--bs-body-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-radius: 999px; box-shadow: var(--ma-shadow);
    display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem .4rem .55rem; font-weight: 600; font-size: .9rem; }
.ma-mapbtn:hover { background: var(--bs-secondary-bg); }
.ma-mapbtn.active { background: var(--ma-brand); color: #fff; border-color: var(--ma-brand); }
.ma-fab { position: absolute; right: 12px; bottom: 72px; z-index: 900; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); padding: .7rem 1.2rem; font-size: 1.02rem; }
.ma-banner { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); z-index: 950; background: #fff3cd; color: #5c4400; border-radius: 12px;
    padding: .5rem .9rem; display: flex; gap: .5rem; align-items: center; box-shadow: var(--ma-shadow); max-width: 90%; }

/* the panel: a bottom sheet on phones */
.ma-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1000; height: 58px; background: var(--bs-body-bg);
    border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, .18); display: flex; flex-direction: column; transition: height .25s ease; }
.ma-panel.open { height: min(65vh, 560px); }
.ma-panel-handle { flex: none; height: 58px; border: 0; background: transparent; display: flex; align-items: center; gap: .55rem; padding: 0 1rem;
    font-weight: 700; color: var(--bs-body-color); position: relative; text-align: left; }
.ma-grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--bs-border-color); }
.ma-panel.open .ma-panel-handle .material-icons { transform: rotate(180deg); }
.ma-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: ma-live 2s infinite; }
@keyframes ma-live { 0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); } 70% { box-shadow: 0 0 0 9px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.ma-newcount { background: var(--ma-accent); color: #222; font-size: .72rem; }
.ma-panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 .75rem .75rem; }
.ma-panel:not(.open) .ma-panel-body { visibility: hidden; }
.ma-tabs { flex: none; gap: 4px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: .5rem; }
.ma-tabs .nav-link { padding: .3rem .7rem; border-radius: 999px; font-size: .88rem; color: var(--bs-body-color); white-space: nowrap; }
.ma-tabs .nav-link.active { background: var(--ma-brand); color: #fff; }
.ma-tabbody { flex: 1; min-height: 0; overflow-y: auto; }
.ma-row { display: flex; align-items: flex-start; gap: .65rem; width: 100%; padding: .55rem .5rem; border: 0; background: transparent; text-align: left;
    color: inherit; text-decoration: none; border-radius: 12px; }
.ma-row:hover, .ma-row:focus-visible { background: var(--bs-secondary-bg); }
.ma-row .ima-badge { flex: none; margin-top: 2px; }
.ma-row-text { display: flex; flex-direction: column; min-width: 0; }
.ma-row-text b { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.ma-row-text small { color: var(--bs-secondary-color); }
.ma-ev-kind { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ma-st-reported); }
.ma-ev-fixed, .ma-ev-fixpending { color: var(--ma-st-fixed); }
.ma-ev-reference { color: #b07800; }
.ma-ev-support, .ma-ev-update { color: var(--bs-secondary-color); }
.ma-ev-progress { color: var(--ma-st-inprogress); }
.ma-ev-new { animation: ma-flash 2.5s ease-out; }
@keyframes ma-flash { from { background: rgba(249, 168, 37, .3); } to { background: transparent; } }
.ma-legend li { display: flex; align-items: center; padding: .3rem 0; }
.ma-channels li + li { border-top: 1px solid var(--bs-border-color-translucent); }
.ma-channel { display: flex; gap: .75rem; padding: .7rem .25rem; text-decoration: none; color: inherit; border-radius: 10px; }
.ma-channel:hover { background: var(--bs-secondary-bg); }
.ma-channel-icon { color: var(--ma-brand); margin-top: 2px; }
[data-bs-theme="dark"] .ma-channel-icon { color: #4fd1a5; }
.ma-channel-urgent .ma-channel-icon { color: #d32f2f; }
.ma-channel-text { display: flex; flex-direction: column; }
.ma-channel-label { font-weight: 600; }
.ma-channel-target { font-family: var(--bs-font-monospace); color: var(--bs-link-color); }
.ma-channel-note { font-size: .82rem; color: var(--bs-secondary-color); }

/* a fault's card on the map (inside the shared script's .ima-card) */
[data-bs-theme="dark"] .ima-card { --ima-card-bg: #1c2421; --ima-card-fg: #e8eeeb; }
[data-bs-theme="light"] .ima-card { --ima-card-bg: #fff; --ima-card-fg: #1b1b1b; }
.ima-card { bottom: 80px !important; }
.leaflet-container .ima-card a.btn-brand { color: #fff; }
.leaflet-container .ima-card a.btn-brand:hover { color: #fff; }
.leaflet-container .ima-card { font-family: var(--bs-font-sans-serif); }
.ma-card { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; }
.ma-card-photo { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; background: var(--bs-secondary-bg); }
.ma-card-noimg { width: 64px; display: flex; justify-content: center; flex: none; padding-top: 4px; }
.ma-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ma-card-title { font-size: 15px; line-height: 1.25; margin-top: 4px; }
.ma-card-support, .ma-card-ref { display: flex; align-items: center; gap: 4px; opacity: .85 !important; }
.ima-card .btn { font-size: 13px; }
.ima-card > button { align-self: flex-start; }

@media (min-width: 992px) {
    .ma-map { right: var(--ma-panel-w); bottom: 0; }
    .ma-tools { right: calc(var(--ma-panel-w) + 160px); }
    .ma-mapbtns { right: calc(var(--ma-panel-w) + 12px); }
    .ma-fab { right: calc(var(--ma-panel-w) + 16px); bottom: 24px; }
    .ma-panel, .ma-panel.open { top: 0; left: auto; width: var(--ma-panel-w); height: auto; border-radius: 0; box-shadow: none;
        border-left: 1px solid var(--bs-border-color); }
    .ma-panel .ma-panel-handle { pointer-events: none; }
    .ma-panel .ma-panel-handle .material-icons, .ma-grip { display: none; }
    .ma-panel .ma-panel-body { visibility: visible !important; }
    .ma-newcount { display: none !important; }
}
@media (max-width: 575.98px) {
    .ma-mapbtn-label { display: none; }
    .ma-tools { right: 60px; }
    .ma-mapbtn { padding: .5rem; }
    .ma-catchip span:not(.ima-badge):not([data-cat-icon]) { display: none; }
    .ma-catchip { padding: .2rem; }
    .ma-fab { padding: .6rem 1rem; }
}

/* ── an issue's page ── */
.ma-issue-head { display: flex; gap: 1rem; align-items: flex-start; }
.ma-issue-icon { flex: none; padding-top: 4px; }
.ma-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ma-photos-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ma-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--bs-secondary-bg); display: block; }
.ma-photos:has(> .ma-photo:only-child) { grid-template-columns: 1fr; }
.ma-photos:has(> .ma-photo:only-child) .ma-photo img { aspect-ratio: auto; max-height: 520px; }
.ma-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem 1.25rem; }
.ma-facts > div { display: flex; flex-direction: column; }
.ma-fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; }
.ma-ref { display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: #fff8e1; color: #4a3800; margin-bottom: .4rem; }
[data-bs-theme="dark"] .ma-ref { background: #33290c; color: #ffe7a3; }
.ma-fixbar { display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: #eef7e4; color: #1f3d0c; }
[data-bs-theme="dark"] .ma-fixbar { background: #1d2c12; color: #d5efbf; }
.ma-ai { border-left: 5px solid #7e57c2; }
.ma-ai-label, .ma-ai-suggest .ma-ai-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #6a3fb5; margin-bottom: .5rem; }
[data-bs-theme="dark"] .ma-ai-label { color: #b9a0f0; }
.ma-minimap { height: 260px; border-radius: var(--ma-radius); overflow: hidden; box-shadow: var(--ma-shadow); position: relative; }
.ma-timeline { position: relative; margin: 0; }
.ma-tl { display: flex; gap: .8rem; padding-bottom: 1rem; position: relative; }
.ma-tl::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--bs-border-color); }
.ma-tl:last-child::before { display: none; }
.ma-tl-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
    background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.ma-tl-reported .ma-tl-dot, .ma-tl-sent .ma-tl-dot { background: #fdecea; color: #c62828; }
.ma-tl-reference .ma-tl-dot { background: #fff8e1; color: #a06c00; }
.ma-tl-fixed .ma-tl-dot, .ma-tl-fixpending .ma-tl-dot { background: #e8f5e9; color: #2e7d32; }
.ma-tl-progress .ma-tl-dot { background: #fff3e0; color: #e65100; }
[data-bs-theme="dark"] .ma-tl-dot { filter: brightness(.85); }
.ma-tl-kind { font-weight: 700; font-size: .85rem; }
.ma-qr { display: flex; gap: 1rem; align-items: center; }
.ma-qr img { border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--bs-border-color); flex: none; }
.ma-preview { max-width: 100%; max-height: 220px; border-radius: 12px; }

/* ── send ── */
.ma-step { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ma-brand);
    color: #fff; font-size: .9rem; margin-right: .35rem; vertical-align: 1px; }
.ma-field { display: grid; grid-template-columns: 6rem 1fr auto; gap: .5rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); }
.ma-field-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }
.ma-field > span:nth-child(2) { word-break: break-word; }
.ma-mailbody { white-space: pre-wrap; word-break: break-word; font-family: var(--bs-font-sans-serif); font-size: .92rem; background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color); border-radius: 12px; padding: .8rem 1rem; max-height: 420px; overflow: auto; margin: 0; }
@media (max-width: 575.98px) { .ma-field { grid-template-columns: 1fr auto; } .ma-field-label { grid-column: 1 / -1; } }

/* ── report ── */
.ma-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; }
.ma-steps li { flex: 1; display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: 12px; background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color); font-weight: 600; font-size: .9rem; color: var(--bs-secondary-color); }
.ma-steps li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bs-secondary-bg); font-size: .8rem; }
.ma-steps li.active { border-color: var(--ma-brand); color: var(--bs-body-color); }
.ma-steps li.active span, .ma-steps li.done span { background: var(--ma-brand); color: #fff; }
@media (max-width: 575.98px) { .ma-steps li { font-size: 0; justify-content: center; } .ma-steps li span { font-size: .8rem; } }
.ma-drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 2px dashed var(--bs-border-color); border-radius: 16px; padding: 1.6rem 1rem;
    cursor: pointer; text-align: center; background: var(--bs-tertiary-bg); }
.ma-drop:hover, .ma-drop:focus-within { border-color: var(--ma-brand); background: var(--ma-soft); }
.ma-drop .material-icons { font-size: 42px; color: var(--ma-brand); }
.ma-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 0; }
.ma-thumbs li { position: relative; }
.ma-thumbs img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.ma-thumb-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 18px; line-height: 1; }
.ma-pickmap { height: 360px; border-radius: 14px; overflow: hidden; border: 1px solid var(--bs-border-color); }
.ma-pickmap-tall { height: 480px; }
.ma-pin { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.ma-catgroup + .ma-catgroup { margin-top: .75rem; }
.ma-catgroup-name { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-secondary-color); margin-bottom: .35rem; }
.ma-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ma-cat { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 12px; border: 1.5px solid var(--bs-border-color);
    background: var(--bs-body-bg); color: var(--bs-body-color); text-align: left; font-size: .9rem; font-weight: 500; line-height: 1.2; }
.ma-cat:hover { border-color: var(--ma-brand); }
.ma-cat.active { border-color: var(--ma-brand); background: var(--ma-soft); box-shadow: 0 0 0 2px var(--ma-brand) inset; }
.ma-cat .ima-badge { flex: none; }
.ma-cat-emergency { border-color: #e57373; }
.ma-catinfo { padding: .8rem 1rem; border-radius: 12px; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); }
.ma-catinfo-emergency { background: #fdecea; border-color: #f5c2bd; color: #6b0f0a; }
[data-bs-theme="dark"] .ma-catinfo-emergency { background: #3a1513; color: #ffd7d3; border-color: #6b2622; }
.ma-ai-suggest { padding: .9rem 1rem; border-radius: 12px; border: 1px solid #d6c8f2; background: #f6f2fd; }
[data-bs-theme="dark"] .ma-ai-suggest { background: #221b33; border-color: #3d3060; }
.ma-summary { padding: .9rem 1rem; border-radius: 12px; background: var(--bs-tertiary-bg); }
.ma-dupes { padding: .9rem 1rem; border-radius: 12px; background: #fff8e1; border: 1px solid #f3dc9a; }
[data-bs-theme="dark"] .ma-dupes { background: #2d250c; border-color: #5d4b14; }
.ma-dupe { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ma-dupe img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.ma-ok { color: var(--ma-st-fixed); }

/* ── lists ── */
.ma-issue-list li + li { margin-top: .5rem; }
.ma-issue-row { display: flex; gap: .9rem; align-items: center; padding: .75rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent);
    border-radius: 14px; color: inherit; text-decoration: none; box-shadow: var(--ma-shadow); }
.ma-issue-row:hover { border-color: var(--ma-brand); }
.ma-issue-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bs-secondary-bg); }
.ma-issue-thumb-icon { display: inline-flex; align-items: center; justify-content: center; }
.ma-issue-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ── stats ── */
.ma-tile { height: 100%; display: flex; flex-direction: column; padding: 1rem 1.1rem; border-radius: var(--ma-radius); background: var(--bs-body-bg); box-shadow: var(--ma-shadow);
    border: 1px solid var(--bs-border-color-translucent); }
.ma-tile-label { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); }
.ma-tile-value { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.ma-tile-note { font-size: .82rem; color: var(--bs-secondary-color); }
.ma-tile-open .ma-tile-value { color: var(--ma-st-reported); }
.ma-tile-fixed .ma-tile-value { color: var(--ma-st-fixed); }
.ma-tile-wide { flex-direction: row; align-items: center; gap: 1rem; }
.ma-tile-wide > .material-icons { font-size: 36px; color: var(--ma-brand); }
.ma-tile-wide > div { display: flex; flex-direction: column; }
.ma-bar-cell { width: 34%; }
.ma-bar { width: 100%; height: 12px; display: block; border-radius: 6px; overflow: hidden; background: var(--bs-secondary-bg); }
.ma-bar-open { fill: var(--ma-st-reported); }
.ma-bar-fixed { fill: var(--ma-st-fixed); }

/* ── how it works ── */
.ma-how li { display: flex; gap: 1rem; margin-bottom: 1rem; }
.ma-how-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ma-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ma-tips li { margin-bottom: .45rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
