/* Home Analysis wizard styles. Shared result primitives live in results.css. */

.home-analysis-page {
    background: #f6f8fb;
}

.ha-shell,
.ha-result-shell {
    min-height: calc(100vh - 80px);
    color: #0f172a;
}

.ha-report-unavailable h1 {
    max-width: 820px;
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: .98;
    letter-spacing: 0;
}

.ha-report-unavailable h1 {
    color: #fff;
}

.ha-wizard-wrap {
    padding: 44px 0 72px;
}

.ha-wizard {
    display: block;
}

.ha-report-card,
.ha-report-unavailable {
    border: 1px solid #dce5f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .08);
}

.ha-mini-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e6eef8;
}

.ha-mini-track span {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
    transition: width .22s ease;
}

.ha-step {
    display: none;
}

.ha-step.active {
    display: block;
}

.ha-step-head {
    margin-bottom: 26px;
}

.ha-step-head span {
    color: #2563eb;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ha-step-head h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.ha-step-head p,
.ha-muted,
.ha-report-card p {
    color: #64748b;
    line-height: 1.7;
}

.ha-field,
.ha-choice-group {
    margin-bottom: 20px;
}

.ha-field label,
.ha-choice-group > label {
    display: block;
    color: #172033;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ha-field label span {
    color: #2563eb;
    font-size: .72rem;
    margin-left: 6px;
    text-transform: uppercase;
}

.ha-field input,
.ha-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .95rem;
    padding: 10px 12px;
}

.ha-field input:focus,
.ha-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    outline: none;
}

.ha-field small {
    display: block;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.45;
    margin-top: 6px;
}

.ha-field-grid {
    display: grid;
    gap: 16px;
}

.ha-field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ha-field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ha-field-grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ha-choice-grid,
.ha-chip-grid {
    display: grid;
    gap: 12px;
}

.ha-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ha-choice-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ha-chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ha-choice {
    display: flex;
    gap: 12px;
    min-height: 64px;
    align-items: flex-start;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    padding: 13px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ha-choice:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.ha-choice:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.ha-choice input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #2563eb;
}

.ha-choice strong {
    display: block;
    color: #0f172a;
    font-size: .9rem;
    line-height: 1.3;
}

.ha-choice small {
    display: block;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.45;
    margin-top: 3px;
}

.ha-optional-panel {
    border: 1px solid rgba(96, 165, 250, .32);
    border-radius: 18px;
    background: linear-gradient(135deg, #101d33 0%, #172554 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    margin: 24px 0;
    overflow: hidden;
}

.ha-optional-panel summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    list-style: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    padding: 20px 22px;
}

.ha-optional-panel summary span {
    min-width: 0;
}

.ha-optional-panel summary small {
    color: #c7d2fe;
    display: block;
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.45;
    margin-top: 4px;
    max-width: 760px;
}

.ha-optional-panel summary::-webkit-details-marker {
    display: none;
}

.ha-optional-panel summary::after {
    content: '+';
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #bfdbfe;
    display: flex;
    flex: 0 0 30px;
    font-size: 1.15rem;
    height: 30px;
    justify-content: center;
    line-height: 1;
    width: 30px;
}

.ha-optional-panel[open] summary {
    background: rgba(15, 23, 42, .42);
    border-bottom: 1px solid rgba(191, 219, 254, .24);
}

.ha-optional-panel[open] summary::after {
    content: '-';
}

.ha-optional-panel__body {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    padding: 20px;
}

.ha-disclaimer {
    display: flex;
    gap: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.6;
    padding: 14px;
}

.ha-disclaimer input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
}

.ha-data-notice {
    color: #64748b;
    font-size: .82rem;
    line-height: 1.65;
}

.ha-data-notice a {
    color: #2563eb;
    font-weight: 800;
}

.home-analysis-page .hdl-analysis-data-notice {
    border-radius: 0 0 16px 16px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.ha-review-grid,
.ha-report-grid {
    display: grid;
    gap: 18px;
}

.ha-review-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.ha-review-grid article {
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    padding: 16px;
}

.ha-review-grid span,
.ha-price-card span,
.ha-kv dt {
    display: block;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ha-review-grid strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 1rem;
}

.ha-review-grid small {
    display: block;
    color: #64748b;
    line-height: 1.5;
    margin-top: 6px;
}

.ha-error {
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
    margin-bottom: 20px;
    padding: 16px 18px;
}

.ha-error ul {
    margin: 8px 0 0 20px;
}

/* Home Analysis-specific result exceptions. Reusable report shells, cards, signals,
   actions, and print behavior are defined in assets/css/results.css. */

.ha-result-shell {
    padding: 42px 0 76px;
}

.ha-report-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, .28), transparent 28%),
        linear-gradient(135deg, #071527, #123d63);
    color: #fff;
    margin-bottom: 22px;
    padding: clamp(28px, 5vw, 48px);
}

.ha-report-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
}

.ha-report-hero p {
    max-width: 760px;
    color: #dbeafe;
    line-height: 1.7;
}

.ha-score-orb {
    display: grid;
    place-items: center;
    width: 152px;
    height: 152px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 32px rgba(255, 255, 255, .12);
}

.ha-score-orb span,
.ha-score-orb small {
    color: #bfdbfe;
    font-size: .8rem;
    font-weight: 800;
}

.ha-score-orb strong {
    color: #fbbf24;
    font-size: 3.4rem;
    line-height: .82;
}

.ha-confidence-pill {
    position: absolute;
    right: 28px;
    bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(15, 23, 42, .44);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    padding: 8px 12px;
}

.ha-report-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ha-report-card {
    margin-bottom: 22px;
    padding: 24px;
}

.ha-report-card h2 {
    color: #0f172a;
    font-size: 1.35rem;
    margin: 0 0 16px;
}

.ha-report-card h3 {
    color: #0f172a;
    font-size: 1rem;
    margin: 0 0 8px;
}

.ha-kv {
    display: grid;
    gap: 12px;
    margin: 0;
}

.ha-kv div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 11px;
}

.ha-kv.compact div {
    align-items: flex-start;
}

.ha-kv dd {
    margin: 0;
    color: #0f172a;
    font-weight: 850;
    text-align: right;
}

.ha-kv dd span {
    color: #64748b;
    font-weight: 700;
}

.ha-kv .is-total {
    border-bottom: 0;
    border-radius: 12px;
    background: #eff6ff;
    padding: 12px;
}

.ha-score-row {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.ha-score-row div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #0f172a;
    font-size: .88rem;
}

.ha-score-row span {
    color: #2563eb;
    font-weight: 850;
}

.ha-insight-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ha-insight-list li,
.ha-action-card,
.ha-check-grid article,
.ha-question-grid article {
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: #f8fafc;
    padding: 15px;
}

.ha-insight-list strong,
.ha-insight-list span {
    display: block;
}

.ha-insight-list span {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.6;
    margin-top: 5px;
}

.ha-action-grid,
.ha-check-grid,
.ha-question-grid {
    display: grid;
    gap: 14px;
}

.ha-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ha-check-grid,
.ha-question-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ha-action-card {
    color: #0f172a;
    font-weight: 750;
    line-height: 1.55;
}

.ha-check-grid p,
.ha-question-grid li {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.62;
}

.ha-question-grid ul {
    margin: 0;
    padding-left: 18px;
}

.ha-premium-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: clamp(22px, 5vw, 54px);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(219, 231, 246, .55);
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 18%, rgba(251, 191, 36, .30), transparent 24%),
        radial-gradient(circle at 14% 86%, rgba(37, 99, 235, .28), transparent 30%),
        linear-gradient(135deg, #071527 0%, #0f2745 54%, #123d63 100%);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .18);
    color: #fff;
    margin-bottom: 22px;
    padding: clamp(30px, 5vw, 58px);
}

.ha-premium-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -42% auto;
    width: 440px;
    height: 440px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.ha-premium-hero__content {
    position: relative;
    z-index: 1;
}

.ha-report-kicker {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    color: #bfdbfe;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: 0;
    padding: 8px 12px;
    text-transform: uppercase;
}

.ha-result-shell .ha-eyebrow,
.ha-report-unavailable .ha-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: 0;
    padding: 8px 12px;
    text-transform: uppercase;
}

.ha-premium-hero h1 {
    max-width: 860px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: .95;
    letter-spacing: 0;
}

.ha-premium-hero p {
    max-width: 780px;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 1.72;
    margin: 0;
}

.ha-decision-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.ha-decision-badges span {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .34);
    color: #eff6ff;
    font-size: .8rem;
    font-weight: 800;
    padding: 9px 12px;
}

.ha-decision-badges .hdl-signal-good,
.ha-decision-badges .hdl-signal-warning,
.ha-decision-badges .hdl-signal-risk,
.ha-decision-badges .hdl-signal-neutral {
    border-color: currentColor;
}

.ha-premium-score {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 28px;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 0 36px rgba(255, 255, 255, .10);
    text-align: center;
    padding: 24px;
}

.ha-premium-score span,
.ha-premium-score small,
.ha-premium-score em {
    color: #bfdbfe;
    font-size: .8rem;
    font-style: normal;
    font-weight: 850;
}

.ha-premium-score strong {
    color: #fbbf24;
    font-size: 4rem;
    line-height: .85;
}

.ha-report-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    border: 1px solid #dbe7f6;
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
    margin-bottom: 22px;
    padding: 16px;
}

.ha-section-head {
    max-width: 820px;
    margin-bottom: 18px;
}

.ha-section-head span {
    display: block;
    color: #2563eb;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ha-section-head h2 {
    margin: 7px 0 7px;
}

.ha-section-head p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.ha-deal-score-grid,
.ha-financial-grid,
.ha-lifestyle-grid,
.ha-api-grid,
.ha-glance-grid,
.ha-plan-grid {
    display: grid;
    gap: 16px;
}

.ha-deal-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ha-deal-score-card,
.ha-financial-grid article,
.ha-lifestyle-grid article,
.ha-api-grid article,
.ha-plan-grid article {
    border: 1px solid #dbe7f6;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    padding: 18px;
}

.ha-deal-score-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.ha-deal-score-card__top span,
.ha-financial-grid span,
.ha-lifestyle-grid span,
.ha-api-grid span {
    color: #64748b;
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ha-deal-score-card__top strong,
.ha-financial-grid strong,
.ha-lifestyle-grid strong {
    display: block;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.1;
}

.ha-report-meter {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e5eefb;
    margin: 14px 0 12px;
}

.ha-report-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.ha-deal-score-card__status {
    display: inline-flex;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 850;
    padding: 6px 10px;
}

.ha-deal-score-card p,
.ha-financial-grid small,
.ha-api-grid p,
.ha-plan-grid p,
.ha-action-card span {
    display: block;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.58;
    margin-top: 10px;
}

.ha-financial-grid,
.ha-lifestyle-grid,
.ha-plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ha-api-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ha-glance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ha-buy-rent-layout,
.ha-buy-rent-equity-note,
.ha-rent-growth-grid {
    display: grid;
    gap: 14px;
}

.ha-buy-rent-layout {
    grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.25fr) minmax(220px, .9fr);
    align-items: stretch;
}

.ha-buy-rent-summary,
.ha-buy-rent-breakdown,
.ha-buy-rent-rent article,
.ha-buy-rent-equity-note div,
.ha-rent-growth-grid article {
    border: 1px solid #dbe7f6;
    border-radius: 18px;
    background: #fbfdff;
    padding: 18px;
}

.ha-buy-rent-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ha-buy-rent-summary span,
.ha-buy-rent-breakdown span,
.ha-buy-rent-rent span,
.ha-buy-rent-equity-note span,
.ha-rent-growth-grid span {
    display: block;
    color: #64748b;
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ha-buy-rent-summary strong,
.ha-buy-rent-rent strong,
.ha-buy-rent-equity-note strong,
.ha-rent-growth-grid strong {
    display: block;
    color: #0f172a;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
    margin-top: 8px;
}

.ha-buy-rent-summary p,
.ha-buy-rent-rent p,
.ha-buy-rent-read {
    color: #334155;
    line-height: 1.58;
    margin: 10px 0 0;
}

.ha-buy-rent-breakdown {
    display: grid;
    gap: 10px;
}

.ha-buy-rent-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.ha-buy-rent-breakdown div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ha-buy-rent-breakdown strong {
    color: #0f172a;
    flex: 0 0 auto;
    text-align: right;
}

.ha-buy-rent-breakdown .is-total {
    border-radius: 12px;
    background: #eff6ff;
    margin-top: 2px;
    padding: 12px;
}

.ha-buy-rent-rent {
    display: grid;
    gap: 14px;
}

.ha-buy-rent-equity-note {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.ha-rent-growth-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.ha-buy-rent-read {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 750;
    padding: 14px 16px;
}

.ha-glance-card {
    border: 1px solid currentColor;
    border-radius: 18px;
    padding: 18px;
}

.ha-glance-card h3 {
    color: currentColor;
    font-size: 1rem;
    margin: 0 0 10px;
}

.ha-glance-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.ha-glance-card li {
    color: #334155;
    font-size: .92rem;
    line-height: 1.5;
}

.ha-break-even-note {
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
    color: #1e3a8a;
    line-height: 1.62;
    margin-top: 18px;
    padding: 16px;
}

.ha-action-grid--featured .ha-action-card strong {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
}

.ha-lifestyle-grid article {
    min-height: 112px;
}

.ha-api-grid article {
    background: #fbfdff;
}

.ha-api-grid h3,
.ha-plan-grid h3 {
    margin-top: 8px;
}

.ha-comps-table {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.ha-comps-table div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #dbe7f6;
    border-radius: 14px;
    background: #fbfdff;
    color: #0f172a;
    padding: 12px 14px;
}

.ha-comps-table strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ha-comps-table span {
    color: #64748b;
    flex: 0 0 auto;
    font-size: .9rem;
    text-align: right;
}

.ha-report-unavailable {
    max-width: 760px;
    margin: 40px auto;
    padding: 36px;
}

.ha-report-unavailable p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 22px;
}

.ha-conditional.is-hidden,
.ha-mortgage-fields.is-hidden,
.ha-school-fields.is-hidden {
    display: none;
}

@media (max-width: 980px) {
    .ha-report-grid.two,
    .ha-review-grid,
    .ha-premium-hero,
    .ha-deal-score-grid,
    .ha-api-grid {
        grid-template-columns: 1fr;
    }

    .ha-glance-grid {
        grid-template-columns: 1fr;
    }

    .ha-buy-rent-layout,
    .ha-buy-rent-equity-note,
    .ha-rent-growth-grid {
        grid-template-columns: 1fr;
    }

    .ha-financial-grid,
    .ha-lifestyle-grid,
    .ha-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ha-field-grid.five,
    .ha-field-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ha-report-hero {
        gap: 18px;
    }

    .ha-report-card,
    .ha-report-unavailable {
        border-radius: 18px;
        padding: 18px;
    }

    .ha-field-grid.two,
    .ha-field-grid.three,
    .ha-field-grid.five,
    .ha-choice-grid,
    .ha-choice-grid.three {
        grid-template-columns: 1fr;
    }

    .ha-report-hero {
        grid-template-columns: 1fr;
    }

    .ha-score-orb {
        width: 118px;
        height: 118px;
    }

    .ha-score-orb strong {
        font-size: 2.7rem;
    }

    .ha-confidence-pill {
        position: static;
        width: max-content;
    }

    .ha-premium-score {
        min-height: 150px;
        width: min(100%, 260px);
    }

    .ha-report-toolbar {
        justify-content: stretch;
    }

    .ha-report-toolbar .btn {
        width: 100%;
    }

    .ha-kv div {
        display: grid;
        gap: 5px;
    }

    .ha-kv dd {
        text-align: left;
    }

    .ha-comps-table div {
        align-items: flex-start;
        flex-direction: column;
    }

    .ha-comps-table span {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .ha-financial-grid,
    .ha-lifestyle-grid,
    .ha-plan-grid {
        grid-template-columns: 1fr;
    }

    .ha-premium-hero {
        border-radius: 22px;
        padding: 24px;
    }

    .ha-premium-hero h1 {
        font-size: clamp(2.1rem, 12vw, 3.2rem);
    }
}

@media print {
    @page {
        margin: .55in;
    }

    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .site-header,
    .site-footer,
    .app-sidebar,
    .app-header,
    .dashboard-sidebar,
    .dashboard-header,
    nav,
    .ha-report-toolbar,
    .feedback-widget,
    .hdl-feedback-widget {
        display: none !important;
    }

    body,
    .home-analysis-page {
        background: #fff !important;
        color: #0f172a;
    }

    .container {
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .ha-result-shell {
        background: #fff;
        padding: 0;
    }

    .ha-premium-hero,
    .ha-report-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        margin-bottom: 14px;
    }

    .ha-premium-hero {
        color: #0f172a;
        background: #fff;
        border: 1px solid #cbd5e1;
    }

    .ha-premium-hero h1,
    .ha-premium-hero p,
    .ha-premium-score strong {
        color: #0f172a;
    }

    .ha-premium-hero,
    .ha-report-grid.two,
    .ha-deal-score-grid,
    .ha-financial-grid,
    .ha-lifestyle-grid,
    .ha-api-grid,
    .ha-buy-rent-layout,
    .ha-buy-rent-equity-note,
    .ha-rent-growth-grid,
    .ha-plan-grid,
    .ha-check-grid,
    .ha-action-grid,
    .ha-question-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ha-print-summary,
    .ha-section-head,
    .ha-section-head p,
    .ha-report-card p {
        max-width: none;
    }

    .ha-decision-badges span,
    .ha-deal-score-card,
    .ha-financial-grid article,
    .ha-lifestyle-grid article,
    .ha-api-grid article,
    .ha-buy-rent-summary,
    .ha-buy-rent-breakdown,
    .ha-buy-rent-rent article,
    .ha-buy-rent-equity-note div,
    .ha-rent-growth-grid article,
    .ha-plan-grid article,
    .ha-action-card,
    .ha-comps-table div {
        background: #fff;
        border-color: #cbd5e1;
    }

    .ha-report-card {
        border-color: #cbd5e1;
        padding: 18px;
    }

    .ha-premium-score {
        border-color: #cbd5e1;
        background: #fff;
    }
}

/* Smart address search for Home Analysis */
.ha-property-smart-search {
    margin-bottom: 24px;
}

.ha-address-autocomplete-field {
    margin-bottom: 12px;
}

.ha-google-places-mount {
    position: relative;
    width: 100%;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #d2deec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
    color-scheme: light;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ha-property-address-search {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .95rem;
    line-height: 1.4;
    padding: 0 18px;
}

.ha-property-address-search::placeholder {
    color: #94a3b8;
}

.ha-property-address-search:focus {
    outline: none;
}

.ha-google-places-mount:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 14px 32px rgba(15, 23, 42, .06);
}

.ha-google-places-mount gmp-place-autocomplete {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: inherit;
    background: #fff;
    color: #0f172a;
    color-scheme: light;
    font: inherit;
    font-size: .95rem;
    --gmp-mat-color-on-surface: #0f172a;
    --gmp-mat-color-on-surface-variant: #64748b;
    --gmp-mat-color-surface: #fff;
    --gmp-mat-color-outline: transparent;
    --gmp-mat-color-primary: #2563eb;
    --gmp-mat-shape-corner-full: 14px;
}

.ha-google-places-mount gmp-place-autocomplete::part(input),
.ha-google-places-mount gmp-place-autocomplete::part(text-field),
.ha-google-places-mount gmp-place-autocomplete::part(container) {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.ha-google-places-mount gmp-place-autocomplete::part(icon),
.ha-google-places-mount gmp-place-autocomplete::part(leading-icon) {
    color: #64748b;
}

.ha-property-status {
    color: #64748b;
    font-size: .88rem;
    line-height: 1.5;
    margin: 10px 0 0;
}

.ha-property-status.is-note {
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #334155;
    display: flex;
    gap: 9px;
    max-width: 760px;
    padding: 10px 12px;
}

.ha-property-status.is-note::before {
    align-items: center;
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    content: "i";
    display: inline-flex;
    flex: 0 0 18px;
    font-size: .72rem;
    font-weight: 850;
    height: 18px;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
    width: 18px;
}

.ha-property-status.is-loading {
    color: #2563eb;
}

.ha-property-status.is-success {
    color: #047857;
}

.ha-property-status.is-warning {
    color: #b45309;
}

.ha-property-summary-card {
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
    margin-top: 16px;
    padding: 16px;
}

.ha-property-found-eyebrow {
    color: #2563eb;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .04em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ha-property-found-address {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.35;
    margin-bottom: 4px;
}

.ha-property-found-facts,
.ha-property-found-source {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.5;
}

.ha-property-found-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.ha-property-found-grid div {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.ha-property-found-grid span {
    color: #64748b;
    display: block;
    font-size: .75rem;
    font-weight: 750;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ha-property-found-grid strong {
    color: #0f172a;
    display: block;
    font-size: .98rem;
}

.ha-property-found-source {
    margin-top: 10px;
}

.ha-property-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ha-manual-property-toggle,
.ha-property-lookup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #c9def8;
    border-radius: 999px;
    background: #f8fbff;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 850;
    line-height: 1;
    padding: 10px 14px;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ha-property-lookup-button {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .14);
}

.ha-property-lookup-button:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .18);
}

.ha-property-lookup-button:disabled {
    cursor: progress;
    opacity: .72;
}

.ha-manual-property-toggle:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.ha-manual-property-toggle:focus-visible,
.ha-property-lookup-button:focus-visible {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.ha-manual-property-fields {
    border-top: 1px solid #e2e8f0;
    margin-top: 18px;
    padding-top: 18px;
}

.ha-property-context-fields {
    margin-top: 14px;
}

@media (max-width: 680px) {
    .ha-property-found-grid {
        grid-template-columns: 1fr;
    }
}


/* Home Analysis address field hotfix:
   The Google Places mount was creating a second visible input border.
   Keep the wrapper structural only and let the input render as the single field. */
.ha-google-places-mount {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: auto !important;
    overflow: visible !important;
}

.ha-field .ha-google-places-mount .ha-property-address-search {
    width: 100%;
    min-height: 54px;
    border: 1px solid #d2deec !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04) !important;
}

.ha-field .ha-google-places-mount .ha-property-address-search:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 14px 32px rgba(15, 23, 42, .06) !important;
    outline: none !important;
}


.home-analysis-page .hdl-analysis-data-notice {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.home-analysis-page .pac-container[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.home-analysis-page .wizard-submit.is-submitting {
    opacity: .72;
    cursor: wait;
}

@media (max-width: 760px) {
    .home-analysis-page .hdl-analysis-data-notice {
        border-radius: 0 0 16px 16px !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}


.ha-disclaimer.has-error {
    border-color: rgba(220, 38, 38, 0.45);
    background: rgba(254, 242, 242, 0.75);
}

.ha-disclaimer .wizard-error {
    margin-top: 10px;
    color: #b91c1c;
    font-weight: 700;
}
