.valuation-frame { position: relative; min-height: 0; background: var(--white); }
.valuation-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.valuation-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-500); } .valuation-modal { width: min(920px, calc(100vw - 2 * var(--gutter))); height: min(580px, calc(100dvh - 2 * var(--gutter))); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--navy); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; overscroll-behavior: contain; }
.valuation-modal[open] { animation: valuation-sheet 360ms cubic-bezier(.2, .7, .2, 1); }
.valuation-modal::backdrop { background: rgba(2, 22, 49, .72); }
.valuation-modal[open]::backdrop { animation: valuation-backdrop 240ms cubic-bezier(.2, .7, .2, 1); }
@keyframes valuation-sheet { from { opacity: 0; transform: translateY(12px); } }
@keyframes valuation-backdrop { from { opacity: 0; } }
.valuation-sheet { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.valuation-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--navy); }
.valuation-title { margin: 0; font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.3; font-weight: 400; letter-spacing: -.005em; color: var(--navy); text-wrap: balance; }
.valuation-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--navy); cursor: pointer; transition: background-color 240ms var(--ease); }
.valuation-close:hover { background: var(--stone); }
.valuation-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; min-width: 0; min-height: 0; }
html.has-modal { overflow: hidden; }
@media (min-width: 600px) { html.has-modal { scrollbar-gutter: stable; } }
@media (max-width: 599px) {
.valuation-modal { width: 100vw; height: 100dvh; margin: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
.valuation-modal[open], .valuation-modal[open]::backdrop { animation: none; }
} .valuation-inline { height: 476px; border: 1px solid var(--navy); box-shadow: var(--shadow-md); }