/* Compact source images and consistent investment badges on every gallery. */
.source-photo-slot{position:relative!important;display:block;aspect-ratio:16/10;overflow:hidden;padding:0!important;margin:0!important}
.source-photo-slot[hidden]{display:none!important}
.source-photo-slot>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;margin:0!important}
.ai-grid,.opc-grid{align-items:start!important}
.ai-card-body,.opc-card-body{min-height:0!important;padding:12px!important;display:block!important}
.ai-card-actions{margin-top:8px!important;gap:6px!important}
.performance-tags{display:flex!important;flex-flow:row nowrap!important;align-items:stretch;gap:5px!important;max-width:100%;overflow-x:auto;margin:8px 0!important;padding:0 0 3px!important;scrollbar-width:thin}
.performance-tag{display:inline-flex!important;flex:0 0 auto!important;flex-direction:column;gap:2px;justify-content:center;border-radius:9px;padding:6px 9px!important;line-height:1.2;white-space:nowrap;border:1px solid #c0d4e3;font-size:13px;min-width:0;width:max-content!important;max-width:none!important}
.performance-tag small{font-size:10px;font-weight:500;line-height:1.25;color:inherit!important}
.performance-tag bdi{font-size:14px;font-weight:700}
.performance-price{background:#edf4fa;color:#274f72}
.performance-roi{background:#d3e4f2;color:#204869}
.performance-capital{background:#a9c9e2;color:#143b5b}
.investment-period{position:relative;display:inline-block;max-width:100%;font:inherit}
.investment-period summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;min-height:35px;padding:7px 10px;background:#e1edf6;border:1px solid #bed3e3;border-radius:9px;font-size:12px;color:#244b68}
.investment-period-fields{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:10px;border:1px solid #cadbe8;border-radius:10px;background:#f7fbff;margin-top:6px}
.investment-period-fields label{display:grid;gap:4px;font-size:12px;min-width:120px;flex:1}
.investment-period-fields select,.investment-period-fields input{box-sizing:border-box;width:100%;min-height:36px;max-width:100%;padding:5px 8px;border:1px solid #bfcede;border-radius:7px;font:inherit;background:white;color:#20394b}
.investment-period-fields [hidden]{display:none!important}
.investment-period-fields button{min-height:36px;border:1px solid #a9c4d8;border-radius:7px;background:#d6e7f4;color:#244b68;padding:6px 12px;font:inherit}
.investment-period-fields [role=status]{flex-basis:100%;color:#a33333}
#mobileAiPanel .investment-period,#aiMapTools .investment-period{max-width:100%;min-width:0}
#mobileAiPanel .investment-period summary,#aiMapTools .investment-period summary{max-width:100%;box-sizing:border-box;white-space:normal}
#mobileAiPanel .investment-period-fields,#aiMapTools .investment-period-fields{position:static;max-width:100%;box-sizing:border-box;box-shadow:none}
#inventoryRows th button[data-sort=roi],#inventoryRows th button[data-sort=capital]{white-space:nowrap}
.property-investment:has(+.performance-tags){display:none}
@media(max-width:650px){.performance-tags{gap:4px!important}.performance-tag{padding:6px 8px!important}.performance-tag small{font-size:10px}.performance-tag bdi{font-size:13px}.ai-card h2,.ai-card h3{margin-bottom:7px}.ai-card-actions>*{white-space:nowrap}.investment-period{flex-basis:auto}}

.ai-tools{align-items:center!important}.ai-tools input,.ai-tools select,.ai-tools>button{height:42px!important}.ai-tools .investment-period-fields{position:absolute;inset-inline-end:0;top:100%;width:210px;z-index:1000;box-shadow:0 5px 18px #20394b22}.ai-tools .investment-period{align-self:center}

/* Compact two-line capital label with a high-contrast value beside it. */
.performance-tags .performance-capital{
  flex-direction:row!important;align-items:center!important;gap:8px!important;
  background:#32688f!important;border-color:#32688f!important;color:#fff!important;
}
.performance-tags .performance-capital small{
  display:block;white-space:normal!important;inline-size:12ch;max-inline-size:12ch;
  line-height:1.2;color:#fff!important;text-align:start;font-weight:500;
}
.performance-tags .performance-capital bdi{flex:none;white-space:nowrap;color:#fff!important}
/* Every project action occupies the same size and uses the same button treatment. */
.ai-card .ai-card-actions{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;gap:6px!important;width:100%;
}
.ai-card .ai-card-actions>button,.ai-card .ai-card-actions>a{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:center!important;width:100%!important;min-width:0!important;
  max-width:none!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:5px 7px!important;border:1px solid #cad8e2!important;
  border-radius:9px!important;background:#edf3f7!important;color:#274c64!important;
  font-family:inherit!important;font-size:11px!important;font-weight:500!important;
  line-height:1.2!important;text-align:center!important;white-space:normal!important;
  text-decoration:none!important;overflow-wrap:normal!important;
}
.ai-card .ai-card-actions>button:hover,.ai-card .ai-card-actions>a:hover{background:#dceaf3!important}
.ai-card .ai-card-actions>button:focus-visible,.ai-card .ai-card-actions>a:focus-visible{outline:2px solid #32688f;outline-offset:2px}
