[hidden]{display:none!important}\n
:root{color-scheme:light;--ink:#102f43;--muted:#617789;--blue:#0d82cc;--line:#dbe8f0;--panel:#fff;--soft:#f4f9fc;--green:#2ca66f;--green-soft:#e8f8f0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(circle at 85% 0%,rgba(69,169,229,.16),transparent 30%),linear-gradient(180deg,#f7fbfd,#edf5f9)}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}
.app-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:24px 0 48px}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:8px 4px 24px}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e4f4ff;color:#0b82cc;font-size:24px}.brand small{display:block;color:#2683bd;font-weight:800;letter-spacing:.08em}.brand strong{display:block;font-size:18px}.build-badge{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.75);font-size:12px;font-weight:750;color:#4f6b7e}
.hero{display:grid;grid-template-columns:1.15fr .85fr;min-height:330px;overflow:hidden;border:1px solid rgba(170,198,215,.75);border-radius:30px;background:linear-gradient(120deg,#fff 0 52%,#dff1fb 100%);box-shadow:0 22px 50px rgba(57,99,123,.13)}.hero-copy{align-self:center;padding:52px}.eyebrow{display:block;margin-bottom:10px;color:#1d80bb;font-size:12px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}h1{max-width:760px;margin:0;font-size:clamp(38px,5vw,62px);line-height:.98;letter-spacing:-.045em}.hero p{max-width:670px;margin:24px 0 0;color:var(--muted);font-size:18px;line-height:1.55}.hero-visual{position:relative;display:grid;place-items:end center;padding:34px;background:linear-gradient(145deg,rgba(255,255,255,.25),rgba(69,153,205,.08))}.building{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:min(420px,85%);aspect-ratio:1.3;padding:24px;border:1px solid rgba(20,93,134,.25);border-radius:18px 18px 4px 4px;background:linear-gradient(145deg,#1e4d68,#0e2d41);box-shadow:0 30px 55px rgba(25,68,92,.28)}.building span{border-radius:4px;background:linear-gradient(145deg,#c9efff,#4da6d0 70%,#244f68)}
.progress{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.step{display:flex;gap:10px;align-items:center;padding:15px 17px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.7);color:#7a8d9b;text-align:left}.step span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#eaf1f5;font-size:12px}.step strong{font-size:13px}.step.active{border-color:#83c7ed;background:#fff;color:#0d77b6;box-shadow:0 10px 25px rgba(53,126,169,.09)}.step.active span{background:#dcf2ff}.step.done{color:#238355;border-color:#bce5cf;background:#fbfffd}.step.done span{background:#dcf6e8}
.journey-panel{display:none}.journey-panel.active{display:block;animation:panel-in .28s ease both}@keyframes panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.content-card{padding:38px;border:1px solid var(--line);border-radius:26px;background:var(--panel);box-shadow:0 18px 40px rgba(44,92,119,.09)}.section-heading h2{margin:0;font-size:34px;letter-spacing:-.03em}.section-heading p{max-width:800px;margin:10px 0 0;color:var(--muted);font-size:16px;line-height:1.55}.split-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.business-chip,.roof-source-chip{min-width:190px;padding:13px 16px;border:1px solid var(--line);border-radius:15px;background:var(--soft)}.business-chip span,.roof-source-chip span{display:block;color:#78909f;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.business-chip strong,.roof-source-chip strong{display:block;margin-top:4px;font-size:14px}
.search-form,.site-search-form{display:grid;grid-template-columns:1.2fr .8fr auto;gap:14px;align-items:end;margin-top:30px}.site-search-form{grid-template-columns:1fr auto}label span{display:block;margin:0 0 8px;font-size:13px;font-weight:800}label em{font-style:normal;color:#8496a3;font-weight:600}input,select{width:100%;height:54px;padding:0 16px;border:1px solid #cddde7;border-radius:14px;background:#fbfdfe;color:var(--ink);outline:none}select{appearance:auto}input:focus,select:focus{border-color:#58afe0;box-shadow:0 0 0 4px rgba(63,166,225,.13)}
.search-form button,.site-search-form button,.primary-button,.result-card button{height:54px;padding:0 22px;border:0;border-radius:14px;background:linear-gradient(180deg,#20a5e8,#0782ca);color:#fff;font-weight:850;box-shadow:0 12px 24px rgba(15,137,203,.22)}.secondary-button{height:54px;padding:0 22px;border:1px solid #cddde7;border-radius:14px;background:#fff;color:#436173;font-weight:800}.message{margin-top:18px;padding:14px 16px;border-radius:14px;background:#eef8fe;color:#236a94;font-weight:700;line-height:1.45}.message.error{background:#fff0f0;color:#a43b3b}
.result-card{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;margin-top:22px;padding:20px;border:1px solid #bfe0f2;border-radius:20px;background:linear-gradient(145deg,#fafdff,#edf8fe)}.result-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#dff3ff;color:#1083c7;font-size:26px}.result-kicker{color:#2484bd;font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.result-copy h3,.selected-site-card h3,.roof-confirmed-card h3{margin:4px 0 5px;font-size:21px}.result-copy p,.selected-site-card p,.roof-confirmed-card p{margin:0 0 8px;color:#4f6879}.result-copy small{color:#768c9b}
.address-results{margin-top:20px}.manual-divider{display:flex;align-items:center;gap:14px;margin:25px 0;color:#8396a4;font-size:12px;font-weight:750}.manual-divider:before,.manual-divider:after{content:"";height:1px;flex:1;background:var(--line)}.manual-site-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:14px}.selected-site-card{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:22px;padding:20px;border:1px solid #bfe0f2;border-radius:20px;background:linear-gradient(145deg,#fafdff,#edf8fe)}.ready-pill,.report-status,.pending-label{display:inline-flex;padding:8px 11px;border-radius:999px;background:#e6f6ff;color:#167bb4;font-size:11px;font-weight:850;white-space:nowrap}.ready-pill.ready{background:var(--green-soft);color:#27865b}.panel-actions{display:flex;justify-content:space-between;gap:14px;margin-top:28px}
.roof-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:26px 0;padding:0;list-style:none}.roof-progress li{display:flex;gap:8px;align-items:center;padding:10px 11px;border-radius:12px;background:#f3f7f9;color:#7b8f9d;font-size:11px;font-weight:800}.roof-progress li span{width:8px;height:8px;border-radius:50%;background:#c7d5dd}.roof-progress li.active{background:#eaf7ff;color:#147db8}.roof-progress li.active span{background:#1c9bdd;box-shadow:0 0 0 5px rgba(28,155,221,.12)}.roof-progress li.done{background:#eaf8f1;color:#2b815b}.roof-progress li.done span{background:#32aa75}.roof-progress li.error{background:#fff0f0;color:#a43b3b}
.map-shell{position:relative;overflow:hidden;border:1px solid #b8d6e6;border-radius:22px;background:#dbe9f0;box-shadow:0 18px 42px rgba(31,82,111,.14)}#businessRoofMap{width:100%;height:610px;min-height:610px;background:#dbe9f0}.map-overlay{position:absolute;z-index:500;max-width:min(430px,calc(100% - 28px));padding:11px 13px;border:1px solid rgba(255,255,255,.5);border-radius:13px;background:rgba(10,40,57,.84);backdrop-filter:blur(12px);color:#fff;box-shadow:0 10px 25px rgba(0,0,0,.18)}.map-overlay.top-left{top:14px;left:14px}.map-overlay.bottom-left{bottom:14px;left:14px}.map-overlay span{display:block;font-size:11px;line-height:1.4;color:rgba(255,255,255,.82)}.map-overlay strong{display:block;margin-top:3px;font-size:14px}
.roof-confirmed-card{display:grid;grid-template-columns:auto 1fr;gap:15px;align-items:center;margin-top:18px;padding:18px;border:1px solid #b8e3ca;border-radius:18px;background:#f6fffa}.roof-check{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#dff7e9;color:#23885a;font-size:22px;font-weight:900}
.report-title{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.report-title h2{margin:0;font-size:48px;letter-spacing:-.045em}.report-title p{max-width:720px;color:var(--muted);line-height:1.55}.report-identity{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:28px}.report-identity div{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}.report-identity span{display:block;color:#718796;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.report-identity strong{display:block;margin-top:7px;font-size:14px;line-height:1.35}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:18px}.report-feature{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff}.report-feature.feature-primary{border-color:#a9d9f3;background:linear-gradient(145deg,#fbfeff,#ecf8ff)}.report-number{color:#1a86c3;font-size:11px;font-weight:900;letter-spacing:.1em}.report-feature h3{margin:11px 0 8px;font-size:20px}.report-feature p{min-height:76px;margin:0 0 18px;color:var(--muted);line-height:1.5}.pending-label{background:#eef5f8;color:#68808f}.report-callout{margin-top:18px;padding:28px;border-radius:22px;background:linear-gradient(135deg,#103a52,#0a2536);color:#fff}.report-callout span{color:#75c9f3;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.report-callout h3{margin:10px 0 8px;font-size:30px;letter-spacing:-.03em}.report-callout p{max-width:760px;margin:0;color:rgba(255,255,255,.74);line-height:1.55}footer{padding:22px 4px;color:#78909f;font-size:12px}.leaflet-control-attribution{font-size:9px}
@media(max-width:900px){.hero{grid-template-columns:1fr}.hero-copy{padding:38px 28px}.hero-visual{min-height:250px}.progress{grid-template-columns:1fr 1fr}.search-form{grid-template-columns:1fr}.report-identity{grid-template-columns:1fr 1fr}.report-grid{grid-template-columns:1fr}}
@media(max-width:700px){.app-shell{width:min(100% - 20px,1180px)}.build-badge{display:none}.hero{border-radius:23px}.hero-copy{padding:30px 22px}h1{font-size:40px}.hero p{font-size:16px}.progress{grid-template-columns:1fr}.content-card{padding:24px 18px}.split-heading,.report-title{display:block}.business-chip,.roof-source-chip{margin-top:18px}.site-search-form,.manual-site-grid{grid-template-columns:1fr}.result-card{grid-template-columns:auto 1fr}.result-card button{grid-column:1/-1;width:100%}.selected-site-card{display:block}.ready-pill{margin-top:12px}.roof-progress{grid-template-columns:1fr 1fr}#businessRoofMap{height:480px;min-height:480px}.panel-actions{flex-direction:column-reverse}.panel-actions button{width:100%}.report-identity{grid-template-columns:1fr}.report-title h2{font-size:38px}}

/* DIRECT BUILDING CONFIRMATION 20260806 */

.journey-panel[data-stage="3"] {
  width: min(100%, 980px);
  margin-inline: auto;
}

.journey-panel[data-stage="3"] .building-confirmation-card {
  padding: 38px;
  border: 1px solid rgba(24, 48, 62, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 24px 65px rgba(24, 54, 70, 0.08),
    0 2px 8px rgba(24, 54, 70, 0.04);
}

.journey-panel[data-stage="3"] .roof-heading {
  position: relative;
  display: block;
  padding-inline: 105px;
  text-align: center;
}

.journey-panel[data-stage="3"] .roof-heading .eyebrow {
  margin-bottom: 12px;
}

.journey-panel[data-stage="3"] #roofSearchHeading {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.journey-panel[data-stage="3"] #roofSearchStatus {
  max-width: 650px;
  margin: 17px auto 0;
  color: rgba(31, 58, 72, 0.67);
  font-size: 1rem;
  line-height: 1.55;
}

.journey-panel[data-stage="3"] .roof-source-chip {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 96px;
  padding: 9px 12px;
  border: 1px solid rgba(25, 125, 81, 0.15);
  border-radius: 16px;
  background: rgba(237, 248, 242, 0.9);
}

.journey-panel[data-stage="3"] .roof-source-chip span,
.journey-panel[data-stage="3"] .roof-source-chip strong {
  display: block;
  text-align: center;
}

.journey-panel[data-stage="3"].is-confirmed-route .roof-progress {
  display: none;
}

.journey-panel[data-stage="3"] .map-shell {
  margin-top: 30px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #e9eef0;
  box-shadow:
    inset 0 0 0 1px rgba(23, 47, 61, 0.08),
    0 8px 28px rgba(24, 54, 70, 0.08);
}

.journey-panel[data-stage="3"] #businessRoofMap {
  height: 500px !important;
  min-height: 500px !important;
}

.journey-panel[data-stage="3"] .map-overlay.top-left {
  display: none !important;
}

.journey-panel[data-stage="3"].is-confirmed-route
  .map-overlay.bottom-left {
  display: none !important;
}

.journey-panel[data-stage="3"].is-manual-route
  .map-overlay.bottom-left {
  display: block;
}

.journey-panel[data-stage="3"] #roofConfirmedCard {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 24px 4px 22px;
  border: 0;
  border-bottom: 1px solid rgba(24, 48, 62, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.journey-panel[data-stage="3"] #roofConfirmedCard .roof-check {
  width: 38px;
  height: 38px;
  box-shadow: none;
}

.journey-panel[data-stage="3"] #roofConfirmedCard .result-kicker {
  color: #21805a;
}

.journey-panel[data-stage="3"] #confirmedRoofAddress {
  margin-top: 3px;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.journey-panel[data-stage="3"] #confirmedRoofCoords {
  margin-top: 5px;
  color: rgba(31, 58, 72, 0.58);
  font-size: 0.88rem;
}

.journey-panel[data-stage="3"] #epcBookingRoofCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 20px 4px;
  border: 0;
  border-bottom: 1px solid rgba(24, 48, 62, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.journey-panel[data-stage="3"] #epcBookingRoofCard .eyebrow {
  color: #9a681c;
}

.journey-panel[data-stage="3"] #epcBookingRoofCard h3 {
  margin: 3px 0 4px;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.journey-panel[data-stage="3"] #epcBookingRoofCard p {
  max-width: 630px;
  margin: 0;
  color: rgba(31, 58, 72, 0.65);
  font-size: 0.89rem;
  line-height: 1.45;
}

.journey-panel[data-stage="3"] #epcBookingRoofCard small {
  display: none;
}

.journey-panel[data-stage="3"]
  #epcBookingRoofCard [data-book-epc] {
  flex: 0 0 auto;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #087fc3;
  font-size: 0.93rem;
  font-weight: 750;
}

.journey-panel[data-stage="3"]
  #epcBookingRoofCard [data-book-epc]:hover {
  text-decoration: underline;
  transform: none;
}

.journey-panel[data-stage="3"] .panel-actions {
  align-items: center;
  margin-top: 22px;
}

.journey-panel[data-stage="3"] .panel-actions button {
  min-height: 48px;
  border-radius: 14px;
}

.journey-panel[data-stage="3"] #confirmRoofButton {
  min-width: 170px;
  padding-inline: 26px;
}

@media (max-width: 760px) {
  .journey-panel[data-stage="3"] .building-confirmation-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .journey-panel[data-stage="3"] .roof-heading {
    padding-inline: 0;
  }

  .journey-panel[data-stage="3"] .roof-source-chip {
    position: static;
    width: max-content;
    margin: 18px auto 0;
  }

  .journey-panel[data-stage="3"] #businessRoofMap {
    height: 390px !important;
    min-height: 390px !important;
  }

  .journey-panel[data-stage="3"] #epcBookingRoofCard {
    display: block;
  }

  .journey-panel[data-stage="3"]
    #epcBookingRoofCard [data-book-epc] {
    margin-top: 10px;
  }
}

/* ENERGY OPPORTUNITY ANIMATION 20260806 */

#opportunityRoofMap {
  position: relative;
  overflow: hidden;
}

#opportunityRoofMap
  .opportunity-panel-canvas {
  display: none !important;
}

.energy-opportunity-layer {
  position: absolute;
  inset: 0;
  z-index: 650;
  overflow: hidden;
  pointer-events: none;
}

.energy-opportunity-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.energy-roof-outline {
  fill: rgba(245, 199, 65, 0.09);
  stroke: #f2c63d;
  stroke-width: 4;
  stroke-linejoin: round;
}

.energy-sun-sweep {
  opacity: 0;
}

.energy-flow {
  fill: none;
  stroke: #24a7df;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  path-length: 1;
}

.energy-flow-one {
  stroke-width: 4;
}

.energy-flow-two {
  stroke-width: 3;
  opacity: 0.72;
}

.energy-flow-three {
  stroke-width: 2;
  opacity: 0.48;
}

.energy-destination-node {
  fill: #24a7df;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 4;
  opacity: 0;
}

.energy-opportunity-result {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: 230px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  background: rgba(15, 38, 51, 0.89);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  backdrop-filter: blur(12px);
}

.energy-opportunity-result span,
.energy-opportunity-result strong {
  display: block;
}

.energy-opportunity-result span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.energy-opportunity-result strong {
  font-size: 0.91rem;
  line-height: 1.25;
}

.energy-opportunity-layer.is-playing
  .energy-roof-outline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  path-length: 1;
  animation:
    new-energy-roof-draw
    0.65s
    ease-out
    0.12s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-sun-sweep {
  animation:
    new-energy-sun-sweep
    0.9s
    ease-in-out
    0.65s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-flow-one {
  animation:
    new-energy-flow
    0.76s
    ease-out
    1.15s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-flow-two {
  animation:
    new-energy-flow
    0.82s
    ease-out
    1.27s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-flow-three {
  animation:
    new-energy-flow
    0.88s
    ease-out
    1.39s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-destination-node {
  animation:
    new-energy-node
    0.42s
    ease-out
    1.85s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-opportunity-result {
  animation:
    new-energy-result
    0.5s
    ease-out
    1.95s
    forwards;
}

.energy-opportunity-layer.is-settled
  .energy-roof-outline {
  stroke-dashoffset: 0;
}

.energy-opportunity-layer.is-settled
  .energy-flow {
  stroke-dashoffset: 0;
}

.energy-opportunity-layer.is-settled
  .energy-destination-node,
.energy-opportunity-layer.is-settled
  .energy-opportunity-result {
  opacity: 1;
  transform: none;
}

@keyframes new-energy-roof-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes new-energy-sun-sweep {
  0% {
    opacity: 0;
    transform: translateX(-115px);
  }

  18% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(260px);
  }
}

@keyframes new-energy-flow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes new-energy-node {
  0% {
    opacity: 0;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes new-energy-result {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-opportunity-layer
    .energy-roof-outline,
  .energy-opportunity-layer
    .energy-flow {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .energy-opportunity-layer
    .energy-sun-sweep {
    display: none;
  }

  .energy-opportunity-layer
    .energy-destination-node,
  .energy-opportunity-layer
    .energy-opportunity-result {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .energy-opportunity-result {
    top: 12px;
    right: 12px;
    max-width: 185px;
  }
}

/* SIMPLE ROOF OPPORTUNITY ANIMATION 20260806 */

.energy-flow,
.energy-destination-node,
.energy-opportunity-result {
  display: none !important;
}

.energy-map-dim {
  fill: rgba(11, 29, 39, 0.28);
  opacity: 0;
}

.energy-roof-outline {
  fill: rgba(245, 199, 61, 0.07);
  stroke: #f2c63d;
  stroke-width: 4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.energy-sun-sweep {
  opacity: 0;
}

.energy-opportunity-layer.is-playing
  .energy-roof-outline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  path-length: 1;
  animation:
    simple-roof-trace
    0.6s
    ease-out
    0.1s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-sun-sweep {
  animation:
    simple-sun-sweep
    0.78s
    ease-in-out
    0.58s
    forwards;
}

.energy-opportunity-layer.is-playing
  .energy-map-dim {
  animation:
    simple-map-dim
    0.42s
    ease-out
    1.15s
    forwards;
}

.energy-opportunity-layer.is-settled
  .energy-roof-outline {
  stroke-dashoffset: 0;
}

.energy-opportunity-layer.is-settled
  .energy-map-dim {
  opacity: 1;
}

#opportunityRoofMap
  .commercial-layout-v2-badge {
  top: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  left: auto !important;
  width: min(250px, calc(100% - 32px));
  padding: 13px 15px !important;
  border: 1px solid rgba(24, 52, 67, 0.12) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
  color: #183442 !important;
  opacity: 0;
  transform: translateY(8px);
  backdrop-filter: blur(12px);
}

#opportunityRoofMap
  .commercial-layout-v2-badge
  span {
  color: #258158 !important;
}

#opportunityRoofMap
  .commercial-layout-v2-badge
  strong {
  color: #183442 !important;
}

#opportunityRoofMap
  .commercial-layout-v2-badge
  em {
  color: rgba(24, 52, 67, 0.65) !important;
}

#opportunityRoofMap.energy-animation-playing
  .commercial-layout-v2-badge {
  animation:
    simple-result-reveal
    0.46s
    ease-out
    1.25s
    forwards;
}

#opportunityRoofMap.energy-animation-settled
  .commercial-layout-v2-badge {
  opacity: 1;
  transform: none;
}

@keyframes simple-roof-trace {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes simple-sun-sweep {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(235px);
  }
}

@keyframes simple-map-dim {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes simple-result-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-roof-outline {
    stroke-dashoffset: 0 !important;
  }

  .energy-sun-sweep {
    display: none !important;
  }

  .energy-map-dim {
    opacity: 1 !important;
  }

  #opportunityRoofMap
    .commercial-layout-v2-badge {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* SUBTLE FOOTPRINT CONFIRMATION 20260806 */

/* Remove all previous experimental map animation layers. */
.energy-opportunity-layer,
.energy-flow,
.energy-destination-node,
.energy-opportunity-result,
.energy-map-dim,
.energy-sun-sweep {
  display: none !important;
}

#opportunityRoofMap
  .commercial-layout-v2-badge {
  display: none !important;
}

/* Keep the confirmed footprint clear and evidence-led. */
.opportunity-footprint-confirmed {
  vector-effect: non-scaling-stroke;
  filter: none;
}

.opportunity-footprint-pulse {
  animation:
    opportunity-footprint-confirm
    0.72s
    cubic-bezier(0.22, 0.7, 0.25, 1)
    both;
}

/* The result below the map supplies the meaning. */
.opportunity-result-callout {
  opacity: 1;
  transform: none;
}

.opportunity-result-callout.opportunity-callout-reveal {
  animation:
    opportunity-result-reveal
    0.52s
    cubic-bezier(0.22, 0.7, 0.25, 1)
    both;
}

.opportunity-result-callout.opportunity-callout-settled {
  opacity: 1;
  transform: none;
}

@keyframes opportunity-footprint-confirm {
  0% {
    stroke-width: 3;
    stroke-opacity: 0.72;
    fill-opacity: 0.05;
    filter: none;
  }

  45% {
    stroke-width: 6;
    stroke-opacity: 1;
    fill-opacity: 0.14;
    filter:
      drop-shadow(
        0 0 5px
        rgba(242, 198, 61, 0.5)
      );
  }

  100% {
    stroke-width: 3;
    stroke-opacity: 1;
    fill-opacity: 0.07;
    filter: none;
  }
}

@keyframes opportunity-result-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opportunity-footprint-pulse,
  .opportunity-result-callout {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* STATIC OPPORTUNITY REDESIGN 20260806 */

.opportunity-static-redesign {
  max-width: 1080px;
  margin-inline: auto;
  padding: 38px;
  border-radius: 30px;
}

.opportunity-static-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}

.opportunity-static-heading h2 {
  max-width: 720px;
  margin: 5px 0 10px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.opportunity-static-heading p {
  max-width: 760px;
  color: rgba(31, 58, 72, 0.68);
  line-height: 1.55;
}

.opportunity-static-redesign
  .opportunity-property-strip {
  margin-bottom: 18px;
}

.opportunity-static-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(270px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.opportunity-static-map {
  min-width: 0;
}

.opportunity-static-map
  #opportunityRoofMap {
  min-height: 500px;
}

.opportunity-static-map
  .opportunity-map-footer {
  padding: 13px 4px 0;
}

.opportunity-static-map
  .opportunity-map-footer strong,
.opportunity-static-map
  .opportunity-map-footer span {
  display: block;
}

.opportunity-static-map
  .opportunity-map-footer span {
  margin-top: 3px;
  color: rgba(31, 58, 72, 0.58);
}

.opportunity-evidence-summary {
  overflow: hidden;
  border: 1px solid rgba(24, 48, 62, 0.1);
  border-radius: 20px;
  background: rgba(250, 252, 253, 0.96);
}

.opportunity-summary-heading {
  padding: 21px 22px 17px;
  border-bottom: 1px solid rgba(24, 48, 62, 0.09);
}

.opportunity-summary-heading h3 {
  margin: 5px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.opportunity-evidence-row {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(24, 48, 62, 0.08);
}

.opportunity-evidence-row:last-child {
  border-bottom: 0;
}

.opportunity-evidence-row > span,
.opportunity-evidence-row > strong,
.opportunity-evidence-row > small {
  display: block;
}

.opportunity-evidence-row > span {
  margin-bottom: 5px;
  color: rgba(31, 58, 72, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.opportunity-evidence-row > strong {
  font-size: 1rem;
  line-height: 1.3;
}

.opportunity-evidence-row > small {
  margin-top: 6px;
  color: rgba(31, 58, 72, 0.58);
  line-height: 1.4;
}

/* Keep the EPC action useful but secondary. */
#epcBookingResultCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 18px 0;
  padding: 17px 20px;
  border: 1px solid rgba(154, 104, 28, 0.2);
  border-radius: 16px;
  background: rgba(255, 249, 236, 0.72);
  box-shadow: none;
}

#epcBookingResultCard h3 {
  margin: 3px 0 4px;
  font-size: 1rem;
}

#epcBookingResultCard p {
  margin: 0;
  font-size: 0.88rem;
}

#epcBookingResultCard small {
  display: none;
}

#epcBookingResultCard [data-book-epc] {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: none;
}

.opportunity-static-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 23px 25px;
  border: 1px solid rgba(33, 128, 90, 0.18);
  border-radius: 19px;
  background: rgba(238, 249, 243, 0.86);
}

.opportunity-result-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(41, 160, 107, 0.12);
  color: #21805a;
  font-size: 1.05rem;
  font-weight: 850;
}

.opportunity-static-result span {
  color: #21805a;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.opportunity-static-result h3 {
  margin: 5px 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  letter-spacing: -0.035em;
}

.opportunity-static-result p {
  max-width: 790px;
  margin: 0;
  color: rgba(31, 58, 72, 0.65);
  line-height: 1.5;
}

.opportunity-static-next-step {
  margin-top: 14px;
  padding: 20px 22px;
  border-radius: 17px;
}

/* Remove all abandoned experimental visual layers. */
.energy-opportunity-layer,
.opportunity-panel-canvas,
.commercial-layout-v2-badge {
  display: none !important;
}

@media (max-width: 820px) {
  .opportunity-static-redesign {
    padding: 25px 20px;
    border-radius: 24px;
  }

  .opportunity-static-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-static-map
    #opportunityRoofMap {
    min-height: 410px;
  }

  #epcBookingResultCard {
    display: block;
  }

  #epcBookingResultCard
    [data-book-epc] {
    width: 100%;
    margin-top: 13px;
  }
}

/* BUILDING RECOGNITION MAP 20260807 */

/*
 * The mask visually separates the matched building from its
 * surroundings. The hole is the real building footprint supplied
 * by the commercial roof/OS geometry — not an invented solar area.
 */
#opportunityRoofMap .opportunity-building-mask {
  pointer-events: none;
  animation:
    opportunity-building-focus-in
    0.55s
    cubic-bezier(0.22, 0.7, 0.25, 1)
    both;
}

#opportunityRoofMap .opportunity-building-footprint {
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: none;
}

/*
 * Reuse the existing confirmed-footprint trigger, but make it feel
 * like the mapping has locked onto the building rather than making
 * the yellow polygon simply glow.
 */
#opportunityRoofMap
  .opportunity-building-footprint.opportunity-footprint-pulse {
  animation:
    opportunity-building-lock
    0.8s
    cubic-bezier(0.2, 0.72, 0.24, 1)
    both;
}

#opportunityRoofMap
  .opportunity-building-footprint.opportunity-footprint-confirmed {
  stroke-width: 3;
  stroke-opacity: 1;
  fill-opacity: 0.035;
  filter: none;
}

@keyframes opportunity-building-focus-in {
  from {
    fill-opacity: 0;
  }

  to {
    fill-opacity: 0.28;
  }
}

@keyframes opportunity-building-lock {
  0% {
    stroke-width: 1.5;
    stroke-opacity: 0.2;
    fill-opacity: 0;
  }

  42% {
    stroke-width: 5;
    stroke-opacity: 1;
    fill-opacity: 0.11;
    filter:
      drop-shadow(
        0 0 4px
        rgba(242, 198, 61, 0.42)
      );
  }

  100% {
    stroke-width: 3;
    stroke-opacity: 1;
    fill-opacity: 0.035;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #opportunityRoofMap .opportunity-building-mask,
  #opportunityRoofMap
    .opportunity-building-footprint.opportunity-footprint-pulse {
    animation: none !important;
  }

  #opportunityRoofMap .opportunity-building-mask {
    fill-opacity: 0.28;
  }
}

/* VISUAL BUILDING LOCK EXPERIENCE 20260807 */

#opportunityRoofMap {
  overflow: hidden;
}

#opportunityRoofMap .opportunity-building-mask {
  transition:
    fill-opacity
    380ms
    cubic-bezier(0.22, 0.7, 0.25, 1);
}

.opportunity-building-lock-visual {
  position: absolute;
  z-index: 650;
  pointer-events: none;
  overflow: visible;
}

.opportunity-building-roof-scan {
  position: absolute;
  inset: -8px;
  opacity: 0;
  overflow: hidden;
}

.opportunity-building-roof-scan::after {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -38%;
  width: 26%;
  opacity: 0;
  transform: skewX(-12deg);
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0),
      rgba(255,238,162,0.12),
      rgba(255,231,128,0.68),
      rgba(255,255,255,0)
    );
}

.opportunity-building-lock-visual.is-recognising
  .opportunity-building-roof-scan {
  opacity: 1;
}

.opportunity-building-lock-visual.is-recognising
  .opportunity-building-roof-scan::after {
  animation:
    opportunity-roof-scan
    620ms
    cubic-bezier(0.2,0.7,0.25,1)
    forwards;
}

.opportunity-building-target {
  position: absolute;
  inset: -10px;
}

.opportunity-target-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0;
  color: #f2c63d;
}

.opportunity-target-corner::before,
.opportunity-target-corner::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.opportunity-target-corner::before {
  width: 16px;
  height: 2px;
}

.opportunity-target-corner::after {
  width: 2px;
  height: 16px;
}

.opportunity-target-corner.tl {
  top: 0;
  left: 0;
  transform: translate(-18px,-18px);
}

.opportunity-target-corner.tr {
  top: 0;
  right: 0;
  transform: translate(18px,-18px);
}

.opportunity-target-corner.bl {
  bottom: 0;
  left: 0;
  transform: translate(-18px,18px);
}

.opportunity-target-corner.br {
  bottom: 0;
  right: 0;
  transform: translate(18px,18px);
}

.opportunity-target-corner.tr::before,
.opportunity-target-corner.br::before {
  right: 0;
}

.opportunity-target-corner.tr::after,
.opportunity-target-corner.br::after {
  right: 0;
}

.opportunity-target-corner.bl::before,
.opportunity-target-corner.br::before {
  bottom: 0;
}

.opportunity-target-corner.bl::after,
.opportunity-target-corner.br::after {
  bottom: 0;
}

.opportunity-building-lock-visual.is-recognising
  .opportunity-target-corner {
  animation:
    opportunity-target-lock
    660ms
    cubic-bezier(0.18,0.78,0.25,1)
    forwards;
}

.opportunity-building-lock-visual.is-recognising
  .opportunity-target-corner.tl,
.opportunity-building-lock-visual.is-recognising
  .opportunity-target-corner.tr {
  animation-delay: 40ms;
}

.opportunity-building-lock-visual.is-recognising
  .opportunity-target-corner.bl,
.opportunity-building-lock-visual.is-recognising
  .opportunity-target-corner.br {
  animation-delay: 90ms;
}

.opportunity-building-lock-visual.is-settled {
  opacity: 0;
  transition: opacity 260ms ease;
}

@keyframes opportunity-roof-scan {
  0% {
    left: -38%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes opportunity-target-lock {
  0% {
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  65% {
    opacity: 1;
    transform: translate(0,0);
  }

  100% {
    opacity: 0.92;
    transform: translate(0,0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opportunity-building-lock-visual {
    display: none !important;
  }
}

/* STRONG BUILDING FOCUS REVEAL 20260807 */

#opportunityRoofMap .opportunity-focus-mask {
  transition:
    fill-opacity
    420ms
    cubic-bezier(0.2, 0.72, 0.24, 1);
}

#opportunityRoofMap .opportunity-focus-footprint {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.opportunity-focus-reveal {
  position: absolute;
  inset: 0;
  z-index: 650;
  pointer-events: none;
  overflow: hidden;
}

.opportunity-focus-halo {
  position: absolute;
  border-radius: 50%;
  transform:
    translate(-50%, -50%)
    scale(4.2);

  opacity: 0;

  border:
    2px solid
    rgba(255, 230, 129, 0.7);

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),
    0 0 42px rgba(244, 205, 73, 0.38),
    inset 0 0 32px rgba(255, 227, 112, 0.16);
}

.opportunity-focus-reveal.is-active
  .opportunity-focus-halo {
  animation:
    opportunity-focus-contract
    760ms
    cubic-bezier(0.17, 0.82, 0.26, 1)
    forwards;
}

.opportunity-focus-roof {
  position: absolute;
  opacity: 0;
  overflow: hidden;

  background:
    rgba(255, 224, 105, 0.16);

  filter:
    drop-shadow(
      0 7px 10px
      rgba(0,0,0,0.36)
    );
}

.opportunity-focus-reveal.is-active
  .opportunity-focus-roof {
  animation:
    opportunity-roof-lift
    900ms
    cubic-bezier(0.18,0.75,0.24,1)
    forwards;
}

.opportunity-focus-sweep {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 35%;

  transform: skewX(-14deg);

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0),
      rgba(255,246,194,0.12),
      rgba(255,236,145,0.82),
      rgba(255,255,255,0)
    );
}

.opportunity-focus-reveal.is-active
  .opportunity-focus-sweep {
  animation:
    opportunity-focus-sweep
    720ms
    120ms
    cubic-bezier(0.22,0.7,0.25,1)
    forwards;
}

.opportunity-focus-reveal.is-settled {
  opacity: 0;
  transition:
    opacity
    360ms ease;
}

@keyframes opportunity-focus-contract {
  0% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      scale(4.2);
  }

  18% {
    opacity: 0.85;
  }

  72% {
    opacity: 0.95;
    transform:
      translate(-50%, -50%)
      scale(1);
  }

  100% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      scale(0.88);
  }
}

@keyframes opportunity-roof-lift {
  0% {
    opacity: 0;
    transform:
      translateY(10px)
      scale(1.045);
  }

  30% {
    opacity: 1;
  }

  62% {
    opacity: 1;
    transform:
      translateY(-5px)
      scale(1.025);
  }

  100% {
    opacity: 0.85;
    transform:
      translateY(0)
      scale(1);
  }
}

@keyframes opportunity-focus-sweep {
  from {
    left: -45%;
  }

  to {
    left: 120%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opportunity-focus-reveal {
    display: none !important;
  }
}

/* BUSINESS MAP IDENTITY 20260807 */

.commercial-v3-map-card
  > .opportunity-map-badge.business-map-identity {
  display: flex !important;
  align-items: center;
  gap: 10px;

  width: auto;
  max-width: min(72%, 390px);

  padding: 8px 12px 8px 8px;

  border:
    1px solid
    rgba(255,255,255,0.72);

  border-radius: 15px;

  background:
    rgba(255,255,255,0.92);

  box-shadow:
    0 7px 24px
    rgba(10,31,40,0.16);

  backdrop-filter:
    blur(16px)
    saturate(1.08);

  -webkit-backdrop-filter:
    blur(16px)
    saturate(1.08);

  opacity: 0;

  transform:
    translateY(-5px)
    scale(0.975);

  transform-origin:
    left center;

  transition:
    opacity 360ms ease,
    transform 440ms
      cubic-bezier(0.2,0.78,0.25,1);

  pointer-events: none;
}

.commercial-v3-map-card
  > .business-map-identity.is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.business-map-identity-mark {
  position: relative;

  display: grid;
  place-items: center;

  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  overflow: hidden;

  border-radius: 11px;

  background: #173745;

  color: white;

  box-shadow:
    inset 0 0 0 1px
    rgba(255,255,255,0.14);
}

.business-map-identity-initials {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.business-map-identity-logo {
  position: absolute;
  inset: 5px;

  width: calc(100% - 10px);
  height: calc(100% - 10px);

  object-fit: contain;

  opacity: 0;

  transition:
    opacity 180ms ease;
}

.business-map-identity-mark.has-logo
  .business-map-identity-logo {
  opacity: 1;
}

.business-map-identity-mark.has-logo
  .business-map-identity-initials {
  opacity: 0;
}

.business-map-identity-copy {
  display: flex;
  flex-direction: column;

  min-width: 0;

  text-align: left;
}

.business-map-identity-copy strong {
  display: block;

  overflow: hidden;

  color: #173745;

  font-size: 12px;
  font-weight: 750;
  line-height: 1.18;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.business-map-identity-copy small {
  display: block;

  margin-top: 3px;

  color: rgba(31,58,72,0.62);

  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

@media (max-width: 620px) {
  .commercial-v3-map-card
    > .opportunity-map-badge.business-map-identity {
    max-width: calc(100% - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-v3-map-card
    > .business-map-identity {
    transition: none !important;
  }
}

/* BUSINESS MAP IDENTITY POSITION 20260807 */

.commercial-v3-map-card
  > .opportunity-map-badge.business-map-identity {
  left: auto !important;
  right: 14px !important;
  top: 14px !important;
  transform-origin: right center;
}

@media (max-width: 620px) {
  .commercial-v3-map-card
    > .opportunity-map-badge.business-map-identity {
    right: 12px !important;
    top: 12px !important;
    max-width: calc(100% - 72px);
  }
}

/* BUSINESS IDENTITY LOGO CLEANUP 20260807 */

/* Keep the dark treatment only for the initials fallback. */
.business-map-identity-mark.has-logo {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(20,52,67,0.10);

  box-shadow:
    0 1px 3px rgba(10,31,40,0.08);

  overflow: hidden;
}

/* Let the real logo breathe inside a neutral brand tile. */
.business-map-identity-mark.has-logo
  .business-map-identity-logo {
  inset: 3px;

  width: calc(100% - 6px);
  height: calc(100% - 6px);

  padding: 2px;

  object-fit: contain;

  border-radius: 7px;

  background: transparent;
}

/* Hide the initials completely once a verified logo is present. */
.business-map-identity-mark.has-logo
  .business-map-identity-initials {
  display: none;
}
