/* A compact first view, with original nodes and full detail retained.
   No page scaling, fixed content height, line truncation or zoom restriction. */
@media screen{
  body #report.ama78-compact-report{--ama78-space:8px;--ama78-card-space:12px;}
  body #report.ama78-compact-report>.ama-ud-property{padding:6px 10px;gap:8px;margin-bottom:5px;}
  body #report.ama78-compact-report>.ama-ud-property>svg{width:24px;height:24px;flex:none;}
  body #report.ama78-compact-report>.ama-ud-property strong{font-size:.875rem;line-height:1.3;}
  body #report.ama78-compact-report>.ama-ud-property span{font-size:.75rem;line-height:1.3;margin-top:2px;}
  body #report.ama78-compact-report>.ama-ud-nav.ama78-compact-nav{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px;padding:0;margin-bottom:6px;min-height:44px;}
  body #report.ama78-compact-report>.ama78-compact-nav:has(>.ama27-report-actions:not([hidden])){grid-template-columns:44px minmax(0,1fr) 44px;}
  body #report.ama78-compact-report .ama78-compact-nav .ama-ud-return{width:44px;height:44px;padding:8px;justify-content:center;}
  body #report.ama78-compact-report .ama78-compact-nav .ama-ud-return>span{display:none;}
  body #report.ama78-compact-report .ama78-compact-nav .ama-ud-return>svg{width:22px;height:22px;}
  body #report.ama78-compact-report .ama78-compact-nav .ama-ud-menu>summary{min-height:44px;padding:6px 10px;font-size:.875rem;}
  body #report.ama78-compact-report .ama78-compact-nav>.ama27-report-actions{display:block;margin:0;padding:0;position:relative;min-width:0;}
  body #report.ama78-compact-report .ama78-actions-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;height:44px;cursor:pointer;border:1px solid #d9e3dc;border-radius:10px;background:#fff;color:#24583f;}
  body #report.ama78-compact-report .ama78-actions-menu>summary::-webkit-details-marker{display:none;}
  body #report.ama78-compact-report .ama78-actions-menu>summary>svg{width:24px;height:24px;}
  body #report.ama78-compact-report .ama78-actions-body{position:absolute;right:0;top:50px;z-index:1010;width:min(260px,calc(100vw - 32px));padding:6px;border:1px solid #d5e2d9;border-radius:12px;background:white;box-shadow:0 8px 24px #163c2626;}
  body #report.ama78-compact-report .ama78-actions-body>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;width:100%;margin:0;padding:8px 10px;font-size:.875rem;line-height:1.3;border:0;background:white;}
  body #report.ama78-compact-report>:is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel{font-size:.875rem;line-height:1.45;padding-bottom:8px;}
  body #report.ama78-compact-report>:is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel>.card{padding:var(--ama78-card-space);border-radius:14px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-reading-heading,.ama-market-heading,.gr-heading,.ama-ud-heading,.ama-energy-heading,.ama-permits-head,.ama-rental-head,.ama-visit-head,.ama-budget-heading,.ama-buyer-heading){margin-bottom:8px;padding:0;gap:5px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel h2{font-size:1.1875rem;line-height:1.25;margin:0 0 4px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel h3{font-size:1rem;line-height:1.3;margin-bottom:6px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel h4{font-size:.875rem;line-height:1.35;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel p{font-size:.8125rem;line-height:1.45;}
  body #report.ama78-compact-report .ama-reading-heading>p{margin-top:4px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.w-shell,.n-shell,.ama-tax-shell,.ama-net-shell,.ama-rnb-shell,.ama-heritage-shell,.ama-buyer-guide,.ama-permits-shell,.ama-rental-shell,.ama-visit-shell,.ama-energy-shell,.ama-ws-shell,.ama-budget-layout,.ama-rental-layout){gap:var(--ama78-space);}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-rnb-hero,.ama-rnb-card,.w-control,.w-restriction,.w-card,.n-summary,.n-card,.ama-heritage-hero,.ama-heritage-item,.ama-heritage-regulatory,.ama-tax-estimate,.ama-net-hero,.ama-ud-summary,.ama-ud-documents,.ama-rental-reference,.ama-rental-results,.ama-rental-form,.ama-permit-card,.ama-buyer-card,.ama-budget-result,.ama-budget-form,.ama-energy-overview,.ama-energy-brief,.ama-energy-cost,.ama-energy-priorities,.ama-ws-summary,.ama-visit-overview,.ama-market-offer,.ama-market-price,.gr-alert,.gr-official-cta){padding:var(--ama78-card-space);border-radius:12px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-market-view,.gr-view-v49755,.ama-urban-enhanced){gap:8px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-reading-fold,.ama-ud-fold,.gr-fold,.ama-market-confidence,.ama-energy-fold,.ama-ws-method){margin-block:6px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-reading-fold,.ama-ud-fold,.gr-fold,.ama-market-confidence,.ama-energy-fold,.ama-ws-method)>summary{min-height:44px;padding:8px 10px;font-size:.8125rem;line-height:1.35;}
  body #report.ama78-compact-report .ama78-detail-fold{grid-column:1/-1;min-width:0;border:1px solid #dbe5de;background:#fff;border-radius:11px;margin:6px 0;}
  body #report.ama78-compact-report .ama78-detail-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 11px;font-size:.875rem;line-height:1.35;font-weight:650;list-style:none;cursor:pointer;color:#294e3a;}
  body #report.ama78-compact-report .ama78-detail-fold>summary::-webkit-details-marker{display:none;}
  body #report.ama78-compact-report .ama78-detail-fold>summary::after{content:"+";font-size:1.25rem;flex:none;}
  body #report.ama78-compact-report .ama78-detail-fold[open]>summary::after{content:"−";}
  body #report.ama78-compact-report .ama78-detail-body{padding:10px;display:grid;gap:10px;}
  body #report.ama78-compact-report .ama78-detail-body>:first-child{margin-top:0;}
  body #report.ama78-compact-report :is(.ama78-detail-fold>summary,.ama78-actions-menu summary,.ama78-actions-body button):focus-visible{outline:3px solid #347857;outline-offset:2px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(button,summary){min-height:44px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:1rem!important;min-height:44px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-market-offer-amount,.ama-budget-number,.ama-rental-reference-value,.ama-energy-amount){font-size:1.5rem;line-height:1.2;}
  body #report.ama78-compact-report .ama-section-pdf-bar{margin-bottom:6px;}
  body #report.ama78-compact-report .ama71-nearby-map{margin-top:5px;}
  body #report.ama78-compact-report .ama71-filter-line{margin-bottom:7px;}
  body #report.ama78-compact-report .ama71-sheet{margin-top:8px;padding:10px;}
  body #report.ama78-compact-report .ama71-sheet-head h4{font-size:.9375rem;}
  body #report.ama78-compact-report .ama71-detail-toggle{margin-top:8px;}
  body #report.ama78-compact-report .ama71-list{margin-top:8px;}
  /* The promoted budget is an overview row; a sticky sidebar would cover the detail toggle. */
  body #report.ama78-compact-report #works.ama78-panel .ama-ws-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
  body #report.ama78-compact-report #works.ama78-panel .ama-ws-summary{position:static;top:auto;grid-column:1/-1;}
  /* Price information stays open; density comes from spacing and parallel metrics. */
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-heading{margin-bottom:6px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-heading h2{font-size:18px;line-height:1.25;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-heading p{margin:2px 0 0;font-size:12px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open :is(.ama-market-offer,.ama-market-price,.ama-market-empty){padding:9px;margin-bottom:7px;border-radius:12px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open h3{font-size:15px;margin-bottom:5px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-head{gap:6px;flex-wrap:nowrap;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-icon{width:28px;height:28px;border-radius:8px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-icon svg{width:21px;height:21px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-head h3{flex:1 1 auto;min-width:0;margin:0;font-size:14px;line-height:1.25;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-verdict{flex:0 1 auto;max-width:43%;font-size:11px;padding:4px 6px;line-height:1.3;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-amount{margin:5px 0 2px;font-size:24px;line-height:1.15;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open :is(.ama-market-offer-note,.ama-market-note,.ama-market-source,.ama-market-count){font-size:12px;line-height:1.35;margin:4px 0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-details{margin-top:5px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-details>summary{min-height:28px;padding:4px 0;font-size:12px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-offer-details p{margin:3px 0;font-size:12px;line-height:1.35;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0;align-items:stretch;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-metrics>div{padding:7px;border-radius:9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-metrics span{font-size:12px;line-height:1.3;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-metrics strong{font-size:clamp(18px,5.2vw,22px);line-height:1.2;margin:4px 0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-metrics small{font-size:12px;line-height:1.3;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-position{padding-top:0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-position-status{font-size:12px;padding:3px 6px;line-height:1.3;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-gap{font-size:13px;line-height:1.35;margin:4px 0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-gauge{margin:14px 0 9px;height:8px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-band{height:8px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-median{top:-3px;height:14px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-pin{top:-4px;height:16px;width:8px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open :is(.ama-market-range,.ama-market-legend){font-size:12px;line-height:1.3;gap:4px 9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-legend{margin:6px 0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-jump{min-height:44px;font-size:13px;padding:7px 10px;margin-top:6px;border-radius:9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sales{margin-top:9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-list{gap:7px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale>summary{padding:9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-rank{font-size:11px;padding:3px 6px;margin-bottom:5px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-head{grid-template-columns:minmax(0,1fr) auto;gap:7px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-head strong{font-size:14px;line-height:1.3;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-address{font-size:12px;line-height:1.3;margin-top:3px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-price{text-align:right;padding-top:0;border-top:0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-price strong{font-size:18px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-price>span{font-size:13px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-reasons{margin:6px 0 4px;gap:4px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-reasons>span{font-size:11px;padding:2px 5px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-detail-hint{font-size:12px;min-height:22px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-details{margin:0 9px 9px;padding-top:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-details>div{display:block;font-size:12px;line-height:1.3;padding:0;min-width:0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-sale-details dd{text-align:left;margin-top:2px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-more{display:none;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-confidence{margin-top:9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-confidence>summary{padding:8px;gap:6px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-confidence>summary strong{font-size:14px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-confidence-body{padding:9px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-evidence{gap:6px;margin:7px 0;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-evidence>div{padding:7px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama-market-evidence strong{font-size:18px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open :is(.ama-market-evidence span,.ama-market-method p){font-size:12px;line-height:1.35;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open :is(.ama37-trend,.ama37-evidence){padding:9px;margin:8px 0;gap:6px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama37-trend-metrics{margin:8px 0;gap:6px;}
  body #report.ama78-compact-report #market.ama78-panel.ama80-market-open .ama37-price-chart{margin:7px 0;}
  /* Budget information and inputs remain open. Keep numeric inputs at 16px and touch controls at 44px. */
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open{font-size:13px;line-height:1.35;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-heading{margin:4px 0 6px;max-width:none;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-heading h2{font-size:18px;line-height:1.25;margin:3px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-heading .ama-budget-eyebrow{font-size:10px;line-height:1.3;letter-spacing:.07em;margin:0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open p{font-size:12px;line-height:1.35;margin:4px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open h3{font-size:14px;line-height:1.3;margin:0 0 5px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open :is(.ama-budget-result,.ama-budget-form){padding:9px;border-radius:12px;position:static;top:auto;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-layout{gap:7px;align-items:start;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-switch{gap:3px;padding:3px;margin-bottom:7px;border-radius:10px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-switch button{font-size:13px;line-height:1.3;padding:7px 5px;border-radius:8px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetOutput{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;align-items:start;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetOutput>:is(h3,p,details){grid-column:1/-1;margin:0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-amount{font-size:26px;line-height:1.15;margin:3px 0;letter-spacing:-.025em;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-amount small{font-size:12px;line-height:1.3;margin-left:4px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetOutput>.ama-budget-amount+p{grid-column:2;grid-row:3;align-self:center;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-housing{padding:7px 8px;border-radius:9px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open :is(.ama-budget-quick,.ama-finance-chart,.ama-budget-details){margin-top:8px;padding-top:7px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-quick h3{margin-bottom:5px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-field>span{font-size:12px;line-height:1.3;margin-bottom:3px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-input{min-height:44px;padding:0 7px;border-radius:8px;gap:3px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-input input{padding:8px 0;font-size:16px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-input>span{font-size:11px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-field small{font-size:12px;line-height:1.35;margin-top:3px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetDurations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:5px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetDurations>p{grid-column:1/-1;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-duration{min-width:0;margin:0;padding:7px;border-radius:9px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-duration[aria-pressed=true]{padding:6px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-duration-top{display:flex;flex-direction:column;align-items:flex-start;gap:3px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-duration-top b{font-size:13px;line-height:1.3;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-duration-top strong{font-size:16px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-duration-top small{display:block;font-size:11px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-duration-track{height:6px;margin:5px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-duration-cost{font-size:11px;line-height:1.3;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open details>summary{font-size:13px;line-height:1.3;min-height:30px;padding:4px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-missing{gap:5px;margin:4px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-missing button{font-size:12px;line-height:1.3;padding:6px 8px;min-height:44px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-stack{height:12px;margin:5px 0 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetBreakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-line{padding:5px 0;font-size:12px;line-height:1.35;gap:5px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-line:last-child{grid-column:1/-1;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-line b{white-space:normal;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-details table{font-size:12px;line-height:1.3;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-details caption{font-size:12px;line-height:1.3;margin:4px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-details :is(td,th){padding:5px 3px;line-height:1.35;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-saving{padding:7px 8px;border-radius:9px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-household-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-household-metrics>div{padding:7px;border-radius:9px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-household-metrics :is(span,small){font-size:12px;line-height:1.3;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-household-metrics strong{font-size:19px;margin:4px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-effort-track{height:8px;margin:12px 0 22px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-effort-track i{top:-3px;height:14px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-effort-track i::after{top:14px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetAmortization{margin-top:4px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open #amaBudgetAmortization svg{max-height:150px;margin:4px 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-amort-milestones{gap:5px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-amort-milestones>div{padding:6px 3px;border-radius:8px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-amort-milestones :is(span,b){font-size:12px;line-height:1.35;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-form fieldset{margin:8px 0 0;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-form legend{font-size:14px;margin-bottom:5px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-listed{padding:7px 8px;margin-top:4px;border-radius:9px;font-size:12px;gap:6px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-listed b{white-space:normal;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open :is(.ama-budget-form>.wide,.ama-budget-save,.ama-budget-secondary){font-size:13px;min-height:44px;padding:7px 10px;margin-top:7px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open .ama-budget-link{padding:7px 4px;font-size:12px;min-height:44px;}
  body #report.ama78-compact-report #budget.ama78-panel.ama81-budget-open :is(.ama-budget-error,#amaBudgetStatus){padding:7px 8px;font-size:12px;line-height:1.35;margin-top:6px;}
  /* Building data stays in the native renderer. All references are open; no text is shortened. */
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion{margin:6px 0;padding:9px;border-radius:12px;line-height:1.35;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion strong{font-size:14px;line-height:1.3;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion p{font-size:12px;line-height:1.35;margin:4px 0;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion button{min-height:44px;padding:7px 10px;font-size:13px;margin-top:6px;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion details{font-size:12px;line-height:1.35;margin-top:5px;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion summary{min-height:44px;display:flex;align-items:center;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion ul{margin:4px 0;padding-left:18px;}
  body #report.ama78-compact-report.ama82-building-view>.ama44-completion li{margin:3px 0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open{font-size:13px;line-height:1.35;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-heading{margin:4px 0 6px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-heading h2{font-size:18px;line-height:1.25;margin:0 0 3px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-heading p{font-size:12px;line-height:1.35;margin:3px 0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-demo{font-size:11px;margin-top:3px;padding:2px 6px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-section-pdf-bar{margin:6px 0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-section-pdf-button{min-height:44px;grid-template-columns:30px minmax(0,1fr) 20px;gap:7px;padding:7px 9px;border-radius:10px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-section-pdf-button b{font-size:12px;line-height:1.3;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-section-pdf-button small{font-size:12px;line-height:1.3;margin-top:2px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-section-pdf-icon{width:30px;height:30px;border-radius:8px;font-size:10px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-shell{gap:6px;font-size:13px;min-width:0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open :is(.ama-rnb-hero,.ama-rnb-card,.ama-rnb-empty){padding:9px;border-radius:12px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-eyebrow{font-size:10px;line-height:1.35;letter-spacing:.025em;gap:5px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-hero h3{font-size:16px;line-height:1.3;margin:4px 0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-id{margin-top:5px;gap:5px 8px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-id strong{font-size:20px;line-height:1.25;letter-spacing:.015em;overflow-wrap:anywhere;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-badge{font-size:12px;line-height:1.3;min-height:24px;padding:3px 7px;white-space:normal;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open :is(.ama-rnb-note,.ama-rnb-empty){font-size:12px;line-height:1.35;margin:5px 0 0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-grid>div{padding:7px;border-radius:9px;min-width:0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-grid small{font-size:12px;line-height:1.3;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-grid b{font-size:16px;line-height:1.25;margin-top:3px;overflow-wrap:anywhere;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-fold{margin:0;border-radius:12px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-fold>summary{min-height:44px;padding:7px 9px;font-size:13px;line-height:1.3;gap:6px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-reading-fold-body{gap:6px;padding:6px;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));align-items:start;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-card h4{font-size:14px;line-height:1.3;margin:0 0 5px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open :is(.ama-rnb-checks,.ama-rnb-list){gap:5px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open :is(.ama-rnb-check,.ama-rnb-row){padding:6px 7px;border-radius:8px;gap:6px;font-size:12px;line-height:1.35;min-width:0;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-check>span:last-child{min-width:0;overflow-wrap:anywhere;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-row :is(span,b){font-size:12px;line-height:1.35;overflow-wrap:anywhere;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-actions{gap:6px;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-action{min-height:44px;padding:7px 10px;font-size:13px;line-height:1.3;border-radius:9px;white-space:normal;}
  body #report.ama78-compact-report #rnb.ama78-panel.ama82-building-open .ama-rnb-footer{font-size:12px;line-height:1.35;padding-top:6px;overflow-wrap:anywhere;}
  /* Keep native notices, save states, limitations and unknown values in the overview. */
}
@media screen and (max-width:700px){
  body:has(#report.ama78-compact-report) .app>main{padding:8px 12px!important;}
  body #report.ama78-compact-report>.ama-ud-property strong{font-size:.8125rem;}
  body #report.ama78-compact-report>.ama-ud-property span{font-size:.75rem;}
  body #report.ama78-compact-report>:is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel{--ama78-card-space:10px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel h2{font-size:1.125rem;}
  body #report.ama78-compact-report .ama-reading-heading{margin-bottom:6px;}
  body #report.ama78-compact-report :is(#synth,#map,#market,#budget,#energy,#works,#rental,#rnb,#cadastre,#risks,#urban,#permits,#sector,#nearby,#connectivity,#waterQuality,#naturalAreas,#heritage,#localTax,#history,#buyer,#visit).ama78-panel :is(.ama-market-metrics,.ama-energy-metrics,.ama-energy-counters,.ama-budget-metrics,.ama-rental-kpis,.w-grid){gap:6px;}
  body #report.ama78-compact-report #budget .ama-budget-layout{grid-template-columns:minmax(0,1fr);}
  body #report.ama78-compact-report #rental .ama-rental-layout{grid-template-columns:minmax(0,1fr);}
  body #report.ama78-compact-report #energy .ama-energy-overview{gap:8px;}
  body #report.ama78-compact-report #energy .ama-energy-grades{gap:8px;}
  body #report.ama78-compact-report #energy .ama-energy-grade{padding:8px;}
  body #report.ama78-compact-report #energy .ama-energy-brief p{margin-block:4px;}
  body #report.ama78-compact-report #energy .ama-energy-cost :is(h3,p){margin-block:4px;}
  body #report.ama78-compact-report #permits .ama-permits-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body #report.ama78-compact-report #permits .ama-permits-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding-bottom:4px;}
  body #report.ama78-compact-report #permits .ama-permits-filters>button{flex:none;}
  body #report.ama78-compact-report #map #leaflet{height:clamp(260px,42svh,440px)!important;min-height:260px!important;}
  body #report.ama78-compact-report #nearby .ama71-map-canvas{height:clamp(230px,32svh,320px);}
  body #report.ama78-compact-report .ama78-detail-body{padding:8px;}
}
@media print{
  #report.ama78-compact-report .ama78-detail-fold>.ama78-detail-body{display:block!important;}
  #report.ama78-compact-report .ama78-detail-fold>summary{font-weight:bold;}
  #report.ama78-compact-report .ama78-actions-menu{display:none;}
}

@media screen{
  /* Keep all DPE details readable inline, with the original controls and conditional fields. */
  body #report.ama78-compact-report #energy.ama78-panel.ama83-energy-open .ama-energy-fold-body{padding:6px 0 10px;}
  body #report.ama78-compact-report #energy.ama78-panel.ama83-energy-open .ama-energy-system-body{padding:0 10px 10px;}
  body #report.ama78-compact-report #energy.ama78-panel.ama83-energy-open .ama-energy-consequence-body{padding-bottom:8px;}
  body #report.ama78-compact-report #energy.ama78-panel.ama83-energy-open .ama-work-planner-body{padding:0 10px 10px;}
  body #report.ama78-compact-report #energy.ama78-panel.ama83-energy-open .ama-work-description p{font-size:13px;line-height:1.4;margin:5px 0;}
}

