body.cmep-page-state-detail #view-house.office-view.active{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
body.cmep-page-state-detail #view-house.office-view.active > .card.cm-card{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  grid-column:1 / -1 !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-overview{
  margin:0 0 1rem !important;
}
body.cmep-page-state-detail #view-house .house-overview-copy{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:.28rem !important;
  text-align:left !important;
  min-height:4.65rem !important;
  padding:.82rem .9rem !important;
  border:1px solid color-mix(in srgb, var(--cmep-line, rgba(148,163,184,.25)) 78%, transparent) !important;
  border-radius:18px !important;
  background:color-mix(in srgb, var(--cmep-panel-soft, rgba(248,250,252,.72)) 72%, transparent) !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-buckets{
  display:grid !important;
  gap:1rem !important;
}
body.cmep-page-state-detail #view-house .state-house-map-shell{
  margin:0 0 1rem !important;
  padding:1rem !important;
  border:1px solid var(--cmep-line, rgba(148,163,184,.26)) !important;
  border-radius:22px !important;
  background:linear-gradient(180deg, color-mix(in srgb, var(--cmep-panel-soft, rgba(248,250,252,.8)) 90%, transparent), var(--cmep-panel-soft, rgba(248,250,252,.72))) !important;
  box-shadow:0 12px 28px rgba(2,6,23,.06) !important;
}
body.cmep-page-state-detail #view-house .state-house-map-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:1rem !important;
  margin-bottom:.72rem !important;
}
body.cmep-page-state-detail #view-house .state-house-map-title{
  margin:0 !important;
  color:var(--cmep-text,#0f172a) !important;
  font-size:clamp(1.05rem,1.55vw,1.25rem) !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
}
body.cmep-page-state-detail #view-house .state-house-map-subtitle{
  margin:.24rem 0 0 !important;
  color:var(--cmep-muted,#64748b) !important;
  font-size:.84rem !important;
  line-height:1.35 !important;
  font-weight:750 !important;
}
body.cmep-page-state-detail #view-house .state-house-map-count{
  display:inline-flex !important;
  align-items:center !important;
  min-height:1.8rem !important;
  padding:.28rem .62rem !important;
  border:1px solid var(--cmep-line,rgba(148,163,184,.25)) !important;
  border-radius:999px !important;
  color:var(--cmep-muted,#64748b) !important;
  background:var(--cmep-panel,#fff) !important;
  font-size:.76rem !important;
  line-height:1 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}
body.cmep-page-state-detail #view-house .state-house-map-stage{position:relative !important;}
body.cmep-page-state-detail #view-house .state-house-map-canvas{
  width:100% !important;
  height:clamp(260px,43vw,500px) !important;
  overflow:hidden !important;
  border:1px solid color-mix(in srgb, var(--cmep-line,rgba(148,163,184,.24)) 82%, transparent) !important;
  border-radius:18px !important;
  background:color-mix(in srgb, var(--cmep-panel,#fff) 78%, transparent) !important;
}
body.cmep-page-state-detail #view-house .state-house-map-canvas > .maplibregl-map,
body.cmep-page-state-detail #view-house .state-house-map-canvas .maplibregl-canvas-container,
body.cmep-page-state-detail #view-house .state-house-map-canvas .maplibregl-canvas{
  width:100% !important;
  height:100% !important;
  border-radius:17px !important;
}
body.cmep-page-state-detail #view-house .state-house-map-canvas .maplibregl-ctrl-group{
  overflow:hidden !important;
  border:1px solid var(--cmep-line,rgba(148,163,184,.28)) !important;
  border-radius:14px !important;
  background:color-mix(in srgb, var(--cmep-panel,#fff) 92%, transparent) !important;
  box-shadow:0 10px 24px rgba(2,6,23,.12) !important;
}
body.cmep-page-state-detail #view-house .state-house-map-canvas .maplibregl-ctrl-group button{width:36px !important;height:36px !important;}
body.cmep-page-state-detail #view-house .state-house-map-reset{
  position:absolute !important;
  left:14px !important;
  right:auto !important;
  top:14px !important;
  z-index:8 !important;
  display:inline-flex !important;
  width:auto !important;
  min-height:2.15rem !important;
  padding:.45rem .72rem !important;
  border:1px solid var(--cmep-line,rgba(148,163,184,.3)) !important;
  border-radius:999px !important;
  background:var(--cmep-panel,#fff) !important;
  color:var(--cmep-text,#0f172a) !important;
  box-shadow:0 10px 24px rgba(2,6,23,.16) !important;
  font-size:.78rem !important;
  line-height:1 !important;
  font-weight:900 !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(-6px) !important;
  transition:opacity .18s ease,transform .18s ease !important;
}
body.cmep-page-state-detail #view-house .state-house-map-reset.show{opacity:1 !important;visibility:visible !important;pointer-events:auto !important;transform:translateY(0) !important;}
body.cmep-page-state-detail #view-house .state-house-map-detail{
  display:flex !important;
  align-items:baseline !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:.3rem .7rem !important;
  min-height:2.7rem !important;
  margin-top:.65rem !important;
  padding:.58rem .8rem !important;
  border:1px solid var(--cmep-line,rgba(148,163,184,.24)) !important;
  border-radius:14px !important;
  background:color-mix(in srgb, var(--cmep-panel,#fff) 76%, transparent) !important;
  color:var(--cmep-text,#0f172a) !important;
  text-align:center !important;
}
body.cmep-page-state-detail #view-house .state-house-map-detail strong{font-size:.92rem !important;font-weight:950 !important;}
body.cmep-page-state-detail #view-house .state-house-map-detail span{color:var(--cmep-muted,#64748b) !important;font-size:.82rem !important;font-weight:750 !important;}
body.cmep-page-state-detail #view-house .state-house-map-detail-link{
  color:var(--cmep-text,#0f172a) !important;
  font-size:.78rem !important;
  font-weight:950 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
body.cmep-page-state-detail #view-house .state-house-map-detail-link:hover{text-decoration:underline !important;}
.state-house-map-tooltip{
  position:fixed !important;
  z-index:100000 !important;
  min-width:220px !important;
  max-width:min(320px,calc(100vw - 16px)) !important;
  padding:.7rem .8rem !important;
  border:1px solid var(--border-subtle,rgba(148,163,184,.28)) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.94) !important;
  color:var(--text-main,#111827) !important;
  box-shadow:none !important;
  font-size:.9rem !important;
  line-height:1.25 !important;
  pointer-events:none !important;
  -webkit-backdrop-filter:blur(10px) !important;
  backdrop-filter:blur(10px) !important;
}
.state-house-map-tooltip.is-visible{display:block !important;opacity:1 !important;visibility:visible !important;}
.state-house-map-tooltip .state-house-map-tooltip-link{display:block !important;color:inherit !important;text-decoration:none !important;}
.state-house-map-tooltip .ct-head{margin:0 0 .35rem !important;color:var(--text-strong,#0f172a) !important;font-size:.95rem !important;font-weight:900 !important;line-height:1.15 !important;letter-spacing:-.01em !important;}
.state-house-map-tooltip .ct-summary{display:flex !important;flex-wrap:wrap !important;gap:.35rem !important;margin:0 0 .45rem !important;}
.state-house-map-tooltip .ct-rows{display:grid !important;gap:.36rem !important;}
.state-house-map-tooltip .ct-row{display:flex !important;align-items:center !important;justify-content:space-between !important;gap:.8rem !important;}
.state-house-map-tooltip .ct-left{min-width:0 !important;}
.state-house-map-tooltip .ct-name{color:var(--text-strong,#0f172a) !important;font-weight:850 !important;line-height:1.15 !important;}
.state-house-map-tooltip .ct-right{text-align:right !important;white-space:nowrap !important;}
.state-house-map-tooltip .ct-pct{font-weight:900 !important;font-variant-numeric:tabular-nums !important;}
.state-house-map-tooltip .ct-pct.d{color:var(--solid-d,#0076BA) !important;}
.state-house-map-tooltip .ct-pct.r{color:var(--solid-r,#EE220C) !important;}
.state-house-map-tooltip.mobile{left:50% !important;right:auto !important;top:auto !important;bottom:calc(env(safe-area-inset-bottom,0px) + 18px) !important;width:min(320px,calc(100vw - 28px)) !important;min-width:0 !important;max-width:calc(100vw - 28px) !important;transform:translateX(-50%) !important;pointer-events:auto !important;}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .state-house-map-tooltip{background:rgba(2,6,23,.94) !important;border-color:rgba(255,255,255,.14) !important;color:#e5e7eb !important;}}
body.cmep-page-state-detail #view-house .state-house-map-legend{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:.42rem .75rem !important;
  margin-top:.72rem !important;
  color:var(--cmep-muted,#64748b) !important;
}
body.cmep-page-state-detail #view-house .state-house-map-legend .rating-pill{box-sizing:border-box !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:1.72rem !important;padding:.39rem .68rem !important;border-radius:999px !important;border:1px solid transparent !important;box-shadow:none !important;color:#fff !important;font-size:.72rem !important;line-height:1 !important;font-weight:850 !important;letter-spacing:.01em !important;white-space:nowrap !important;}
body.cmep-page-state-detail #view-house .state-house-map-loading,
body.cmep-page-state-detail #view-house .state-house-map-unavailable{
  display:flex !important;
  align-items:center !important;
  gap:.55rem !important;
  color:var(--cmep-muted,#64748b) !important;
  font-size:.84rem !important;
  font-weight:800 !important;
}
body.cmep-page-state-detail #view-house .state-house-map-loading > span{
  width:.8rem !important;
  height:.8rem !important;
  border:2px solid var(--cmep-line,#cbd5e1) !important;
  border-top-color:var(--cmep-brand,var(--solid-d,#0076BA)) !important;
  border-radius:50% !important;
  animation:state-house-map-spin .8s linear infinite !important;
}
@keyframes state-house-map-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  body.cmep-page-state-detail #view-house .state-house-map-loading > span{animation:none !important;}
}
body.cmep-page-state-detail #view-house .house-forecast-tile.is-map-active{
  border-color:color-mix(in srgb, var(--cmep-brand,var(--solid-d,#0076BA)) 62%, var(--cmep-line,#cbd5e1)) !important;
  box-shadow:0 0 0 2px color-mix(in srgb, var(--cmep-brand,var(--solid-d,#0076BA)) 16%, transparent), 0 12px 24px rgba(2,6,23,.1) !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-bucket{
  border-radius:22px !important;
  border:1px solid var(--cmep-line, rgba(148,163,184,.26)) !important;
  background:linear-gradient(180deg, color-mix(in srgb, var(--cmep-panel-soft, rgba(248,250,252,.8)) 90%, transparent), var(--cmep-panel-soft, rgba(248,250,252,.72))) !important;
  padding:1rem !important;
  box-shadow:0 12px 28px rgba(2,6,23,.06) !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:1rem !important;
  margin:0 0 .8rem !important;
  padding:0 0 .72rem !important;
  border-bottom:1px solid var(--cmep-line, rgba(148,163,184,.24)) !important;
}
body.cmep-page-state-detail #view-house .house-bucket-title{
  margin:0 !important;
  font-size:clamp(1.05rem,1.55vw,1.25rem) !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  letter-spacing:-.02em !important;
  color:var(--cmep-text, #0f172a) !important;
}
body.cmep-page-state-detail #view-house .house-bucket-sub{
  margin-top:.22rem !important;
  font-size:.84rem !important;
  line-height:1.35 !important;
  font-weight:750 !important;
  color:var(--cmep-muted, #64748b) !important;
}
body.cmep-page-state-detail #view-house .house-bucket-right{
  display:flex !important;
  align-items:center !important;
  gap:.55rem !important;
  flex:0 0 auto !important;
}
body.cmep-page-state-detail #view-house .house-bucket-count{
  min-width:2.15rem !important;
  height:2.15rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  font-weight:950 !important;
  color:var(--cmep-text, #0f172a) !important;
  background:color-mix(in srgb, var(--cmep-panel, #fff) 88%, transparent) !important;
  border:1px solid var(--cmep-line, rgba(148,163,184,.28)) !important;
}
body.cmep-page-state-detail #view-house .house-bucket-split{
  display:flex !important;
  align-items:center !important;
  gap:.35rem !important;
  flex-wrap:wrap !important;
  justify-content:flex-end !important;
}
body.cmep-page-state-detail #view-house .house-bucket-party-count{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:1.65rem !important;
  padding:.24rem .56rem !important;
  border-radius:999px !important;
  font-size:.76rem !important;
  line-height:1 !important;
  font-weight:950 !important;
  background:var(--cmep-panel, #fff) !important;
  border:1px solid var(--cmep-line, rgba(148,163,184,.25)) !important;
}
body.cmep-page-state-detail #view-house .house-bucket-d{color:var(--solid-d,#0076BA) !important;}
body.cmep-page-state-detail #view-house .house-bucket-r{color:var(--solid-r,#EE220C) !important;}
body.cmep-page-state-detail #view-house .state-detail-house-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr)) !important;
  gap:.75rem !important;
  align-items:stretch !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-grid > .district-card,
body.cmep-page-state-detail #view-house .state-detail-house-grid > .district-tile,
body.cmep-page-state-detail #view-house .state-detail-house-grid > .house-forecast-tile{
  grid-column:auto !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
}
@media (min-width:900px){
  body.cmep-page-state-detail #view-house .state-detail-house-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (min-width:1200px){
  body.cmep-page-state-detail #view-house .state-detail-house-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media (min-width:1580px){
  body.cmep-page-state-detail #view-house .state-detail-house-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
}
body.cmep-page-state-detail #view-house .house-forecast-tile{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  gap:.82rem !important;
  min-height:10.25rem !important;
  padding:.92rem .95rem !important;
  text-decoration:none !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .district-topline{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:.65rem !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .district-name{
  font-size:1.05rem !important;
  line-height:1.05 !important;
  font-weight:1000 !important;
  letter-spacing:-.025em !important;
  color:var(--cmep-text,#0f172a) !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .district-top-pills{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:.34rem !important;
  flex-wrap:wrap !important;
}
body.cmep-page-state-detail #view-house .house-incumbent-meta{
  display:grid !important;
  gap:.22rem !important;
  margin-top:.55rem !important;
  min-width:0 !important;
}
body.cmep-page-state-detail #view-house .house-tile-label{
  font-size:.68rem !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:.11em !important;
  text-transform:uppercase !important;
  color:var(--cmep-muted,#64748b) !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .district-incumbent{
  min-height:1.45rem !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:.28rem !important;
  color:var(--cmep-text,#0f172a) !important;
  font-size:.86rem !important;
  line-height:1.22 !important;
  font-weight:850 !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .district-incumbent-none{
  color:var(--cmep-muted,#64748b) !important;
  font-style:normal !important;
}
body.cmep-page-state-detail #view-house .house-forecast-odds{
  display:grid !important;
  gap:.34rem !important;
  margin-top:auto !important;
}
body.cmep-page-state-detail #view-house .house-forecast-odds-labels{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:.75rem !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .prob-bar-wrapper{
  width:100% !important;
}
body.cmep-page-state-detail #view-house .house-forecast-tile .prob-bar{
  height:.54rem !important;
  border-radius:999px !important;
  overflow:hidden !important;
  background:color-mix(in srgb, var(--cmep-line, rgba(148,163,184,.26)) 68%, transparent) !important;
}
body.cmep-page-state-detail #view-house .house-prob-missing{
  margin-top:auto !important;
  font-size:.8rem !important;
  line-height:1.28 !important;
}
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) body.cmep-page-state-detail #view-house .house-overview-copy,
  html:not([data-theme="light"]) body.cmep-page-state-detail #view-house .state-house-map-shell,
  html:not([data-theme="light"]) body.cmep-page-state-detail #view-house .state-detail-house-bucket{
    background:linear-gradient(180deg,rgba(15,23,42,.78),rgba(15,23,42,.58)) !important;
    border-color:rgba(148,163,184,.24) !important;
    box-shadow:none !important;
  }
  html:not([data-theme="light"]) body.cmep-page-state-detail #view-house .house-forecast-tile{
    background:rgba(15,23,42,.72) !important;
    border-color:rgba(148,163,184,.23) !important;
  }
}
html[data-theme="dark"] body.cmep-page-state-detail #view-house .house-overview-copy,
html[data-theme="dark"] body.cmep-page-state-detail #view-house .state-house-map-shell,
html[data-theme="dark"] body.cmep-page-state-detail #view-house .state-detail-house-bucket{
  background:linear-gradient(180deg,rgba(15,23,42,.78),rgba(15,23,42,.58)) !important;
  border-color:rgba(148,163,184,.24) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body.cmep-page-state-detail #view-house .house-forecast-tile{
  background:rgba(15,23,42,.72) !important;
  border-color:rgba(148,163,184,.23) !important;
}
@media (min-width:1900px){
  body.cmep-page-state-detail #view-house .state-detail-house-grid{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  }
}
@media (max-width:720px){
  body.cmep-page-state-detail #view-house .state-house-map-shell{padding:.84rem !important;border-radius:20px !important;}
  body.cmep-page-state-detail #view-house .state-house-map-canvas{min-height:230px !important;border-radius:16px !important;}
  body.cmep-page-state-detail #view-house .state-house-map-head{align-items:center !important;}
  body.cmep-page-state-detail #view-house .state-house-map-subtitle{max-width:18rem !important;}
  body.cmep-page-state-detail #view-house .state-detail-house-bucket{ padding:.84rem !important; border-radius:20px !important; }
  body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head{ flex-direction:column !important; gap:.62rem !important; }
  body.cmep-page-state-detail #view-house .house-bucket-right{ width:100% !important; justify-content:space-between !important; }
  body.cmep-page-state-detail #view-house .state-detail-house-grid{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.cmep-page-state-detail #view-house .house-forecast-tile{ min-height:9.5rem !important; padding:.78rem !important; }
  body.cmep-page-state-detail #view-house .house-forecast-tile .district-topline{ flex-direction:column !important; align-items:flex-start !important; gap:.44rem !important; }
  body.cmep-page-state-detail #view-house .house-forecast-tile .district-name{ font-size:1rem !important; }
}
@media (max-width:430px){
  body.cmep-page-state-detail #view-house .state-detail-house-grid{ grid-template-columns:1fr !important; }
  body.cmep-page-state-detail #view-house .house-forecast-tile{ min-height:0 !important; }
}
@media (min-width:1100px){
  body.cmep-page-state-detail #view-house .state-detail-house-layout{
    display:grid !important;
    grid-template-columns:minmax(0,3fr) minmax(400px,2fr) !important;
    gap:1rem !important;
    align-items:start !important;
  }
  body.cmep-page-state-detail #view-house .state-detail-house-list{
    grid-column:1 !important;
    min-width:0 !important;
  }
  body.cmep-page-state-detail #view-house .state-house-map-shell{
    grid-column:2 !important;
    align-self:start !important;
    min-width:0 !important;
    margin:0 !important;
    position:sticky !important;
    top:1rem !important;
  }
  body.cmep-page-state-detail #view-house .state-house-map-canvas{
    height:clamp(360px,34vw,520px) !important;
  }
  body.cmep-page-state-detail #view-house .state-detail-house-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* 2026-07-07: center House bucket titles/subheaders while keeping split/count pills anchored right. */
body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head{
  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;
  justify-content:stretch !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head > :first-child{
  grid-column:2 !important;
  justify-self:center !important;
  text-align:center !important;
  min-width:0 !important;
}
body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head > .house-bucket-right{
  grid-column:3 !important;
  justify-self:end !important;
}
body.cmep-page-state-detail #view-house .house-bucket-title,
body.cmep-page-state-detail #view-house .house-bucket-sub{
  text-align:center !important;
}
@media (max-width:720px){
  body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
  }
  body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head > :first-child,
  body.cmep-page-state-detail #view-house .state-detail-house-bucket .house-bucket-head > .house-bucket-right{
    grid-column:auto !important;
    justify-self:auto !important;
  }
  body.cmep-page-state-detail #view-house .house-bucket-right{
    justify-content:center !important;
  }
}
