/* Home Analysis tabbed redesign foundation. */

.ha-redesign-shell {
    --ha-report-width: 1880px;
    background: #fff;
    color: #081a3f;
    padding: 14px 0 48px;
}

/* Home Analysis brand skin: navy is the report frame; gold is the action and
 * navigation accent. Semantic score/risk colors remain untouched. */
.ha-redesign-shell {
    --ha-brand-navy: var(--hdl-brand-primary, #0f2438);
    --ha-brand-navy-2: var(--hdl-brand-secondary, #1a3a5c);
    --ha-brand-gold: var(--hdl-brand-accent, #c6a15b);
    --ha-brand-gold-dark: #9b7838;
    --ha-brand-gold-soft: #f7f4ec;
    color: #0f2438;
}

.ha-redesign-actions,
.ha-redesign-tabs,
.ha-redesign-panels {
    width: min(100% - 64px, var(--ha-report-width));
    margin-inline: auto;
}

.ha-live-report-page .site-header > .container {
    width: min(100% - 64px, 1880px);
    max-width: none;
    padding: 0;
}

.ha-redesign-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    margin-bottom: 10px;
}

.ha-redesign-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #c7d8f4;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.1;
    padding: 10px 14px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
    white-space: nowrap;
}

.ha-redesign-btn:hover {
    border-color: #8bb7ff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}

.ha-redesign-btn--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.ha-redesign-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.ha-redesign-shell .btn.btn-primary,
.ha-redesign-shell button.btn-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.ha-redesign-shell .btn.btn-primary:hover,
.ha-redesign-shell button.btn-primary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.ha-redesign-btn--ghost {
    color: #2563eb;
}

.ha-redesign-btn--icon {
    width: 42px;
    padding: 0;
}

.ha-redesign-tabs {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
    margin-bottom: 26px;
    padding: 0 16px;
    scrollbar-width: none;
}

.ha-redesign-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    border-radius: 0;
    color: #12255b;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.18;
    min-height: 58px;
    padding: 10px 8px 13px;
    position: relative;
    text-decoration: none;
    text-align: center;
    white-space: normal;
}

.ha-redesign-tab svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ha-redesign-tab.is-active {
    background: transparent;
    color: #2563eb;
}

.ha-redesign-tab.is-active::after {
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #2563eb 54%, #8b5cf6 100%);
    content: "";
}

.ha-redesign-panel[hidden] {
    display: none !important;
}

.ha-redesign-panel--legacy .ha-report-topbar {
    display: none;
}

.ha-redesign-summary,
.ha-redesign-foundation-page {
    display: grid;
    gap: 14px;
}

.ha-redesign-hero {
    display: block;
    overflow: hidden;
    border: 1px solid #d9e4f6;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .82) 24%, rgba(255, 255, 255, .52) 50%, rgba(255, 255, 255, .82) 76%, rgba(255, 255, 255, .98) 100%),
        url('/assets/images/home-analysis/report-skyline-map-accent.png') center bottom / 100% auto no-repeat;
    min-height: 250px;
    padding: 32px 34px 26px;
    position: relative;
}

.ha-redesign-hero::after {
    display: none;
}

.ha-redesign-hero__copy,
.ha-redesign-hero__meta,
.ha-redesign-hero__score {
    position: relative;
    z-index: 1;
}

.ha-redesign-eyebrow {
    display: block;
    color: #0f766e;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ha-redesign-section__head h1,
.ha-redesign-section__head h2,
.ha-redesign-foundation-page h1 {
    margin: 7px 0 0;
    color: #071646;
    font-size: 2.72rem;
    letter-spacing: 0;
    line-height: 1.05;
}

.ha-redesign-hero h1 {
    margin: 0;
    color: #071646;
    font-size: 2.05rem;
    letter-spacing: 0;
    line-height: 1.08;
}

.ha-redesign-address {
    color: #12255b;
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.45;
    margin: 10px 0 0;
    max-width: 780px;
}

.ha-redesign-hero__copy {
    max-width: 470px;
}

.ha-redesign-generated,
.ha-property-generated {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #314675;
    font-size: .76rem;
    font-weight: 760;
    line-height: 1.4;
    margin: 14px 0 0;
}

.ha-redesign-generated svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ha-redesign-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 8px;
}

.ha-redesign-property-meta span {
    color: #12255b;
    font-size: .86rem;
    font-weight: 780;
    line-height: 1.4;
}

.ha-redesign-property-meta span + span::before {
    color: #12255b;
    content: "\2022";
    margin: 0 10px;
}

.ha-redesign-property-type,
.ha-redesign-hero__meta {
    border: 1px solid #cfe0ea;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #40576e;
    font-size: .84rem;
    font-weight: 800;
    padding: 7px 10px;
}

.ha-redesign-property-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.ha-redesign-property-type::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    clip-path: polygon(8% 46%, 50% 13%, 92% 46%, 82% 46%, 82% 88%, 58% 88%, 58% 62%, 42% 62%, 42% 88%, 18% 88%, 18% 46%);
    color: #2563eb;
    content: "";
}

.ha-redesign-hero__meta {
    display: grid;
    min-width: 190px;
    border-radius: 8px;
    text-align: right;
}

.ha-redesign-hero__meta span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ha-redesign-hero__meta strong {
    color: #102033;
    font-size: 1rem;
}

.ha-redesign-score-section {
    display: grid;
    justify-items: center;
}

.ha-redesign-hero__score {
    display: grid;
    justify-items: center;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 55%;
    transform: translate(-50%, -50%);
    width: min(34vw, 420px);
}

.ha-redesign-hero__score p {
    color: #12255b;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.55;
    margin: -6px auto 0;
    max-width: 360px;
}

.ha-redesign-score-card {
    display: grid;
    justify-items: center;
    width: min(100%, 720px);
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(21, 41, 62, .08);
    padding: clamp(20px, 4vw, 32px);
    text-align: center;
}

.ha-redesign-score-card p {
    color: #40576e;
    font-size: .98rem;
    line-height: 1.65;
    margin: 12px auto 0;
    max-width: 620px;
}

.ha-intel-gauge {
    display: grid;
    justify-items: center;
    position: relative;
    width: min(100%, 420px);
}

.ha-intel-gauge__svg {
    display: block;
    width: 100%;
    aspect-ratio: 360 / 230;
    overflow: visible;
}

.ha-intel-gauge__track,
.ha-intel-gauge__fill {
    fill: none;
    stroke-linecap: butt;
    stroke-width: 22;
}

.ha-intel-gauge__track {
    stroke: #e0e9ef;
}

.ha-intel-gauge__fill {
    stroke: url(#ha-intel-gauge-gradient);
}

.ha-intel-gauge__inner-rim {
    fill: none;
    stroke: rgba(203, 213, 225, .82);
    stroke-width: 4;
}

.ha-intel-gauge__ticks line {
    stroke: rgba(255, 255, 255, .72);
    stroke-linecap: round;
    stroke-width: 2;
}

.ha-intel-gauge__center {
    position: absolute;
    top: 56%;
    left: 50%;
    display: grid;
    justify-items: center;
    transform: translate(-50%, -50%);
}

.ha-intel-gauge__center span {
    color: #12255b;
    font-size: .66rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.ha-intel-gauge__center strong {
    color: #071646;
    font-size: clamp(2.8rem, 3.35vw, 3.85rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: .86;
}

.ha-intel-gauge__center em {
    color: #2563eb;
    font-size: 1.05rem;
    font-style: normal;
    font-weight: 850;
}

.ha-intel-gauge__center small {
    min-width: 112px;
    border-radius: 999px;
    background: #d8f8cc;
    color: #08733d;
    font-size: .76rem;
    font-weight: 850;
    line-height: 1.25;
    margin-top: 5px;
    padding: 5px 16px;
    text-align: center;
}

.ha-redesign-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ha-redesign-card,
.ha-redesign-driver-card,
.ha-redesign-verify-card,
.ha-redesign-checklist-grid article {
    align-self: stretch;
    border: 1px solid #d9e4f6;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    height: 100%;
}

.ha-redesign-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.ha-redesign-shell .ha-redesign-hero,
.ha-redesign-shell .ha-redesign-score-card,
.ha-redesign-shell .ha-redesign-foundation-page,
.ha-redesign-shell .ha-property-overview-card,
.ha-redesign-shell .ha-property-card,
.ha-redesign-shell .ha-market-hero,
.ha-redesign-shell .ha-market-card,
.ha-redesign-shell .ha-financial-hero,
.ha-redesign-shell .ha-financial-card,
.ha-redesign-shell .ha-financial-change-card,
.ha-redesign-shell .ha-financial-table-wrap,
.ha-redesign-shell .ha-redesign-card,
.ha-redesign-shell .ha-redesign-driver-card,
.ha-redesign-shell .ha-redesign-verify-card,
.ha-redesign-shell .ha-redesign-checklist-grid article {
    box-shadow: none;
}

.ha-redesign-card--accent {
    border-top: 1px solid #d9e4f6;
    border-image: none;
}

.ha-redesign-card--bottom-line {
    border-color: #cfedd9;
    border-top: 4px solid #22c55e;
    background: linear-gradient(110deg, #f7fff8 0%, #ffffff 74%);
}

.ha-redesign-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ha-redesign-card h2,
.ha-redesign-driver-card h3,
.ha-redesign-verify-card h3,
.ha-redesign-checklist-grid h3 {
    color: #102033;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.ha-redesign-card p,
.ha-redesign-card__note,
.ha-redesign-driver-card p {
    color: #53697d;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

.ha-redesign-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    font-size: .73rem;
    font-weight: 900;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}

.ha-redesign-pill--positive {
    background: #dcfce7;
    color: #166534;
}

.ha-redesign-pill--mixed {
    background: #e0f2fe;
    color: #075985;
}

.ha-redesign-pill--caution {
    background: #ffedd5;
    color: #9a3412;
}

.ha-redesign-pill--danger {
    background: #fee2e2;
    color: #991b1b;
}

.ha-redesign-pill--neutral {
    background: #eef2f7;
    color: #475569;
}

.ha-redesign-metric-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ha-redesign-metric-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef3f7;
    padding-bottom: 8px;
}

.ha-redesign-metric-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ha-redesign-metric-list dt {
    color: #60758a;
    font-size: .81rem;
    font-weight: 750;
    line-height: 1.25;
}

.ha-redesign-metric-list dd {
    color: #102033;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.25;
    margin: 0;
    text-align: right;
}

.ha-redesign-metric-list dd.is-equity {
    color: #0f766e;
}

.ha-redesign-breakdown {
    display: grid;
    gap: 9px;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 12px;
}

.ha-redesign-breakdown > span,
.ha-redesign-comp-list > span {
    color: #40576e;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-redesign-comp-list {
    display: grid;
    gap: 9px;
}

.ha-redesign-comp-list div {
    display: grid;
    gap: 2px;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 10px;
}

.ha-redesign-comp-list strong {
    color: #102033;
    font-size: .85rem;
    line-height: 1.25;
}

.ha-redesign-comp-list span {
    color: #53697d;
    font-size: .8rem;
    line-height: 1.35;
}

.ha-redesign-section {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.ha-redesign-section__head {
    display: grid;
    gap: 2px;
}

.ha-redesign-section__head--row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.ha-redesign-section__head h2 {
    font-size: 1.75rem;
}

.ha-redesign-driver-grid,
.ha-redesign-verify-grid,
.ha-redesign-foundation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    align-items: stretch;
}

.ha-redesign-driver-card,
.ha-redesign-verify-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.ha-redesign-driver-card > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ha-redesign-verify-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.ha-redesign-bullets {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.ha-redesign-bullets li {
    color: #40576e;
    font-size: .9rem;
    line-height: 1.45;
}

.ha-redesign-card--bottom-line .ha-redesign-bullets {
    gap: 6px;
    padding-left: 0;
}

.ha-redesign-card--bottom-line .ha-redesign-bullets li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
    list-style: none;
}

.ha-redesign-card--bottom-line .ha-redesign-bullets li::before {
    color: #16883f;
    content: "\2713";
    font-weight: 900;
}

.ha-redesign-bottom-line__layout {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ha-redesign-bottom-line__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #5ac764, #24973e);
    color: #fff;
}

.ha-redesign-bottom-line__icon svg {
    width: 39px;
    height: 39px;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.ha-redesign-bottom-line__content {
    display: grid;
    gap: 10px;
}

.ha-redesign-bottom-line__label {
    color: #16883f;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-redesign-card--bottom-line h2 {
    color: #078a3f;
    font-size: 1.7rem;
    line-height: 1.18;
}

.ha-redesign-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ha-redesign-checklist-grid article {
    padding: 16px;
}

.ha-redesign-checklist-grid ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
}

.ha-redesign-checklist-grid li {
    color: #40576e;
    font-size: .88rem;
    line-height: 1.42;
}

.ha-redesign-subscribe .hdl-newsletter,
.ha-redesign-feedback .hdl-feedback-box {
    margin: 0;
}

.ha-redesign-subscribe .hdl-newsletter {
    width: 100%;
    max-width: none;
    left: auto;
    transform: none;
    padding: 12px 18px;
}

.ha-redesign-subscribe .hdl-newsletter--compact {
    gap: 22px;
    margin: 0;
    max-width: none;
}

.ha-redesign-feedback .hdl-feedback-box {
    display: grid;
    grid-template-columns: minmax(210px, .68fr) minmax(300px, .95fr) minmax(400px, 1.25fr) minmax(210px, .66fr) auto;
    grid-template-areas:
        "title score text email actions"
        "rating score text email actions";
    gap: 8px 18px;
    align-items: center;
    width: 100%;
    border-radius: 8px;
    background: #fff;
    padding: 12px 16px;
}

.ha-redesign-feedback .hdl-feedback-title {
    grid-area: title;
    align-self: end;
    font-size: .9rem;
    line-height: 1.2;
    margin: 0;
}

.ha-redesign-feedback .hdl-feedback-subtitle {
    display: none;
}

.ha-redesign-feedback .hdl-feedback-rating-row {
    grid-area: rating;
    gap: 7px;
    margin: 0;
}

.ha-redesign-feedback .hdl-feedback-rating {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .78rem;
    line-height: 1;
}

.ha-redesign-feedback .hdl-feedback-form {
    display: contents;
}

.ha-redesign-feedback .hdl-feedback-label {
    display: grid;
    gap: 5px;
    margin: 0;
    min-width: 0;
    font-size: .7rem;
    line-height: 1.2;
}

.ha-redesign-feedback .hdl-feedback-label:nth-of-type(1) {
    grid-area: score;
}

.ha-redesign-feedback .hdl-feedback-label:nth-of-type(2) {
    grid-area: text;
}

.ha-redesign-feedback .hdl-feedback-label:nth-of-type(3) {
    grid-area: email;
}

.ha-redesign-feedback .hdl-feedback-label textarea,
.ha-redesign-feedback .hdl-feedback-label input,
.ha-redesign-feedback .hdl-feedback-label select {
    min-height: 38px;
    margin: 0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .76rem;
}

.ha-redesign-feedback .hdl-feedback-label textarea {
    height: 58px;
    min-height: 58px;
    resize: vertical;
}

.ha-redesign-feedback .hdl-feedback-actions {
    grid-area: actions;
    display: grid;
    gap: 4px;
    justify-items: stretch;
    margin: 0;
}

.ha-redesign-feedback .hdl-feedback-actions .btn {
    min-height: 38px;
    padding: 9px 18px;
    white-space: nowrap;
}

.ha-redesign-feedback .hdl-feedback-status {
    max-width: 160px;
    font-size: .72rem;
    line-height: 1.25;
}

.ha-redesign-foundation-page {
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(21, 41, 62, .07);
    padding: clamp(20px, 3vw, 28px);
}

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

.ha-property-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 2px 8px;
}

.ha-property-page-head h1 {
    color: #071646;
    font-size: 2.35rem;
    line-height: 1.08;
    letter-spacing: 0;
    margin: 0;
}

.ha-property-page-head p {
    color: #314675;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
    margin: 8px 0 0;
}

.ha-property-page-head .ha-property-generated {
    flex: 0 0 auto;
    margin: 0 0 4px;
    text-align: right;
}

.ha-property-status-line {
    max-width: 760px;
    color: #40576e;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.55;
    margin: 14px 0 0;
    position: relative;
    z-index: 1;
}

.ha-property-overview-card {
    display: grid;
    grid-template-columns: minmax(310px, 1.05fr) minmax(280px, .92fr) minmax(280px, .96fr);
    min-height: 340px;
    overflow: hidden;
    border: 1px solid #d9e4f6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 72, 147, .065);
}

.ha-property-overview-main,
.ha-property-listing-card {
    padding: clamp(20px, 2vw, 28px);
}

.ha-property-overview-main {
    display: grid;
    align-content: start;
    gap: 18px;
}

.ha-property-address-block {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.ha-property-address-block h2,
.ha-property-listing-card h2 {
    color: #071646;
    font-size: 1.45rem;
    line-height: 1.16;
    letter-spacing: 0;
    margin: 0;
}

.ha-property-address-block p {
    color: #12255b;
    font-size: 1rem;
    font-weight: 680;
    line-height: 1.35;
    margin: 6px 0 0;
}

.ha-property-overview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #16a34a;
}

.ha-property-overview-icon svg,
.ha-property-quick-facts svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ha-property-quick-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 1px solid #e8eef8;
    padding-bottom: 16px;
}

.ha-property-quick-facts span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #12255b;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.25;
}

.ha-property-quick-facts svg {
    color: #1e3a8a;
}

.ha-property-overview-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
}

.ha-property-overview-facts div {
    display: grid;
    gap: 5px;
}

.ha-property-overview-facts span {
    color: #7a8ba8;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.2;
}

.ha-property-overview-facts strong {
    color: #071646;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.25;
}

.ha-property-google-map {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-right: 1px solid #d9e4f6;
    border-left: 1px solid #d9e4f6;
    background: #eff6ff;
}

.ha-property-google-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    filter: saturate(.95) contrast(.98);
}

.ha-property-google-map > a {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 26px rgba(31, 72, 147, .18);
    color: #2563eb;
    font-size: .92rem;
    font-weight: 850;
    padding: 10px 16px;
    text-decoration: none;
}

.ha-property-listing-card {
    display: grid;
    align-content: start;
    gap: 16px;
}

.ha-property-listing-card .ha-property-fact-list div {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ha-property-location-visual {
    align-self: stretch;
    display: grid;
    min-width: min(34vw, 330px);
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, .75);
    border-radius: 8px;
    background:
        radial-gradient(circle at 72% 24%, rgba(34, 197, 94, .22) 0 10px, transparent 11px),
        radial-gradient(circle at 34% 68%, rgba(20, 184, 166, .24) 0 12px, transparent 13px),
        linear-gradient(135deg, rgba(239, 246, 255, .9), rgba(236, 253, 245, .9));
    position: relative;
    z-index: 1;
}

.ha-property-location-visual span,
.ha-property-location-visual strong,
.ha-property-location-visual em {
    position: absolute;
}

.ha-property-location-visual::before,
.ha-property-location-visual::after {
    position: absolute;
    content: "";
}

.ha-property-location-visual::before {
    inset: 18px;
    background:
        linear-gradient(90deg, transparent 47%, rgba(37, 99, 235, .14) 48% 52%, transparent 53%),
        linear-gradient(0deg, transparent 47%, rgba(20, 184, 166, .16) 48% 52%, transparent 53%);
    transform: rotate(-8deg);
}

.ha-property-location-visual::after {
    top: 42%;
    left: 58%;
    width: 28px;
    height: 28px;
    border: 7px solid #2563eb;
    border-radius: 50% 50% 50% 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ha-property-location-visual span {
    right: 24px;
    bottom: 24px;
    left: 24px;
    height: 52px;
    background: linear-gradient(to top, rgba(15, 118, 110, .16) 0 28px, transparent 28px);
    clip-path: polygon(0 100%, 0 62%, 10% 62%, 10% 35%, 20% 35%, 20% 68%, 34% 68%, 34% 25%, 48% 25%, 48% 56%, 62% 56%, 62% 12%, 76% 12%, 76% 66%, 90% 66%, 90% 42%, 100% 42%, 100% 100%);
}

.ha-property-location-visual strong {
    top: 25px;
    right: 28px;
    width: 58px;
    height: 2px;
    background: rgba(37, 99, 235, .38);
    box-shadow: 0 9px 0 rgba(20, 184, 166, .3), 0 18px 0 rgba(34, 197, 94, .3);
}

.ha-property-location-visual em {
    bottom: 86px;
    left: 34px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 999px;
}

.ha-property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ha-property-card {
    align-self: stretch;
    height: 100%;
    min-width: 0;
}

.ha-property-card--basic,
.ha-property-card--wide {
    grid-column: 1 / -1;
}

.ha-property-card--basic .ha-property-fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.ha-property-fact-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ha-property-fact-list div {
    display: grid;
    grid-template-columns: minmax(120px, .9fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #eef3f7;
    padding-bottom: 8px;
}

.ha-property-fact-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ha-property-fact-list dt {
    color: #60758a;
    font-size: .81rem;
    font-weight: 760;
    line-height: 1.35;
}

.ha-property-fact-list dd {
    min-width: 0;
    color: #102033;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.ha-property-map-card {
    display: grid;
    gap: 5px;
    min-height: 154px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .3)),
        repeating-linear-gradient(0deg, rgba(37, 99, 235, .09) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(20, 184, 166, .09) 0 1px, transparent 1px 30px),
        #f8fbff;
    padding: 18px;
    position: relative;
}

.ha-property-map-card__pin {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 24px;
    height: 24px;
    border: 6px solid #2563eb;
    border-radius: 50% 50% 50% 0;
    background: #fff;
    transform: rotate(-45deg);
}

.ha-property-map-card span {
    color: #0f766e;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-property-map-card strong {
    max-width: calc(100% - 54px);
    color: #102033;
    font-size: 1rem;
    line-height: 1.35;
}

.ha-property-map-card a {
    align-self: end;
    color: #174ea6;
    font-size: .86rem;
    font-weight: 850;
    text-decoration: none;
}

.ha-property-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.ha-property-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.ha-property-table th,
.ha-property-table td {
    border-bottom: 1px solid #eef3f7;
    color: #40576e;
    font-size: .82rem;
    line-height: 1.35;
    padding: 8px 6px;
    text-align: left;
    vertical-align: top;
}

.ha-property-table th {
    color: #102033;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-property-table__subrow td {
    background: #f8fbfc;
    color: #64748b;
    font-size: .79rem;
}

.ha-property-note-list {
    display: grid;
    gap: 10px;
}

.ha-property-card--notes {
    align-content: start;
    gap: 10px;
}

.ha-property-card--notes .ha-property-note-list {
    gap: 8px;
}

.ha-property-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 12px;
}

.ha-property-card--notes .ha-property-note {
    gap: 6px 9px;
    padding: 9px;
}

.ha-property-note strong,
.ha-property-note span,
.ha-property-note p {
    overflow-wrap: anywhere;
}

.ha-property-note strong {
    color: #102033;
    display: block;
    font-size: .92rem;
    line-height: 1.3;
}

.ha-property-card--notes .ha-property-note strong {
    font-size: .84rem;
}

.ha-property-note span {
    color: #60758a;
    display: block;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.35;
    margin-top: 3px;
}

.ha-property-card--notes .ha-property-note span,
.ha-property-card--notes .ha-property-note p {
    font-size: .76rem;
    line-height: 1.32;
}

.ha-property-note p {
    grid-column: 1 / -1;
    margin: 0;
}

.ha-property-observation-form {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(150px, .55fr) minmax(170px, .65fr) auto;
    gap: 10px;
    align-items: end;
    border-top: 1px solid #edf3f7;
    padding-top: 12px;
}

.ha-property-card--notes .ha-property-observation-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 9px;
}

.ha-property-observation-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ha-property-observation-form label span {
    color: #60758a;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-property-card--notes .ha-property-observation-form label span {
    font-size: .68rem;
}

.ha-property-observation-form input[type="text"],
.ha-property-observation-form select,
.ha-property-observation-form textarea {
    width: 100%;
    border: 1px solid #cbdbea;
    border-radius: 8px;
    background: #fff;
    color: #102033;
    font: inherit;
    font-size: .9rem;
    line-height: 1.35;
    min-height: 42px;
    padding: 10px 12px;
}

.ha-property-card--notes .ha-property-observation-form input[type="text"],
.ha-property-card--notes .ha-property-observation-form select,
.ha-property-card--notes .ha-property-observation-form textarea {
    min-height: 36px;
    padding: 8px 10px;
    font-size: .8rem;
}

.ha-property-observation-form .ha-redesign-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ha-property-observation-form .ha-redesign-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.ha-inline-edit-status {
    width: min(100% - 64px, 1480px);
    margin: -10px auto 18px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: .9rem;
    font-weight: 800;
    padding: 12px 16px;
    transition: opacity .25s ease, transform .25s ease;
}

.ha-inline-edit-status--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ha-inline-edit-status.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
}

.ha-property-observation-form textarea {
    min-height: 92px;
    resize: vertical;
}

.ha-property-card--notes .ha-property-observation-form textarea {
    min-height: 58px;
}

.ha-property-observation-form__note {
    grid-column: 1 / -1;
}

.ha-property-observation-form__check {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
}

.ha-property-observation-form__check input {
    width: 16px;
    height: 16px;
}

.ha-property-observation-form__check span {
    color: #40576e !important;
    font-size: .86rem !important;
    font-weight: 750 !important;
    text-transform: none !important;
}

.ha-property-card--notes .ha-property-observation-form__check span {
    font-size: .74rem !important;
}

.ha-property-card--notes .ha-property-observation-form .ha-redesign-btn {
    min-height: 36px;
    padding: 8px 12px;
}

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

.ha-market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    align-items: stretch;
    gap: 24px;
    overflow: hidden;
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background:
        radial-gradient(circle at 78% 22%, rgba(37, 99, 235, .08), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
        linear-gradient(135deg, #f8fbff, #f7fdfb);
    padding: clamp(22px, 4vw, 34px);
}

.ha-market-hero h1 {
    color: #102033;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 7px 0 0;
}

.ha-market-interpretation {
    color: #40576e;
    font-size: .94rem;
    line-height: 1.55;
    margin: 8px 0 0;
}

.ha-market-interpretation {
    max-width: 760px;
}

.ha-market-score-card {
    display: grid;
    align-content: center;
    gap: 10px;
    border: 1px solid #cfe0ea;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 30px rgba(21, 41, 62, .07);
    min-height: 128px;
    padding: 18px 20px;
}

.ha-market-score-card__head,
.ha-market-score-card__value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ha-market-score-card__head > span {
    color: #102033;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.2;
}

.ha-market-score-card__value strong {
    color: #102033;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.ha-market-score-card__value em {
    color: #31465c;
    font-size: 1.05rem;
    font-style: normal;
    font-weight: 850;
    margin-right: auto;
}

.ha-market-score-card p {
    color: #60758a;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.ha-market-score-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dde6ef;
}

.ha-market-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0ea5e9, #22c55e);
}

.ha-market-top-grid,
.ha-market-trend-grid,
.ha-market-guidance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

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

.ha-market-card {
    align-self: stretch;
    height: 100%;
    min-width: 0;
}

.ha-market-card h3,
.ha-market-trend-card h3 {
    color: #102033;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.ha-market-metric-list {
    display: grid;
    gap: 7px;
    margin: 0;
}

.ha-market-metric-list div {
    display: grid;
    grid-template-columns: minmax(112px, .9fr) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid #eef3f7;
    padding-bottom: 7px;
}

.ha-market-metric-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ha-market-metric-list dt {
    color: #60758a;
    font-size: .81rem;
    font-weight: 760;
    line-height: 1.35;
}

.ha-market-metric-list dd {
    color: #102033;
    font-size: .86rem;
    font-weight: 850;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.ha-market-metric-list dd.ha-market-value-positive {
    color: #15803d;
}

.ha-market-metric-list dd.ha-market-value-caution {
    color: #b45309;
}

.ha-market-section {
    display: grid;
    gap: 14px;
}

.ha-market-summary-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.ha-market-summary-item {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background: #fff;
    padding: 11px 14px;
}

.ha-market-summary-item span,
.ha-market-summary-item em {
    color: #60758a;
    font-size: .72rem;
    font-style: normal;
    font-weight: 780;
    line-height: 1.25;
}

.ha-market-summary-item strong {
    color: #102033;
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ha-market-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background: #fff;
}

.ha-market-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1040px;
}

.ha-market-table th,
.ha-market-table td {
    border-bottom: 1px solid #eef3f7;
    color: #40576e;
    font-size: .79rem;
    line-height: 1.35;
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
}

.ha-market-table th {
    position: sticky;
    top: 0;
    background: #f8fbfc;
    color: #102033;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1;
}

.ha-market-table td {
    min-width: 76px;
}

.ha-market-table td:first-child,
.ha-market-table th:first-child {
    min-width: 220px;
}

.ha-market-empty {
    color: #53697d;
    font-size: .92rem;
    line-height: 1.55;
}

.ha-market-trend-card {
    gap: 8px;
    position: relative;
}

.ha-market-trend-card::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    margin-top: auto;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .95), rgba(20, 184, 166, .8), rgba(34, 197, 94, .65));
}

.ha-market-trend-card strong {
    color: #0f766e;
    font-size: 1.1rem;
    line-height: 1.25;
}

.ha-market-trend-card > span {
    color: #60758a;
    font-size: .76rem;
    font-weight: 760;
}

.ha-market-compact-list {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ha-market-compact-list li {
    display: grid;
    gap: 3px;
    border-bottom: 1px solid #eef3f7;
    color: #40576e;
    font-size: .88rem;
    line-height: 1.45;
    padding-bottom: 8px;
}

.ha-market-compact-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ha-market-compact-list strong {
    color: #102033;
    font-size: .9rem;
}

.ha-market-compact-list span {
    color: #53697d;
}

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

.ha-financial-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    align-items: stretch;
    gap: 24px;
    overflow: hidden;
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background:
        radial-gradient(circle at 78% 22%, rgba(37, 99, 235, .08), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
        linear-gradient(135deg, #f8fbff, #f7fdfb);
    padding: clamp(22px, 4vw, 34px);
}

.ha-financial-hero h1 {
    color: #102033;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 7px 0 0;
}

.ha-financial-interpretation {
    color: #40576e;
    font-size: .94rem;
    line-height: 1.55;
    margin: 8px 0 0;
}

.ha-financial-interpretation {
    max-width: 760px;
}

.ha-financial-score-card {
    display: grid;
    align-content: center;
    gap: 10px;
    border: 1px solid #cfe0ea;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 30px rgba(21, 41, 62, .07);
    min-height: 128px;
    padding: 18px 20px;
}

.ha-financial-score-card__head,
.ha-financial-score-card__value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ha-financial-score-card__head > span {
    color: #102033;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.2;
}

.ha-financial-score-card__value strong {
    color: #102033;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.ha-financial-score-card__value em {
    color: #31465c;
    font-size: 1.05rem;
    font-style: normal;
    font-weight: 850;
    margin-right: auto;
}

.ha-financial-score-card p {
    color: #60758a;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.ha-financial-score-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dde6ef;
}

.ha-financial-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0ea5e9, #22c55e);
}

.ha-financial-insight-grid,
.ha-financial-main-grid,
.ha-financial-planning-grid,
.ha-financial-two-col {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

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

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

.ha-financial-planning-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.ha-financial-card {
    align-self: stretch;
    height: 100%;
    min-width: 0;
}

.ha-financial-card h3,
.ha-financial-change-card h3 {
    color: #102033;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.ha-financial-insight-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.ha-financial-insight-card h2 {
    color: #102033;
    font-size: .95rem;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

.ha-financial-insight-card strong {
    display: block;
    color: #102033;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.15;
    margin-top: 5px;
}

.ha-financial-insight-card p {
    color: #60758a;
    font-size: .78rem;
    font-weight: 720;
    line-height: 1.45;
    margin: 7px 0 0;
}

.ha-financial-insight-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
}

.ha-financial-insight-card__icon,
.ha-financial-change-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    flex: 0 0 auto;
}

.ha-financial-insight-card__icon--teal {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.ha-financial-insight-card__icon--green {
    background: linear-gradient(135deg, #16a34a, #84cc16);
}

.ha-financial-insight-card__icon--purple {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.ha-financial-insight-card__icon svg,
.ha-financial-change-card__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ha-financial-dti-bar {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent 0 72%, rgba(148, 163, 184, .65) 72% 73%, transparent 73% 86%, rgba(245, 158, 11, .75) 86% 87%, transparent 87% 90%, rgba(239, 68, 68, .8) 90% 91%, transparent 91%),
        #dde6ef;
}

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

.ha-financial-metric-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ha-financial-metric-list div {
    display: grid;
    grid-template-columns: minmax(135px, .95fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #eef3f7;
    padding-bottom: 8px;
}

.ha-financial-metric-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ha-financial-metric-list dt {
    color: #60758a;
    font-size: .81rem;
    font-weight: 760;
    line-height: 1.35;
}

.ha-financial-metric-list dd {
    color: #102033;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.ha-financial-metric-list dd.is-positive {
    color: #166534;
}

.ha-financial-metric-list dd.is-caution {
    color: #9a3412;
}

.ha-financial-metric-list .ha-financial-highlight-row {
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 9px 10px;
}

.ha-financial-card--payment {
    grid-row: auto;
}

.ha-financial-payment-visual {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.ha-financial-payment-donut {
    display: grid;
    place-items: center;
    width: min(100%, 230px);
    aspect-ratio: 1;
    border-radius: 999px;
    justify-self: center;
    position: relative;
}

.ha-financial-payment-donut::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: inherit;
    background: #fff;
    box-shadow: inset 0 0 0 1px #dbe7f0;
}

.ha-financial-payment-donut span {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    color: #102033;
    text-align: center;
}

.ha-financial-payment-donut b {
    max-width: 120px;
    color: #40576e;
    font-size: .7rem;
    line-height: 1.15;
}

.ha-financial-payment-donut strong {
    color: #102033;
    font-size: 1.25rem;
    line-height: 1.1;
}

.ha-financial-payment-legend {
    display: grid;
    gap: 8px;
}

.ha-financial-payment-legend div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    color: #40576e;
    font-size: .79rem;
    font-weight: 780;
}

.ha-financial-payment-legend span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ha-fin-item-color, #2563eb);
}

.ha-financial-payment-legend em,
.ha-financial-payment-legend small {
    color: #102033;
    font-style: normal;
    font-weight: 850;
}

.ha-financial-payment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ha-financial-payment-summary div {
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 12px;
}

.ha-financial-payment-summary span {
    display: block;
    color: #60758a;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.ha-financial-payment-summary strong {
    display: block;
    color: #102033;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-top: 5px;
}

.ha-financial-payment-summary small {
    display: block;
    color: #60758a;
    font-size: .72rem;
    font-weight: 740;
    line-height: 1.25;
    margin-top: 4px;
}

.ha-financial-payment-bar {
    display: flex;
    overflow: hidden;
    min-height: 18px;
    border-radius: 999px;
    background: #e5edf4;
}

.ha-financial-payment-bar span {
    display: block;
    min-width: 2px;
}

.ha-financial-payment-bar .is-equity {
    background: linear-gradient(90deg, #0f766e, #22c55e);
}

.ha-financial-payment-bar .is-cost {
    background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.ha-financial-payment-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 9px;
}

.ha-financial-payment-items div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 8px;
    align-items: center;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 10px;
}

.ha-financial-payment-items span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
}

.ha-financial-payment-items span.is-equity {
    background: #16a34a;
}

.ha-financial-payment-items strong {
    color: #102033;
    font-size: .84rem;
    line-height: 1.25;
}

.ha-financial-payment-items em {
    color: #102033;
    font-size: .82rem;
    font-style: normal;
    font-weight: 850;
}

.ha-financial-payment-items small {
    grid-column: 2 / -1;
    color: #60758a;
    font-size: .74rem;
    line-height: 1.3;
}

.ha-financial-sublist {
    display: grid;
    gap: 7px;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 12px;
}

.ha-financial-sublist > span {
    color: #40576e;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-financial-sublist div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.ha-financial-sublist strong,
.ha-financial-sublist em {
    color: #102033;
    font-size: .84rem;
    font-style: normal;
    line-height: 1.3;
}

.ha-financial-sublist em {
    font-weight: 850;
}

.ha-financial-dti-panel {
    display: grid;
    grid-template-columns: minmax(170px, .55fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.ha-financial-dti-gauge {
    display: grid;
    gap: 8px;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 14px;
}

.ha-financial-dti-gauge strong {
    color: #102033;
    font-size: 1.55rem;
    line-height: 1;
}

.ha-financial-dti-gauge > span,
.ha-financial-dti-gauge em {
    color: #60758a;
    font-size: .74rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.ha-financial-section {
    display: grid;
    gap: 14px;
}

.ha-financial-mini-chart {
    display: grid;
    gap: 12px;
}

.ha-financial-mini-chart div {
    display: grid;
    gap: 5px;
}

.ha-financial-mini-chart span {
    color: #60758a;
    font-size: .78rem;
    font-weight: 850;
}

.ha-financial-mini-chart strong,
.ha-financial-mini-chart em {
    display: block;
    height: 11px;
    border-radius: 999px;
}

.ha-financial-mini-chart strong {
    background: #2563eb;
}

.ha-financial-mini-chart em {
    background: #14b8a6;
}

.ha-financial-horizon-control {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    border: 1px solid #e3edf3;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 12px;
}

.ha-financial-horizon-control label {
    display: grid;
    gap: 5px;
    color: #40576e;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ha-financial-horizon-control select {
    min-width: 110px;
    border: 1px solid #cbdbea;
    border-radius: 8px;
    background: #fff;
    color: #102033;
    font: inherit;
    font-size: .88rem;
    font-weight: 750;
    padding: 9px 10px;
}

.ha-financial-horizon-control span {
    color: #53697d;
    font-size: .84rem;
    line-height: 1.4;
}

.ha-financial-value-chart {
    display: grid;
    gap: 11px;
}

.ha-financial-value-chart div {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
}

.ha-financial-value-chart span,
.ha-financial-value-chart em {
    color: #53697d;
    font-size: .8rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.25;
}

.ha-financial-value-chart strong {
    display: block;
    min-width: 3px;
    height: 14px;
    border-radius: 999px;
    background: #2563eb;
}

.ha-financial-value-chart .is-projected,
.ha-financial-value-chart .is-equity {
    background: #14b8a6;
}

.ha-financial-value-chart .is-inflation,
.ha-financial-value-chart .is-proceeds {
    background: #22c55e;
}

.ha-financial-value-chart .is-loan {
    background: #94a3b8;
}

.ha-financial-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d8e6ee;
    border-radius: 8px;
    background: #fff;
}

.ha-financial-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.ha-financial-table th,
.ha-financial-table td {
    border-bottom: 1px solid #eef3f7;
    color: #40576e;
    font-size: .82rem;
    line-height: 1.35;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.ha-financial-table th {
    position: sticky;
    top: 0;
    background: #f8fbfc;
    color: #102033;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 1;
}

.ha-financial-table td:first-child {
    color: #102033;
    font-weight: 850;
}

.ha-financial-change-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    gap: 14px;
    align-items: stretch;
}

.ha-financial-change-card {
    gap: 8px;
}

.ha-financial-change-card__icon {
    width: 34px;
    height: 34px;
    color: #2563eb;
    background: #eff6ff;
}

.ha-financial-change-card__icon svg {
    width: 18px;
    height: 18px;
}

.ha-financial-change-card p {
    color: #60758a;
    font-size: .82rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 1180px) {
    .ha-redesign-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ha-redesign-feedback .hdl-feedback-box {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "title rating"
            "score score"
            "text text"
            "email actions";
    }

    .ha-property-overview-card {
        grid-template-columns: 1fr 1fr;
    }

    .ha-property-listing-card {
        grid-column: 1 / -1;
        border-top: 1px solid #d9e4f6;
    }

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

    .ha-market-top-grid,
    .ha-market-trend-grid,
    .ha-market-summary-strip,
    .ha-financial-insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ha-financial-main-grid,
    .ha-financial-planning-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
    .ha-redesign-tabs {
        flex-wrap: wrap;
        justify-content: center;
        padding: 4px 10px 0;
    }

    .ha-redesign-tab {
        flex: 1 1 28%;
        min-height: 54px;
    }
}

@media (max-width: 840px) {
    .ha-redesign-section__head--row {
        grid-template-columns: 1fr;
    }

    .ha-redesign-hero {
        display: grid;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .ha-redesign-hero__copy {
        max-width: none;
    }

    .ha-redesign-hero__score {
        left: auto;
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
    }

    .ha-redesign-actions {
        justify-content: stretch;
    }

    .ha-redesign-btn:not(.ha-redesign-btn--icon) {
        flex: 1 1 auto;
    }

    .ha-redesign-subscribe .hdl-newsletter,
    .ha-redesign-subscribe .hdl-newsletter__form {
        align-items: stretch;
        flex-direction: column;
    }

    .ha-redesign-subscribe .hdl-newsletter__content,
    .ha-redesign-subscribe .hdl-newsletter__row,
    .ha-redesign-subscribe .hdl-newsletter__submit,
    .ha-redesign-subscribe .hdl-newsletter__submit .btn {
        width: 100%;
    }

    .ha-redesign-hero__meta {
        justify-self: start;
        text-align: left;
    }

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

    .ha-redesign-card-grid,
    .ha-property-overview-card,
    .ha-property-location-visual {
        grid-template-columns: 1fr;
    }

    .ha-property-page-head {
        display: grid;
        align-items: start;
    }

    .ha-property-page-head .ha-property-generated {
        text-align: left;
    }

    .ha-property-google-map {
        border-top: 1px solid #d9e4f6;
        border-right: 0;
        border-left: 0;
    }

    .ha-property-google-map iframe {
        min-height: 300px;
    }

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

    .ha-property-card--basic .ha-property-fact-list {
        grid-template-columns: 1fr;
    }

    .ha-property-observation-form {
        grid-template-columns: 1fr 1fr;
    }

    .ha-market-hero,
    .ha-financial-hero,
    .ha-market-top-grid,
    .ha-market-trend-grid,
    .ha-market-guidance-grid,
    .ha-market-summary-strip,
    .ha-financial-insight-grid,
    .ha-financial-main-grid,
    .ha-financial-planning-grid,
    .ha-financial-two-col {
        grid-template-columns: 1fr;
    }

    .ha-market-score-card,
    .ha-financial-score-card {
        justify-items: start;
        min-height: 0;
        text-align: left;
    }

    .ha-financial-card--payment {
        grid-row: auto;
    }

    .ha-financial-payment-visual,
    .ha-financial-dti-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ha-redesign-shell {
        padding-top: 10px;
    }

    .ha-live-report-page .site-header > .container,
    .ha-redesign-actions,
    .ha-redesign-tabs,
    .ha-redesign-panels {
        width: min(100% - 20px, var(--ha-report-width));
    }

    .ha-redesign-actions {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
    }

    .ha-redesign-btn {
        min-height: 40px;
        padding: 9px 10px;
    }

    .ha-redesign-btn span {
        white-space: normal;
    }

    .ha-redesign-hero {
        min-height: 0;
        padding: 22px 18px;
    }

    .ha-redesign-bottom-line__layout {
        grid-template-columns: 1fr;
    }

    .ha-redesign-bottom-line__icon {
        width: 58px;
        height: 58px;
    }

    .ha-redesign-tab {
        flex-basis: 46%;
    }

    .ha-redesign-hero::after {
        display: none;
    }

    .ha-redesign-card__head,
    .ha-redesign-driver-card > div,
    .ha-redesign-verify-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ha-redesign-card__head {
        display: grid;
    }

    .ha-redesign-feedback .hdl-feedback-box {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "rating"
            "score"
            "text"
            "email"
            "actions";
    }

    .ha-redesign-feedback .hdl-feedback-actions,
    .ha-redesign-feedback .hdl-feedback-actions .btn {
        width: 100%;
    }

    .ha-redesign-metric-list div {
        align-items: start;
        display: grid;
        gap: 3px;
    }

    .ha-redesign-metric-list dd {
        text-align: left;
    }

    .ha-property-fact-list div,
    .ha-property-observation-form {
        grid-template-columns: 1fr;
    }

    .ha-property-fact-list dd {
        text-align: left;
    }

    .ha-property-overview-facts,
    .ha-property-quick-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ha-market-metric-list div {
        grid-template-columns: 1fr;
    }

    .ha-market-metric-list dd,
    .ha-financial-metric-list dd {
        text-align: left;
    }

    .ha-market-score-card__head,
    .ha-market-score-card__value,
    .ha-financial-score-card__head,
    .ha-financial-score-card__value {
        align-items: flex-start;
    }

    .ha-financial-metric-list div,
    .ha-financial-payment-summary,
    .ha-financial-value-chart div,
    .ha-financial-payment-legend div {
        grid-template-columns: 1fr;
    }

    .ha-financial-payment-items div {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ha-financial-payment-items em,
    .ha-financial-payment-items small {
        grid-column: 2 / -1;
    }

    .ha-financial-insight-card {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------------- *
 * SVG chart system (shared by Market Forecast, Rental Exit, and future tabs).
 * Colors match the redesign palette already used across this stylesheet
 * (#2563eb blue, #16a34a green, #d97706 amber, #8b5cf6 purple). Kept in CSS
 * classes so the SVG markup carries no hardcoded hex and prints correctly.
 * ------------------------------------------------------------------------- */
.hdl-chart-figure {
    margin: 0;
    width: 100%;
}

.hdl-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hdl-chart-grid {
    stroke: #e6edf5;
    stroke-width: 1;
}

.hdl-chart-axis-y,
.hdl-chart-axis-x {
    fill: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.hdl-chart-line {
    fill: none;
    stroke-width: 2.4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.hdl-chart-line--dashed {
    stroke-dasharray: 6 5;
}

.hdl-chart-line--green { stroke: #16a34a; }
.hdl-chart-line--blue { stroke: #2563eb; }
.hdl-chart-line--amber { stroke: #d97706; }
.hdl-chart-line--purple { stroke: #8b5cf6; }
.hdl-chart-line--slate { stroke: #64748b; }

.hdl-chart-dot--green { fill: #16a34a; }
.hdl-chart-dot--blue { fill: #2563eb; }
.hdl-chart-dot--amber { fill: #d97706; }
.hdl-chart-dot--purple { fill: #8b5cf6; }
.hdl-chart-dot--slate { fill: #64748b; }

.hdl-chart-area { stroke: none; }
.hdl-chart-area--green { fill: rgba(22, 163, 74, .10); }
.hdl-chart-area--blue { fill: rgba(37, 99, 235, .10); }
.hdl-chart-area--amber { fill: rgba(217, 119, 6, .10); }
.hdl-chart-area--purple { fill: rgba(139, 92, 246, .10); }

.hdl-chart-band { stroke: none; }
.hdl-chart-band--green { fill: rgba(22, 163, 74, .14); }
.hdl-chart-band--blue { fill: rgba(37, 99, 235, .14); }
.hdl-chart-band--amber { fill: rgba(217, 119, 6, .14); }
.hdl-chart-band--purple { fill: rgba(139, 92, 246, .14); }

.hdl-chart-annotation {
    stroke-width: 1.4;
    stroke-dasharray: 4 4;
}

.hdl-chart-annotation--amber { stroke: #d97706; }
.hdl-chart-annotation--blue { stroke: #2563eb; }
.hdl-chart-annotation--slate { stroke: #94a3b8; }

.hdl-chart-annotation-label {
    fill: #9a3412;
    font-size: 11px;
    font-weight: 800;
}

.hdl-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
}

.hdl-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #40576e;
    font-size: .82rem;
    font-weight: 700;
}

.hdl-chart-legend__swatch {
    display: inline-block;
    width: 14px;
    height: 4px;
    border-radius: 2px;
}

.hdl-chart-legend__swatch--green { background: #16a34a; }
.hdl-chart-legend__swatch--blue { background: #2563eb; }
.hdl-chart-legend__swatch--amber { background: #d97706; }
.hdl-chart-legend__swatch--purple { background: #8b5cf6; }
.hdl-chart-legend__swatch--slate { background: #64748b; }

.hdl-sparkline {
    display: inline-block;
    width: 120px;
    height: 32px;
    vertical-align: middle;
}

.hdl-sparkline .hdl-chart-line {
    stroke-width: 2;
}

.hdl-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 1px dashed #cdd9ec;
    border-radius: 10px;
    background: #f7faff;
    color: #53697d;
    font-size: .9rem;
    font-weight: 600;
    padding: 18px;
    text-align: center;
}

.hdl-chart-note {
    color: #53697d;
    font-size: .82rem;
    margin: 8px 0 0;
}

/* Market Forecast prominent banner disclaimer. */
.ha-forecast-banner {
    display: grid;
    gap: 3px;
    border: 1px solid #fed7aa;
    border-left: 4px solid #d97706;
    border-radius: 10px;
    background: #fffbeb;
    color: #7c2d12;
    padding: 12px 16px;
    margin: 4px 0 20px;
}

.ha-forecast-banner strong {
    font-size: .95rem;
    font-weight: 800;
}

.ha-forecast-banner span {
    color: #9a3412;
    font-size: .84rem;
}

/* Shared informational disclaimer partial (Market Forecast + Rental Exit). */
.ha-redesign-disclaimer {
    border: 1px solid #e3e9f2;
    border-radius: 12px;
    background: #f8fafc;
    color: #40576e;
    padding: 16px 18px;
    margin-top: 24px;
}

.ha-redesign-disclaimer p {
    font-size: .82rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

.ha-redesign-disclaimer p:last-child {
    margin-bottom: 0;
}

.ha-redesign-disclaimer__lead {
    color: #12255b;
    font-weight: 800;
}

/* ------------------------------------------------------------------------- *
 * Risk & Hazard tab (§2C): severity badges, risk matrix, chip rows.
 * ------------------------------------------------------------------------- */
.hdl-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.hdl-risk-badge__source {
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .72;
    padding-left: 6px;
    border-left: 1px solid currentColor;
}

.hdl-risk-badge--low {
    background: #dcfce7;
    color: #166534;
}

.hdl-risk-badge--moderate {
    background: #fef9c3;
    color: #854d0e;
}

.hdl-risk-badge--elevated {
    background: #fee2e2;
    color: #991b1b;
}

.hdl-risk-badge--verify {
    background: #eef2f7;
    color: #475569;
}

.hdl-risk-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hdl-risk-matrix__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #e2e8f2;
    border-radius: 12px;
    background: #f8fafd;
}

.hdl-risk-matrix__name {
    font-size: .82rem;
    font-weight: 800;
    color: #1e293b;
}

.ha-risk-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.ha-risk-card--wide {
    grid-column: 1 / -1;
}

.hdl-risk-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 10px;
}

.hdl-risk-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: .76rem;
    font-weight: 700;
    background: #eef2f7;
    color: #334155;
}

/* ------------------------------------------------------------------------- *
 * Lifestyle tab (§2B): amenity grid, glyphs, commute list, map card.
 * ------------------------------------------------------------------------- */
.hdl-amenity-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.hdl-amenity-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 1px solid #e2e8f2;
    border-radius: 12px;
    background: #f8fafd;
    text-align: center;
}

.hdl-amenity-cell__icon {
    display: inline-flex;
    color: #2563eb;
}

.hdl-amenity-glyph {
    width: 26px;
    height: 26px;
}

.hdl-amenity-cell__count {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f2350;
    line-height: 1;
}

.hdl-amenity-cell__label {
    font-size: .72rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.25;
}

.ha-lifestyle-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ha-lifestyle-map-card .ha-property-google-map {
    margin-bottom: 4px;
}

.ha-lifestyle-commute-list {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.ha-lifestyle-commute-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f2;
    border-radius: 12px;
    background: #f8fafd;
}

.ha-lifestyle-commute-row strong {
    display: block;
    font-size: .9rem;
    color: #0f2350;
}

.ha-lifestyle-commute-row span {
    font-size: .8rem;
    color: #64748b;
}

.ha-lifestyle-phase2 .hdl-source-note {
    font-size: .82rem;
    color: #475569;
}

.hdl-source-note {
    font-weight: 700;
    color: #475569;
}

/* ------------------------------------------------------------------------- *
 * Details tab (§2E): provenance table, coverage, missing manifest, inputs.
 * ------------------------------------------------------------------------- */
.hdl-provenance-table td:last-child,
.hdl-provenance-table th:last-child {
    white-space: nowrap;
}

.hdl-missing-manifest {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.hdl-missing-manifest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f2;
    border-radius: 10px;
    background: #f8fafd;
}

.hdl-missing-manifest__label {
    flex: 1 1 auto;
    font-size: .86rem;
    font-weight: 700;
    color: #1e293b;
}

.hdl-missing-manifest__priority {
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 3px 8px;
}

.hdl-missing-manifest__add {
    flex: 0 0 auto;
    white-space: nowrap;
}

.hdl-input-echo > summary {
    cursor: pointer;
    font-weight: 800;
    color: #2563eb;
    list-style: none;
    padding: 4px 0;
}

.hdl-input-echo > summary::-webkit-details-marker {
    display: none;
}

.hdl-input-echo > summary::before {
    content: "\25B8";
    display: inline-block;
    margin-right: 8px;
    transition: transform .15s ease;
}

.hdl-input-echo[open] > summary::before {
    transform: rotate(90deg);
}

.hdl-input-echo__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.hdl-input-echo__group h3 {
    margin: 0 0 8px;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}

.hdl-methodology-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hdl-methodology-list__name {
    font-weight: 700;
    color: #1e293b;
}

.hdl-methodology-list__meta {
    font-size: .82rem;
    color: #64748b;
    white-space: nowrap;
}

/* Print-only utility: hidden on screen, revealed inside @media print. The
 * complementary .screen-only utility (defined in home-analysis-sample-report.css)
 * is hidden in print. */
.print-only {
    display: none;
}

@media (max-width: 900px) {
    .hdl-risk-matrix,
    .hdl-amenity-grid,
    .ha-risk-card-grid,
    .hdl-input-echo__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hdl-risk-matrix,
    .hdl-amenity-grid,
    .ha-risk-card-grid,
    .hdl-input-echo__groups {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------------- *
 * Print / PDF (§3) — flagship Property Intelligence Report.
 * Root problem this fixes: the screen report is a JS tab switcher, so only the
 * active panel is visible and the rest carry the [hidden] attribute; the layout
 * is also mobile-first and there was no @page. In print we: set an @page, reveal
 * EVERY panel (one report section per page), strip all interactive chrome, and
 * inject a per-panel title bar so each printed page is self-identifying.
 * ------------------------------------------------------------------------- */
@page {
    size: letter portrait;
    margin: 12mm 10mm;
}

@media print {
    /* Screen-only chrome disappears; print-only helpers appear. (The global
     * .screen-only print rule lives in home-analysis-sample-report.css; we
     * restate the report-specific pieces here so this file is self-sufficient.) */
    .screen-only {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    :root {
        font-size: 11px;
    }

    .ha-redesign-shell {
        background: #fff !important;
        padding: 0 !important;
        font-size: 11px;
    }

    .ha-redesign-actions,
    .ha-redesign-tabs,
    .ha-redesign-topbar,
    .ha-redesign-btn,
    .ha-redesign-subscribe,
    .ha-redesign-feedback,
    .ha-inline-edit-status,
    .ha-property-observation-form,
    .ha-property-location-visual,
    .ha-share-panel-wrap,
    .ha-shared-ribbon-wrap,
    .ha-live-feedback,
    .launch-promo-banner,
    .hdl-admin-view-switcher,
    .hdl-newsletter,
    [data-newsletter-signup],
    [data-home-report-print],
    [data-home-report-modify],
    [data-home-report-checklist-cta] {
        display: none !important;
    }

    /* Reveal every tab panel and give each its own page. */
    .ha-redesign-panels {
        width: 100% !important;
        margin: 0 !important;
    }

    .ha-redesign-panel[hidden] {
        display: block !important;
    }

    .ha-redesign-panel {
        break-before: page;
        page-break-before: always;
    }

    /* The first rendered panel must not push a blank leading page. */
    .ha-redesign-panel:first-of-type {
        break-before: avoid;
        page-break-before: avoid;
    }

    /* Keep the old flat print report (legacy tab) out of the flagship print. */
    .ha-redesign-panel--legacy {
        display: none !important;
    }

    /* Per-panel print title bar (rendered in redesign-tabs.php as
     * .print-only.ha-print-panel-title). Screen: hidden via .print-only. */
    .ha-print-panel-title {
        display: block !important;
        margin: 0 0 10pt;
        padding: 0 0 6pt;
        border-bottom: 2px solid #0f2350;
    }

    .ha-print-panel-title strong {
        display: block;
        font-size: 14pt;
        font-weight: 900;
        color: #0f2350;
        line-height: 1.15;
    }

    .ha-print-panel-title span {
        display: block;
        font-size: 9pt;
        color: #475569;
        margin-top: 2pt;
    }

    /* Business branding ribbon prints once at the very top (it lives outside the
     * panels loop), so it is not duplicated per page. */
    .ha-business-branding {
        break-inside: avoid;
        break-after: avoid;
        margin-bottom: 10pt;
    }

    /* Collapse the mobile-first grids to a print-safe composition:
     * multi-column stat grids become 2-col; everything else stacks. */
    .ha-redesign-summary,
    .ha-property-snapshot,
    .ha-market-context,
    .ha-financial-outlook,
    .ha-redesign-card-grid,
    .ha-property-grid,
    .ha-market-summary-strip,
    .ha-financial-insight-grid,
    .ha-financial-main-grid,
    .ha-financial-planning-grid,
    .ha-financial-two-col,
    .ha-financial-change-grid,
    .ha-redesign-driver-grid,
    .ha-redesign-verify-grid,
    .ha-redesign-checklist-grid,
    .ha-lifestyle-commute-list {
        display: block !important;
    }

    .ha-market-top-grid,
    .ha-market-trend-grid,
    .ha-market-guidance-grid,
    .hdl-risk-matrix,
    .ha-risk-card-grid,
    .hdl-amenity-grid,
    .hdl-input-echo__groups {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10pt !important;
    }

    .hdl-amenity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* Expand the collapsible input echo so it prints in full. */
    .hdl-input-echo[open],
    .hdl-input-echo {
        display: block !important;
    }

    .hdl-input-echo > summary {
        display: none !important;
    }

    /* Cards / heroes / tables never split across a page. */
    .ha-redesign-hero,
    .ha-redesign-score-card,
    .ha-redesign-card,
    .ha-market-card,
    .ha-risk-card,
    .hdl-risk-matrix__cell,
    .hdl-amenity-cell,
    .ha-lifestyle-commute-row,
    .hdl-missing-manifest__item,
    .ha-property-map-card,
    .ha-property-note,
    .ha-market-hero,
    .ha-market-table-wrap,
    .ha-financial-hero,
    .ha-financial-table-wrap,
    .ha-redesign-driver-card,
    .ha-redesign-verify-card,
    .ha-redesign-checklist-grid article {
        break-inside: avoid;
        box-shadow: none !important;
        margin-bottom: 8pt;
    }

    .ha-redesign-hero {
        min-height: 0;
        padding: 16pt;
    }

    .ha-redesign-hero::after {
        display: none;
    }

    /* Tables: repeat the header row on every printed page. */
    .ha-market-table,
    .ha-financial-table {
        min-width: 0;
    }

    .ha-market-table thead,
    .ha-financial-table thead,
    .hdl-provenance-table thead {
        display: table-header-group;
    }

    .ha-market-table th,
    .ha-financial-table th {
        position: static;
    }

    /* SVG charts scale to width; cap their height so they never dominate a page. */
    .hdl-chart-figure,
    .ha-intel-gauge {
        break-inside: avoid;
    }

    .hdl-chart,
    .hdl-chart svg {
        max-height: 220pt;
    }

    .ha-forecast-banner,
    .ha-redesign-disclaimer {
        break-inside: avoid;
    }
}

/* Navy/gold visual treatment from the approved report concepts. */
.ha-redesign-btn {
    border-color: #d4c29c;
    color: var(--ha-brand-navy);
}

.ha-redesign-btn:hover {
    border-color: var(--ha-brand-gold);
    box-shadow: 0 10px 22px rgba(155, 120, 56, .16);
}

.ha-redesign-btn--primary,
.ha-redesign-shell .btn.btn-primary,
.ha-redesign-shell button.btn-primary,
.ha-property-observation-form .ha-redesign-btn--primary {
    border-color: var(--ha-brand-gold);
    background: var(--ha-brand-gold);
    color: var(--ha-brand-navy);
    box-shadow: 0 10px 24px rgba(155, 120, 56, .23);
}

.ha-redesign-btn--primary:hover,
.ha-redesign-shell .btn.btn-primary:hover,
.ha-redesign-shell button.btn-primary:hover,
.ha-property-observation-form .ha-redesign-btn--primary:hover {
    border-color: var(--ha-brand-gold-dark);
    background: var(--ha-brand-gold-dark);
    color: #ffffff;
}

.ha-redesign-btn--ghost,
.ha-redesign-tab:hover,
.ha-redesign-tab.is-active {
    color: var(--ha-brand-navy);
}

.ha-redesign-tabs {
    border-bottom: 1px solid #e1e6eb;
}

.ha-redesign-tab {
    color: #41566a;
}

.ha-redesign-tab.is-active::after {
    background: linear-gradient(90deg, var(--ha-brand-gold-dark), var(--ha-brand-gold));
}

.ha-redesign-hero {
    border-color: color-mix(in srgb, var(--ha-brand-gold) 45%, var(--ha-brand-navy));
    background:
        linear-gradient(100deg, rgba(15, 36, 56, .98) 0%, rgba(15, 36, 56, .92) 44%, rgba(26, 58, 92, .78) 100%),
        url('/assets/images/home-analysis/report-skyline-map-accent.png') center bottom / 100% auto no-repeat;
    box-shadow: 0 22px 52px rgba(15, 36, 56, .17);
}

.ha-redesign-hero h1,
.ha-redesign-hero .ha-redesign-address,
.ha-redesign-hero .ha-redesign-property-meta span,
.ha-redesign-hero .ha-redesign-generated,
.ha-redesign-hero .ha-redesign-hero__score p,
.ha-redesign-hero .ha-intel-gauge__center strong {
    color: #ffffff;
}

.ha-redesign-hero .ha-redesign-eyebrow,
.ha-redesign-hero .ha-intel-gauge__center em {
    color: var(--ha-brand-gold);
}

.ha-redesign-hero .ha-redesign-property-meta span + span::before,
.ha-redesign-hero .ha-intel-gauge__center span {
    color: #dbe5ee;
}

.ha-redesign-hero .ha-redesign-property-type,
.ha-redesign-hero .ha-redesign-hero__meta {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .94);
}

.ha-redesign-hero .ha-intel-gauge__track {
    stroke: rgba(255, 255, 255, .22);
}

.ha-redesign-hero .ha-intel-gauge__inner-rim {
    stroke: rgba(255, 255, 255, .42);
}

.ha-business-branding {
    border-color: color-mix(in srgb, var(--ha-brand-gold) 42%, var(--ha-brand-navy));
    background: linear-gradient(135deg, var(--ha-brand-navy) 0%, var(--ha-brand-navy-2) 100%);
    color: #ffffff;
}

.ha-business-branding span,
.ha-business-branding p,
.ha-business-branding small {
    color: #dbe5ee;
}

.ha-business-branding strong {
    color: var(--ha-brand-gold);
}

.ha-redesign-card--accent {
    border-top: 3px solid var(--ha-brand-gold);
}

.hdl-chart-line--blue,
.hdl-chart-annotation--blue {
    stroke: var(--ha-brand-gold);
}

.hdl-chart-dot--blue {
    fill: var(--ha-brand-gold);
}

.hdl-chart-legend__swatch--blue {
    background: var(--ha-brand-gold);
}

@media print {
    .ha-redesign-hero,
    .ha-business-branding {
        border-color: #b7c7dd;
        background: #ffffff;
        box-shadow: none;
    }

    .ha-redesign-hero h1,
    .ha-redesign-hero .ha-redesign-address,
    .ha-redesign-hero .ha-redesign-property-meta span,
    .ha-redesign-hero .ha-redesign-generated,
    .ha-redesign-hero .ha-redesign-hero__score p,
    .ha-redesign-hero .ha-intel-gauge__center strong,
    .ha-business-branding strong {
        color: #0f2438;
    }

    .ha-redesign-hero .ha-redesign-property-meta span + span::before,
    .ha-redesign-hero .ha-intel-gauge__center span,
    .ha-business-branding span,
    .ha-business-branding p,
    .ha-business-branding small {
        color: #475569;
    }
}

.ha-property-gallery-card {
    display: grid;
    gap: 18px;
    margin-top: 16px;
    border: 1px solid #d9e4e9;
    border-top: 3px solid var(--ha-brand-gold);
    border-radius: 10px;
    background: #ffffff;
    padding: 22px;
}

.ha-property-gallery-card h2,
.ha-property-gallery-card p {
    margin: 0;
}

.ha-property-gallery-card .ha-redesign-card__head > div > p {
    margin-top: 5px;
    color: #64748b;
}

.ha-property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.ha-property-gallery figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid #dce3ea;
    border-radius: 9px;
    background: #f7f9fb;
}

.ha-property-gallery img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.ha-property-gallery figcaption {
    padding: 9px 11px;
    color: #41566a;
    font-size: .82rem;
    font-weight: 750;
}

.ha-property-listing-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.ha-property-listing-sources a {
    color: var(--ha-brand-navy-2);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--ha-brand-gold);
    text-underline-offset: 3px;
}

.ha-property-import-boundary {
    display: grid;
    gap: 4px;
    border-left: 4px solid var(--ha-brand-gold);
    border-radius: 7px;
    background: var(--ha-brand-gold-soft);
    padding: 12px 14px;
    color: #41566a;
    font-size: .86rem;
    line-height: 1.5;
}

.ha-property-import-boundary strong {
    color: var(--ha-brand-navy);
}

.ha-property-gallery-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ha-property-gallery-actions form {
    display: grid;
    gap: 10px;
    align-content: start;
    border: 1px solid #dce3ea;
    border-radius: 9px;
    background: #f9fbfc;
    padding: 14px;
}

.ha-property-gallery-actions label,
.ha-property-gallery-actions label span {
    display: grid;
    gap: 5px;
    color: var(--ha-brand-navy);
    font-size: .84rem;
    font-weight: 800;
}

.ha-property-gallery-actions input[type="text"],
.ha-property-gallery-actions input[type="url"],
.ha-property-gallery-actions input[type="file"] {
    min-width: 0;
    width: 100%;
    border: 1px solid #c9d3de;
    border-radius: 7px;
    background: #ffffff;
    color: #0f2438;
    font: inherit;
    padding: 9px 10px;
}

.ha-property-gallery-actions small {
    color: #64748b;
    line-height: 1.45;
}

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

@media print {
    .ha-property-gallery-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .ha-property-gallery img {
        height: 120pt;
    }
}
