.home-editor .detail-grid, .summary-specs { align-items: start; }
.captcha-field { margin: 22px 0; padding: 18px; border: 1px solid #a8c7b957; border-radius: 18px; background: #e9f2eb35; }
.captcha-field > span { display: block; margin-bottom: 10px; font-weight: 700; }
.captcha-display { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.captcha-display img { width: 260px; max-width: 100%; height: 88px; border-radius: 16px; border: 1px solid #789d8b66; }
.captcha-display button { padding: 10px 14px; }
.captcha-field label { margin: 0; }
.captcha-field input { max-width: 260px; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.auth-success-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.auth-success-card { position: relative; display: flex; align-items: center; gap: 18px; width: min(100%, 440px); padding: 27px 45px 27px 24px; border: 1px solid #b9e5d5; border-radius: 26px; background: linear-gradient(140deg, #fff 0%, #f0faf4 62%, #dcefe6 100%); color: #183e38; box-shadow: 0 28px 85px #0b302a38, 0 8px 26px #0b302a1c; pointer-events: auto; animation: auth-success-rise .72s cubic-bezier(.2,.9,.25,1.08) both; }
.auth-success-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 19px; background: linear-gradient(140deg, #1c9c79, #0d695c); color: #fff; font-size: 32px; font-weight: 700; box-shadow: 0 10px 23px #1c9c7940; }
.auth-success-copy { min-width: 0; }
.auth-success-kicker { display: block; color: #2e876c; font-size: .69rem; font-weight: 800; letter-spacing: .15em; }
.auth-success-copy strong { display: block; margin-top: 4px; font-size: clamp(1.25rem, 4vw, 1.65rem); line-height: 1.15; }
.auth-success-copy p { margin: 7px 0 0; font-size: .92rem; line-height: 1.4; }
.auth-success-close { position: absolute; top: 10px; right: 10px; width: 29px; height: 29px; border: 0; border-radius: 50%; background: transparent; color: #496e62; font-size: 24px; line-height: 1; cursor: pointer; }
.auth-success-close:hover, .auth-success-close:focus-visible { background: #cce8d8; }
.auth-success-overlay.is-leaving .auth-success-card { animation: auth-success-out .32s ease-in both; }
@keyframes auth-success-rise { from { opacity: 0; transform: translateY(100vh) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes auth-success-out { to { opacity: 0; transform: translateY(-24px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .auth-success-card, .auth-success-overlay.is-leaving .auth-success-card { animation-duration: .01ms; } }
.home-editor .detail-grid > *, .home-editor label, .estimate-summary { min-width: 0; }
.home-editor { max-width: none; }
.editor-photo { width: 100%; max-height: 280px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.home-editor input[type="file"] { max-width: 100%; padding: 12px; }
.home-editor button[type="submit"], .home-editor > button { margin-top: 24px; }
.estimate-page .detail-actions { margin-bottom: 24px; flex-wrap: wrap; }
.estimate-summary { max-width: 900px; margin-inline: auto; overflow-wrap: anywhere; }
.summary-total { font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 700; }
.summary-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 24px; }
.summary-specs dt { opacity: .75; }
.summary-specs dd { margin: 4px 0 0; font-weight: 600; }
.estimate-summary h2 { margin-top: 28px; }
@media print {
    body:has(.estimate-page) { background: white !important; color: #111 !important; }
    body:has(.estimate-page) .site-header, body:has(.estimate-page) .site-footer,
    body:has(.estimate-page) .no-print, body:has(.estimate-page) .skip-link,
    body:has(.estimate-page) .ambient-motion-toggle, body:has(.estimate-page) .flash { display: none !important; }
    body:has(.estimate-page) main::before, body:has(.estimate-page) main::after { display: none !important; }
    body:has(.estimate-page) main { background: white !important; }
    .estimate-page, .estimate-summary { width: 100%; max-width: none; padding: 0; margin: 0; background: white !important; color: #111 !important; box-shadow: none; border: 0; }
    .estimate-summary * { color: #111 !important; background: transparent !important; animation: none !important; }
    .estimate-summary tr, .summary-specs > div { break-inside: avoid; }
    .estimate-summary h2 { break-after: avoid; }
}
