.mm-shell{max-width:100%;min-width:0}
.mm-shell header p,.mm-ref{color:#4c605a}
.mm-filters{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;margin:1.3rem 0}
.mm-filters label{display:grid;gap:.3rem;margin:0;font-weight:650}
.mm-filters input[type=search],.mm-filters select{min-height:44px;max-width:100%;width:auto}
.mm-filters .mm-check{display:flex;align-items:center;align-self:center;gap:.5rem}
.mm-check input{width:1.1rem;height:1.1rem;margin:0}
.mm-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(17rem,1fr);gap:1rem}
.mm-map{height:clamp(29rem,66vh,51rem);border:1px solid #a8c3b8;border-radius:12px;background:#d2e5e8;z-index:0}
.mm-shell [data-mm-status]:empty{display:none}
.mm-shell [data-mm-island]{margin-top:.6rem}
.mm-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));list-style:none;padding:0;gap:.55rem .8rem;margin:1rem 0}
.mm-legend li,.mm-stage-tag{display:flex;align-items:center;gap:.4rem;font-size:.86rem;font-weight:650;line-height:1.2}
.mm-badge,.mm-pin{background:var(--mm-color);color:var(--mm-ink,#fff);font:700 14px/1 system-ui,sans-serif;display:inline-grid;place-items:center}
.mm-badge{flex:0 0 23px;width:23px;height:23px;border-radius:50%;border:1px solid #0c1b262e}
/* Numbered stage markers use the ten cable colors, with contrasting numerals. */
.mm-s1{--mm-color:#ce2028;--mm-ink:#fff}
.mm-s2{--mm-color:#ff8800;--mm-ink:#000}
.mm-s3{--mm-color:#ffcf00;--mm-ink:#000}
.mm-s4{--mm-color:#147538;--mm-ink:#fff}
.mm-s5{--mm-color:#145bb3;--mm-ink:#fff}
.mm-s6{--mm-color:#763bad;--mm-ink:#fff}
.mm-s7{--mm-color:#777777;--mm-ink:#000}
.mm-s8{--mm-color:#ffffff;--mm-ink:#000}
.mm-s9{--mm-color:#101010;--mm-ink:#fff}
.mm-s10{--mm-color:#784421;--mm-ink:#fff}
.mm-icon{background:none;border:0}
.mm-pin{width:32px;height:32px;border:2px solid white;border-radius:50%;box-shadow:0 2px 5px #223d43aa;position:relative}
.mm-pin:after{content:"";position:absolute;left:9px;bottom:-8px;border-style:solid;border-width:8px 5px 0;border-color:var(--mm-color) transparent transparent}
.mm-detail{max-height:77vh;overflow:auto;align-self:start;overflow-wrap:anywhere}
.mm-detail h2{margin-top:.4rem}.mm-detail h3{margin-top:1.3rem}
.mm-detail dt{font-size:.84rem;color:#50655e}.mm-detail dd{margin:0 0 .5rem}
.mm-detail details{margin:1rem 0}.mm-detail summary{cursor:pointer;font-weight:700}
.mm-detail section,.mm-detail ol li{border-top:1px solid #d4ded8;padding-top:.5rem}.mm-detail p{white-space:pre-line}
.mm-cases{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:.5rem}
.mm-list h2{margin-top:1.2rem;font-size:1.18rem}
.mm-row{display:flex;text-align:left;align-items:center;gap:.65rem;padding:.65rem;background:white;color:#1e3c33;border:1px solid #bbcbc4;border-radius:8px;cursor:pointer;min-height:48px;width:100%}
.mm-row[aria-pressed=true]{outline:2px solid #276956;outline-offset:-2px}.mm-row small{display:block;color:#50655e}
@media(max-width:980px){.mm-layout{grid-template-columns:1fr}.mm-map{height:clamp(23rem,62vh,40rem)}.mm-detail{max-height:none}.mm-cases{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}}
.pin-editor{width:min(38rem,94vw);max-height:90dvh;overflow:auto;border:1px solid #94ab9e;border-radius:12px;padding:1.2rem;color:#173b32}
.pin-editor::backdrop{background:#122a2277}.pin-editor form{display:grid;gap:.8rem}.pin-editor h2{margin:0}.pin-editor label{display:block}.pin-editor select,.pin-editor input:not([type=checkbox]){width:100%;display:block}.pin-editor [data-feedback]{color:#923c2f;margin:0}.pin-editor .location-map{height:15rem}.mm-found{border-radius:4px;transform:rotate(45deg);width:21px;height:21px;display:grid;place-items:center;background:white;border:3px solid #273f36;box-shadow:0 1px 4px #283d3e88}.mm-found b{transform:rotate(-45deg);font:700 12px/1 system-ui;color:#173b32}.mm-key{display:flex;flex-wrap:wrap;gap:1.2rem}.mm-key span{display:flex;align-items:center;gap:.4rem}.mm-key i{width:.8rem;height:.8rem;display:inline-block}.mm-key .found{border:2px solid #273f36;background:white;transform:rotate(45deg)}.mm-key .now{border-radius:50%;background:#375b4c}
.mm-badge.phase-left,.mm-pin.phase-left,.public-area-count.phase-left strong{background:linear-gradient(90deg,var(--mm-color) 50%,white 50%)}
.mm-badge.phase-right,.mm-pin.phase-right,.public-area-count.phase-right strong{background:linear-gradient(90deg,white 50%,var(--mm-color) 50%)}
:is(.phase-left,.phase-right):is(.mm-badge,.mm-pin),.public-area-count:is(.phase-left,.phase-right) strong{color:#111;text-shadow:0 0 2px white,0 0 3px white;border:1px solid #48535c}
.mm-s8.phase-left,.mm-s8.phase-right{--mm-color:#eff0f1}
.mm-s8.phase-left,.mm-s8.phase-right,.public-area-count.mm-s8:is(.phase-left,.phase-right) strong{background-image:linear-gradient(90deg,transparent calc(50% - 1px),#687078 50%,transparent calc(50% + 1px)),linear-gradient(90deg,var(--mm-color) 50%,white 50%)}
.mm-s8.phase-right,.public-area-count.mm-s8.phase-right strong{background-image:linear-gradient(90deg,transparent calc(50% - 1px),#687078 50%,transparent calc(50% + 1px)),linear-gradient(90deg,white 50%,var(--mm-color) 50%)}
sos-case-records{display:block;margin:1rem 0}.case-record-dialog label{display:block;margin:.7rem 0}.case-record-dialog :is(input,textarea,select){display:block;width:100%}.case-record-dialog li{overflow-wrap:anywhere}

.mm-mixed{--mm-color:#49535c}
.mm-s8.phase-left,.mm-s8.phase-right{--mm-color:#ced4d9}
.animal-checklist{margin:1rem 0}.animal-checklist summary{font-weight:700;cursor:pointer}.animal-checklist h4{margin:.9rem 0 .4rem}.animal-checklist ol{padding-left:1.8rem}.animal-checklist li{padding:.25rem 0}.animal-checklist .mm-badge{height:16px;width:16px;vertical-align:middle;margin-right:.45rem}.animal-checklist strong{display:inline-block;margin-left:.65rem}.check-done{color:#146538}.check-working{background:#ffed9b;color:#654900;border-radius:.3rem;padding:0 .3rem}.check-missing{color:#a4232c}
.case-record-dialog label[hidden]{display:none}
.animal-checklist strong{margin:0 .35rem 0 0}.animal-checklist strong b{display:inline-grid;place-items:center;width:1.25rem;height:1.25rem;border-radius:.25rem;font-size:1rem}.animal-checklist .check-working{background:none;color:#584200}.check-working b{background:#362c00;color:#ffda28}.check-done b{color:#167039}.check-missing b{color:#af1926}
.care-plan details{margin:.6rem 0;border-top:1px solid #d4dadd;padding:.5rem 0}.care-plan details details{margin-left:.65rem}.care-plan summary{cursor:pointer;font-weight:600}.care-plan [role=status]{color:#713a13}

.rescue-symbol{--half:#fff;display:inline-block;position:relative;box-sizing:border-box;width:26px;height:26px;flex:none;border:1.6px solid #172327;border-radius:50%;background:var(--mm-color);box-shadow:0 0 0 1px #fff}
.rescue-symbol.pin-square{border-radius:1px}
.rescue-symbol.fill-top{background:linear-gradient(to bottom,var(--mm-color) 50%,var(--half) 50%)}
.rescue-symbol.fill-right{background:linear-gradient(to left,var(--mm-color) 50%,var(--half) 50%)}
.rescue-symbol.fill-bottom{background:linear-gradient(to top,var(--mm-color) 50%,var(--half) 50%)}
.rescue-symbol.fill-left{background:linear-gradient(to right,var(--mm-color) 50%,var(--half) 50%)}
/* White has a white opposite half as well. A divider and dot mark the active side. */
.rescue-symbol.mm-s8:not(.fill-solid)::before{content:'';position:absolute;background:#33454d;left:0;top:calc(50% - .6px);width:100%;height:1.2px}
.rescue-symbol.mm-s8.fill-left::before,.rescue-symbol.mm-s8.fill-right::before{left:calc(50% - .6px);top:0;width:1.2px;height:100%}
.rescue-symbol.mm-s8:not(.fill-solid)::after{content:'';position:absolute;background:#33454d;width:4px;height:4px;border-radius:50%;top:calc(var(--cy,50%) - 2px);left:calc(var(--cx,50%) - 2px)}
.fill-top{--cy:25%}.fill-right{--cx:75%}.fill-bottom{--cy:75%}.fill-left{--cx:25%}
.rescue-map-icon{display:grid;place-items:center;border:0;background:none}
.rescue-map-icon .rescue-symbol,.rescue-cluster{width:32px;height:32px;box-shadow:0 0 0 2px white,0 2px 5px #263b4666}
.rescue-cluster{background:#263940;color:white;border-radius:50%;display:grid;place-items:center;font-weight:750}
.pin-caption{display:inline-flex;align-items:center;gap:.55rem;font-size:1rem;line-height:1.4}
.rescue-legend{margin:1rem 0;padding:.8rem 1rem;background:white;color:#223834;border:1px solid #bbcfc6;border-radius:.55rem}
.rescue-legend summary{cursor:pointer;font-weight:700;font-size:1rem}
.pin-family{border-top:1px solid #d9e4df}
.pin-samples{display:inline-flex;gap:.24rem;margin-inline-start:.4rem;vertical-align:middle}
.pin-samples .rescue-symbol{width:15px;height:15px;border-width:1.2px}
.pin-family>summary,.square-stage>summary{padding:.7rem 0}
.square-stage{align-self:start;min-width:0}
.square-stage>summary .rescue-symbol{width:20px;height:20px;vertical-align:middle;margin-inline:.15rem .35rem}
.square-stage>summary span:last-child{overflow-wrap:anywhere}
.square-stage>summary small{margin-inline-start:.4rem;font-weight:500;white-space:nowrap}
.pin-status.optional{color:#526360}
.rescue-legend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15.5rem),1fr));gap:1rem}
.rescue-legend-grid h4{margin:.5rem 0}.rescue-legend-grid ol{list-style:none;padding:0;margin:0}
.rescue-legend-grid li{padding:.45rem 0;display:flex;flex-wrap:wrap;gap:.35rem .6rem;align-items:center;border-top:1px solid #d9e4df}
#community-area-map{height:clamp(17rem,45vh,29rem);margin:1rem 0}
.rescue-symbol.pin-gold{display:inline-grid;place-items:center;background:#d5a52a;color:#302406;border:2px solid #654a0e;border-radius:50%;box-shadow:inset 0 0 0 2px #fae8a5,0 0 0 1px white;font:800 17px/1 system-ui}
.gold-key,.audit-final h3{display:flex;align-items:center;gap:.75rem}
.gold-key{padding:1rem 0 .3rem;border-top:1px solid #d9e4df;line-height:1.45}
.case-signoffs{margin:1rem 0}.case-signoffs h2{margin-top:0}
.signoff-row,.audit-final{border-top:1px solid #d9e4df;padding:.85rem 0}
.signoff-row h4,.audit-final h3{margin:0}
.signoff-row-head{display:flex;align-items:baseline;gap:.5rem 1rem;flex-wrap:wrap}
.signoff-row p{margin:.35rem 0 .65rem}.audit-branches{padding:.8rem 0}.audit-branches summary,.audit-history summary,.pin-evidence summary{cursor:pointer;font-weight:600}
.audit-state{font-size:.9rem}.audit-needed{color:#9c292a}.audit-working{color:#775312}.audit-done{color:#12613d}.audit-na{color:#4b5852}
.audit-receipt{border-inline-start:3px solid #b6cbc0;padding:.35rem .7rem;margin:.5rem 0;overflow-wrap:anywhere}
.audit-receipt dl{margin:.15rem 0}.audit-receipt dl>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:.1rem .5rem}.audit-receipt dt{font-weight:650}.audit-receipt dd{margin:0;white-space:pre-wrap}
.pin-evidence{flex-basis:100%;min-width:0}.pin-status.na{color:#4b5852}

.pin-color-stage{border-top:1px solid #d9e4df;padding:.2rem 0}
.pin-color-stage>summary,.pin-exceptions>summary{padding:.7rem 0;line-height:1.4}
.pin-color-stage>summary .rescue-symbol{width:1.2rem;height:1.2rem;vertical-align:middle;margin-inline:.1rem .3rem}
.pin-stage-family{min-width:0}.pin-stage-family h5{font-size:1rem;margin:.5rem 0}
.pin-exceptions{margin:.4rem 0 .8rem}
.rescue-symbol.pin-triangle,.rescue-symbol.pin-diamond{border:0;border-radius:0;background:none;box-shadow:none}
.rescue-symbol.pin-triangle svg,.rescue-symbol.pin-diamond svg{width:100%;height:100%;display:block}
.rescue-symbol.pin-triangle::before,.rescue-symbol.pin-triangle::after,.rescue-symbol.pin-diamond::before,.rescue-symbol.pin-diamond::after{display:none}

.stage-custom-tasks{margin-top:.6rem}
.stage-custom-tasks ul{padding-left:1.25rem}
.stage-custom-tasks li{margin:.45rem 0}
.case-symbol-badge{display:inline-flex;gap:.35rem;align-items:center;font-weight:600;vertical-align:middle}
.case-symbol-badge svg{flex:none}
.case-symbol-top{clip-path:inset(0 0 50% 0)}
.case-symbol-right{clip-path:inset(0 0 0 50%)}
.case-symbol-bottom{clip-path:inset(50% 0 0 0)}
.case-symbol-left{clip-path:inset(0 50% 0 0)}
sos-case-symbol-picker,sos-case-symbol-picker output{display:block}
sos-case-symbol-picker output{margin:.65rem 0}

.map-custom-caption{display:inline-flex;align-items:center;gap:.3rem;flex-wrap:wrap}
.supplemented-pin{display:inline-flex;width:44px;align-items:center;justify-content:center;gap:1px;flex:none}
.supplemented-pin .rescue-symbol{width:25px;height:25px;flex:none}
.map-companion .case-symbol-badge{font-size:0;gap:0;background:white;border-radius:4px;display:flex}
.map-companion .case-symbol-badge svg{width:18px;height:18px}
.mm-stage-tag{flex-wrap:wrap}

.step-check{display:inline-grid;place-items:center;flex:0 0 1.4rem;width:1.4rem;min-height:1.4rem;align-self:center;font:bold 1.45rem/1 system-ui,sans-serif}
.check-done{color:#14783e}
.check-working{color:#ffda33;-webkit-text-stroke:1.8px #775600;paint-order:stroke fill}
.check-missing{color:#bc2437}
.check-na,.check-unknown{color:#53645e}
.step-check-key{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;margin:.7rem 0;font-size:.94rem}
.step-check-key>span,.checked-case-symbol{display:inline-flex;align-items:center;gap:.35rem}
.pin-caption .rescue-symbol{flex-shrink:0}
.rescue-legend .pin-status{font-size:.9rem;color:#485d56}
.gold-key .step-check,.audit-final .step-check{align-self:flex-start}
.gold-key .pin-gold{flex-shrink:0}

.mm-vehicle span {display:grid;place-items:center;height:100%;width:100%;background:white;border:2px solid #245777;border-radius:.4rem;font-size:1.05rem;box-shadow:0 1px 4px #16324355}
