:root{
  --green:#19b14b;
  --green-soft:#eefaf2;
  --green-dark:#11833a;

  --text:#101828;
  --muted:#667085;

  --line:#e8edf2;
  --bg:#f6f8fb;
  --card:#ffffff;

  --shadow:
    0 2px 8px rgba(16,24,40,.03),
    0 10px 30px rgba(16,24,40,.05);

  --radius:22px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  display:flex;
  min-height:100vh;
}

/* SIDEBAR */

.sidebar{
  width:270px;
  background:#fff;
  border-right:1px solid var(--line);
  padding:30px 22px;
}

.logo{
  font-size:34px;
  font-weight:800;
  letter-spacing:-1.5px;
}

.tag{
  color:var(--green);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  margin-bottom:40px;
}

nav button{
  width:100%;
  border:0;
  background:transparent;
  padding:16px 18px;
  border-radius:16px;
  text-align:left;
  margin-bottom:8px;
  font-size:16px;
  cursor:pointer;
  transition:.2s ease;
}

nav button:hover{
  background:#f7faf8;
}

nav button.active{
  background:var(--green-soft);
  color:var(--green-dark);
  font-weight:700;
}

/* APP */

.app{
  flex:1;
  padding:42px;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:28px;
}

h1{
  margin:0;
  font-size:42px;
  letter-spacing:-1.6px;
}

header p{
  color:var(--muted);
  font-size:18px;
  margin-top:8px;
}

.actions{
  display:flex;
  gap:12px;
}

.actions button,
.wide{
  border:1px solid var(--line);
  background:white;
  border-radius:18px;
  padding:16px 22px;
  font-weight:700;
  font-size:15px;
  box-shadow:var(--shadow);
}

button.green,
.wide{
  background:var(--green);
  border-color:var(--green);
  color:white;
}

/* KPI CARDS */

.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:24px;
}

.card,
.panel{
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid rgba(16,24,40,.04);
  box-shadow:var(--shadow);
}

.card{
  padding:28px;
}

.card span{
  color:var(--muted);
  display:block;
  font-size:15px;
}

.card strong{
  display:block;
  font-size:52px;
  letter-spacing:-2px;
  margin:14px 0;
}

.card small{
  color:var(--muted);
  font-size:15px;
}

/* MAIN LAYOUT */

.content{
  display:grid;
  grid-template-columns:1fr 390px;
  gap:24px;
}

.panel{
  padding:24px;
}

.table-panel{
  overflow:hidden;
}

h2{
  margin:0 0 18px;
  font-size:32px;
  letter-spacing:-1px;
}

/* TABLE */

table{
  width:100%;
  border-collapse:collapse;
}

th{
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}

th,td{
  padding:20px 12px;
  border-bottom:1px solid #edf1f5;
  text-align:left;
}

tbody tr:hover{
  background:#fbfcfd;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  padding:8px 12px;
  border-radius:12px;
  font-weight:800;
  color:white;
}

.e{background:#f97316;}
.d{background:#facc15;color:#111827;}
.c{background:#22c55e;}

.high{background:#dc2626;}
.med{background:#f97316;}
.low{background:#16a34a;}

/* PROPERTY PANEL */

.photo{
  height:220px;
  border-radius:22px;
  margin:18px 0 26px;

  background:
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80');

  background-size:cover;
  background-position:center;
}

.epc-line{
  display:grid;
  grid-template-columns:1fr 40px 1fr;
  align-items:center;
  text-align:center;
}

.epc{
  display:inline-block;
  padding:12px 16px;
  border-radius:14px;
  margin-top:8px;
  color:white;
  font-weight:800;
}

.price{
  font-size:46px;
  font-weight:800;
  letter-spacing:-2px;
}

.good{
  color:var(--green);
}

.detail ul{
  padding-left:18px;
}

.detail li{
  margin:12px 0;
}

.wide{
  width:100%;
  margin-top:20px;
}

/* =========================================================
   COMPACT + RESPONSIVE REFINEMENT
   Keeps desktop premium but makes sizing more realistic
   ========================================================= */

.sidebar{
  width:240px;
  padding:22px 16px;
}

.logo{
  font-size:28px;
}

.tag{
  font-size:10px;
  margin-bottom:28px;
}

nav button{
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
}

.app{
  padding:26px 28px;
}

h1{
  font-size:30px;
  letter-spacing:-0.8px;
}

header p{
  font-size:15px;
}

.actions button,
.wide{
  padding:11px 16px;
  border-radius:12px;
  font-size:13px;
}

.cards{
  gap:14px;
  margin-bottom:18px;
}

.card{
  padding:20px;
  border-radius:16px;
}

.card strong{
  font-size:32px;
  letter-spacing:-1px;
  margin:10px 0;
}

.card span,
.card small{
  font-size:13px;
}

.content{
  grid-template-columns:minmax(0,1fr) 340px;
  gap:18px;
}

.panel{
  padding:18px;
  border-radius:16px;
}

h2{
  font-size:20px;
  letter-spacing:-0.4px;
}

th,td{
  padding:13px 10px;
  font-size:13px;
}

.badge{
  min-width:34px;
  padding:6px 9px;
  border-radius:8px;
}

.photo{
  height:145px;
  border-radius:14px;
  margin:14px 0 18px;
}

.price{
  font-size:30px;
  letter-spacing:-1px;
}

.epc{
  padding:8px 11px;
  border-radius:9px;
}

.detail li{
  margin:8px 0;
}

/* Tablet */
@media (max-width: 1180px){
  body{
    display:block;
  }

  .sidebar{
    width:100%;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    gap:18px;
    overflow-x:auto;
    padding:14px 18px;
  }

  .logo{
    min-width:max-content;
    font-size:24px;
  }

  .tag{
    display:none;
  }

  nav{
    display:flex;
    gap:8px;
    overflow-x:auto;
    min-width:0;
  }

  nav button{
    white-space:nowrap;
    width:auto;
    margin:0;
    padding:10px 13px;
  }

  .app{
    padding:22px;
  }

  header{
    gap:16px;
  }

  .cards{
    grid-template-columns:repeat(2,1fr);
  }

  .content{
    grid-template-columns:1fr;
  }

  .detail{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:18px;
    align-items:start;
  }

  .detail h2,
  .detail > p,
  .detail .photo{
    grid-column:1;
  }

  .detail .epc-line,
  .detail hr,
  .detail h3,
  .detail .price,
  .detail small,
  .detail ul,
  .detail .wide{
    grid-column:2;
  }
}

/* Mobile */
@media (max-width: 720px){
  .app{
    padding:16px;
  }

  header{
    display:block;
  }

  h1{
    font-size:25px;
  }

  header p{
    font-size:14px;
  }

  .actions{
    margin-top:14px;
    display:grid;
    grid-template-columns:1fr;
  }

  .actions button{
    width:100%;
    margin:0;
  }

  .cards{
    grid-template-columns:1fr;
  }

  .table-panel{
    overflow-x:auto;
  }

  table{
    min-width:760px;
  }

  .detail{
    display:block;
  }

  .photo{
    height:180px;
  }

  .epc-line{
    grid-template-columns:1fr 30px 1fr;
  }
}

/* Small mobile */
@media (max-width: 430px){
  .sidebar{
    padding:12px;
  }

  nav button{
    font-size:13px;
    padding:9px 11px;
  }

  .card strong{
    font-size:28px;
  }

  .panel{
    padding:14px;
  }
}

/* Step 5 interaction */
.property-row{
  cursor:pointer;
}

.property-row.selected{
  background:#eefaf2;
}

.property-row.selected td:first-child{
  border-left:4px solid var(--green);
}

.property-row:hover{
  background:#f6fbf8;
}

/* Step 5 interaction */
.property-row{
  cursor:pointer;
}

.property-row.selected{
  background:#eefaf2;
}

.property-row.selected td:first-child{
  border-left:4px solid var(--green);
}

.property-row:hover{
  background:#f6fbf8;
}

/* Step 7 multi-select */
.check-cell{
  width:42px;
}

.row-check{
  width:18px;
  height:18px;
  accent-color:var(--green);
  cursor:pointer;
}

.selection-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  background:#f3fbf6;
  border:1px solid #d9f3e2;
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:14px;
  color:#135c2d;
  font-size:13px;
}

.selection-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.selection-actions button{
  border:1px solid #cfeedd;
  background:white;
  color:#135c2d;
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}

.selection-actions .green-mini{
  background:var(--green);
  border-color:var(--green);
  color:white;
}

@media (max-width: 720px){
  .selection-bar{
    display:block;
  }

  .selection-actions{
    margin-top:10px;
  }

  .selection-actions button{
    width:100%;
  }
}

/* Modal system */
.modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.35);
  backdrop-filter:blur(4px);
  z-index:1000;
}

.modal-backdrop.show{
  display:block;
}

.modal{
  display:none;
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(720px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  background:white;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:0 30px 90px rgba(15,23,42,.25);
  padding:22px;
  z-index:1001;
}

.modal.show{
  display:block;
}

.modal-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}

.modal-close{
  border:0;
  background:#f3f4f6;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:22px;
  cursor:pointer;
}

/* Add Property form */

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-bottom:18px;
}

.form-grid label{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#344054;
}

.form-grid input{
  width:100%;
  margin-top:6px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
}

.modal-primary{
  width:100%;
  border:0;
  border-radius:14px;
  background:var(--green);
  color:white;
  font-weight:800;
  padding:14px;
  cursor:pointer;
}

.search-results{
  margin-top:16px;
}

@media (max-width:720px){
  .form-grid{
    grid-template-columns:1fr;
  }
}

.result-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:white;
}

.result-card small{
  color:var(--muted);
}

.result-card button{
  border:0;
  background:var(--green);
  color:white;
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
}

@media (max-width:720px){
  .result-card{
    display:block;
  }

  .result-card button{
    width:100%;
    margin-top:12px;
  }
}

/* Structured EPC intelligence panel */

.intel-note{
  color:#475467;
  line-height:1.45;
}

.intel-panel{
  display:grid;
  gap:12px;
  margin-top:8px;
  font-size:13px;
}

.intel-section{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#fbfcfd;
}

.intel-section h4{
  margin:0 0 10px;
  font-size:13px;
  color:#101828;
  letter-spacing:-0.1px;
}

.intel-grid{
  display:grid;
  grid-template-columns:95px 1fr;
  gap:7px 10px;
}

.intel-grid span,
.intel-list span{
  color:#667085;
}

.intel-grid b,
.intel-list b{
  color:#101828;
  font-weight:700;
}

.intel-list{
  display:grid;
  gap:8px;
}

.intel-list div{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:10px;
}

.route-box{
  background:#f3fbf6;
  border-color:#d9f3e2;
}

.route-box p{
  margin:0;
  color:#135c2d;
  line-height:1.45;
}

/* Expandable property dashboard */
.open-dash-btn{
  border:1px solid #d9f3e2;
  background:#f3fbf6;
  color:#135c2d;
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  cursor:pointer;
}

.property-dashboard-row td{
  background:#fbfcfd;
  padding:0;
}

.property-dashboard{
  margin:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:white;
  padding:18px;
  box-shadow:var(--shadow);
}

.property-dashboard-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.property-dashboard h3{
  margin:0;
  font-size:22px;
}

.property-dashboard p{
  margin:4px 0 0;
  color:var(--muted);
}

.property-dash-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.dash-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fff;
}

.dash-card h4{
  margin:0 0 10px;
  font-size:14px;
}

.dash-card div{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:7px;
  font-size:13px;
}

.dash-card span{
  color:var(--muted);
}

.dash-card b{
  color:var(--text);
}

.close-dash{
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  cursor:pointer;
}

@media (max-width:1180px){
  .property-dash-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:720px){
  .property-dash-grid{
    grid-template-columns:1fr;
  }
}

/* Cleaner expandable dashboard card layout */
.dash-card div{
  grid-template-columns:105px minmax(0,1fr);
  align-items:start;
}

.dash-card b{
  line-height:1.35;
  overflow-wrap:anywhere;
}

.dash-card .full-row{
  display:block;
}

.dash-card .full-row span{
  display:block;
  margin-bottom:5px;
}

.dash-card .full-row b{
  display:block;
  color:#135c2d;
  background:#f3fbf6;
  border:1px solid #d9f3e2;
  border-radius:10px;
  padding:10px;
}

/* Premium investor-style opened dashboard */

.investor-dash{
  margin:16px;
  border-radius:22px;
  padding:22px;
  background:
    radial-gradient(circle at top left, rgba(25,177,75,.16), transparent 30%),
    linear-gradient(135deg,#081827,#0f2a3d);
  color:white;
  box-shadow:0 24px 70px rgba(15,23,42,.20);
}

.investor-hero{
  display:grid;
  grid-template-columns:1fr 190px auto;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}

.mini-label{
  color:#73e69a;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  margin-bottom:8px;
}

.investor-hero h3{
  margin:0;
  color:white;
  font-size:30px;
  letter-spacing:-1px;
}

.investor-hero p{
  color:rgba(255,255,255,.72);
  margin:6px 0 14px;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-tags span{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:9px 12px;
  color:rgba(255,255,255,.75);
  font-size:13px;
}

.hero-tags b{
  color:white;
  margin-left:5px;
}

.score-card{
  border:1px solid rgba(115,230,154,.35);
  background:rgba(255,255,255,.08);
  border-radius:18px;
  padding:16px;
  text-align:center;
}

.score-card span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:700;
}

.score-card strong{
  display:block;
  font-size:46px;
  line-height:1;
  color:#73e69a;
  margin:8px 0 2px;
}

.score-card small{
  color:rgba(255,255,255,.65);
}

.score-card em{
  display:block;
  margin-top:8px;
  color:white;
  font-style:normal;
  font-weight:800;
}

.investor-dash .close-dash{
  background:rgba(255,255,255,.1);
  color:white;
  border:1px solid rgba(255,255,255,.2);
}

.investor-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr 1fr .9fr;
  gap:14px;
}

.investor-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  padding:16px;
  min-height:170px;
}

.investor-card h4{
  margin:0 0 14px;
  color:white;
  font-size:16px;
}

.metric-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
}

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

.metric-row span{
  color:rgba(255,255,255,.68);
  font-size:13px;
}

.metric-row b{
  color:white;
  text-align:right;
  font-size:13px;
  max-width:55%;
}

.route-summary{
  background:rgba(25,177,75,.18);
  border:1px solid rgba(115,230,154,.28);
  color:#dcffe8;
  padding:14px;
  border-radius:14px;
  font-weight:800;
  line-height:1.4;
  margin-bottom:12px;
}

.recommendation-badge{
  display:inline-flex;
  background:#19b14b;
  color:white;
  border-radius:12px;
  padding:10px 16px;
  font-weight:900;
  margin-bottom:12px;
}

.recommendation-card p{
  color:rgba(255,255,255,.74);
  margin:0;
  line-height:1.45;
}

@media (max-width:1180px){
  .investor-hero{
    grid-template-columns:1fr;
  }

  .investor-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:720px){
  .investor-dash{
    margin:10px 0;
    padding:16px;
  }

  .investor-grid{
    grid-template-columns:1fr;
  }

  .investor-hero h3{
    font-size:24px;
  }
}

/* EPC journey strip */
.epc-journey{
  display:grid;
  grid-template-columns:120px 1fr 120px 150px;
  gap:14px;
  align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  padding:14px 16px;
  margin-bottom:14px;
}

.epc-journey span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
  font-weight:700;
}

.epc-journey b{
  display:block;
  color:white;
  font-size:20px;
  margin-top:4px;
}

.journey-line{
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  overflow:hidden;
}

.journey-line i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#f97316,#facc15,#22c55e);
}

.next-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}

.next-actions button{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  color:white;
  border-radius:11px;
  padding:10px;
  font-weight:800;
  cursor:pointer;
}

.next-actions button:first-child{
  background:#19b14b;
  border-color:#19b14b;
}

@media (max-width:720px){
  .epc-journey{
    grid-template-columns:1fr;
  }
}

/* Recommendation engine */
.recommendation-topline{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}

.recommendation-topline span{
  color:rgba(255,255,255,.68);
  font-size:12px;
}

.recommendation-topline b{
  color:white;
}

.recommendation-reasons{
  margin:12px 0 0;
  padding-left:18px;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.45;
}

.recommendation-reasons li{
  margin:5px 0;
}

.recommendation-card.improve .recommendation-badge{
  background:#19b14b;
}

.recommendation-card.review .recommendation-badge{
  background:#f97316;
}

.recommendation-card.monitor .recommendation-badge{
  background:#2563eb;
}

.recommendation-card.caution .recommendation-badge{
  background:#dc2626;
}

/* Premium hero + visual route-to-C */
.premium-hero{
  grid-template-columns:190px 1fr 150px auto;
  align-items:stretch;
}

.hero-image{
  min-height:155px;
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(8,24,39,.05),rgba(8,24,39,.55)),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80');
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.16);
}

.hero-main{
  align-self:center;
}

.decision-chip{
  display:inline-flex;
  background:#19b14b;
  color:white;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  font-size:13px;
  margin-bottom:12px;
}

.score-ring{
  --score:75;
  width:140px;
  height:140px;
  border-radius:50%;
  display:grid;
  place-items:center;
  align-self:center;
  background:
    radial-gradient(circle at center,#0f2a3d 0 58%,transparent 59%),
    conic-gradient(#73e69a calc(var(--score)*1%), rgba(255,255,255,.13) 0);
  border:1px solid rgba(255,255,255,.18);
  text-align:center;
}

.score-ring strong{
  display:block;
  font-size:38px;
  color:#73e69a;
  line-height:1;
}

.score-ring span{
  display:block;
  color:rgba(255,255,255,.70);
  font-size:11px;
  font-weight:800;
  margin-top:4px;
}

.route-timeline{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  padding:16px;
  margin-bottom:14px;
}

.route-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:14px;
}

.route-head h4{
  margin:0;
  color:white;
  font-size:18px;
}

.route-head p{
  margin:5px 0 0;
  color:rgba(255,255,255,.68);
  font-size:13px;
}

.route-cost{
  text-align:right;
  min-width:130px;
}

.route-cost span{
  display:block;
  color:rgba(255,255,255,.64);
  font-size:12px;
}

.route-cost b{
  display:block;
  color:#73e69a;
  font-size:24px;
}

.stage-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.stage-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.13);
  border-radius:16px;
  padding:14px;
}

.stage-card span{
  display:inline-flex;
  color:#73e69a;
  font-weight:900;
  font-size:11px;
  letter-spacing:.06em;
}

.stage-card h5{
  color:white;
  font-size:15px;
  margin:8px 0 4px;
}

.stage-card b{
  color:white;
  display:block;
  margin-bottom:8px;
}

.stage-card ul{
  margin:0;
  padding-left:18px;
  color:rgba(255,255,255,.74);
  font-size:12px;
  line-height:1.45;
}

@media (max-width:1180px){
  .premium-hero{
    grid-template-columns:180px 1fr;
  }

  .score-ring{
    width:120px;
    height:120px;
  }

  .stage-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:720px){
  .premium-hero{
    grid-template-columns:1fr;
  }

  .stage-grid{
    grid-template-columns:1fr;
  }

  .route-head{
    display:block;
  }

  .route-cost{
    text-align:left;
    margin-top:10px;
  }
}

/* FINAL premium investor dashboard override */
.fpea-investor-board{
  margin:16px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg,#071827,#0b2234 52%,#071520);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 28px 80px rgba(15,23,42,.28);
}

.fpea-top-grid{
  display:grid;
  grid-template-columns:220px 1fr 170px 230px;
  gap:18px;
  align-items:stretch;
}

.fpea-property-photo{
  min-height:210px;
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.45)),
    url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=900&q=80');
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}

.photo-epc{
  position:absolute;
  left:12px;
  bottom:12px;
  background:rgba(8,24,39,.88);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  padding:8px 10px;
  display:flex;
  gap:8px;
  align-items:center;
}

.photo-epc b{
  background:#f97316;
  color:#fff;
  padding:8px 10px;
  border-radius:8px;
}

.photo-epc span{
  font-size:22px;
  font-weight:900;
}

.photo-epc small{
  color:rgba(255,255,255,.65);
  font-size:10px;
  text-transform:uppercase;
}

.fpea-hero-copy h3{
  margin:8px 0 6px;
  font-size:34px;
  color:#fff;
  letter-spacing:-1.2px;
}

.fpea-hero-copy p{
  color:rgba(255,255,255,.72);
  margin:0 0 14px;
}

.property-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.property-meta span{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  padding:8px 10px;
  font-size:12px;
  color:rgba(255,255,255,.78);
}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
}

.hero-metrics div{
  padding:14px;
  background:rgba(255,255,255,.06);
  border-right:1px solid rgba(255,255,255,.08);
}

.hero-metrics div:last-child{border-right:0}
.hero-metrics span{display:block;color:rgba(255,255,255,.64);font-size:11px;text-transform:uppercase}
.hero-metrics b{display:block;color:#fff;font-size:20px;margin-top:7px}

.score-zone{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.score-ring-clean{
  width:132px;
  height:132px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:radial-gradient(circle,#0b2234 0 58%,transparent 59%),conic-gradient(#6ee787 var(--score),rgba(255,255,255,.12) 0);
}

.score-ring-clean strong{font-size:38px;color:#6ee787;line-height:1}
.score-ring-clean span{font-size:14px;color:rgba(255,255,255,.65)}
.score-zone p{margin:10px 0 6px;color:rgba(255,255,255,.78)}
.score-zone em{font-style:normal;background:rgba(25,177,75,.22);color:#8cf0a5;border:1px solid rgba(25,177,75,.38);border-radius:999px;padding:7px 18px;font-weight:800}

.action-panel{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
}

.action-panel h4{margin:14px 0 10px;color:rgba(255,255,255,.7);font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.action-panel button{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:white;
  border-radius:10px;
  padding:10px;
  margin-bottom:8px;
  font-weight:700;
  text-align:left;
}
.action-close{text-align:center!important;background:rgba(255,255,255,.10)!important}

.epc-strip{
  display:grid;
  grid-template-columns:130px 1fr 130px 150px;
  gap:18px;
  align-items:center;
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}

.epc-strip span{display:block;color:rgba(255,255,255,.62);font-size:11px;text-transform:uppercase}
.epc-strip b{display:block;color:#fff;font-size:22px;margin-top:5px}
.epc-scale{height:12px;border-radius:999px;background:linear-gradient(90deg,#dc2626,#f97316,#facc15,#22c55e);position:relative}
.epc-scale i{position:absolute;top:-5px;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid #334155;transform:translateX(-50%)}

.main-intel-grid{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:14px;
  margin-top:14px;
}

.route-section,.recommendation-panel,.info-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:16px;
}

.route-section-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:14px}
.route-section h4,.recommendation-panel h4,.info-card h4{margin:0 0 10px;color:#fff;font-size:17px}
.route-section p{margin:0;color:rgba(255,255,255,.66)}
.route-section-head span{display:block;color:rgba(255,255,255,.62);font-size:12px;text-align:right}
.route-section-head b{display:block;color:#6ee787;font-size:28px;text-align:right}

.stage-line{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.fpea-stage{
  min-height:190px;
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.fpea-stage.green{border-color:rgba(110,231,135,.55)}
.fpea-stage.yellow{border-color:rgba(250,204,21,.65)}
.fpea-stage.orange{border-color:rgba(249,115,22,.65)}
.fpea-stage.blue{border-color:rgba(96,165,250,.65)}

.fpea-stage span{font-size:11px;font-weight:900;color:#6ee787}
.fpea-stage h5{font-size:16px;margin:8px 0 5px;color:#fff}
.fpea-stage strong{color:#fff}
.fpea-stage ul{padding-left:16px;color:rgba(255,255,255,.72);font-size:12px;line-height:1.45}
.fpea-stage em{font-style:normal;color:rgba(255,255,255,.7);font-size:12px}

.recommendation-panel{
  border-color:rgba(110,231,135,.32);
  background:linear-gradient(145deg,rgba(25,177,75,.16),rgba(255,255,255,.05));
}

.decision-large{font-size:24px;color:#6ee787;font-weight:900;margin-bottom:12px}
.recommendation-panel p{color:rgba(255,255,255,.80);line-height:1.45}
.recommendation-panel ul{padding-left:18px;color:rgba(255,255,255,.78);font-size:13px;line-height:1.55}
.confidence{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.10);padding-top:12px;margin-top:12px}
.confidence span{color:rgba(255,255,255,.62)}
.confidence b{color:#6ee787}

.bottom-intel-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.info-card div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.info-card div:last-child{border-bottom:0}
.info-card span{color:rgba(255,255,255,.62)}
.info-card b{color:#fff;text-align:right;max-width:60%}
.info-card .good{color:#6ee787}

@media(max-width:1180px){
  .fpea-top-grid{grid-template-columns:200px 1fr}
  .score-zone,.action-panel{grid-column:auto}
  .main-intel-grid{grid-template-columns:1fr}
  .stage-line{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:720px){
  .fpea-investor-board{margin:10px 0;padding:14px}
  .fpea-top-grid,.epc-strip,.bottom-intel-grid{grid-template-columns:1fr}
  .hero-metrics{grid-template-columns:1fr 1fr}
  .stage-line{grid-template-columns:1fr}
}

/* Remove old side detail panel and let dashboard breathe */
.content{
  grid-template-columns:1fr !important;
}

.table-panel{
  width:100%;
}

.detail{
  display:none !important;
}

.property-dashboard-row td{
  padding:0 !important;
}

.fpea-investor-board{
  margin:18px 0;
}

.open-dash-btn{
  white-space:nowrap;
}

@media(max-width:1180px){
  .content{
    grid-template-columns:1fr !important;
  }
}

/* Property table alignment fix */
.table-panel table{
  table-layout:fixed;
  width:100%;
}

.col-check,
.check-cell{
  width:46px;
}

.col-address{
  width:28%;
}

.col-epc{
  width:110px;
}

.col-cost,
.col-rent,
.col-cashflow{
  width:130px;
}

.col-priority{
  width:130px;
}

.col-action{
  width:150px;
}

.table-panel th,
.table-panel td{
  vertical-align:middle;
}

.table-panel td:nth-child(2),
.table-panel th:nth-child(2){
  text-align:left;
}

.table-panel td:nth-child(3),
.table-panel th:nth-child(3),
.table-panel td:nth-child(4),
.table-panel th:nth-child(4),
.table-panel td:nth-child(5),
.table-panel th:nth-child(5),
.table-panel td:nth-child(6),
.table-panel th:nth-child(6),
.table-panel td:nth-child(7),
.table-panel th:nth-child(7),
.table-panel td:nth-child(8),
.table-panel th:nth-child(8){
  text-align:left;
}

.property-dashboard-row td{
  width:100%;
}

/* Premium polish pass */
.fpea-investor-board{
  padding:20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(110,231,135,.16), transparent 26%),
    linear-gradient(135deg,#061522,#0b2234 55%,#06131f);
}

.fpea-top-grid{
  grid-template-columns:210px 1fr 128px 170px;
  gap:16px;
}

.fpea-property-photo{
  min-height:185px;
}

.fpea-hero-copy h3{
  font-size:30px;
}

.property-meta span{
  padding:6px 9px;
  font-size:11px;
}

.hero-metrics div{
  padding:11px 12px;
}

.hero-metrics b{
  font-size:17px;
}

.score-zone{
  justify-content:flex-start;
  padding-top:8px;
}

.score-ring-clean{
  width:104px;
  height:104px;
  background:
    radial-gradient(circle,#0b2234 0 62%,transparent 63%),
    conic-gradient(#6ee787 var(--score),rgba(255,255,255,.10) 0);
}

.score-ring-clean strong{
  font-size:30px;
}

.score-zone p{
  font-size:12px;
  margin:8px 0 5px;
}

.score-zone em{
  font-size:11px;
  padding:5px 12px;
}

.action-panel{
  padding:12px;
  border-radius:16px;
}

.action-panel h4{
  margin:10px 0 8px;
}

.action-panel button{
  padding:8px 10px;
  font-size:12px;
  border-radius:9px;
  margin-bottom:7px;
}

.epc-strip{
  padding:13px 14px;
  margin-top:14px;
}

.epc-strip b{
  font-size:18px;
}

.route-section,
.recommendation-panel,
.info-card{
  padding:14px;
  border-radius:16px;
}

.stage-line{
  gap:10px;
}

.fpea-stage{
  min-height:160px;
  padding:12px;
  border-radius:13px;
}

.fpea-stage h5{
  font-size:14px;
}

.fpea-stage ul{
  font-size:11px;
}

.decision-large{
  font-size:20px;
}

.recommendation-panel p,
.recommendation-panel ul{
  font-size:12px;
}

.bottom-intel-grid{
  gap:12px;
}

.info-card div{
  font-size:12px;
}

.open-dash-btn{
  padding:7px 10px;
  border-radius:9px;
  font-size:12px;
}

.close-dash{
  font-size:12px;
}

@media(max-width:1180px){
  .fpea-top-grid{
    grid-template-columns:180px 1fr;
  }
}

@media(max-width:720px){
  .fpea-top-grid{
    grid-template-columns:1fr;
  }
}

/* Route intelligence refinements */
.fpea-stage.red{
  border-color:rgba(248,113,113,.65);
}

.fpea-stage.red span{
  color:#fca5a5;
}

.route-section-head b{
  font-size:24px;
}

.fpea-stage{
  position:relative;
}

.fpea-stage:before{
  content:"";
  position:absolute;
  top:14px;
  right:14px;
  width:9px;
  height:9px;
  border-radius:999px;
  background:#6ee787;
}

.fpea-stage.yellow:before{background:#facc15;}
.fpea-stage.orange:before{background:#fb923c;}
.fpea-stage.blue:before{background:#60a5fa;}
.fpea-stage.red:before{background:#f87171;}

/* Before vs After investment panel */
.before-after-panel{
  margin-top:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:16px;
}

.ba-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px;
}

.ba-head h4{
  margin:0;
  color:white;
  font-size:18px;
}

.ba-head p{
  margin:5px 0 0;
  color:rgba(255,255,255,.66);
  font-size:13px;
}

.payback-chip{
  min-width:150px;
  text-align:right;
}

.payback-chip span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
}

.payback-chip b{
  display:block;
  color:#6ee787;
  font-size:22px;
  margin-top:4px;
}

.ba-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.ba-card{
  border-radius:16px;
  padding:15px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}

.ba-card > span{
  color:rgba(255,255,255,.58);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ba-card h5{
  color:white;
  font-size:18px;
  margin:7px 0 12px;
}

.ba-card div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.ba-card div:last-child{
  border-bottom:0;
}

.ba-card div span{
  color:rgba(255,255,255,.62);
  font-size:13px;
}

.ba-card div b{
  color:white;
  text-align:right;
}

.ba-card.after{
  background:linear-gradient(145deg,rgba(25,177,75,.16),rgba(255,255,255,.05));
  border-color:rgba(110,231,135,.32);
}

.ba-card.upside{
  background:linear-gradient(145deg,rgba(96,165,250,.14),rgba(255,255,255,.05));
  border-color:rgba(96,165,250,.28);
}

@media(max-width:900px){
  .ba-head{
    display:block;
  }

  .payback-chip{
    text-align:left;
    margin-top:10px;
  }

  .ba-grid{
    grid-template-columns:1fr;
  }
}

/* Upgrade Plan modal */
.plan-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:3000;
  background:rgba(3,10,18,.72);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.plan-modal{
  width:min(1040px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  border-radius:24px;
  background:linear-gradient(135deg,#071827,#0b2234 55%,#071520);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 40px 120px rgba(0,0,0,.45);
  color:white;
  padding:24px;
}

.plan-modal-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.plan-modal-head span{
  color:#6ee787;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.plan-modal-head h2{
  margin:8px 0 4px;
  font-size:32px;
}

.plan-modal-head p{
  color:rgba(255,255,255,.68);
  margin:0;
}

.plan-close{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:white;
  font-size:24px;
  cursor:pointer;
}

.plan-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:16px;
}

.plan-summary-grid div,
.plan-section{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:15px;
}

.plan-summary-grid span,
.plan-invest-grid span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
}

.plan-summary-grid b{
  display:block;
  color:#6ee787;
  font-size:22px;
  margin-top:6px;
}

.plan-section{
  margin-top:14px;
}

.plan-section h3{
  margin:0 0 14px;
  font-size:20px;
}

.plan-stage-list{
  display:grid;
  gap:12px;
}

.plan-stage{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

.plan-stage-num{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#19b14b;
  font-weight:900;
}

.plan-stage h4{
  margin:5px 0;
  font-size:18px;
}

.plan-stage span{
  color:#6ee787;
  font-size:11px;
  font-weight:900;
}

.plan-stage b{
  color:white;
}

.plan-stage ul{
  margin:10px 0 0;
  padding-left:18px;
  color:rgba(255,255,255,.76);
}

.plan-stage.yellow .plan-stage-num{background:#facc15;color:#111827;}
.plan-stage.orange .plan-stage-num{background:#fb923c;}
.plan-stage.blue .plan-stage-num{background:#60a5fa;}
.plan-stage.red .plan-stage-num{background:#ef4444;}

.plan-invest-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.plan-invest-grid div{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px;
}

.plan-invest-grid b{
  display:block;
  margin:8px 0 4px;
  color:white;
  font-size:20px;
}

.plan-invest-grid small{
  color:#6ee787;
}

.plan-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}

.plan-actions button{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:white;
  border-radius:12px;
  padding:11px 14px;
  font-weight:800;
  cursor:pointer;
}

.plan-actions .primary{
  background:#19b14b;
  border-color:#19b14b;
}

@media(max-width:800px){
  .plan-summary-grid,
  .plan-invest-grid{
    grid-template-columns:1fr;
  }

  .plan-actions{
    display:grid;
  }
}

/* Property archetype image system */
.fpea-property-photo{
  background-size:cover !important;
  background-position:center !important;
}

.fpea-property-photo.img-default{
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.45)),
    url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=900&q=80');
}

.fpea-property-photo.img-terrace{
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.50)),
    url('https://images.unsplash.com/photo-1560184897-ae75f418493e?auto=format&fit=crop&w=900&q=80');
}

.fpea-property-photo.img-semi{
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.50)),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=900&q=80');
}

.fpea-property-photo.img-detached{
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.50)),
    url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=900&q=80');
}

.fpea-property-photo.img-bungalow{
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.50)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80');
}

.fpea-property-photo.img-flat{
  background:
    linear-gradient(180deg,rgba(7,24,39,.05),rgba(7,24,39,.50)),
    url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=900&q=80');
}

/* Distinct property archetype visuals */
.fpea-property-photo{
  background-image:none !important;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.fpea-property-photo:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 18%, rgba(110,231,135,.22), transparent 26%),
    linear-gradient(145deg,#10293f,#071827);
  z-index:-3;
}

.fpea-property-photo:after{
  position:absolute;
  inset:auto 16px 58px 16px;
  height:92px;
  border-radius:14px 14px 6px 6px;
  background:#d8efe4;
  box-shadow:
    inset 0 -22px 0 rgba(0,0,0,.08),
    0 18px 40px rgba(0,0,0,.22);
  z-index:-1;
  display:grid;
  place-items:center;
  color:#071827;
  font-weight:900;
  letter-spacing:.04em;
  font-size:13px;
}

/* roof line */
.fpea-property-photo .photo-epc:before{
  content:"";
  position:absolute;
  left:8px;
  right:8px;
  top:-92px;
  height:48px;
  background:#18364f;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  z-index:-2;
}

/* Terraced */
.fpea-property-photo.img-terrace:after,
.fpea-property-photo.img-mid-terrace:after{
  content:"MID TERRACE";
  background:
    linear-gradient(90deg,
      #d8efe4 0 24%, #b9d8cd 24% 26%,
      #d8efe4 26% 49%, #b9d8cd 49% 51%,
      #d8efe4 51% 74%, #b9d8cd 74% 76%,
      #d8efe4 76% 100%);
}

.fpea-property-photo.img-end-terrace:after{
  content:"END TERRACE";
  background:
    linear-gradient(90deg,
      #d8efe4 0 32%, #b9d8cd 32% 35%,
      #d8efe4 35% 68%, #b9d8cd 68% 71%,
      #d8efe4 71% 100%);
}

/* Semi */
.fpea-property-photo.img-semi:after{
  content:"SEMI DETACHED";
  width:70%;
  left:15%;
  right:auto;
  background:
    linear-gradient(90deg,#d8efe4 0 49%,#8fb9aa 49% 52%,#d8efe4 52% 100%);
}

/* Detached */
.fpea-property-photo.img-detached:after{
  content:"DETACHED";
  width:58%;
  left:21%;
  right:auto;
  background:#e6f5ef;
}

/* Bungalow */
.fpea-property-photo.img-bungalow:after{
  content:"BUNGALOW";
  height:66px;
  width:70%;
  left:15%;
  right:auto;
  border-radius:12px 12px 6px 6px;
  background:#e4f3ed;
}

/* Flat */
.fpea-property-photo.img-flat:after{
  content:"FLAT / MAISONETTE";
  height:120px;
  width:62%;
  left:19%;
  right:auto;
  border-radius:12px 12px 6px 6px;
  background:
    linear-gradient(#d8efe4 0 23%,#9fbfb3 23% 25%,#d8efe4 25% 48%,#9fbfb3 48% 50%,#d8efe4 50% 73%,#9fbfb3 73% 75%,#d8efe4 75% 100%);
}

/* Default */
.fpea-property-photo.img-default:after{
  content:"PROPERTY";
}


/* Real Street View image support */
.fpea-property-photo[style*="streetview"]{
  background-size:cover !important;
  background-position:center !important;
}

.fpea-property-photo[style*="streetview"]:before,
.fpea-property-photo[style*="streetview"]:after{
  display:none !important;
}

/* Remove archetype overlay when real Street View image exists */
.fpea-property-photo[style*="maps.googleapis.com"]:before,
.fpea-property-photo[style*="maps.googleapis.com"]:after,
.fpea-property-photo[style*="maps.googleapis.com"] .photo-epc:before{
  display:none !important;
  content:none !important;
}

.fpea-property-photo[style*="maps.googleapis.com"]{
  background-size:cover !important;
  background-position:center center !important;
}

/* Cost Settings modal */
.cost-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(3,10,18,.72);
  backdrop-filter:blur(8px);
  z-index:4000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.cost-modal{
  width:min(980px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:#fff;
  color:#101828;
  border-radius:22px;
  padding:22px;
  box-shadow:0 40px 120px rgba(0,0,0,.38);
}

.cost-modal-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.cost-modal-head span{
  color:#19b14b;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.cost-modal-head h2{
  margin:7px 0 4px;
}

.cost-modal-head p{
  margin:0;
  color:#667085;
}

.cost-close{
  width:36px;
  height:36px;
  border:0;
  background:#f3f4f6;
  border-radius:999px;
  font-size:24px;
  cursor:pointer;
}

.cost-table{
  width:100%;
  border-collapse:collapse;
}

.cost-table th,
.cost-table td{
  border-bottom:1px solid #e5e7eb;
  padding:12px;
  text-align:left;
}

.cost-table small{
  color:#667085;
}

.cost-table input{
  width:110px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  padding:9px;
  font-size:14px;
}

.cost-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}

.cost-actions button{
  border:1px solid #d0d5dd;
  background:#fff;
  border-radius:12px;
  padding:11px 14px;
  font-weight:800;
  cursor:pointer;
}

.cost-actions .primary{
  background:#19b14b;
  border-color:#19b14b;
  color:white;
}

.btn-delete-property{
  margin-left:6px;
  border:1px solid rgba(220,38,38,.25);
  background:#fff5f5;
  color:#b42318;
  border-radius:9px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.btn-delete-property:hover{
  background:#fee4e2;
}

/* Portfolio Home */
.portfolio-home{
  position:fixed;
  inset:0;
  z-index:5000;
  background:
    radial-gradient(circle at 16% 0%, rgba(110,231,135,.18), transparent 28%),
    linear-gradient(135deg,#061522,#0b2234 58%,#06131f);
  color:white;
  overflow:auto;
  padding:34px;
}

.portfolio-home-inner{
  max-width:1240px;
  margin:0 auto;
}

.portfolio-hero{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  margin-bottom:28px;
}

.portfolio-hero h1{
  margin:8px 0 8px;
  font-size:46px;
  letter-spacing:-1.8px;
}

.portfolio-hero p{
  margin:0;
  color:rgba(255,255,255,.70);
  font-size:16px;
}

#createPortfolioBtn{
  border:0;
  background:#19b14b;
  color:white;
  border-radius:14px;
  padding:14px 18px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 40px rgba(25,177,75,.25);
}

.portfolio-card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.portfolio-card{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.20);
}

.portfolio-card.active{
  border-color:rgba(110,231,135,.55);
  box-shadow:0 20px 70px rgba(25,177,75,.16);
}

.portfolio-card-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:16px;
}

.portfolio-card-top span{
  color:#6ee787;
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
}

.portfolio-card-top h3{
  margin:7px 0 0;
  font-size:23px;
  color:white;
}

.portfolio-card-top strong{
  min-width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(110,231,135,.16);
  color:#6ee787;
  font-size:24px;
}

.portfolio-metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:14px;
}

.portfolio-metrics div{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px;
}

.portfolio-metrics span{
  display:block;
  color:rgba(255,255,255,.60);
  font-size:11px;
  text-transform:uppercase;
  margin-bottom:6px;
}

.portfolio-metrics b{
  color:white;
  font-size:17px;
}

.portfolio-risk{
  display:inline-flex;
  border-radius:999px;
  padding:8px 11px;
  font-weight:900;
  font-size:12px;
  margin-bottom:14px;
}

.portfolio-risk.high{
  background:rgba(248,113,113,.18);
  color:#fca5a5;
}

.portfolio-risk.moderate{
  background:rgba(250,204,21,.18);
  color:#fde68a;
}

.portfolio-risk.empty{
  background:rgba(148,163,184,.18);
  color:#cbd5e1;
}

.open-portfolio-btn{
  width:100%;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.09);
  color:white;
  border-radius:13px;
  padding:12px;
  font-weight:900;
  cursor:pointer;
}

.open-portfolio-btn:hover{
  background:rgba(255,255,255,.14);
}

@media(max-width:1000px){
  .portfolio-card-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:700px){
  .portfolio-home{
    padding:20px;
  }

  .portfolio-hero{
    display:block;
  }

  #createPortfolioBtn{
    margin-top:18px;
    width:100%;
  }

  .portfolio-card-grid{
    grid-template-columns:1fr;
  }

  .portfolio-hero h1{
    font-size:34px;
  }
}

/* Premium Portfolio Manager rebuild */
.portfolio-home.premium{
  padding:0;
  background:
    radial-gradient(circle at 18% 16%, rgba(25,177,75,.18), transparent 28%),
    linear-gradient(135deg,#04111d,#071827 48%,#07131f);
}

.pm-topbar{
  height:82px;
  display:flex;
  align-items:center;
  gap:24px;
  padding:0 54px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(2,8,15,.55);
}

.pm-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.pm-logo{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  color:#6ee787;
  border:2px solid #19b14b;
  border-radius:12px;
  font-size:28px;
}

.pm-brand strong{
  display:block;
  font-size:30px;
  letter-spacing:.02em;
}

.pm-brand span{
  display:block;
  color:#6ee787;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}

.pm-nav-pill{
  background:rgba(255,255,255,.07);
  border-bottom:3px solid #19b14b;
  padding:17px 22px;
  border-radius:10px 10px 0 0;
  font-weight:900;
}

.pm-user{
  margin-left:auto;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#19b14b;
  font-weight:900;
}

.pm-hero{
  position:relative;
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding:38px 58px 28px;
  overflow:hidden;
}

.pm-hero h1{
  font-size:56px;
  letter-spacing:-2px;
  margin:8px 0 10px;
}

.pm-hero p{
  color:rgba(255,255,255,.78);
  font-size:18px;
  margin:0 0 28px;
}

.pm-house-art{
  flex:1;
  min-height:160px;
  position:relative;
  opacity:.55;
}

.house{
  position:absolute;
  bottom:8px;
  width:170px;
  height:95px;
  border:3px solid #19b14b;
  border-top:0;
  filter:drop-shadow(0 0 18px rgba(25,177,75,.35));
}

.house:before{
  content:"";
  position:absolute;
  left:20px;
  right:20px;
  top:-58px;
  height:80px;
  border-top:4px solid #19b14b;
  border-left:4px solid #19b14b;
  transform:rotate(45deg);
}

.house.h1{right:260px; transform:scale(.8);}
.house.h2{right:110px; transform:scale(1.05);}
.house.h3{right:0; transform:scale(.78);}

.pm-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(240px,1fr));
  gap:20px;
  padding:0 54px 36px;
}

.pm-card{
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:22px;
  min-height:300px;
  box-shadow:0 24px 80px rgba(0,0,0,.25);
}

.pm-card.active{
  border-color:#19b14b;
  box-shadow:0 0 0 1px rgba(25,177,75,.25), 0 30px 90px rgba(25,177,75,.12);
}

.pm-status{
  height:18px;
  color:#b8ffbf;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-align:center;
}

.pm-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin:8px auto 14px;
  border-radius:999px;
  background:radial-gradient(circle,#45d66d,#116b33);
  font-size:32px;
}

.pm-card h3{
  text-align:center;
  color:white;
  margin:0;
  font-size:21px;
}

.pm-card p{
  text-align:center;
  color:rgba(255,255,255,.58);
  font-size:12px;
  margin:8px 0 16px;
}

.pm-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
  padding:15px 0;
}

.pm-metrics div{
  text-align:center;
  border-right:1px solid rgba(255,255,255,.08);
}

.pm-metrics div:last-child{
  border-right:0;
}

.pm-metrics span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:10px;
}

.pm-metrics b{
  display:block;
  color:white;
  margin-top:4px;
  font-size:14px;
}

.pm-risk{
  text-align:center;
  margin:14px 0;
  color:rgba(255,255,255,.65);
  font-size:11px;
  text-transform:uppercase;
}

.pm-risk b{
  display:inline-block;
  margin-left:6px;
  border-radius:999px;
  padding:4px 8px;
  background:rgba(250,204,21,.22);
  color:#fde68a;
}

.pm-risk.high b{background:rgba(239,68,68,.22);color:#fca5a5;}
.pm-risk.empty b{background:rgba(148,163,184,.22);color:#cbd5e1;}

.pm-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}

.pm-open,
.pm-rename{
  border:0;
  border-radius:11px;
  padding:12px;
  font-weight:900;
  cursor:pointer;
}

.pm-open{
  background:#19b14b;
  color:white;
}

.pm-rename{
  background:rgba(255,255,255,.10);
  color:white;
  border:1px solid rgba(255,255,255,.12);
}

.pm-create{
  border-style:dashed;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  cursor:pointer;
}

.pm-plus{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.25);
  font-size:44px;
  color:rgba(255,255,255,.65);
  margin-bottom:14px;
}

.pm-footer{
  display:flex;
  justify-content:space-between;
  padding:0 58px 28px;
  color:rgba(255,255,255,.62);
  font-size:13px;
}

@media(max-width:1250px){
  .pm-grid{grid-template-columns:repeat(3,1fr);}
}

@media(max-width:900px){
  .pm-grid{grid-template-columns:repeat(2,1fr);}
  .pm-house-art{display:none;}
}

@media(max-width:620px){
  .pm-topbar{padding:0 20px;}
  .pm-grid{grid-template-columns:1fr;padding:0 20px 30px;}
  .pm-hero{padding:30px 22px;}
  .pm-hero h1{font-size:40px;}
  .pm-footer{display:block;padding:0 22px 24px;}
}

/* Portfolio Manager refinement */
.pm-hero{
  padding:34px 58px 22px !important;
}

.pm-hero h1{
  font-size:52px !important;
}

.pm-grid{
  grid-template-columns:repeat(auto-fit,minmax(300px,360px)) !important;
  justify-content:start !important;
  gap:22px !important;
  padding:0 58px 34px !important;
}

.pm-card{
  min-height:265px !important;
  padding:20px !important;
}

.pm-icon{
  width:52px !important;
  height:52px !important;
  font-size:26px !important;
  margin:6px auto 12px !important;
}

.pm-card h3{
  font-size:20px !important;
}

.pm-metrics{
  padding:13px 0 !important;
}

.pm-risk{
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
  margin:13px auto !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  background:rgba(239,68,68,.18) !important;
  color:#fecaca !important;
}

.pm-risk b{
  background:transparent !important;
  padding:0 !important;
  color:#fecaca !important;
}

.pm-card .pm-actions{
  margin-top:10px !important;
}

.pm-open{
  min-height:42px !important;
}

.pm-rename{
  min-height:42px !important;
}

.pm-house-art{
  opacity:.34 !important;
  transform:scale(.82) translateY(-10px);
}

.pm-create{
  min-height:265px !important;
}

.pm-footer{
  padding:0 58px 24px !important;
}



/* ===== REAL SAAS LAYOUT FIX ===== */

.pm-house-art{
  display:none !important;
}

.pm-hero{
  padding:28px 58px 14px !important;
}

.pm-hero h1{
  font-size:46px !important;
  letter-spacing:-1.6px !important;
  margin:4px 0 8px !important;
}

.pm-hero p{
  font-size:16px !important;
  max-width:620px !important;
  margin-bottom:16px !important;
}

/* proper SaaS grid */
.pm-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr)) !important;
  gap:18px !important;
  padding:0 58px 28px !important;
  justify-content:stretch !important;
}

/* tighter cards */
.pm-card{
  min-height:250px !important;
  padding:18px !important;
  border-radius:20px !important;
}

.pm-card h3{
  font-size:18px !important;
}

.pm-card p{
  font-size:11px !important;
  margin:6px 0 14px !important;
}

.pm-icon{
  width:46px !important;
  height:46px !important;
  font-size:24px !important;
  margin:4px auto 10px !important;
}

.pm-metrics{
  padding:12px 0 !important;
}

.pm-metrics span{
  font-size:9px !important;
}

.pm-metrics b{
  font-size:13px !important;
}

.pm-actions{
  margin-top:10px !important;
}

.pm-open,
.pm-rename{
  padding:10px !important;
  border-radius:12px !important;
}

.pm-footer{
  padding:0 58px 22px !important;
}


/* ===== VISUAL SAAS PASS ===== */

.pm-hero{
  padding:20px 58px 8px !important;
}

.pm-hero h1{
  font-size:42px !important;
  margin:2px 0 4px !important;
}

.pm-hero p{
  font-size:15px !important;
  margin:0 0 14px !important;
  opacity:.72 !important;
}

.pm-grid{
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr)) !important;
  gap:22px !important;
}

/* make cards feel like software */
.pm-card{
  min-height:220px !important;
  padding:22px !important;
  border-radius:26px !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.07),
      rgba(255,255,255,.025)
    ) !important;

  border:1px solid rgba(255,255,255,.08) !important;

  box-shadow:
    0 10px 40px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.pm-card h3{
  font-size:24px !important;
  font-weight:800 !important;
}

.pm-card p{
  font-size:12px !important;
  margin:6px 0 18px !important;
}

.pm-metrics{
  grid-template-columns:repeat(2,1fr) !important;
  gap:12px !important;
  border:0 !important;
  padding:0 !important;
}

.pm-metrics div{
  text-align:left !important;
  border:0 !important;
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,.045);
}

.pm-metrics span{
  font-size:10px !important;
  margin-bottom:4px !important;
}

.pm-metrics b{
  font-size:18px !important;
}

.pm-risk{
  text-align:left !important;
  margin:14px 0 !important;
}

.pm-actions{
  grid-template-columns:1fr 120px !important;
}

.pm-open,
.pm-rename{
  min-height:48px !important;
  font-size:14px !important;
  font-weight:800 !important;
}

.pm-create{
  justify-content:center !important;
}

.pm-plus{
  width:68px !important;
  height:68px !important;
  font-size:52px !important;
}


/* ===== HERO KPI STRIP ===== */

.pm-house-art{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-end !important;
  flex:1 !important;
  min-height:auto !important;
  opacity:1 !important;
}

.pm-kpi-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:14px;
  width:440px;
  margin-top:10px;
}

.pm-kpi{
  padding:18px;
  border-radius:18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.065),
      rgba(255,255,255,.03)
    );

  border:1px solid rgba(255,255,255,.08);

  box-shadow:
    0 10px 28px rgba(0,0,0,.18);
}

.pm-kpi span{
  display:block;
  color:rgba(255,255,255,.58);
  font-size:11px;
  margin-bottom:8px;
}

.pm-kpi b{
  display:block;
  color:white;
  font-size:26px;
  font-weight:800;
}


/* ===== FINAL HERO IMAGE — BIG, FULL IMAGE, NO CROP ===== */

.pm-hero{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:34px !important;
  overflow:visible !important;
}

.pm-hero > div:first-child{
  flex:0 0 520px !important;
  position:relative !important;
  z-index:2 !important;
}

.pm-house-art{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex:1 1 auto !important;
  height:260px !important;
  min-height:260px !important;
  overflow:visible !important;
  opacity:1 !important;
  pointer-events:none !important;
}

.pm-house-art::before{
  content:"" !important;
  display:block !important;
  width:720px !important;
  height:260px !important;

  background-image:url("assets/portfolio-hero-uk.png") !important;
  background-repeat:no-repeat !important;
  background-size:contain !important;
  background-position:right center !important;

  opacity:.82 !important;
  filter:drop-shadow(0 0 30px rgba(25,177,75,.16)) !important;
}

.pm-house-art .house,
.house{
  display:none !important;
}

.pm-grid{
  position:relative !important;
  z-index:3 !important;
}


/* FINAL CLEAN FIX: no hero house / no hero image */
.pm-house-art,
.pm-house-art::before,
.pm-house-art::after,
.house,
.house::before,
.house::after{
  display:none !important;
  content:none !important;
  background:none !important;
}

/* Keep hero clean without empty image area */
.pm-hero{
  display:block !important;
  padding:34px 58px 24px !important;
  min-height:auto !important;
  overflow:visible !important;
}

/* Clean portfolio action buttons */
.pm-actions{
  display:grid !important;
  grid-template-columns:1fr auto auto !important;
  gap:8px !important;
  align-items:center !important;
}

.pm-open,
.pm-rename,
.pm-delete{
  min-height:42px !important;
  border-radius:12px !important;
  padding:10px 13px !important;
  font-size:13px !important;
  font-weight:800 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}

.pm-open{
  background:#19b14b !important;
  color:white !important;
  border:1px solid #19b14b !important;
}

.pm-rename{
  background:rgba(255,255,255,.08) !important;
  color:white !important;
  border:1px solid rgba(255,255,255,.14) !important;
}

.pm-delete{
  background:rgba(239,68,68,.10) !important;
  color:#fca5a5 !important;
  border:1px solid rgba(239,68,68,.24) !important;
}

.pm-delete:hover{
  background:rgba(239,68,68,.18) !important;
}

/* REMOVE HERO CREATE PORTFOLIO BUTTON */
#createPortfolioBtn{
  display:none !important;
}

/* SaaS portfolio modal */

.fpea-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(3,10,20,.72);
  backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999999;
}

.fpea-modal-card{
  width:480px;
  border-radius:24px;
  padding:28px;
  background:linear-gradient(180deg,#0d1724,#09111c);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}

.fpea-modal-card h3{
  margin:0 0 18px;
  font-size:28px;
  color:#fff;
}

.fpea-modal-card input{
  width:100%;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  color:white;
  font-size:18px;
  padding:16px;
  outline:none;
}

.fpea-modal-card input:focus{
  border-color:#19b14b;
}

.fpea-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:20px;
}

.fpea-modal-actions button{
  border:0;
  border-radius:14px;
  padding:14px 20px;
  font-weight:800;
  cursor:pointer;
}

.fpea-modal-actions .secondary{
  background:rgba(255,255,255,.08);
  color:white;
}

.fpea-modal-actions .primary{
  background:#19b14b;
  color:white;
}



/* Full-width portfolio dashboard layout */
body{
  display:block !important;
}

.app{
  margin-left:0 !important;
  width:100% !important;
  max-width:1680px !important;
  padding:34px 42px !important;
}

@media (max-width:900px){
  .app{
    padding:22px 16px !important;
  }
}

.asset-status{
  display:inline-flex;
  align-items:center;
  margin-right:10px;
  margin-bottom:7px;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.asset-status.owned{
  color:#8fffc1;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.28);
}

.asset-status.for-sale{
  color:#ffd36a;
  background:rgba(245,158,11,.13);
  border:1px solid rgba(245,158,11,.32);
}


/* Premium portfolio property rows */
.property-row{
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(8,13,28,.96)) !important;
  border:1px solid rgba(139,92,246,.18) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.18) !important;
  transition:.18s ease !important;
}

.property-row:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 65px rgba(91,33,182,.18) !important;
}

.property-row td{
  padding:24px 18px !important;
  vertical-align:middle !important;
}

.property-row td:nth-child(2) b{
  font-size:19px !important;
  color:#0f172a !important;
}

.property-row td:nth-child(2) small{
  display:block;
  margin-top:8px;
  font-size:14px;
  color:#64748b !important;
}

.asset-status{
  display:inline-flex !important;
  align-items:center;
  width:max-content;
  margin:0 0 10px 0 !important;
  padding:6px 11px !important;
  border-radius:999px !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.09em !important;
}

.asset-status.owned{
  color:#047857 !important;
  background:rgba(16,185,129,.12) !important;
  border:1px solid rgba(16,185,129,.28) !important;
}

.asset-status.for-sale{
  color:#92400e !important;
  background:rgba(245,158,11,.16) !important;
  border:1px solid rgba(245,158,11,.35) !important;
}

.open-dash-btn{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6) !important;
  color:white !important;
  border:none !important;
  border-radius:12px !important;
  padding:10px 14px !important;
  font-weight:800 !important;
}

.btn-delete-property{
  border-radius:12px !important;
  padding:10px 14px !important;
}

.warn{
  color:#b45309 !important;
  font-weight:800 !important;
}

.good{
  color:#047857 !important;
  font-weight:800 !important;
}

/* make table feel like cards */
.property-table,
table{
  border-collapse:separate !important;
  border-spacing:0 14px !important;
}

tbody tr.property-row td:first-child{
  border-radius:18px 0 0 18px !important;
}

tbody tr.property-row td:last-child{
  border-radius:0 18px 18px 0 !important;
}

/* selected row */
.property-row.selected{
  outline:2px solid rgba(139,92,246,.45) !important;
  box-shadow:0 24px 70px rgba(139,92,246,.22) !important;
}


/* Keep portfolio action buttons side-by-side */
.property-row td:last-child{
  white-space:nowrap !important;
}

.property-row td:last-child .open-dash-btn,
.property-row td:last-child .btn-delete-property{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 6px 0 0 !important;
  vertical-align:middle !important;
}

.property-row td:last-child{
  min-width:230px !important;
}


/* =======================================================
   CLEAN PREMIUM PORTFOLIO CARDS
   ======================================================= */

table{
  border-collapse:separate !important;
  border-spacing:0 18px !important;
}

.property-row{
  background:#fff !important;
  border-radius:28px !important;
  overflow:hidden !important;
  box-shadow:
    0 10px 35px rgba(15,23,42,.06),
    0 2px 8px rgba(15,23,42,.03) !important;
  transition:.18s ease !important;
}

.property-row:hover{
  transform:translateY(-2px);
  box-shadow:
    0 18px 48px rgba(15,23,42,.09),
    0 4px 12px rgba(15,23,42,.04) !important;
}

.property-row td{
  background:#fff !important;
  border:none !important;
  padding:28px 18px !important;
  vertical-align:middle !important;
}

.property-row td:first-child{
  border-radius:28px 0 0 28px !important;
}

.property-row td:last-child{
  border-radius:0 28px 28px 0 !important;
  min-width:220px !important;
}

/* left status strip */
.property-row.for-sale{
  border-left:5px solid #f59e0b !important;
}

.property-row.owned{
  border-left:5px solid #10b981 !important;
}

/* address area */
.property-row td:nth-child(2) b{
  display:block !important;
  font-size:21px !important;
  line-height:1.35 !important;
  color:#0f172a !important;
  margin-bottom:6px !important;
}

.property-row td:nth-child(2) small{
  display:block !important;
  color:#64748b !important;
  font-size:15px !important;
  margin-top:5px !important;
}

/* badges */
.asset-status{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  margin-bottom:12px !important;
  padding:8px 14px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}

.asset-status.owned{
  color:#047857 !important;
  background:#ecfdf5 !important;
  border:1px solid rgba(16,185,129,.25) !important;
}

.asset-status.for-sale{
  color:#92400e !important;
  background:#fff7ed !important;
  border:1px solid rgba(245,158,11,.28) !important;
}

/* KPI text */
.good{
  color:#16a34a !important;
  font-weight:800 !important;
}

.warn{
  color:#c2410c !important;
  font-weight:800 !important;
}

/* buttons */
.open-dash-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-width:130px !important;
  padding:14px 18px !important;
  border:none !important;
  border-radius:16px !important;
  background:linear-gradient(135deg,#7c3aed,#9333ea) !important;
  color:#fff !important;
  font-weight:800 !important;
  margin-right:10px !important;
}

.btn-delete-property{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-width:100px !important;
  padding:14px 18px !important;
  border-radius:16px !important;
}

/* action cell */
.property-row td:last-child{
  white-space:nowrap !important;
}

/* cleaner EPC badges */
.badge{
  border-radius:14px !important;
  padding:10px 14px !important;
  font-weight:800 !important;
}

/* selected */
.property-row.selected{
  outline:2px solid rgba(124,58,237,.25) !important;
}


/* FINAL tidy portfolio card table layout */
table{
  width:100% !important;
  table-layout:fixed !important;
}

thead th:nth-child(1){width:46px !important;}
thead th:nth-child(2){width:34% !important;}
thead th:nth-child(3){width:9% !important;}
thead th:nth-child(4){width:13% !important;}
thead th:nth-child(5){width:11% !important;}
thead th:nth-child(6){width:11% !important;}
thead th:nth-child(7){width:11% !important;}
thead th:nth-child(8){width:15% !important;}

.property-row td{
  overflow:hidden !important;
}

.property-row td:nth-child(2){
  padding-left:22px !important;
}

.property-row td:nth-child(2) b{
  max-width:430px !important;
  white-space:normal !important;
}

.property-row td:last-child{
  min-width:0 !important;
  width:auto !important;
  white-space:normal !important;
  padding-right:22px !important;
}

.property-row td:last-child{
  display:table-cell !important;
}

.property-row td:last-child .open-dash-btn,
.property-row td:last-child .btn-delete-property{
  width:100% !important;
  min-width:0 !important;
  max-width:150px !important;
  margin:0 0 10px 0 !important;
  display:flex !important;
}

.property-row td:last-child .btn-delete-property{
  margin-bottom:0 !important;
}

.property-row{
  height:150px !important;
}

.asset-status{
  margin-bottom:10px !important;
}


/* FINAL tidy portfolio card table layout */
table{
  width:100% !important;
  table-layout:fixed !important;
}

thead th:nth-child(1){width:46px !important;}
thead th:nth-child(2){width:34% !important;}
thead th:nth-child(3){width:9% !important;}
thead th:nth-child(4){width:13% !important;}
thead th:nth-child(5){width:11% !important;}
thead th:nth-child(6){width:11% !important;}
thead th:nth-child(7){width:11% !important;}
thead th:nth-child(8){width:15% !important;}

.property-row td{
  overflow:hidden !important;
}

.property-row td:nth-child(2){
  padding-left:22px !important;
}

.property-row td:nth-child(2) b{
  max-width:430px !important;
  white-space:normal !important;
}

.property-row td:last-child{
  min-width:0 !important;
  width:auto !important;
  white-space:normal !important;
  padding-right:22px !important;
}

.property-row td:last-child{
  display:table-cell !important;
}

.property-row td:last-child .open-dash-btn,
.property-row td:last-child .btn-delete-property{
  width:100% !important;
  min-width:0 !important;
  max-width:150px !important;
  margin:0 0 10px 0 !important;
  display:flex !important;
}

.property-row td:last-child .btn-delete-property{
  margin-bottom:0 !important;
}

.property-row{
  height:150px !important;
}

.asset-status{
  margin-bottom:10px !important;
}


/* For Sale dashboard premium badge */
.for-sale-hero-badge{
  display:inline-flex;
  width:max-content;
  margin:8px 0 10px;
  padding:8px 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  color:#92400e;
  background:#fff7ed;
  border:1px solid rgba(245,158,11,.35);
}

.for-sale-board .hero-metrics div{
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(15,23,42,.08) !important;
}

.for-sale-board .decision-large{
  color:#111827;
}


/* Corrected For Sale lower acquisition layout */
.acquisition-grid-clean{
  display:grid !important;
  grid-template-columns:1.15fr 1fr 1fr !important;
  gap:18px !important;
  margin-top:18px !important;
}

.acquisition-card{
  min-height:280px !important;
}

.acquisition-card h4{
  font-size:24px !important;
  margin:8px 0 12px !important;
}

.buy-signal-card{
  background:linear-gradient(135deg,rgba(20,83,45,.60),rgba(15,23,42,.82)) !important;
  border-color:rgba(34,197,94,.30) !important;
}

.retrofit-card{
  background:linear-gradient(135deg,rgba(15,118,110,.34),rgba(15,23,42,.82)) !important;
}

.finance-card{
  background:linear-gradient(135deg,rgba(30,64,175,.28),rgba(15,23,42,.82)) !important;
}

.deal-breakdown-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
}

.deal-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.deal-row span{
  color:rgba(255,255,255,.68);
}

.deal-row b{
  color:#fff;
  text-align:right;
}

.deal-total{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.deal-total span{
  color:rgba(255,255,255,.68);
}

.deal-total b{
  color:#86efac;
}

.card-note{
  margin-top:16px;
  color:rgba(255,255,255,.70);
}

.risk-panel{
  margin-top:18px !important;
  background:rgba(15,23,42,.72) !important;
  border:1px solid rgba(255,255,255,.10) !important;
}

@media(max-width:1300px){
  .acquisition-grid-clean{
    grid-template-columns:1fr !important;
  }
}

/* Corrected For Sale lower acquisition layout */
.acquisition-grid-clean{
  display:grid !important;
  grid-template-columns:1.15fr 1fr 1fr !important;
  gap:18px !important;
  margin-top:18px !important;
}

.acquisition-card{
  min-height:280px !important;
}

.acquisition-card h4{
  font-size:24px !important;
  margin:8px 0 12px !important;
}

.buy-signal-card{
  background:linear-gradient(135deg,rgba(20,83,45,.60),rgba(15,23,42,.82)) !important;
  border-color:rgba(34,197,94,.30) !important;
}

.retrofit-card{
  background:linear-gradient(135deg,rgba(15,118,110,.34),rgba(15,23,42,.82)) !important;
}

.finance-card{
  background:linear-gradient(135deg,rgba(30,64,175,.28),rgba(15,23,42,.82)) !important;
}

.deal-breakdown-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
}

.deal-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.deal-row span{
  color:rgba(255,255,255,.68);
}

.deal-row b{
  color:#fff;
  text-align:right;
}

.deal-total{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.deal-total span{
  color:rgba(255,255,255,.68);
}

.deal-total b{
  color:#86efac;
}

.card-note{
  margin-top:16px;
  color:rgba(255,255,255,.70);
}

.risk-panel{
  margin-top:18px !important;
  background:rgba(15,23,42,.72) !important;
  border:1px solid rgba(255,255,255,.10) !important;
}

@media(max-width:1300px){
  .acquisition-grid-clean{
    grid-template-columns:1fr !important;
  }
}

/* Fix For Sale dashboard colours */
.for-sale-board .hero-metrics div,
.for-sale-board .fpea-hero-copy .hero-metrics div{
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#ffffff !important;
}

.for-sale-board .hero-metrics span,
.for-sale-board .hero-metrics b{
  color:#ffffff !important;
}

.for-sale-board .hero-metrics span{
  color:rgba(255,255,255,.68) !important;
}

.for-sale-board .live-listing-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:12px 14px !important;
  border-radius:12px !important;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6) !important;
  color:#fff !important;
  font-weight:800 !important;
  text-decoration:none !important;
  border:none !important;
}

.for-sale-board .action-panel a{
  color:#fff !important;
  text-decoration:none !important;
}

.for-sale-board .for-sale-hero-badge{
  color:#92400e !important;
  background:#fff7ed !important;
}

.acquisition-card,
.buy-signal-card,
.retrofit-card,
.finance-card{
  color:#fff !important;
}


.true-cost-stack-panel{
  margin-top:18px !important;
  background:linear-gradient(135deg,rgba(88,28,135,.34),rgba(15,23,42,.82)) !important;
  border:1px solid rgba(168,85,247,.26) !important;
}

.true-cost-stack-panel h4{
  font-size:24px !important;
  margin:8px 0 12px !important;
}

.true-cost-total{
  background:rgba(168,85,247,.14) !important;
  border-color:rgba(168,85,247,.28) !important;
}

.true-cost-total b{
  color:#c4b5fd !important;
  font-size:24px !important;
}


.true-cost-stack-panel{
  margin-top:18px !important;
  background:linear-gradient(135deg,rgba(88,28,135,.34),rgba(15,23,42,.82)) !important;
  border:1px solid rgba(168,85,247,.26) !important;
}

.true-cost-stack-panel h4{
  font-size:24px !important;
  margin:8px 0 12px !important;
}

.true-cost-total{
  background:rgba(168,85,247,.14) !important;
  border-color:rgba(168,85,247,.28) !important;
}

.true-cost-total b{
  color:#c4b5fd !important;
  font-size:24px !important;
}


.offer-intel-panel{
  margin-top:18px !important;
  background:linear-gradient(135deg,rgba(120,53,15,.34),rgba(15,23,42,.82)) !important;
  border:1px solid rgba(251,146,60,.28) !important;
}

.offer-range-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:16px;
}

.offer-range-grid div{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.offer-range-grid span{
  display:block;
  color:rgba(255,255,255,.65);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.offer-range-grid b{
  display:block;
  margin-top:8px;
  color:#fed7aa;
  font-size:24px;
}

.offer-reasons{
  margin-top:16px;
  color:rgba(255,255,255,.76);
}

@media(max-width:900px){
  .offer-range-grid{
    grid-template-columns:1fr;
  }
}


/* Offer + True Cost side-by-side layout */
.offer-cost-grid{
  display:grid !important;
  grid-template-columns:0.95fr 1.05fr !important;
  gap:18px !important;
  align-items:stretch !important;
  margin-top:18px !important;
}

.offer-cost-grid .offer-intel-panel,
.offer-cost-grid .true-cost-stack-panel{
  margin-top:0 !important;
  height:100% !important;
}

.offer-cost-grid .offer-range-grid{
  grid-template-columns:1fr !important;
}

.offer-cost-grid .offer-range-grid div{
  padding:14px !important;
}

.offer-cost-grid .offer-range-grid b{
  font-size:22px !important;
}

.offer-cost-grid .true-cost-total b{
  font-size:26px !important;
}

@media(max-width:1200px){
  .offer-cost-grid{
    grid-template-columns:1fr !important;
  }
}


.deal-return-summary-panel{
  margin-top:18px !important;
  padding:22px !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,rgba(15,118,110,.34),rgba(15,23,42,.86)) !important;
  border:1px solid rgba(45,212,191,.25) !important;
}

.deal-return-summary-panel h4{
  margin:8px 0 16px !important;
  font-size:24px !important;
  color:#fff !important;
}

.return-metric-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}

.return-metric-grid div{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.return-metric-grid span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.return-metric-grid b{
  display:block;
  margin-top:8px;
  color:#fff;
  font-size:22px;
}

.return-outlook{
  margin-top:14px;
  padding:15px 16px;
  border-radius:16px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.return-outlook span{
  color:rgba(255,255,255,.68);
}

.return-outlook b{
  color:#86efac;
}

@media(max-width:1200px){
  .return-metric-grid{
    grid-template-columns:1fr 1fr;
  }
}


.exit-strategy-panel{
  margin-top:18px !important;
  padding:22px !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,rgba(30,64,175,.32),rgba(15,23,42,.86)) !important;
  border:1px solid rgba(96,165,250,.25) !important;
}

.exit-strategy-panel h4{
  margin:8px 0 16px !important;
  font-size:24px !important;
  color:#fff !important;
}

.strategy-main{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.strategy-main span,
.strategy-grid span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.strategy-main b{
  display:block;
  margin-top:8px;
  color:#bfdbfe;
  font-size:28px;
}

.strategy-main p{
  margin-top:10px;
  color:rgba(255,255,255,.76);
}

.strategy-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:14px;
}

.strategy-grid div{
  padding:15px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.strategy-grid b{
  display:block;
  margin-top:8px;
  color:#fff;
  font-size:20px;
}

@media(max-width:1200px){
  .strategy-grid{
    grid-template-columns:1fr 1fr;
  }
}


.market-intel-panel{
  margin-top:18px !important;
  padding:22px !important;
  border-radius:22px !important;
  background:linear-gradient(135deg,rgba(76,29,149,.34),rgba(15,23,42,.86)) !important;
  border:1px solid rgba(167,139,250,.25) !important;
}

.market-intel-panel h4{
  margin:8px 0 16px !important;
  font-size:24px !important;
  color:#fff !important;
}

.market-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.market-grid div{
  padding:16px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.market-grid span,
.market-read span{
  display:block;
  color:rgba(255,255,255,.62);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}

.market-grid b{
  display:block;
  margin-top:8px;
  color:#fff;
  font-size:22px;
}

.market-read{
  margin-top:14px;
  padding:16px;
  border-radius:16px;
  background:rgba(167,139,250,.12);
  border:1px solid rgba(167,139,250,.24);
}

.market-read b{
  display:block;
  margin-top:8px;
  color:#ddd6fe;
  font-size:18px;
}

.market-note{
  margin-top:12px;
  color:rgba(255,255,255,.66);
  font-size:13px;
}

@media(max-width:1200px){
  .market-grid{
    grid-template-columns:1fr 1fr;
  }
}


.live-market-comps{
  margin-top:14px;
}

.comps-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.comp-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:12px;
  align-items:center;
  padding:11px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}

.comp-row span{
  color:rgba(255,255,255,.78);
  font-size:13px;
}

.comp-row b{
  color:#fff;
}

.comp-row small{
  color:rgba(255,255,255,.55);
}

@media(max-width:900px){
  .comp-row{
    grid-template-columns:1fr;
  }
}


/* Premium Deal Strength + Acquisition Actions polish */
.for-sale-board .score-zone{
  background:linear-gradient(180deg,rgba(15,35,52,.96),rgba(9,24,38,.96)) !important;
  border:1px solid rgba(148,163,184,.22) !important;
  border-radius:26px !important;
  padding:24px 18px !important;
  min-width:190px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  box-shadow:0 18px 45px rgba(0,0,0,.22) !important;
}

.for-sale-board .score-zone .score-ring-clean{
  width:150px !important;
  height:150px !important;
  margin:0 auto !important;
}

.for-sale-board .score-zone .score-ring-clean strong{
  font-size:46px !important;
  color:#74f083 !important;
}

.for-sale-board .score-zone p{
  margin:4px 0 0 !important;
  font-size:20px !important;
  font-weight:800 !important;
  color:rgba(255,255,255,.88) !important;
}

.for-sale-board .score-zone em{
  width:100% !important;
  padding:13px 14px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,rgba(22,101,52,.70),rgba(20,83,45,.88)) !important;
  border:1px solid rgba(74,222,128,.35) !important;
  color:#86efac !important;
  font-size:15px !important;
  font-weight:950 !important;
  line-height:1.05 !important;
  text-align:center !important;
  font-style:normal !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.for-sale-board .action-panel{
  background:linear-gradient(180deg,rgba(28,48,65,.96),rgba(18,35,50,.96)) !important;
  border:1px solid rgba(148,163,184,.24) !important;
  border-radius:28px !important;
  padding:22px !important;
  min-width:250px !important;
  box-shadow:0 18px 45px rgba(0,0,0,.22) !important;
}

.for-sale-board .action-panel h4{
  margin:18px 0 16px !important;
  color:rgba(255,255,255,.72) !important;
  font-size:17px !important;
  line-height:1.15 !important;
  letter-spacing:.12em !important;
}

.for-sale-board .action-panel button,
.for-sale-board .action-panel a,
.for-sale-board .action-panel .live-listing-btn{
  width:100% !important;
  min-height:58px !important;
  margin:0 0 12px 0 !important;
  padding:15px 18px !important;
  border-radius:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:normal !important;
  line-height:1.15 !important;
  font-size:16px !important;
  font-weight:900 !important;
  color:#fff !important;
  text-decoration:none !important;
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.for-sale-board .action-panel .live-listing-btn,
.for-sale-board .action-panel a[href]{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6) !important;
  border:1px solid rgba(196,181,253,.34) !important;
}

.for-sale-board .action-panel .action-close{
  min-height:52px !important;
  background:rgba(255,255,255,.10) !important;
  color:rgba(255,255,255,.88) !important;
  margin-bottom:18px !important;
}

.for-sale-board .action-panel button:last-child{
  margin-bottom:0 !important;
}


/* Fix score/actions overlap */
.for-sale-board .fpea-top-grid{
  grid-template-columns:260px minmax(0,1fr) 170px 220px !important;
  gap:18px !important;
  align-items:stretch !important;
}

.for-sale-board .score-zone{
  min-width:0 !important;
  width:170px !important;
  padding:18px 12px !important;
}

.for-sale-board .score-zone .score-ring-clean{
  width:118px !important;
  height:118px !important;
}

.for-sale-board .score-zone .score-ring-clean strong{
  font-size:36px !important;
}

.for-sale-board .score-zone p{
  font-size:16px !important;
}

.for-sale-board .score-zone em{
  font-size:12px !important;
  padding:10px 8px !important;
}

.for-sale-board .action-panel{
  min-width:0 !important;
  width:220px !important;
  padding:16px !important;
}

.for-sale-board .action-panel button,
.for-sale-board .action-panel a,
.for-sale-board .action-panel .live-listing-btn{
  min-height:48px !important;
  font-size:14px !important;
  padding:12px 10px !important;
  border-radius:14px !important;
}

.for-sale-board .action-panel h4{
  font-size:14px !important;
  margin:14px 0 12px !important;
}


/* Premium cleaner deal score */
.for-sale-board .score-zone{
  justify-content:flex-start !important;
}

.for-sale-board .score-zone .score-ring-clean{
  width:112px !important;
  height:112px !important;
  margin:6px auto 10px !important;
  border-width:8px !important;
  position:relative !important;
}

.for-sale-board .score-zone .score-ring-clean strong{
  position:absolute !important;
  top:42% !important;
  left:50% !important;
  transform:translate(-50%,-50%) !important;
  font-size:42px !important;
  font-weight:950 !important;
  line-height:1 !important;
  color:#74f083 !important;
}

.for-sale-board .score-zone .score-ring-clean span{
  position:absolute !important;
  top:66% !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  font-size:15px !important;
  font-weight:700 !important;
  opacity:.78 !important;
}

.for-sale-board .score-zone p{
  margin:6px 0 12px !important;
  font-size:14px !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  color:rgba(255,255,255,.72) !important;
}

.for-sale-board .score-zone em{
  border-radius:18px !important;
  padding:12px 14px !important;
  font-size:14px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  width:100% !important;
}


/* Premium cleaner score styling for OWNED dashboards */
.fpea-investor-board:not(.for-sale-board) .score-zone{
  background:linear-gradient(180deg,rgba(15,35,52,.96),rgba(9,24,38,.96)) !important;
  border:1px solid rgba(148,163,184,.22) !important;
  border-radius:24px !important;
  padding:18px 14px !important;
  min-width:0 !important;
  width:170px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  box-shadow:0 18px 45px rgba(0,0,0,.20) !important;
}

.fpea-investor-board:not(.for-sale-board) .score-zone .score-ring-clean{
  width:112px !important;
  height:112px !important;
  margin:6px auto 10px !important;
  border-width:8px !important;
  position:relative !important;
}

.fpea-investor-board:not(.for-sale-board) .score-zone .score-ring-clean strong{
  position:absolute !important;
  top:42% !important;
  left:50% !important;
  transform:translate(-50%,-50%) !important;
  font-size:42px !important;
  font-weight:950 !important;
  line-height:1 !important;
  color:#74f083 !important;
}

.fpea-investor-board:not(.for-sale-board) .score-zone .score-ring-clean span{
  position:absolute !important;
  top:66% !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  font-size:15px !important;
  font-weight:700 !important;
  opacity:.78 !important;
}

.fpea-investor-board:not(.for-sale-board) .score-zone p{
  margin:6px 0 12px !important;
  font-size:14px !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:.08em !important;
  color:rgba(255,255,255,.72) !important;
}

.fpea-investor-board:not(.for-sale-board) .score-zone em{
  border-radius:18px !important;
  padding:12px 14px !important;
  font-size:14px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  width:100% !important;
  text-align:center !important;
  font-style:normal !important;
  background:linear-gradient(135deg,rgba(22,101,52,.70),rgba(20,83,45,.88)) !important;
  border:1px solid rgba(74,222,128,.35) !important;
  color:#86efac !important;
}


/* Fix OWNED dashboard score/actions overlap */
.fpea-investor-board:not(.for-sale-board) .fpea-top-grid{
  grid-template-columns:260px minmax(0,1fr) 170px 230px !important;
  gap:18px !important;
  align-items:stretch !important;
}

.fpea-investor-board:not(.for-sale-board) .score-zone{
  width:170px !important;
  min-width:0 !important;
  padding:16px 12px !important;
}

.fpea-investor-board:not(.for-sale-board) .action-panel{
  width:230px !important;
  min-width:0 !important;
  padding:16px !important;
  border-radius:24px !important;
}

.fpea-investor-board:not(.for-sale-board) .action-panel button,
.fpea-investor-board:not(.for-sale-board) .action-panel a{
  width:100% !important;
  min-height:50px !important;
  margin:0 0 12px 0 !important;
  padding:12px 10px !important;
  border-radius:14px !important;
  font-size:14px !important;
  line-height:1.15 !important;
  white-space:normal !important;
  text-align:center !important;
}

.fpea-investor-board:not(.for-sale-board) .action-panel h4{
  font-size:14px !important;
  margin:14px 0 12px !important;
  letter-spacing:.12em !important;
}

.fpea-investor-board:not(.for-sale-board) .action-panel .action-close{
  min-height:48px !important;
  margin-bottom:16px !important;
}


/* Action hierarchy polish: primary / secondary / utility */
.fpea-investor-board .action-panel button,
.fpea-investor-board .action-panel a{
  position:relative !important;
}

/* First real workflow button = primary */
.fpea-investor-board .action-panel h4 + button,
.fpea-investor-board .action-panel h4 + a{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6) !important;
  border:1px solid rgba(196,181,253,.38) !important;
  color:#fff !important;
  box-shadow:
    0 12px 28px rgba(124,58,237,.28),
    inset 0 1px 0 rgba(255,255,255,.12) !important;
}

/* Second workflow button = secondary */
.fpea-investor-board .action-panel h4 + button + button,
.fpea-investor-board .action-panel h4 + a + button{
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  color:#fff !important;
}

/* Third workflow button = utility */
.fpea-investor-board .action-panel h4 + button + button + button,
.fpea-investor-board .action-panel h4 + a + button + button{
  min-height:44px !important;
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:rgba(255,255,255,.82) !important;
}

/* Hide button stays neutral */
.fpea-investor-board .action-panel .action-close{
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  color:rgba(255,255,255,.88) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* Better section label */
.fpea-investor-board .action-panel h4{
  color:rgba(255,255,255,.60) !important;
}

/* Button hover feel */
.fpea-investor-board .action-panel button:hover,
.fpea-investor-board .action-panel a:hover{
  transform:translateY(-1px) !important;
  filter:brightness(1.08) !important;
}



}


/* Portfolio Journey Panel */
.portfolio-journey-panel{
  position:absolute;
  top:104px;
  right:52px;
  width:63%;
  max-width:1120px;
  min-height:210px;
  padding:26px 30px;
  border-radius:28px;
  background:
    radial-gradient(circle at 82% 55%, rgba(34,197,94,.18), transparent 24%),
    radial-gradient(circle at 48% 18%, rgba(124,58,237,.12), transparent 26%),
    linear-gradient(135deg, rgba(10,33,45,.92), rgba(8,28,43,.74));
  border:1px solid rgba(74,222,128,.32);
  box-shadow:
    0 24px 70px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
  pointer-events:none;
}

.portfolio-journey-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:46px 46px;
  opacity:.28;
  mask-image:linear-gradient(90deg, transparent, #000 35%, #000 100%);
}

.portfolio-journey-panel::after{
  content:"";
  position:absolute;
  right:-60px;
  bottom:-90px;
  width:420px;
  height:260px;
  background:radial-gradient(circle, rgba(34,197,94,.28), transparent 62%);
  filter:blur(8px);
}

.pj-copy{
  position:relative;
  z-index:2;
}

.pj-copy h2{
  margin:0;
  color:#fff;
  font-size:25px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.02em;
}

.pj-copy p{
  margin:8px 0 0;
  color:rgba(255,255,255,.72);
  font-size:15px;
}

.pj-steps{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 48px 1fr 48px 1fr 48px 1fr;
  gap:10px;
  align-items:center;
  margin-top:28px;
  max-width:780px;
}

.pj-step{
  text-align:center;
}

.pj-icon{
  width:64px;
  height:64px;
  margin:0 auto 12px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:900;
  color:#fff;
  background:rgba(255,255,255,.06);
  border:2px solid rgba(255,255,255,.18);
  box-shadow:0 0 28px rgba(34,197,94,.10);
}

.pj-step.green .pj-icon{
  border-color:rgba(34,197,94,.65);
  color:#86efac;
}

.pj-step.purple .pj-icon{
  border-color:rgba(168,85,247,.70);
  color:#d8b4fe;
}

.pj-step.blue .pj-icon{
  border-color:rgba(96,165,250,.70);
  color:#bfdbfe;
}

.pj-step b{
  display:block;
  color:#fff;
  font-size:13px;
  line-height:1.2;
  margin-bottom:6px;
}

.pj-step span{
  display:block;
  color:rgba(255,255,255,.63);
  font-size:12px;
  line-height:1.35;
}

.pj-line{
  height:2px;
  background:linear-gradient(90deg, rgba(34,197,94,.25), rgba(255,255,255,.20), rgba(96,165,250,.25));
  border-radius:999px;
  transform:translateY(-28px);
}

.pj-house-outline{
  position:absolute;
  right:52px;
  bottom:34px;
  width:150px;
  height:120px;
  opacity:.78;
  z-index:2;
}

.pj-house-roof{
  position:absolute;
  left:28px;
  top:12px;
  width:92px;
  height:92px;
  border-left:3px solid rgba(168,85,247,.68);
  border-top:3px solid rgba(168,85,247,.68);
  transform:rotate(45deg);
  border-radius:4px;
  box-shadow:0 0 18px rgba(168,85,247,.22);
}

.pj-house-body{
  position:absolute;
  left:32px;
  bottom:4px;
  width:86px;
  height:70px;
  border:3px solid rgba(34,197,94,.72);
  border-top:none;
  border-radius:4px;
  box-shadow:0 0 22px rgba(34,197,94,.24);
}

.pj-house-glow{
  position:absolute;
  left:54px;
  bottom:0;
  width:58px;
  height:16px;
  background:rgba(34,197,94,.38);
  filter:blur(16px);
}

@media(max-width:1300px){
  .portfolio-journey-panel{
    position:relative;
    top:auto;
    right:auto;
    width:100%;
    max-width:none;
    margin:28px 0 0;
  }
}

@media(max-width:900px){
  .pj-steps{
    grid-template-columns:1fr;
  }

  .pj-line{
    display:none;
  }

  .pj-house-outline{
    display:none;
  }
}


/* FIX: keep Portfolio Journey panel in the marked top-right space */
.portfolio-journey-panel{
  position:absolute !important;
  top:96px !important;
  left:660px !important;
  right:52px !important;
  width:auto !important;
  max-width:none !important;
  min-height:210px !important;
  height:210px !important;
  margin:0 !important;
  z-index:3 !important;
  pointer-events:none !important;
}

.portfolio-journey-panel .pj-steps{
  grid-template-columns:1fr 42px 1fr 42px 1fr 42px 1fr !important;
  max-width:760px !important;
  margin-top:26px !important;
}

.portfolio-journey-panel .pj-house-outline{
  display:block !important;
  right:54px !important;
  bottom:34px !important;
  width:140px !important;
  height:112px !important;
}

/* Override previous responsive rule that pushed it into the page */
@media(max-width:1300px){
  .portfolio-journey-panel{
    position:absolute !important;
    top:96px !important;
    left:560px !important;
    right:36px !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
  }
}

@media(max-width:1050px){
  .portfolio-journey-panel{
    display:none !important;
  }
}


/* Shared FPEA module logo lock-up */
.fpea-shared-lockup{
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.fpea-shared-mark{
  width:54px;
  height:54px;
  border-radius:17px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#86efac,#22c55e);
  color:#061624;
  font-size:13px;
  font-weight:950;
  letter-spacing:.04em;
  box-shadow:0 16px 34px rgba(34,197,94,.24);
}

.fpea-shared-text span{
  display:block;
  color:#86efac;
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fpea-shared-text em{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.78);
  font-size:14px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-style:normal;
}


/* Same FPEA logo lockup across modules */
.fpea-brand-lockup{
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.fpea-brand-logo{
  width:52px;
  height:52px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#22c55e,#86efac);
  color:#062012;
  font-size:27px;
  font-weight:900;
  box-shadow:0 16px 34px rgba(34,197,94,.24);
}

.fpea-brand-text strong{
  display:block;
  color:#fff;
  font-size:18px;
  font-weight:950;
  letter-spacing:.04em;
}

.fpea-brand-text span{
  display:block;
  margin-top:2px;
  color:#86efac;
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fpea-brand-text em{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-style:normal;
}


/* Same FPEA logo lockup across modules */
.fpea-brand-lockup{
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.fpea-brand-logo{
  width:52px;
  height:52px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#22c55e,#86efac);
  color:#062012;
  font-size:27px;
  font-weight:900;
  box-shadow:0 16px 34px rgba(34,197,94,.24);
}

.fpea-brand-text strong{
  display:block;
  color:#fff;
  font-size:18px;
  font-weight:950;
  letter-spacing:.04em;
}

.fpea-brand-text span{
  display:block;
  margin-top:2px;
  color:#86efac;
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.fpea-brand-text em{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-style:normal;
}


/* Opened portfolio dashboard logo lockup */
.portfolio-dashboard-lockup{
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.portfolio-dashboard-lockup .op-fpea-logo{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #66d36e;
  color:#9cf69f;
  font-size:26px;
  font-weight:900;
  background:rgba(34,197,94,.06);
  box-shadow:0 0 22px rgba(34,197,94,.12);
}

.portfolio-dashboard-lockup strong{
  display:block;
  color:#fff;
  font-size:30px;
  font-weight:950;
  letter-spacing:.02em;
  line-height:1;
}

.portfolio-dashboard-lockup span{
  display:block;
  margin-top:5px;
  color:#86efac;
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.portfolio-dashboard-lockup em{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-style:normal;
}


/* Open portfolio logo readability on light header */
.portfolio-dashboard-lockup strong{
  color:#0f172a !important;
}

.portfolio-dashboard-lockup span{
  color:#16a34a !important;
}

.portfolio-dashboard-lockup em{
  color:#475569 !important;
}

.portfolio-dashboard-lockup .op-fpea-logo{
  background:rgba(34,197,94,.08) !important;
  border:2px solid #22c55e !important;
  color:#22c55e !important;
  box-shadow:none !important;
}


/* ===== FIX Landlord EPC Compliance Planner visual layout ===== */
.landlord-compliance-panel{
  margin:22px 0 26px !important;
  padding:24px !important;
  border-radius:28px !important;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 34%),
    linear-gradient(135deg,#07111f,#0f2d44 52%,#14532d) !important;
  color:white !important;
  box-shadow:0 24px 70px rgba(15,23,42,.22) !important;
}

.lc-head{
  display:flex !important;
  justify-content:space-between !important;
  gap:22px !important;
  align-items:flex-start !important;
  margin-bottom:18px !important;
}

.lc-eyebrow{
  display:block !important;
  color:#86efac !important;
  font-size:12px !important;
  font-weight:950 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase !important;
  margin-bottom:8px !important;
}

.landlord-compliance-panel h2{
  margin:0 0 8px !important;
  font-size:30px !important;
  letter-spacing:-.04em !important;
  color:white !important;
}

.landlord-compliance-panel p{
  margin:0 !important;
  color:#dbeafe !important;
  max-width:820px !important;
  line-height:1.5 !important;
}

.lc-risk-badge{
  min-width:150px !important;
  text-align:center !important;
  border-radius:999px !important;
  padding:12px 18px !important;
  font-weight:950 !important;
  background:white !important;
  color:#0f172a !important;
  box-shadow:0 14px 32px rgba(0,0,0,.2) !important;
}

.lc-risk-badge.low{background:#dcfce7 !important;color:#166534 !important}
.lc-risk-badge.medium{background:#fef3c7 !important;color:#92400e !important}
.lc-risk-badge.high{background:#fee2e2 !important;color:#991b1b !important}

.lc-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-bottom:16px !important;
}

.lc-card{
  background:rgba(255,255,255,.94) !important;
  color:#0f172a !important;
  border:1px solid rgba(255,255,255,.55) !important;
  border-radius:20px !important;
  padding:17px !important;
  box-shadow:0 14px 35px rgba(15,23,42,.15) !important;
}

.lc-card span{
  display:block !important;
  font-size:11px !important;
  font-weight:950 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  color:#64748b !important;
}

.lc-card strong{
  display:block !important;
  margin-top:8px !important;
  font-size:30px !important;
  letter-spacing:-.04em !important;
  color:#0f172a !important;
}

.lc-card small{
  display:block !important;
  margin-top:4px !important;
  color:#64748b !important;
  font-weight:700 !important;
}

.lc-info-grid{
  display:grid !important;
  grid-template-columns:1.1fr .9fr !important;
  gap:16px !important;
}

.lc-rules-card,
.lc-timeline-card{
  background:rgba(255,255,255,.94) !important;
  color:#0f172a !important;
  border-radius:22px !important;
  padding:20px !important;
  border:1px solid rgba(255,255,255,.65) !important;
  box-shadow:0 14px 36px rgba(15,23,42,.14) !important;
}

.lc-rules-card h3,
.lc-timeline-card h3{
  margin:0 0 12px !important;
  font-size:18px !important;
  color:#0f172a !important;
}

.lc-rules-card ul{
  margin:0 !important;
  padding-left:18px !important;
  color:#334155 !important;
  line-height:1.55 !important;
}

.lc-note{
  margin-top:12px !important;
  color:#64748b !important;
  font-size:12px !important;
  font-weight:700 !important;
}

.lc-timeline{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}

.lc-timeline div{
  display:grid !important;
  grid-template-columns:64px 1fr !important;
  gap:10px !important;
  align-items:center !important;
  padding:10px 12px !important;
  border-radius:14px !important;
  background:#f8fafc !important;
  border:1px solid #e5e7eb !important;
}

.lc-timeline b{
  color:#166534 !important;
}

.lc-timeline span{
  color:#334155 !important;
  font-size:13px !important;
  font-weight:750 !important;
}

@media (max-width:1100px){
  .lc-grid,
  .lc-info-grid{
    grid-template-columns:1fr 1fr !important;
  }
}

@media (max-width:760px){
  .lc-head{
    flex-direction:column !important;
  }

  .lc-grid,
  .lc-info-grid{
    grid-template-columns:1fr !important;
  }
}

/* ===== Landlord EPC date + close-to-C advice chips ===== */
.epc-date-stack{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:5px;
}

.epc-date-stack small{
  color:#64748b;
  font-size:11px;
  font-weight:750;
}

.epc-advice-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  font-weight:950;
  margin-top:6px;
  white-space:nowrap;
}

.epc-advice-chip.good{background:#dcfce7;color:#166534}
.epc-advice-chip.close{background:#ffedd5;color:#9a3412}
.epc-advice-chip.moderate{background:#fef3c7;color:#92400e}
.epc-advice-chip.high{background:#fee2e2;color:#991b1b}
.epc-advice-chip.unknown{background:#e5e7eb;color:#374151}

.epc-expiry-chip{
  display:inline-flex;
  border-radius:999px;
  padding:5px 8px;
  font-size:10px;
  font-weight:950;
  margin-top:4px;
}

.epc-expiry-chip.valid{background:#dcfce7;color:#166534}
.epc-expiry-chip.review{background:#fef3c7;color:#92400e}
.epc-expiry-chip.expiring{background:#fee2e2;color:#991b1b}
.epc-expiry-chip.unknown{background:#e5e7eb;color:#374151}

/* ===== Compact EPC date display override ===== */
.epc-date-stack{
  display:none !important;
}

.epc-compact-meta{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:11px;
  font-weight:800;
  color:#64748b;
  line-height:1.25;
}

.epc-compact-chips{
  margin-top:6px;
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  max-width:180px;
}

.epc-expiry-chip,
.epc-advice-chip{
  margin-top:0 !important;
  padding:4px 7px !important;
  font-size:10px !important;
  line-height:1.1 !important;
  max-width:95px;
  white-space:normal !important;
}

.property-row td:nth-child(3){
  min-width:190px;
}

/* ===== Cleaner EPC dates layout ===== */
.address-epc-dates{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.address-epc-dates span{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:5px 8px;
}

.epc-compact-meta,
.epc-date-stack{
  display:none !important;
}

.epc-mini-chips{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}

.epc-mini-chips .epc-expiry-chip,
.epc-mini-chips .epc-advice-chip{
  max-width:none !important;
  white-space:nowrap !important;
  padding:5px 8px !important;
  font-size:10px !important;
}

.property-row td:nth-child(3){
  min-width:155px;
}
