/* Shared reading controls and the live, existing home inputs. */
:root{--ama-u-green:#2d6147;--ama-u-ink:#253b2e;--ama-u-muted:#526659;--ama-u-line:#c5d7ca;--ama-u-soft:#e5f0e8}
html body[class] .app>header{height:auto!important;min-height:70px!important;flex-wrap:wrap;row-gap:7px}
.ama-reading-toolbar{flex:0 0 100%;display:flex;justify-content:flex-end;min-width:0}
html body[class] .app>header .ama-reading-open{width:auto!important;height:auto!important;min-height:44px;padding:8px 13px!important;font-size:14px!important;line-height:1.4;background:#fff;color:var(--ama-u-green);border:1px solid var(--ama-u-line);border-radius:10px;font-weight:650}
html body[class] .app>header .ama-reading-labeled{width:auto!important;min-width:44px!important;height:auto!important;min-height:48px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 8px!important}
html body[class] .app>header .brand{flex:1;min-width:0}
html body[class] .app>header .brand>div{min-width:0}
html body[class] .app>header .brand :is(b,strong){white-space:normal!important;overflow-wrap:anywhere!important}
html body[class] .app>header .header-actions{flex-shrink:0}
html body[class] .app button{min-height:44px}
.ama-reading-label{display:block;font-size:11px;line-height:1.2;white-space:nowrap}
.app .topline:has(.ama-reading-back){grid-template-columns:auto minmax(0,1fr) auto}
.app .topline .ama-reading-back{width:auto;min-width:74px;min-height:44px;padding:7px 10px;font-size:14px;white-space:nowrap}
.app :is(button,input,select,textarea,summary):focus-visible,.ama-reading-dialog :is(button,input):focus-visible{outline:3px solid #176caa!important;outline-offset:3px!important}
.app>nav button{min-height:48px}
.ama-reading-dialog{width:min(460px,calc(100% - 24px));max-height:85dvh;margin:auto;border:1px solid var(--ama-u-line);border-radius:19px;padding:22px;background:#fff;color:var(--ama-u-ink);box-shadow:0 18px 70px #0b241d38;font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto}
.ama-reading-dialog::backdrop{background:#0b241d88}
.ama-reading-dialog:not([open]){display:none}
.ama-reading-dialog[open]{display:block}
.ama-reading-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.ama-reading-dialog h2{font-size:24px;line-height:1.25;margin:0 0 15px;letter-spacing:-.4px}
.ama-reading-dialog-head>button{flex:none;width:44px;height:44px;border:1px solid var(--ama-u-line);border-radius:10px;background:#fff;color:var(--ama-u-green);font-size:26px}
.ama-reading-dialog>p{margin:0 0 16px;color:var(--ama-u-muted)}
.ama-reading-dialog fieldset{min-width:0;margin:16px 0;padding:0;border:0;display:grid;gap:10px}
.ama-reading-dialog legend{padding:0;margin-bottom:10px;font-weight:650}
.ama-reading-dialog fieldset label,.ama-reading-contrast-choice{display:flex;align-items:center;gap:13px;min-height:56px;padding:12px;border:1px solid var(--ama-u-line);border-radius:11px;cursor:pointer}
.ama-reading-dialog fieldset label:has(input:checked){background:var(--ama-u-soft);border-color:var(--ama-u-green)}
.ama-reading-dialog input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--ama-u-green)}
.ama-reading-contrast-choice{justify-content:space-between;margin:18px 0}
.ama-reading-storage{font-size:14px;line-height:1.5}
.ama-reading-done{width:100%;min-height:52px;border:1px solid var(--ama-u-green);border-radius:11px;background:var(--ama-u-green);color:#fff;font:inherit;font-weight:650;padding:12px}
html.ama-reading-large [data-ama-reading-text]{line-height:1.55!important}
html.ama-reading-large .app :is(button,summary){min-height:48px!important;white-space:normal!important}
html.ama-reading-large .app :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:52px!important}
html.ama-reading-large .app :is(p,small,label,span,strong,b,dd,dt,button){overflow-wrap:anywhere}
html.ama-reading-large .app>nav{padding-inline:5px;gap:2px}
html.ama-reading-large .app>nav button{padding-inline:0!important;min-width:0;gap:5px}
html.ama-reading-large .app>nav button span{white-space:normal!important;overflow-wrap:normal!important;letter-spacing:-.1px;line-height:1.3!important}
html.ama-reading-large .app :is(.ama75-core-grid,.property-features-grid,.ama-annex-grid,.ama-budget-grid,.credit-grid,.ama27-edit-grid){grid-template-columns:1fr!important}
html.ama-reading-large .app .ama78-detail-body{height:auto!important;max-height:none!important}
html.ama-reading-large .app :is(.ama-overview-actions,.ama-overview-metrics){height:auto!important;min-height:0!important}
html.ama-reading-contrast{--text:#102b1a;--muted:#314b39;--line:#5d7966;--ama-u-ink:#102b1a;--ama-u-muted:#314b39;--ama-u-line:#5d7966;--ama-u-green:#164729}
html.ama-reading-contrast .app :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#fff!important;color:#102b1a!important;border-color:#5d7966!important}
html.ama-reading-contrast .app :is(.card,.ama-guide-draft,.aev-condition){border-color:#5d7966!important}
#home.ama-home-v49721 #amaHomeFormV49675.ama-guided-entry{padding-top:22px!important;scroll-margin-top:calc(var(--ama-header-height,120px) + 20px)}
.ama-guided-entry .ama21-form-title{margin:0 0 10px!important;font-size:24px!important;line-height:1.25!important;scroll-margin-top:calc(var(--ama-header-height,120px) + 20px)}
.ama-guide-mode,.ama-guide-link{min-height:44px;padding:9px 0!important;border:0!important;background:transparent!important;color:var(--ama-u-green)!important;font:inherit!important;font-size:14px!important;text-align:left;text-decoration:underline;text-underline-offset:3px}
.ama-guide-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;list-style:none;padding:0;margin:16px 0 14px;color:var(--ama-u-muted)}
.ama-guide-progress li{font-size:13px;line-height:1.4;padding-top:10px;border-top:5px solid #d4e1d8;overflow-wrap:anywhere}
.ama-guide-progress li[aria-current=step],.ama-guide-progress li.is-complete{border-color:var(--ama-u-green);color:var(--ama-u-green);font-weight:650}
.ama-guide-status{font-size:14px!important;line-height:1.5;margin:0 0 15px;color:var(--ama-u-muted)}
.ama-guide-status:empty{display:none}
.ama-guide-part[hidden],.ama-guide-progress[hidden],.ama-guide-draft[hidden],.ama-guide-footer [hidden],#finalAnalyzeWrap[hidden]{display:none!important}
.ama-guide-part{min-width:0}
.ama-guide-prefill{margin:8px 0 18px;padding:0;border-bottom:1px solid var(--ama-u-line)}
.ama-guide-prefill>summary,.ama-guide-help>summary{font-size:15px;line-height:1.5;color:var(--ama-u-green);font-weight:650;min-height:48px;padding:10px 0;cursor:pointer}
.ama-guide-prefill #amaAnnouncementEntryV49766{margin:10px 0 16px!important;width:auto!important}
.ama-guide-prefill .ama-voice-entry{margin:12px 0 18px}
.ama-guide-basics{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.ama-guide-basics>label{display:block;min-width:0}
.ama-guide-basics>label>span{display:block;font-size:15px;font-weight:650;margin-bottom:7px}
.ama-guide-basics>label>div{display:flex;align-items:center;gap:8px}
#home.ama-home-v49721 #amaHomeFormV49675 :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:48px!important;padding:10px 12px!important;border:1px solid var(--ama-u-line)!important;border-radius:11px!important;background:#fff;color:var(--ama-u-ink);width:100%;min-width:0}
#home.ama-home-v49721 #amaHomeFormV49675 .ama75-core-grid>label>span,#home.ama-home-v49721 #amaHomeFormV49675 .property-features-grid label>span{font-size:15px!important;line-height:1.5!important}
.ama-guide-help{grid-column:1/-1;margin:0 0 12px;padding:0 12px;background:#eff6f0;border-radius:10px}
.ama-guide-help p{font-size:15px;line-height:1.55;margin:4px 0 13px}
.ama-guide-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:20px}
.ama-guide-primary,.ama-guide-secondary{min-height:52px;padding:12px 18px;border-radius:11px;border:1px solid var(--ama-u-green);background:var(--ama-u-green);color:#fff;font:inherit;font-size:16px;font-weight:650;cursor:pointer;line-height:1.4}
.ama-guide-footer .ama-guide-primary{margin-left:auto;min-width:140px}
.ama-guide-secondary{color:var(--ama-u-green);background:#fff;border-color:var(--ama-u-line)}
.ama-guide-recap{margin:14px 0}
.ama-guide-recap>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:13px 0;border-bottom:1px solid var(--ama-u-line);font-size:16px;line-height:1.5}
.ama-guide-recap dt{color:var(--ama-u-muted)}
.ama-guide-recap dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere}
.ama-guide-note{font-size:14px;line-height:1.55;color:var(--ama-u-muted);margin:12px 0}
.ama-guide-draft{margin:15px 0;padding:16px;background:var(--ama-u-soft);border:1px solid var(--ama-u-line);border-radius:12px}
.ama-guide-draft p{font-size:15px;line-height:1.5;margin:7px 0 12px}
.ama-guide-draft>.ama-guide-primary{width:100%}
.ama-guide-draft>.ama-guide-link{display:block;margin-top:5px}
@media(max-width:520px){.ama-guide-basics{grid-template-columns:1fr}.app .topline:has(.ama-reading-back){gap:7px}.app>header .brand{min-width:0}.app>header .brand b{overflow-wrap:anywhere}.ama-guide-recap>div{display:block}.ama-guide-recap dd{text-align:left;margin-top:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
@media print{.ama-reading-toolbar,.ama-reading-dialog{display:none!important}}
