:where([data-demo="steeples"]) .st-panes{display:grid;grid-template-columns:27fr 31fr 42fr;min-height:0}
:where([data-demo="steeples"]) .st-pane{min-width:0;min-height:0;display:flex;flex-direction:column;padding:calc(10*var(--u));border-right:1px solid var(--line)}
:where([data-demo="steeples"]) .st-pane:last-child{border-right:0}
:where([data-demo="steeples"]) .st-side{background:var(--side)}
:where([data-demo="steeples"]) .st-side .ph{flex-wrap:wrap;row-gap:calc(2*var(--u))}
:where([data-demo="steeples"]) .ph{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:0 0 calc(8*var(--u));font-size:calc(12*var(--u));font-weight:600;letter-spacing:-.02em;white-space:nowrap}

/* Tags */
:where([data-demo="steeples"]) .tag{display:inline-flex;align-items:center;gap:calc(4*var(--u));padding:calc(1.5*var(--u)) calc(7*var(--u));border:1px solid;border-radius:999px;font-size:max(10.5px,calc(10.5*var(--u)));font-weight:600;line-height:1.3;white-space:nowrap}
:where([data-demo="steeples"]) .cust{background:#e1eeff;border-color:#a9cdf5;color:#0b5cad}
:where([data-demo="steeples"]) .ai{background:#efe6ff;border-color:#cdb4f5;color:#6a2fc9}
:where([data-demo="steeples"]) .auto{background:#dcf5e3;border-color:#8fd9a8;color:#0f6b34}
:where([data-demo="steeples"]) .neutral{background:#eceae6;border-color:#d6d3cc;color:#6b6f7d}

/* Territory map */
:where([data-demo="steeples"]) .st-tc{position:relative;display:inline-grid;font-weight:500;color:var(--muted);font-size:max(10.5px,calc(10.5*var(--u)));white-space:nowrap}
:where([data-demo="steeples"]) .st-tc>span{grid-area:1/1;justify-self:end;opacity:0}
:where([data-demo="steeples"]) .st-tc>span.on{opacity:1}
:where([data-demo="steeples"]) .scene.anim .st-tc>span{transition:opacity .3s}
:where([data-demo="steeples"]) .st-mapbox{position:relative;flex:1;min-height:0}
:where([data-demo="steeples"]) .st-map{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
:where([data-demo="steeples"]) .st-mapp{display:none}
:where([data-demo="steeples"]) .st-hb{fill:#eef1f8;stroke:#c9d1e6;stroke-width:1}
:where([data-demo="steeples"]) .st-home{fill:#e6e9f4}
:where([data-demo="steeples"]) .st-hp{fill:none;stroke:#4c5367;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:where([data-demo="steeples"]) .st-cl{fill:#2383e2;fill-opacity:.3;stroke:#2383e2;stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.6)}
:where([data-demo="steeples"]) .st-cc{fill-opacity:1}
:where([data-demo="steeples"]) .st-cl.on{opacity:1;transform:none}
:where([data-demo="steeples"]) .scene.anim .st-cl{transition:opacity .35s var(--d,0ms),transform .5s var(--ease) var(--d,0ms)}
:where([data-demo="steeples"]) .st-pulse{fill:none;stroke:#2383e2;stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center}
:where([data-demo="steeples"]) .scene.anim .st-pulse.on{animation:st-cpulse 1.4s ease-out infinite}
@keyframes st-cpulse{0%{transform:scale(.8);opacity:.7}100%{transform:scale(2.6);opacity:0}}
:where([data-demo="steeples"]) .st-lbl{text-anchor:middle;dominant-baseline:central;font-weight:600;fill:#171821;letter-spacing:-.01em;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round;font-family:inherit}
:where([data-demo="steeples"]) .st-lp{transform-box:fill-box;transform-origin:center}
:where([data-demo="steeples"]) .st-lf,:where([data-demo="steeples"]) .st-lr2{fill:#34c759;opacity:0;transform-box:fill-box;transform-origin:center}
:where([data-demo="steeples"]) .st-lr2{fill:none;stroke:#34c759;stroke-width:1.5}
:where([data-demo="steeples"]) .st-ld{fill:#34c759;stroke:#fff;stroke-width:1}
:where([data-demo="steeples"]) .st-lw{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
:where([data-demo="steeples"]) .scene.anim .st-lp:not(.on){opacity:0}
:where([data-demo="steeples"]) .scene.anim .st-lp.on{animation:st-lpop .7s var(--ease) both}
:where([data-demo="steeples"]) .scene.anim .st-lp.on .st-lf{animation:scene-flash 1.3s ease-out both}
:where([data-demo="steeples"]) .scene.anim .st-lp.on .st-lr2{animation:st-lring 1.1s ease-out .15s both}
@keyframes st-lpop{0%{opacity:0;transform:scale(.3) translateY(-10px)}55%{opacity:1;transform:scale(1.35)}78%{transform:scale(.95)}100%{opacity:1;transform:none}}
@keyframes st-lring{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(2.6)}}

/* Permit feed: fixed slots, rows moved by translateY only */
:where([data-demo="steeples"]) .st-city{position:relative;display:inline-grid;font-weight:500;color:var(--muted);font-size:max(10.5px,calc(10.5*var(--u)))}
:where([data-demo="steeples"]) .st-city>span{grid-area:1/1;justify-self:end;opacity:0}
:where([data-demo="steeples"]) .st-city>span.on{opacity:1}
:where([data-demo="steeples"]) .scene.anim .st-city>span{transition:opacity .3s}
:where([data-demo="steeples"]) .st-feed{--sh:calc(51*var(--u));position:relative;flex:1;min-height:0;overflow:hidden}
:where([data-demo="steeples"]) .st-batch{position:absolute;inset:0;opacity:0}
:where([data-demo="steeples"]) .st-batch.on{opacity:1}
:where([data-demo="steeples"]) .scene.anim .st-batch{transition:opacity .35s}
:where([data-demo="steeples"]) .st-r{position:absolute;left:0;right:0;top:0;height:calc(var(--sh) - 3*var(--u));transform:translateY(calc(var(--slot)*var(--sh)))}
:where([data-demo="steeples"]) .scene.anim .st-r{transition:opacity .35s}
:where([data-demo="steeples"]) .st-r.dim{opacity:.45}
:where([data-demo="steeples"]) .st-ri{height:100%;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"ty" "ad" "rs";grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;align-content:center;row-gap:calc(1.5*var(--u));
  padding:calc(2*var(--u)) calc(7*var(--u));background:var(--paper);border:1px solid #dcdfec;border-radius:6px;line-height:1.2}
:where([data-demo="steeples"]) .scene.anim .st-ri{transition:opacity .35s,transform .45s var(--ease)}
:where([data-demo="steeples"]) .scene.anim .st-r:not(.in) .st-ri{opacity:0;transform:translateY(calc(-6*var(--u)))}
:where([data-demo="steeples"]) .st-r.hit .st-ri{background:#f6f0ff;border-color:#c9b6e8}
:where([data-demo="steeples"]) .st-ty{grid-area:ty;min-width:0;font-size:max(10.5px,calc(11*var(--u)));font-weight:600;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where([data-demo="steeples"]) .st-ad{grid-area:ad;min-width:0;color:var(--muted);font-size:max(10.5px,calc(10.5*var(--u)));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where([data-demo="steeples"]) .st-mt{grid-area:rs;display:flex;align-items:center;gap:calc(5*var(--u));min-width:0;opacity:0}
:where([data-demo="steeples"]) .st-r.hit .st-mt{opacity:1}
:where([data-demo="steeples"]) .st-mt .tag{padding:0 calc(6*var(--u));line-height:1.15}
:where([data-demo="steeples"]) .scene.anim .st-mt{transition:opacity .3s}
:where([data-demo="steeples"]) .st-rs{min-width:0;padding:0 calc(6*var(--u));border:1px solid #cdb4f5;border-radius:999px;background:#fff;color:#6a2fc9;font-size:max(10.5px,calc(10.5*var(--u)));font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where([data-demo="steeples"]) .st-scan{position:absolute;left:0;right:0;top:0;height:max(2px,calc(2*var(--u)));border-radius:2px;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,#8a62c7 15%,#8a62c7 85%,transparent);box-shadow:0 0 calc(8*var(--u)) #8a62c7aa;
  transform:translateY(calc(var(--p,0)*var(--sh) - 2px))}
:where([data-demo="steeples"]) .st-scan.on{opacity:1}
:where([data-demo="steeples"]) .scene.anim .st-scan{transition:transform .55s linear,opacity .25s}

/* Lead list */
:where([data-demo="steeples"]) .st-pill{display:inline-flex;align-items:center;gap:calc(5*var(--u));padding:calc(2*var(--u)) calc(8*var(--u));border:1px solid #8fd9a8;background:#dcf5e3;color:#0f6b34;border-radius:999px;font-size:max(10.5px,calc(10.5*var(--u)));font-weight:600;letter-spacing:0}
:where([data-demo="steeples"]) .st-cnt{display:inline-grid;font-weight:700}
:where([data-demo="steeples"]) .st-n{grid-area:1/1;opacity:0;transform:translateY(45%)}
:where([data-demo="steeples"]) .st-n.on{opacity:1;transform:none}
:where([data-demo="steeples"]) .scene.anim .st-n{transition:opacity .35s,transform .45s var(--ease)}
:where([data-demo="steeples"]) .st-th,:where([data-demo="steeples"]) .st-li{display:grid;grid-template-columns:minmax(0,1.15fr) calc(64*var(--u)) minmax(0,1fr) calc(42*var(--u));column-gap:calc(7*var(--u));align-items:center}
:where([data-demo="steeples"]) .st-th{padding:0 calc(7*var(--u)) calc(4*var(--u));color:var(--muted);font-size:max(10.5px,calc(10.5*var(--u)));font-weight:600}
:where([data-demo="steeples"]) .st-lrows{--sh:calc(58*var(--u));position:relative;flex:1;min-height:0}
:where([data-demo="steeples"]) .st-lr{position:absolute;left:0;right:0;top:0;height:calc(var(--sh) - 5*var(--u));transform:translateY(calc(var(--slot)*var(--sh)))}
:where([data-demo="steeples"]) .scene.anim .st-lr{transition:transform .7s var(--ease)}
:where([data-demo="steeples"]) .scene.anim .st-lr:not(.in){opacity:0}
:where([data-demo="steeples"]) .st-li{position:relative;height:100%;padding:0 calc(6*var(--u));background:var(--paper);border:1px solid #dcdfec;border-radius:6px;line-height:1.2}
:where([data-demo="steeples"]) .st-li>*{min-width:0}
:where([data-demo="steeples"]) .st-ct,:where([data-demo="steeples"]) .st-th span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where([data-demo="steeples"]) .st-c,:where([data-demo="steeples"]) .st-ct,:where([data-demo="steeples"]) .st-sg{font-size:max(10.5px,calc(10.5*var(--u)));display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
:where([data-demo="steeples"]) .st-c{font-weight:600;letter-spacing:-.02em}
:where([data-demo="steeples"]) .st-ct,:where([data-demo="steeples"]) .st-sg{color:var(--muted)}
:where([data-demo="steeples"]) .st-ct{display:block}
:where([data-demo="steeples"]) .st-li .tag{justify-self:start;font-size:max(10.5px,calc(10*var(--u)));padding:calc(1.5*var(--u)) calc(5*var(--u))}
:where([data-demo="steeples"]) .st-new{background:#eef6f1;border-color:#5fcf85;box-shadow:inset 3px 0 #28b955}
:where([data-demo="steeples"]) .st-new{--pop-radius:6px;--ring-scale:1.18,1.4}

/* Phone layout: sources as a 2-column strip, then the feed, then the lead list */
@media (max-width:640px){

  :where([data-demo="steeples"]) .scene{--phone-height:762px}

  :where([data-demo="steeples"]) .st-panes{grid-template-columns:minmax(0,1fr);grid-template-rows:256px 266px minmax(0,1fr)}
  :where([data-demo="steeples"]) .st-pane{padding:8px;border-right:0;border-bottom:1px solid var(--line)}
  :where([data-demo="steeples"]) .st-pane:last-child{border-bottom:0}
  :where([data-demo="steeples"]) .ph{margin-bottom:6px}
  :where([data-demo="steeples"]) .st-mapd{display:none}
  :where([data-demo="steeples"]) .st-mapp{display:block}
  :where([data-demo="steeples"]) .st-feed{--sh:38px}
  :where([data-demo="steeples"]) .st-r{height:36px}
  :where([data-demo="steeples"]) .st-ri{padding:2px 7px;grid-template-areas:"ty rs" "ad ad";grid-template-columns:minmax(0,1fr) auto;row-gap:0;column-gap:7px}
  :where([data-demo="steeples"]) .st-rs{display:none}
  :where([data-demo="steeples"]) .st-lrows{--sh:27px}
  :where([data-demo="steeples"]) .st-lr{height:24px}
  :where([data-demo="steeples"]) .st-th,:where([data-demo="steeples"]) .st-li{grid-template-columns:minmax(0,1fr) 92px 56px;column-gap:7px}
  :where([data-demo="steeples"]) .st-th span:nth-child(3),:where([data-demo="steeples"]) .st-sg{display:none}
  :where([data-demo="steeples"]) .st-c{-webkit-line-clamp:1;display:block;white-space:nowrap;text-overflow:ellipsis}
  :where([data-demo="steeples"]) .st-li .tag{padding:0 5px}
}


/* Real Southeast map: pale states with thin borders; claimed territory spreads in rings
   from the city and stops at its state line (each claim is clipped to its state). */
:where([data-demo="steeples"]) .st-land path{fill:#f4f6fb;stroke:#b4bfd9;stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke}
:where([data-demo="steeples"]) .st-land .st-outline{fill:none}
:where([data-demo="steeples"]) .st-state{fill:#8d96ad;font-weight:600;letter-spacing:.14em;text-anchor:middle;dominant-baseline:central;font-family:inherit}
:where([data-demo="steeples"]) .st-cdot{fill:#171821}
:where([data-demo="steeples"]) .st-cl:not(.st-cc){fill-opacity:.22;stroke:none}
:where([data-demo="steeples"]) .st-cl.st-cl-edge{stroke:#2383e2;stroke-width:1.6;vector-effect:non-scaling-stroke}
:where([data-demo="steeples"]) .st-cc{fill:#2383e2;stroke:#fff;stroke-width:1.2}
:where([data-demo="steeples"]) .scene.anim .st-cl{transition:opacity .45s var(--d,0ms),transform .7s var(--ease) var(--d,0ms)}
:where([data-demo="steeples"]) .st-mapbox{overflow:hidden;border-radius:6px}
:where([data-demo="steeples"]) .st-map{overflow:hidden}

/* Weather event layer: storm cell sweeps across the territory, leaves a damage swath,
   and an alert card tells the agent where to look first. Transform and opacity only. */
:where([data-demo="steeples"]) .st-swath{transform-box:fill-box;transform-origin:left center}
:where([data-demo="steeples"]) .st-cellring{fill:none;stroke:#f97316;stroke-width:1.4;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
:where([data-demo="steeples"]) .st-cell{transform:translateX(var(--L));opacity:0}
:where([data-demo="steeples"]) .scene.anim .st-storm:not(.on) .st-swath{transform:scaleX(0);opacity:0}
:where([data-demo="steeples"]) .scene.anim .st-storm .st-swath{transition:transform 2.6s linear,opacity .4s}
:where([data-demo="steeples"]) .scene.anim .st-storm .st-cell{transform:translateX(0);opacity:0}
:where([data-demo="steeples"]) .scene.anim .st-storm.go .st-cell{transform:translateX(var(--L));opacity:1;transition:transform 2.6s linear,opacity .3s}
:where([data-demo="steeples"]) .scene.anim .st-storm.on:not(.go) .st-cell{opacity:0;transform:translateX(var(--L));transition:opacity .6s}
:where([data-demo="steeples"]) .st-alert{flex:none;margin-top:6px;display:flex;align-items:center;gap:calc(7*var(--u));padding:calc(6*var(--u)) calc(8*var(--u));background:#fff7ed;border:1px solid #fdba74;border-radius:7px;box-shadow:0 6px 14px -8px #9a341266;color:#7c2d12}
:where([data-demo="steeples"]) .st-ai{flex:none;display:grid;place-items:center;width:calc(22*var(--u));height:calc(22*var(--u));min-width:20px;min-height:20px;border-radius:50%;background:#ffedd5;border:1px solid #fdba74}
:where([data-demo="steeples"]) .st-ai svg{width:70%;height:70%;fill:none;stroke:#c2410c;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:where([data-demo="steeples"]) .st-at{min-width:0;display:grid;line-height:1.25}
:where([data-demo="steeples"]) .st-at b{font-size:max(10.5px,calc(11*var(--u)));font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where([data-demo="steeples"]) .st-at span{font-size:max(10px,calc(10*var(--u)));color:#9a3412;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where([data-demo="steeples"]) .scene.anim .st-alert:not(.on){opacity:0;transform:translateY(6px)}
:where([data-demo="steeples"]) .scene.anim .st-alert.on{animation:st-alert-pop .6s var(--ease) both}
@keyframes st-alert-pop{0%{opacity:0;transform:translateY(8px) scale(.94)}60%{opacity:1;transform:scale(1.03)}100%{opacity:1;transform:none}}
/* Wide layout: lead list on the left (smaller), permit feed in the middle, territory map on the right (largest). */
@media (min-width:641px){
  :where([data-demo="steeples"]) .st-panes{grid-template-columns:30fr 29fr 41fr}
  :where([data-demo="steeples"]) .st-ct{white-space:normal}
  :where([data-demo="steeples"]) .st-lead{order:0;border-right:1px solid var(--line)}
  :where([data-demo="steeples"]) .st-mid{order:1}
  :where([data-demo="steeples"]) .st-side{order:2;border-right:0}
  :where([data-demo="steeples"]) .st-th,:where([data-demo="steeples"]) .st-li{grid-template-columns:minmax(0,1fr) calc(58*var(--u)) calc(42*var(--u));column-gap:calc(5*var(--u))}
  :where([data-demo="steeples"]) .st-th span:nth-child(3),:where([data-demo="steeples"]) .st-sg{display:none}
}
