/**
 * BMN HOA Management — Owner Portal styles
 *
 * Renders inside the theme on a normal page, so the wrapper offsets the
 * fixed .bne-header via the theme height var (fixed-header rule). Palette
 * matches the Property Management division (navy #1a365d, clean cards —
 * see theme page-property-management.css).
 *
 * @since 0.1.0
 */

.bmn-hoa-portal {
    --hoa-navy: #1a365d;
    --hoa-navy-2: #2d4a7c;
    --hoa-red: #c53030;
    --hoa-red-dark: #9b2c2c;
    --hoa-teal: #0d9488;
    --hoa-ink: #1a202c;
    --hoa-slate: #4a5568;
    --hoa-mute: #6b7280;
    --hoa-line: #e5e7eb;
    --hoa-bg: #f7fafc;
    padding-top: calc(var(--bne-header-height, 80px) + 24px);
    padding-bottom: 56px;
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--hoa-ink);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
}
.bmn-hoa-portal * { box-sizing: border-box; }

/* ---------- Header ---------- */
.bmn-hoa-header { margin-bottom: 26px; }
.bmn-hoa-header__badge {
    display: inline-block; background: var(--hoa-navy); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 30px; margin-bottom: 14px;
}
.bmn-hoa-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: var(--hoa-navy);
    margin: 0 0 6px; line-height: 1.2;
}
.bmn-hoa-header__addr { color: var(--hoa-slate); margin: 0; font-size: 15px; }
.bmn-hoa-switcher { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.bmn-hoa-switcher label { font-size: 13px; font-weight: 700; color: var(--hoa-slate); }
.bmn-hoa-switcher select {
    padding: 8px 12px; border: 1px solid var(--hoa-line); border-radius: 8px;
    font-size: 14px; background: #fff; color: var(--hoa-ink);
}

.bmn-hoa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Grid + cards ---------- */
.bmn-hoa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .bmn-hoa-grid { grid-template-columns: 1fr; } }

.bmn-hoa-card {
    background: #fff; border: 1px solid var(--hoa-line); border-radius: 14px;
    padding: 24px 26px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.bmn-hoa-card h2 {
    font-size: 1.2rem; font-weight: 800; color: var(--hoa-navy);
    margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--hoa-bg);
}
.bmn-hoa-card h3 { font-size: 1rem; font-weight: 700; color: var(--hoa-navy); margin: 18px 0 8px; }
.bmn-hoa-muted { color: var(--hoa-mute); font-size: 14px; }
.bmn-hoa-footnote { color: var(--hoa-mute); font-size: 12.5px; margin: 14px 0 0; }
.bmn-hoa-footnote a, .bmn-hoa-gate__help a { color: var(--hoa-navy); }

/* ---------- Chips + statuses ---------- */
.bmn-hoa-chip {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: 2px 9px; border-radius: 20px; vertical-align: middle;
    margin-left: 8px;
}
.bmn-hoa-chip--trustee { background: #ebf4ff; color: var(--hoa-navy); border: 1px solid #c3dafe; }

.bmn-hoa-status {
    display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px;
    border-radius: 20px; white-space: nowrap;
}
.bmn-hoa-status--submitted   { background: #fefce8; color: #854d0e; }
.bmn-hoa-status--in_review   { background: #eff6ff; color: #1d4ed8; }
.bmn-hoa-status--scheduled   { background: #ecfeff; color: #0e7490; }
.bmn-hoa-status--in_progress { background: #eef2ff; color: #4338ca; }
.bmn-hoa-status--completed   { background: #f0fdf4; color: #15803d; }
.bmn-hoa-status--closed      { background: #f3f4f6; color: #4b5563; }
.bmn-hoa-status--cancelled   { background: #fef2f2; color: #b91c1c; }

/* ---------- Dues ---------- */
.bmn-hoa-dues-unit { border-top: 1px solid var(--hoa-bg); padding: 14px 0; }
.bmn-hoa-dues-unit:first-of-type { border-top: 0; padding-top: 4px; }
.bmn-hoa-dues-unit__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bmn-hoa-dues-unit__head .bmn-hoa-muted { margin-left: 8px; font-size: 13px; }
.bmn-hoa-balance { font-weight: 800; font-size: 15px; }
.bmn-hoa-balance--paid { color: var(--hoa-teal); }
.bmn-hoa-balance--owed { color: var(--hoa-red); }
.bmn-hoa-dues-unit__ytd { color: var(--hoa-mute); font-size: 13px; margin-top: 2px; }

.bmn-hoa-ledger { margin-top: 10px; }
.bmn-hoa-ledger summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--hoa-navy); }
.bmn-hoa-table-wrap { overflow-x: auto; margin-top: 10px; }
.bmn-hoa-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.bmn-hoa-table th {
    text-align: left; font-weight: 700; color: var(--hoa-slate); background: var(--hoa-bg);
    padding: 7px 10px; border-bottom: 1px solid var(--hoa-line); white-space: nowrap;
}
.bmn-hoa-table td { padding: 7px 10px; border-bottom: 1px solid var(--hoa-bg); }
.bmn-hoa-ledger-row--payment td:nth-child(3) { color: var(--hoa-teal); font-weight: 600; }
.bmn-hoa-ledger-row--adjustment td:nth-child(3) { color: var(--hoa-red); }

/* ---------- Buttons ---------- */
.bmn-hoa-btn {
    display: inline-block; padding: 11px 22px; border-radius: 9px; font-weight: 700;
    font-size: 14px; border: 2px solid transparent; cursor: pointer; transition: .16s;
    text-decoration: none; line-height: 1.3;
}
.bmn-hoa-btn--primary { background: var(--hoa-red); color: #fff; border-color: var(--hoa-red); }
.bmn-hoa-btn--primary:hover { background: var(--hoa-red-dark); border-color: var(--hoa-red-dark); color: #fff; }
.bmn-hoa-btn--ghost { background: transparent; color: var(--hoa-slate); border-color: var(--hoa-line); }
.bmn-hoa-btn--ghost:hover { border-color: var(--hoa-slate); }
.bmn-hoa-btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Maintenance form ---------- */
.bmn-hoa-form { margin: 16px 0 6px; padding: 16px; background: var(--hoa-bg); border-radius: 10px; }
.bmn-hoa-form__row { margin-bottom: 12px; }
.bmn-hoa-form__row label { display: block; font-size: 13px; font-weight: 700; color: var(--hoa-slate); margin-bottom: 4px; }
.bmn-hoa-form__row label .req { color: var(--hoa-red); }
.bmn-hoa-form__row input[type="text"],
.bmn-hoa-form__row select,
.bmn-hoa-form__row textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--hoa-line); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--hoa-ink);
}
.bmn-hoa-form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .bmn-hoa-form__row--split { grid-template-columns: 1fr; } }
.bmn-hoa-form__actions { display: flex; gap: 10px; margin-top: 4px; }
.bmn-hoa-form__status { font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.bmn-hoa-form__status.is-error { color: var(--hoa-red); }
.bmn-hoa-form__status.is-success { color: var(--hoa-teal); }

/* ---------- Maintenance list ---------- */
.bmn-hoa-request-list { list-style: none; margin: 16px 0 0; padding: 0; }
.bmn-hoa-request { border-top: 1px solid var(--hoa-bg); padding: 10px 0; }
.bmn-hoa-request__head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer;
    font: inherit; text-align: left; color: inherit;
}
.bmn-hoa-request__title { font-weight: 700; font-size: 14.5px; }
.bmn-hoa-request__meta { color: var(--hoa-mute); font-size: 12.5px; margin-top: 2px; }
.bmn-hoa-request__detail { margin-top: 12px; padding: 14px; background: var(--hoa-bg); border-radius: 10px; font-size: 14px; }
.bmn-hoa-request__detail .desc { color: var(--hoa-slate); white-space: pre-wrap; margin-bottom: 12px; }

.bmn-hoa-events { list-style: none; margin: 0 0 12px; padding: 0; }
.bmn-hoa-events li { padding: 8px 0; border-top: 1px solid var(--hoa-line); font-size: 13px; }
.bmn-hoa-events li:first-child { border-top: 0; }
.bmn-hoa-events .who { font-weight: 700; color: var(--hoa-navy); }
.bmn-hoa-events .when { color: var(--hoa-mute); font-size: 12px; margin-left: 6px; }
.bmn-hoa-events .what { margin-top: 2px; color: var(--hoa-slate); white-space: pre-wrap; }

.bmn-hoa-comment-form { display: flex; gap: 8px; margin-top: 8px; }
.bmn-hoa-comment-form textarea {
    flex: 1; padding: 8px 11px; border: 1px solid var(--hoa-line); border-radius: 8px;
    font-size: 13.5px; font-family: inherit; resize: vertical; min-height: 40px;
}

/* ---------- Announcements ---------- */
.bmn-hoa-announcement { border-top: 1px solid var(--hoa-bg); padding: 14px 0; }
.bmn-hoa-announcement:first-of-type { border-top: 0; padding-top: 4px; }
.bmn-hoa-announcement h3 { margin: 0 0 2px; }
.bmn-hoa-announcement__date { color: var(--hoa-mute); font-size: 12.5px; margin-bottom: 6px; }
.bmn-hoa-announcement__body { font-size: 14px; color: var(--hoa-slate); }
.bmn-hoa-announcement__body p { margin: 0 0 10px; }

/* ---------- Documents ---------- */
.bmn-hoa-doc-cat { margin-top: 16px; }
.bmn-hoa-doc-list { list-style: none; margin: 6px 0 0; padding: 0; }
.bmn-hoa-doc-list li { margin-bottom: 6px; }
.bmn-hoa-doc-download {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; padding: 10px 14px; background: var(--hoa-bg); border: 1px solid var(--hoa-line);
    border-radius: 9px; cursor: pointer; font: inherit; text-align: left; color: inherit;
    transition: .15s;
}
.bmn-hoa-doc-download:hover { border-color: var(--hoa-navy-2); background: #eef4fb; }
.bmn-hoa-doc-download__name { font-weight: 600; font-size: 13.5px; color: var(--hoa-navy); }
.bmn-hoa-doc-download__meta { color: var(--hoa-mute); font-size: 12px; white-space: nowrap; }
.bmn-hoa-doc-download.is-busy { opacity: .6; pointer-events: none; }

/* ---------- Bounded list navigation ---------- */
.bmn-hoa-pagination {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 8px; margin-top: 16px;
}

/* ---------- Gate (signed out / empty) ---------- */
.bmn-hoa-portal--gate { max-width: 620px; }
.bmn-hoa-gate { text-align: center; padding: 40px 32px; }
.bmn-hoa-gate h1 { font-size: 1.8rem; font-weight: 800; color: var(--hoa-navy); margin: 4px 0 14px; }
.bmn-hoa-gate p { color: var(--hoa-slate); }
.bmn-hoa-gate__badge {
    display: inline-block; background: var(--hoa-navy); color: #fff; font-size: 12px;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 30px;
}
.bmn-hoa-gate__help { font-size: 13px; color: var(--hoa-mute); }

/* ---------- Footer ---------- */
.bmn-hoa-footer {
    margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--hoa-line);
    color: var(--hoa-mute); font-size: 13px; text-align: center;
}
.bmn-hoa-footer a { color: var(--hoa-navy); }

/* ==========================================================================
   Enterprise association workspace (v0.7.0)
   ========================================================================== */

.bmn-hoa-portal {
    --hoa-navy: #0b3543;
    --hoa-navy-2: #164d5c;
    --hoa-red: #c63535;
    --hoa-red-dark: #a92828;
    --hoa-teal: #078b87;
    --hoa-ink: #102f39;
    --hoa-slate: #4f6670;
    --hoa-mute: #708187;
    --hoa-line: #d7e0e3;
    --hoa-bg: #f3f6f7;
    max-width: 1180px;
    padding-top: calc(var(--bne-header-height, 80px) + 28px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
}

.bmn-hoa-eyebrow {
    margin: 0 0 0.25rem;
    color: var(--hoa-teal);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.bmn-hoa-header {
    position: relative;
    margin: 0;
    padding: clamp(1.4rem, 3vw, 2.35rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: var(--hoa-navy);
    color: #fff;
    box-shadow: 0 20px 48px rgba(11, 53, 67, 0.15);
}

.bmn-hoa-header::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--hoa-red);
    content: '';
}

.bmn-hoa-header__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bmn-hoa-header__topline > span {
    color: #a9c4cc;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.bmn-hoa-header__badge {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #7ce0dc;
    font-size: 0.68rem;
    letter-spacing: 0.105em;
}

.bmn-hoa-header__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    align-items: end;
    gap: 2rem;
    padding-top: 1.4rem;
}

.bmn-hoa-header .bmn-hoa-eyebrow {
    color: #7ce0dc;
}

.bmn-hoa-header h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 790;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.bmn-hoa-header__addr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.72rem;
    color: #c9d9de;
    font-size: 0.84rem;
}

.bmn-hoa-header__lede {
    max-width: 680px;
    margin: 0.72rem 0 0;
    color: #b4cbd2;
    font-size: 0.9rem;
    line-height: 1.55;
}

.bmn-hoa-chip {
    margin: 0;
    border-radius: 5px;
}

.bmn-hoa-chip--trustee {
    border-color: rgba(124, 224, 220, 0.34);
    background: rgba(124, 224, 220, 0.12);
    color: #93ebe7;
}

.bmn-hoa-switcher {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.bmn-hoa-switcher label {
    color: #9fbbc3;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bmn-hoa-switcher select {
    width: 100%;
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: #fff;
    color: var(--hoa-ink);
}

.bmn-hoa-header__rule {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.55rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #b7cdd3;
    font-size: 0.66rem;
    font-weight: 760;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.bmn-hoa-header__rule i {
    width: 1.25rem;
    height: 1px;
    background: #5cbab8;
}

/*
 * Section nav (0.11.0): a wrapping strip that works for any number of links
 * (nine since budgets and reserves). Links size to their labels and grow to
 * fill each row, so a partial last row never leaves an empty cell; the 1px
 * gaps over the line-coloured background draw the separators between links
 * and between rows at every width.
 */
.bmn-hoa-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--hoa-line);
    border-radius: 10px;
    background: var(--hoa-line);
    box-shadow: 0 6px 20px rgba(11, 53, 67, 0.045);
}

.bmn-hoa-section-nav a {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    min-height: 48px;
    padding: 0.55rem 0.8rem;
    background: #fff;
    color: var(--hoa-slate);
    font-size: 0.76rem;
    font-weight: 720;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.bmn-hoa-section-nav a:hover,
.bmn-hoa-section-nav a:focus-visible {
    background: #edf7f7;
    color: var(--hoa-navy);
}

.bmn-hoa-section-nav a span {
    display: inline-grid;
    min-width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border-radius: 999px;
    background: #dff2f1;
    color: var(--hoa-teal);
    font-size: 0.65rem;
}

.bmn-hoa-pulse {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.85rem;
    border: 1px solid var(--hoa-line);
    border-radius: 10px;
    background: #fff;
}

.bmn-hoa-pulse > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    padding: 1rem;
    border-right: 1px solid var(--hoa-line);
}

.bmn-hoa-pulse > div:last-child {
    border-right: 0;
}

.bmn-hoa-pulse span {
    color: var(--hoa-mute);
    font-size: 0.63rem;
    font-weight: 780;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.bmn-hoa-pulse strong {
    overflow: hidden;
    color: var(--hoa-navy);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmn-hoa-pulse small {
    overflow: hidden;
    color: var(--hoa-mute);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmn-hoa-pulse .is-attention strong {
    color: var(--hoa-red);
}

.bmn-hoa-pulse .is-good strong {
    color: var(--hoa-teal);
}

.bmn-hoa-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 1rem;
}

.bmn-hoa-card {
    min-width: 0;
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
    border-color: var(--hoa-line);
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(11, 53, 67, 0.045);
}

.bmn-hoa-card__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.72rem;
    border-bottom: 1px solid var(--hoa-line);
}

.bmn-hoa-card__heading h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--hoa-navy);
    font-size: 1.15rem;
    letter-spacing: -0.015em;
}

.bmn-hoa-card__heading > span {
    color: var(--hoa-mute);
    font-size: 0.68rem;
    white-space: nowrap;
}

.bmn-hoa-card__heading--action {
    align-items: center;
}

.bmn-hoa-card__heading--action .bmn-hoa-btn {
    flex: 0 0 auto;
}

.bmn-hoa-empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 1.4rem;
    color: var(--hoa-mute);
    text-align: center;
}

.bmn-hoa-empty-state strong {
    color: var(--hoa-ink);
    font-size: 0.92rem;
}

.bmn-hoa-empty-state p {
    max-width: 320px;
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
}

.bmn-hoa-dues-unit {
    padding: 0.55rem 0 0;
    border: 0;
}

.bmn-hoa-dues-unit__head {
    align-items: center;
}

.bmn-hoa-dues-unit__head strong {
    color: var(--hoa-navy);
    font-size: 1.08rem;
}

.bmn-hoa-balance {
    font-size: 1.05rem;
    letter-spacing: -0.015em;
}

.bmn-hoa-dues-unit__ytd {
    margin-top: 0.45rem;
}

.bmn-hoa-dues-progress {
    height: 5px;
    margin-top: 0.65rem;
    overflow: hidden;
    background: #e9eff1;
}

.bmn-hoa-dues-progress i {
    display: block;
    height: 100%;
    background: var(--hoa-teal);
}

.bmn-hoa-ledger {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hoa-line);
}

.bmn-hoa-ledger summary {
    min-height: 38px;
    color: var(--hoa-navy);
}

.bmn-hoa-table-wrap {
    border: 1px solid var(--hoa-line);
}

.bmn-hoa-table th {
    background: #edf2f3;
}

.bmn-hoa-btn {
    min-height: 42px;
    padding: 0.64rem 1rem;
    border-width: 1px;
    border-radius: 7px;
    font-size: 0.78rem;
}

.bmn-hoa-btn--primary {
    background: var(--hoa-red);
}

.bmn-hoa-btn--ghost {
    background: #fff;
}

.bmn-hoa-form {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--hoa-line);
    border-radius: 8px;
    background: #f6f8f9;
}

.bmn-hoa-form__row input[type="text"],
.bmn-hoa-form__row select,
.bmn-hoa-form__row textarea {
    min-height: 44px;
    border-color: #c7d3d7;
    border-radius: 6px;
}

.bmn-hoa-form__row input:focus,
.bmn-hoa-form__row select:focus,
.bmn-hoa-form__row textarea:focus,
.bmn-hoa-comment-form textarea:focus {
    border-color: var(--hoa-teal);
    outline: 3px solid rgba(7, 139, 135, 0.13);
}

.bmn-hoa-request-list {
    margin-top: 0;
}

.bmn-hoa-request {
    padding: 0.78rem 0;
    border-color: var(--hoa-line);
}

.bmn-hoa-request__head {
    min-height: 44px;
}

.bmn-hoa-request__title {
    color: var(--hoa-ink);
    font-size: 0.88rem;
}

.bmn-hoa-status {
    border-radius: 6px;
}

.bmn-hoa-request__detail {
    border: 1px solid var(--hoa-line);
    border-radius: 8px;
    background: #f6f8f9;
}

.bmn-hoa-inline-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #efc7c7;
    background: #fff2f2;
    color: #8d2424;
}

.bmn-hoa-inline-error span {
    display: grid;
    gap: 0.12rem;
}

.bmn-hoa-inline-error small {
    font-size: 0.72rem;
}

.bmn-hoa-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.bmn-hoa-comment-form textarea {
    min-height: 42px;
    border-radius: 6px;
}

.bmn-hoa-comment-form__status {
    grid-column: 1 / -1;
    min-height: 1em;
    color: var(--hoa-mute);
    font-size: 0.72rem;
}

.bmn-hoa-comment-form__status.is-error {
    color: var(--hoa-red);
}

.bmn-hoa-announcement {
    padding: 1rem 0;
    border-color: var(--hoa-line);
}

.bmn-hoa-announcement h3 {
    color: var(--hoa-ink);
    font-size: 0.96rem;
}

.bmn-hoa-announcement__body {
    color: var(--hoa-slate);
    font-size: 0.84rem;
}

.bmn-hoa-doc-cat {
    margin: 1rem 0 0.4rem;
    color: var(--hoa-mute);
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.bmn-hoa-doc-download {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 52px;
    padding: 0.58rem 0.7rem;
    border-color: var(--hoa-line);
    border-radius: 7px;
    background: #f6f8f9;
}

.bmn-hoa-doc-download:hover,
.bmn-hoa-doc-download:focus-visible {
    border-color: var(--hoa-teal);
    background: #edf7f7;
}

.bmn-hoa-doc-download__type {
    display: grid;
    width: 2rem;
    height: 1.7rem;
    place-items: center;
    background: #fbe5e5;
    color: #a92d2d;
    font-size: 0.56rem;
    font-weight: 820;
    letter-spacing: 0.04em;
}

.bmn-hoa-doc-download__name {
    color: var(--hoa-ink);
    font-size: 0.78rem;
}

.bmn-hoa-doc-download__arrow {
    color: var(--hoa-teal);
    font-size: 0.95rem;
}

.bmn-hoa-doc-download__status {
    display: block;
    min-height: 0;
    color: var(--hoa-teal);
    font-size: 0.68rem;
}

.bmn-hoa-doc-download__status.is-error {
    color: var(--hoa-red);
}

.bmn-hoa-footer {
    margin-top: 1.2rem;
    color: var(--hoa-mute);
}

.bmn-hoa-footer a {
    color: var(--hoa-navy);
}

.bmn-hoa-portal--gate {
    max-width: 1120px;
    min-height: min(720px, calc(100vh - var(--bne-header-height, 80px)));
    display: grid;
    align-items: center;
}

.bmn-hoa-gate {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    overflow: hidden;
    border: 1px solid var(--hoa-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 53, 67, 0.13);
    text-align: left;
}

.bmn-hoa-gate__copy {
    padding: clamp(1.7rem, 4vw, 3.2rem);
}

.bmn-hoa-gate__badge {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--hoa-teal);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.bmn-hoa-gate .bmn-hoa-eyebrow {
    margin-top: 2.2rem;
}

.bmn-hoa-gate h1 {
    max-width: 620px;
    margin: 0.5rem 0 0;
    color: var(--hoa-navy);
    font-size: clamp(2rem, 4.4vw, 3.55rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.bmn-hoa-gate__lede {
    max-width: 620px;
    margin: 1.1rem 0 0;
    color: var(--hoa-slate);
    font-size: 0.98rem;
    line-height: 1.65;
}

.bmn-hoa-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.bmn-hoa-gate__help {
    max-width: 600px;
    margin: 1.2rem 0 0;
    color: var(--hoa-mute);
    font-size: 0.72rem;
}

.bmn-hoa-gate__promise {
    display: grid;
    align-content: center;
    padding: clamp(1.6rem, 3.5vw, 2.7rem);
    background: var(--hoa-navy);
    color: #fff;
}

.bmn-hoa-gate__promise > span {
    color: #7ce0dc;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bmn-hoa-gate__promise h2 {
    margin: 0.65rem 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.bmn-hoa-gate__promise ul,
.bmn-hoa-gate__promise ol {
    display: grid;
    gap: 0;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.bmn-hoa-gate__promise li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bmn-hoa-gate__promise li > strong,
.bmn-hoa-gate__promise li > span {
    display: grid;
    gap: 0.12rem;
}

.bmn-hoa-gate__promise li > strong,
.bmn-hoa-gate__promise li span strong {
    color: #fff;
    font-size: 0.86rem;
}

.bmn-hoa-gate__promise li small {
    color: #aac3ca;
    font-size: 0.7rem;
}

.bmn-hoa-gate__promise li > b {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border: 1px solid rgba(124, 224, 220, 0.42);
    color: #7ce0dc;
    font-size: 0.7rem;
}

.bmn-hoa-gate__promise > p {
    margin: 1.2rem 0 0;
    color: #9fbbc3;
    font-size: 0.68rem;
}

.bmn-hoa-portal a:focus-visible,
.bmn-hoa-portal button:focus-visible,
.bmn-hoa-portal summary:focus-visible,
.bmn-hoa-portal select:focus-visible,
.bmn-hoa-portal input:focus-visible,
.bmn-hoa-portal textarea:focus-visible {
    outline: 3px solid rgba(7, 139, 135, 0.26);
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .bmn-hoa-header__main,
    .bmn-hoa-gate {
        grid-template-columns: 1fr;
    }

    .bmn-hoa-switcher {
        max-width: 440px;
    }

    .bmn-hoa-grid {
        grid-template-columns: 1fr;
    }

    .bmn-hoa-gate__promise {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .bmn-hoa-portal {
        padding: calc(var(--bne-header-height, 80px) + 14px) 12px 36px;
    }

    .bmn-hoa-header {
        padding: 1rem;
        border-radius: 14px;
    }

    .bmn-hoa-header__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        padding-bottom: 0.7rem;
    }

    .bmn-hoa-header__main {
        gap: 1rem;
        padding-top: 1rem;
    }

    .bmn-hoa-header h1 {
        font-size: 2rem;
    }

    .bmn-hoa-header__lede {
        font-size: 0.82rem;
    }

    .bmn-hoa-header__rule {
        margin-top: 1rem;
        font-size: 0.58rem;
    }

    .bmn-hoa-pulse {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmn-hoa-pulse > div {
        padding: 0.72rem;
        border-bottom: 1px solid var(--hoa-line);
    }

    .bmn-hoa-pulse > div:nth-child(2n) {
        border-right: 0;
    }

    .bmn-hoa-pulse > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .bmn-hoa-pulse strong {
        font-size: 1.05rem;
    }

    .bmn-hoa-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .bmn-hoa-card__heading {
        align-items: flex-start;
    }

    .bmn-hoa-card__heading--action {
        flex-direction: column;
    }

    .bmn-hoa-card__heading--action .bmn-hoa-btn {
        width: 100%;
        text-align: center;
    }

    .bmn-hoa-form__row--split {
        grid-template-columns: 1fr;
    }

    .bmn-hoa-request__head {
        align-items: flex-start;
    }

    .bmn-hoa-comment-form {
        grid-template-columns: 1fr;
    }

    .bmn-hoa-comment-form__status {
        grid-column: 1;
    }

    .bmn-hoa-doc-download {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .bmn-hoa-doc-download__meta {
        grid-column: 2;
        white-space: normal;
    }

    .bmn-hoa-doc-download__arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .bmn-hoa-gate {
        border-radius: 14px;
    }

    .bmn-hoa-gate__copy,
    .bmn-hoa-gate__promise {
        padding: 1.35rem;
    }

    .bmn-hoa-gate .bmn-hoa-eyebrow {
        margin-top: 1.5rem;
    }

    .bmn-hoa-gate h1 {
        font-size: 2.05rem;
    }

    .bmn-hoa-gate__lede {
        font-size: 0.86rem;
    }

    .bmn-hoa-gate__actions {
        display: grid;
    }

    .bmn-hoa-gate__actions .bmn-hoa-btn {
        text-align: center;
    }

    .bmn-hoa-gate__promise {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmn-hoa-btn,
    .bmn-hoa-doc-download {
        transition: none;
    }
}

/* Portal-only page shell: remove generic blog chrome without affecting any
   page that does not contain the owner shortcode. */
body.bmn-hoa-portal-page #right-sidebar,
body.bmn-hoa-portal-page .entry-header {
    display: none !important;
}

body.bmn-hoa-portal-page .site-content {
    display: block;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

body.bmn-hoa-portal-page #primary {
    width: 100% !important;
    float: none !important;
}

body.bmn-hoa-portal-page #main {
    margin-right: 0;
    margin-left: 0;
}

body.bmn-hoa-portal-page .inside-article {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.bmn-hoa-portal-page .bmn-hoa-portal {
    padding-top: clamp(28px, 4vw, 54px);
}

.bmn-hoa-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.05rem;
}

.bmn-hoa-header__actions .bmn-hoa-btn--primary {
    background: #fff;
    border-color: #fff;
    color: var(--hoa-navy);
}

.bmn-hoa-header__actions .bmn-hoa-btn--primary:hover,
.bmn-hoa-header__actions .bmn-hoa-btn--primary:focus-visible {
    background: #e7f5f4;
    border-color: #e7f5f4;
    color: var(--hoa-navy);
}

.bmn-hoa-btn--inverse {
    border-color: rgba(255, 255, 255, 0.34);
    background: transparent;
    color: #fff;
}

.bmn-hoa-btn--inverse:hover,
.bmn-hoa-btn--inverse:focus-visible {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 640px) {
    body.bmn-hoa-portal-page .bmn-hoa-portal {
        padding: 18px 12px 36px;
    }

    .bmn-hoa-header__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .bmn-hoa-header__actions .bmn-hoa-btn {
        padding-right: 0.7rem;
        padding-left: 0.7rem;
        text-align: center;
    }
}

/* ==========================================================================
   6(d) closing-document workflow
   ========================================================================== */

.bmn-hoa-pulse {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bmn-hoa-card--wide {
    grid-column: 1 / -1;
}

.bmn-hoa-financial-truth {
    display: grid;
    grid-template-columns: minmax(190px, .3fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border-left: 4px solid var(--hoa-navy);
    background: #f0f5f6;
}

.bmn-hoa-financial-truth strong { color: var(--hoa-navy); font-size: .78rem; }
.bmn-hoa-financial-truth p { margin: 0; color: var(--hoa-slate); font-size: .72rem; line-height: 1.55; }
.bmn-hoa-financial-report-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.bmn-hoa-financial-report-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .85rem .95rem;
    border: 1px solid var(--hoa-line);
    border-radius: 9px;
    background: var(--hoa-bg);
}
.bmn-hoa-financial-report-copy { display: grid; gap: .12rem; min-width: 0; }
.bmn-hoa-financial-report-copy > span { color: var(--hoa-teal); font-size: .61rem; font-weight: 820; letter-spacing: .065em; text-transform: uppercase; }
.bmn-hoa-financial-report-copy > strong { overflow: hidden; color: var(--hoa-navy); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.bmn-hoa-financial-report-copy > small { color: var(--hoa-mute); font-size: .66rem; }
.bmn-hoa-financial-download { min-width: 126px; }
.bmn-hoa-financial-download.is-busy { opacity: .6; pointer-events: none; }
.bmn-hoa-financial-download__status { grid-column: 1 / -1; min-height: 0; color: var(--hoa-teal); font-size: .66rem; }
.bmn-hoa-financial-download__status:empty { display: none; }
.bmn-hoa-financial-download__status.is-error { color: var(--hoa-red); }

.bmn-hoa-status--requested {
    background: #fefce8;
    color: #854d0e;
}

.bmn-hoa-status--ready {
    background: #e7f8f6;
    color: #087f78;
}

.bmn-hoa-certificate-truth {
    display: grid;
    grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--hoa-teal);
    background: #eef7f7;
}

.bmn-hoa-certificate-truth strong {
    color: var(--hoa-navy);
    font-size: 0.82rem;
}

.bmn-hoa-certificate-truth p {
    margin: 0;
    color: var(--hoa-slate);
    font-size: 0.76rem;
    line-height: 1.55;
}

.bmn-hoa-certificate-form small {
    display: block;
    margin-top: 0.3rem;
    color: var(--hoa-mute);
    font-size: 0.68rem;
    line-height: 1.45;
}

.bmn-hoa-certificate-form input[type='date'] {
    width: min(100%, 310px);
    min-height: 44px;
    border: 1px solid #c7d3d7;
    border-radius: 6px;
    background: #fff;
    color: var(--hoa-ink);
}

.bmn-hoa-certificate-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hoa-line);
    border-radius: 8px;
    background: #f7f9fa;
}

.bmn-hoa-certificate-rail > span {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 0.5rem;
    min-width: 0;
    padding: 0.75rem;
    border-right: 1px solid var(--hoa-line);
}

.bmn-hoa-certificate-rail > span:last-child {
    border-right: 0;
}

.bmn-hoa-certificate-rail i {
    grid-row: 1 / span 2;
    align-self: center;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid var(--hoa-teal);
    border-radius: 50%;
    background: #fff;
}

.bmn-hoa-certificate-rail strong {
    color: var(--hoa-navy);
    font-size: 0.72rem;
}

.bmn-hoa-certificate-rail small {
    overflow: hidden;
    color: var(--hoa-mute);
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmn-hoa-certificate-list {
    min-width: 0;
}

.bmn-hoa-certificate-state {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 1.2rem;
    color: var(--hoa-mute);
    text-align: center;
}

.bmn-hoa-certificate-state strong {
    color: var(--hoa-ink);
    font-size: 0.88rem;
}

.bmn-hoa-certificate-state p {
    max-width: 420px;
    margin: 0.25rem 0 0;
    font-size: 0.74rem;
}

.bmn-hoa-certificate-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bmn-hoa-certificate-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--hoa-line);
    border-radius: 9px;
    background: #fff;
}

.bmn-hoa-certificate-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.bmn-hoa-certificate-item__head > div {
    display: grid;
    min-width: 0;
}

.bmn-hoa-certificate-item__head > div > span {
    color: var(--hoa-teal);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.bmn-hoa-certificate-item__head > div > strong {
    overflow-wrap: anywhere;
    color: var(--hoa-navy);
    font-size: 0.94rem;
}

.bmn-hoa-certificate-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin-top: 0.4rem;
    color: var(--hoa-mute);
    font-size: 0.66rem;
}

.bmn-hoa-certificate-item__rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.bmn-hoa-certificate-item__rail li {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: var(--hoa-mute);
    font-size: 0.61rem;
    font-weight: 720;
}

.bmn-hoa-certificate-item__rail li::after {
    position: absolute;
    z-index: 0;
    top: 5px;
    right: 0;
    left: 6px;
    height: 2px;
    background: #dbe4e6;
    content: '';
}

.bmn-hoa-certificate-item__rail li:last-child::after {
    display: none;
}

.bmn-hoa-certificate-item__rail i {
    position: relative;
    z-index: 1;
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #b9c8cc;
    border-radius: 50%;
    background: #fff;
}

.bmn-hoa-certificate-item__rail span {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-right: 0.25rem;
    background: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmn-hoa-certificate-item__rail li.is-complete,
.bmn-hoa-certificate-item__rail li.is-current {
    color: var(--hoa-navy);
}

.bmn-hoa-certificate-item__rail li.is-complete i,
.bmn-hoa-certificate-item__rail li.is-current i {
    border-color: var(--hoa-teal);
    background: var(--hoa-teal);
    box-shadow: inset 0 0 0 2px #fff;
}

.bmn-hoa-certificate-item__rail li.is-complete::after {
    background: var(--hoa-teal);
}

.bmn-hoa-certificate-item__rail.is-cancelled i {
    border-color: #d6a1a1;
    background: #fff1f1;
    box-shadow: none;
}

.bmn-hoa-certificate-item__note {
    display: grid;
    gap: 0.15rem;
    margin: 0.8rem 0 0;
    padding: 0.7rem;
    border-left: 3px solid var(--hoa-teal);
    background: #eef7f7;
    color: var(--hoa-slate);
    font-size: 0.71rem;
}

.bmn-hoa-certificate-item__note strong {
    color: var(--hoa-navy);
    font-size: 0.66rem;
    text-transform: uppercase;
}

.bmn-hoa-certificate-item__waiting {
    margin: 0.8rem 0 0;
    color: var(--hoa-mute);
    font-size: 0.68rem;
}

.bmn-hoa-certificate-download {
    margin-top: 0.8rem;
}

@media (max-width: 860px) {
    .bmn-hoa-certificate-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bmn-hoa-section-nav a {
        flex-basis: calc(50% - 1px);
        padding: 0.5rem 0.55rem;
        white-space: normal;
    }

    .bmn-hoa-pulse {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmn-hoa-pulse > div:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--hoa-line);
    }

    .bmn-hoa-pulse > div:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .bmn-hoa-certificate-truth {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .bmn-hoa-financial-truth,
    .bmn-hoa-financial-report-list li {
        grid-template-columns: 1fr;
    }

    .bmn-hoa-financial-download {
        width: 100%;
    }

    .bmn-hoa-certificate-rail {
        grid-template-columns: 1fr;
    }

    .bmn-hoa-certificate-rail > span {
        min-height: 44px;
        border-right: 0;
        border-bottom: 1px solid var(--hoa-line);
    }

    .bmn-hoa-certificate-rail > span:last-child {
        border-bottom: 0;
    }

    .bmn-hoa-certificate-item__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bmn-hoa-btn,
    .bmn-hoa-certificate-download {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmn-hoa-certificate-download {
        transition: none;
    }
}

/* Online payments (0.9.0) */
.bmn-hoa-payment-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #e6f7f5; color: #0b5e57; font-size: 14px; }
.bmn-hoa-payment-banner--warn { background: #fcf9e8; color: #7a5300; }
.bmn-hoa-payment-pending { margin: 8px 0 0; font-size: 13px; color: #7a5300; }
.bmn-hoa-pay-form { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--hoa-line, #e5e7eb); border-radius: 10px; background: #fafbfc; }
.bmn-hoa-pay-form fieldset { border: 0; margin: 0 0 10px; padding: 0; }
.bmn-hoa-pay-form legend { font-weight: 600; margin-bottom: 6px; }
.bmn-hoa-pay-choice { display: block; margin: 4px 0; font-size: 14px; }
.bmn-hoa-pay-choice .bmn-hoa-muted { margin-left: 6px; }
.bmn-hoa-pay-other { margin: 8px 0 0 22px; }
.bmn-hoa-pay-other input { width: 120px; }
.bmn-hoa-pay-error { color: #b32d2e; margin: 8px 0 0; font-size: 13px; }
.bmn-hoa-payment-row--failed td, .bmn-hoa-payment-row--disputed td { color: #b32d2e; }
.bmn-hoa-payment-row--processing td { color: #7a5300; }

/* Autopay (0.9.0 Phase 3) */
.bmn-hoa-autopay { margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.bmn-hoa-autopay--active { background: #e6f7f5; color: #0b5e57; }
.bmn-hoa-autopay--pending { background: #fcf9e8; color: #7a5300; }
.bmn-hoa-autopay .bmn-hoa-autopay-cancel { margin-top: 8px; display: inline-block; }
.bmn-hoa-btn--danger { background: #b42318; border-color: #b42318; color: #fff; }
.bmn-hoa-autopay-setup { margin: 12px 0 4px; }
.bmn-hoa-autopay-setup summary { cursor: pointer; font-weight: 600; }
.bmn-hoa-autopay-form { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--hoa-line, #e5e7eb); border-radius: 10px; background: #fafbfc; }
.bmn-hoa-autopay-form select { margin: 0 4px; }
.bmn-hoa-autopay-disclosure { white-space: normal; }

/* Owner readback + statement (0.10.0) */
.bmn-hoa-ledger-row--reversed td { color: var(--hoa-mute, #6b7280); }
.bmn-hoa-ledger-row--reversed td:nth-child(3) { text-decoration: line-through; }
.bmn-hoa-statement-link { margin: 10px 0 0; font-size: 14px; }
.bmn-hoa-statement-link a { font-weight: 600; color: var(--hoa-navy, #1a365d); }
.bmn-hoa-statement__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 18px; }
.bmn-hoa-statement__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.bmn-hoa-statement__filters label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 4px; }
.bmn-hoa-statement__filters select,
.bmn-hoa-statement__filters input { min-height: 42px; border: 1px solid #c7d3d7; border-radius: 6px; padding: 0 8px; }
.bmn-hoa-statement { padding: 22px; border: 1px solid var(--hoa-line, #e5e7eb); border-radius: 10px; background: #fff; }
.bmn-hoa-statement__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bmn-hoa-statement__head h1 { margin: 0 0 4px; font-size: 1.4rem; }
.bmn-hoa-statement__brand { margin: 0; font-weight: 700; color: var(--hoa-navy, #1a365d); }
.bmn-hoa-statement__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.bmn-hoa-statement__summary div { padding: 10px 12px; border: 1px solid var(--hoa-line, #e5e7eb); border-radius: 8px; }
.bmn-hoa-statement__summary dt { font-size: 12px; color: var(--hoa-slate, #4a5568); }
.bmn-hoa-statement__summary dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 700; }
.bmn-hoa-statement__summary .is-closing { background: var(--hoa-bg, #f7fafc); }
.bmn-hoa-statement__table { min-width: 640px; }
.bmn-hoa-statement__table .bmn-hoa-ledger-row--reversed td:nth-child(5),
.bmn-hoa-statement__table .bmn-hoa-ledger-row--reversed td:nth-child(6) { text-decoration: line-through; }
.bmn-hoa-statement__table .bmn-hoa-ledger-row--reversed td:nth-child(3) { text-decoration: none; }
@media (max-width: 640px) {
    .bmn-hoa-statement { padding: 14px; }
    .bmn-hoa-statement__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
    body * { visibility: hidden; }
    .bmn-hoa-statement, .bmn-hoa-statement * { visibility: visible; }
    .bmn-hoa-statement { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; }
    .bmn-hoa-statement__actions { display: none; }
    .bmn-hoa-statement .bmn-hoa-table-wrap { overflow: visible; border: 0; }
    .bmn-hoa-statement__table { min-width: 0; font-size: 11px; }
    .bmn-hoa-statement a { color: inherit; text-decoration: none; }
}

/* Operating information + emergency guidance (0.10.0) */
.bmn-hoa-emergency { margin: 0 0 14px; padding: 12px 14px; border-left: 4px solid var(--hoa-red, #c63535); border-radius: 8px; background: #fff5f5; color: var(--hoa-ink, #102f39); font-size: 14px; line-height: 1.5; }
.bmn-hoa-emergency p { margin: 4px 0 0; }
.bmn-hoa-emergency__title { display: block; color: var(--hoa-red-dark, #a92828); font-size: 14px; }
.bmn-hoa-emergency__universal { font-weight: 600; }
.bmn-hoa-emergency a { color: var(--hoa-navy, #0b3543); font-weight: 700; }
.bmn-hoa-emergency--header { margin: 14px 0 0; max-width: 640px; border-left-color: #f5a3a3; background: rgba(255, 255, 255, 0.08); color: #ffffff; font-size: 13px; }
.bmn-hoa-emergency--header .bmn-hoa-emergency__title { color: #ffd1d1; }
.bmn-hoa-emergency--header a { color: #ffffff; text-decoration: underline; }
/* 0.16.0 emergency question and priority (maintenance request form/list) */
.bmn-hoa-priority { margin: 0 0 14px; padding: 0; border: 0; }
.bmn-hoa-priority legend { margin-bottom: 6px; padding: 0; font-weight: 600; font-size: 14px; line-height: 1.4; }
.bmn-hoa-priority legend .req { color: var(--hoa-red); }
.bmn-hoa-choice { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 6px 0; font-size: 14px; font-weight: 400; cursor: pointer; }
.bmn-hoa-emergency--confirm .bmn-hoa-choice { display: flex; margin: 10px 0 0; font-weight: 600; }
.bmn-hoa-priority-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.bmn-hoa-priority-tag--emergency { background: var(--hoa-red, #c53030); color: #ffffff; }
.bmn-hoa-priority-tag--urgent { background: #fefce8; color: #854d0e; }
.bmn-hoa-operating-list { display: grid; grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr); gap: 0.55rem 1rem; margin: 0; }
.bmn-hoa-operating-list dt { color: var(--hoa-slate, #4f6670); font-size: 0.78rem; font-weight: 700; }
.bmn-hoa-operating-list dd { margin: 0; overflow-wrap: anywhere; font-size: 0.86rem; }
.bmn-hoa-operating-list a { color: var(--hoa-navy, #0b3543); }
.bmn-hoa-preline { overflow-wrap: anywhere; }
.bmn-hoa-how-to-pay { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--hoa-line, #d7e0e3); border-radius: 10px; background: #f0f5f6; font-size: 14px; }
.bmn-hoa-how-to-pay p { margin: 6px 0 0; }
.bmn-hoa-how-to-pay a { color: var(--hoa-navy, #0b3543); }
@media (max-width: 640px) {
    .bmn-hoa-operating-list { grid-template-columns: 1fr; gap: 0.2rem; }
    .bmn-hoa-operating-list dd { margin-bottom: 0.5rem; }
}

/* Reserves card (0.11.0) */
.bmn-hoa-reserve-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.bmn-hoa-reserve-facts > div { padding: .75rem .85rem; border: 1px solid var(--hoa-line); border-radius: 9px; background: #fff; }
.bmn-hoa-reserve-facts dt { margin: 0; color: var(--hoa-slate); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bmn-hoa-reserve-facts dd { margin: .3rem 0 0; color: var(--hoa-navy); font-size: 1.05rem; font-weight: 800; }
.bmn-hoa-reserve-facts dd small { display: block; margin-top: .15rem; color: var(--hoa-mute); font-size: .7rem; font-weight: 600; }
.bmn-hoa-reserve-facts > div.is-attention { border-color: #f1c0c0; background: #fff5f5; }
.bmn-hoa-reserve-facts > div.is-attention dd { color: var(--hoa-red-dark); }
.bmn-hoa-reserve-note { margin: 0 0 1rem; padding: .7rem .9rem; border-left: 4px solid var(--hoa-red); background: #fff5f5; color: var(--hoa-red-dark); font-size: .8rem; line-height: 1.5; }
.bmn-hoa-reserve-trustee { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hoa-line); }
.bmn-hoa-reserve-trustee__heading { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.bmn-hoa-reserve-trustee__heading h3 { margin: 0 auto 0 0; color: var(--hoa-navy); font-size: 1rem; }
.bmn-hoa-reserve-trustee h4 { margin: 1rem 0 .2rem; color: var(--hoa-slate); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.bmn-hoa-reserve-projection tr.is-negative td { background: #fff5f5; color: var(--hoa-red-dark); }
/* Trustee Vendors card (0.12.0): compliance chips */
.bmn-hoa-chip--compliance-ok { background: #edfaef; color: #0b6b1f; border: 1px solid #b8e6c1; }
.bmn-hoa-chip--compliance-expiring { background: #fcf9e8; color: #7a5300; border: 1px solid #f0dca0; }
.bmn-hoa-chip--compliance-expired { background: #fcf0f1; color: #a92828; border: 1px solid #f2c4c6; }
.bmn-hoa-chip--compliance-missing { background: #f6ecec; color: #8a2424; border: 1px solid #e8c9c9; }
.bmn-hoa-vendors .bmn-hoa-vendor-contract { margin-top: 6px; }
/* Work & bids (0.12.0, trustees) */
.bmn-hoa-work-orders__truth { margin: 0 0 12px; color: var(--hoa-slate); font-size: 13px; }
.bmn-hoa-work-order-list { list-style: none; margin: 0; padding: 0; }
.bmn-hoa-work-order { border-top: 1px solid var(--hoa-line); padding: 0.78rem 0; }
.bmn-hoa-work-order__head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; min-height: 44px; background: none; border: 0; padding: 4px 0; cursor: pointer;
    font: inherit; text-align: left; color: inherit;
}
.bmn-hoa-work-order__title { color: var(--hoa-ink); font-weight: 700; font-size: 0.88rem; }
.bmn-hoa-work-order__meta { color: var(--hoa-mute); font-size: 12.5px; margin-top: 2px; }
.bmn-hoa-work-order__detail { margin-top: 12px; padding: 14px; border: 1px solid var(--hoa-line); border-radius: 8px; background: #f6f8f9; font-size: 14px; }
.bmn-hoa-work-order__detail h4 { margin: 14px 0 6px; color: var(--hoa-navy); font-size: 0.86rem; }
.bmn-hoa-work-order__facts { display: grid; grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr); gap: 0.4rem 1rem; margin: 0; }
.bmn-hoa-work-order__facts dt { color: var(--hoa-slate); font-size: 0.78rem; font-weight: 700; }
.bmn-hoa-work-order__facts dd { margin: 0; overflow-wrap: anywhere; }
.bmn-hoa-work-order__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--hoa-slate); }
.bmn-hoa-work-order__list,
.bmn-hoa-work-order__timeline { margin: 0; padding: 0 0 0 1.1rem; }
.bmn-hoa-work-order__list li,
.bmn-hoa-work-order__timeline li { padding: 6px 0; overflow-wrap: anywhere; }
.bmn-hoa-work-order__document { display: block; margin-top: 6px; }
.bmn-hoa-work-order__approve { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hoa-line); }
.bmn-hoa-status--draft,
.bmn-hoa-status--bidding,
.bmn-hoa-status--awaiting_approval { background: #fefce8; color: #854d0e; }
.bmn-hoa-status--approved,
.bmn-hoa-status--selected { background: #ecfeff; color: #0e7490; }
.bmn-hoa-status--verified { background: #f0fdf4; color: #15803d; }
.bmn-hoa-status--rejected,
.bmn-hoa-status--withdrawn { background: #f3f4f6; color: #4b5563; }
@media (max-width: 640px) {
    .bmn-hoa-work-order__facts { grid-template-columns: 1fr; gap: 0.2rem; }
    .bmn-hoa-work-order__facts dd { margin-bottom: 0.5rem; }
}
/* Meetings & minutes (0.13.0) */
.bmn-hoa-meeting-list { list-style: none; margin: 0; padding: 0; }
.bmn-hoa-meeting { border-top: 1px solid var(--hoa-line); padding: 0.78rem 0; }
.bmn-hoa-meeting__head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
    min-height: 44px; cursor: pointer; list-style: none;
}
.bmn-hoa-meeting__head::-webkit-details-marker { display: none; }
.bmn-hoa-meeting__title { color: var(--hoa-ink); font-weight: 700; font-size: 0.88rem; flex: 1 1 200px; overflow-wrap: anywhere; }
.bmn-hoa-meeting__when { color: var(--hoa-mute); font-size: 12.5px; }
.bmn-hoa-meeting__facts { display: grid; grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr); gap: 0.4rem 1rem; margin: 12px 0 0; }
.bmn-hoa-meeting__facts dt { color: var(--hoa-slate); font-size: 0.78rem; font-weight: 700; }
.bmn-hoa-meeting__facts dd { margin: 0; overflow-wrap: anywhere; }
.bmn-hoa-meeting__subhead { margin: 14px 0 6px; color: var(--hoa-navy); font-size: 0.86rem; }
.bmn-hoa-meeting__agenda,
.bmn-hoa-meeting__attendance { margin: 0; padding: 0 0 0 1.1rem; }
.bmn-hoa-meeting__agenda li,
.bmn-hoa-meeting__attendance li { padding: 4px 0; overflow-wrap: anywhere; }
.bmn-hoa-meeting__minutes { margin: 12px 0 0; }
.bmn-hoa-status--noticed { background: #eff6ff; color: #1d4ed8; }
.bmn-hoa-status--held,
.bmn-hoa-status--minutes_draft { background: #ecfeff; color: #0e7490; }
.bmn-hoa-status--minutes_approved { background: #f0fdf4; color: #15803d; }
@media (max-width: 640px) {
    .bmn-hoa-meeting__facts { grid-template-columns: 1fr; gap: 0.2rem; }
    .bmn-hoa-meeting__facts dd { margin-bottom: 0.5rem; }
}

/* Insurance card (0.13.0 M5): policy summary rows, trustee terms and the
   member's certificate-of-insurance requests. */
.bmn-hoa-insurance-policies,
.bmn-hoa-insurance-requests { list-style: none; margin: 0 0 1rem; padding: 0; }
.bmn-hoa-insurance-policy,
.bmn-hoa-insurance-request {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
    border-top: 1px solid var(--hoa-line); padding: 0.75rem 0;
}
.bmn-hoa-insurance-policy > div,
.bmn-hoa-insurance-request > div { display: flex; flex-direction: column; gap: 2px; }
.bmn-hoa-insurance-request > div { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.bmn-hoa-insurance-request small,
.bmn-hoa-insurance-policy small { color: var(--hoa-mute); }
.bmn-hoa-insurance-request p { flex-basis: 100%; margin: 0; color: var(--hoa-slate); font-size: 0.9rem; }
.bmn-hoa-insurance-policy__terms { display: flex; gap: 16px; margin: 0; }
.bmn-hoa-insurance-policy__terms dt { font-size: 0.75rem; color: var(--hoa-mute); }
.bmn-hoa-insurance-policy__terms dd { margin: 0; font-weight: 700; }
.bmn-hoa-insurance__subhead { margin: 1.25rem 0 0.25rem; font-size: 1rem; color: var(--hoa-navy); }
.bmn-hoa-insurance-form { margin-bottom: 1rem; }
/* Trustee inspections and operating calendar (0.13.0 M5). */
.bmn-hoa-inspections__truth,
.bmn-hoa-calendar__truth { margin: 0 0 12px; color: var(--hoa-slate); font-size: 13px; }
.bmn-hoa-inspections h3,
.bmn-hoa-calendar h3 { margin: 16px 0 8px; color: var(--hoa-navy); font-size: 0.92rem; }
.bmn-hoa-inspections__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bmn-hoa-inspection-plans,
.bmn-hoa-inspection-findings,
.bmn-hoa-inspection-list,
.bmn-hoa-calendar__list { list-style: none; margin: 0; padding: 0; }
.bmn-hoa-inspection-plans li,
.bmn-hoa-inspection-findings li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hoa-line); overflow-wrap: anywhere; }
.bmn-hoa-inspection { border-bottom: 1px solid var(--hoa-line); padding: 8px 0; }
.bmn-hoa-inspection summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; min-height: 44px; cursor: pointer; }
.bmn-hoa-inspection__title { color: var(--hoa-ink); font-weight: 700; font-size: 0.88rem; }
.bmn-hoa-severity,
.bmn-hoa-calendar-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f3f4f6; color: #4b5563; }
.bmn-hoa-severity--medium,
.bmn-hoa-calendar-status--due { background: #fefce8; color: #854d0e; }
.bmn-hoa-severity--high,
.bmn-hoa-severity--urgent,
.bmn-hoa-calendar-status--overdue { background: #fef2f2; color: #b91c1c; }
.bmn-hoa-calendar-status--upcoming { background: #eff6ff; color: #1d4ed8; }
.bmn-hoa-calendar-status--done { background: #f0fdf4; color: #15803d; }
.bmn-hoa-calendar__item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hoa-line); }
.bmn-hoa-calendar__date { color: var(--hoa-slate); font-size: 13px; font-weight: 600; }
.bmn-hoa-calendar__title { color: var(--hoa-ink); overflow-wrap: anywhere; }
.bmn-hoa-calendar__item--done .bmn-hoa-calendar__title { color: var(--hoa-mute); }
@media (max-width: 640px) {
    .bmn-hoa-inspections__columns { grid-template-columns: 1fr; }
    .bmn-hoa-calendar__item { grid-template-columns: minmax(0, 1fr) auto; }
    .bmn-hoa-calendar__title { grid-column: 1 / -1; }
}

/* 0.14.0 M6: Balance details (owners) and Delinquency (trustees). */
.bmn-hoa-balance-unit + .bmn-hoa-balance-unit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hoa-bg); }
.bmn-hoa-collection-stage { margin: 8px 0; }
.bmn-hoa-table.bmn-hoa-aging { min-width: 0; }
.bmn-hoa-table.bmn-hoa-aging td { text-align: right; font-variant-numeric: tabular-nums; }
.bmn-hoa-delinquency .bmn-hoa-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bmn-hoa-subhead { font-size: 14px; margin: 14px 0 4px; }
.bmn-hoa-dispute-list { margin: 6px 0 0; padding-left: 18px; }
.bmn-hoa-chip--stage-current,
.bmn-hoa-chip--stage-reminder_1,
.bmn-hoa-chip--stage-reminder_2 { background: #fcf9e8; color: #7a5300; border: 1px solid #f0dca0; }
.bmn-hoa-chip--stage-final_notice,
.bmn-hoa-chip--stage-legal_review { background: #fcf0f1; color: #a92828; border: 1px solid #f2c4c6; }
.bmn-hoa-chip--stage-payment_plan,
.bmn-hoa-chip--stage-hold { background: #ebf4ff; color: #1a365d; border: 1px solid #c3dafe; }

/* ---- 0.14.0 (M6): payment plan & disputes card ---- */
.bmn-hoa-plan-disputes__unit + .bmn-hoa-plan-disputes__unit { margin-top: 18px; }
.bmn-hoa-plan-disputes__list li { padding: 8px 0; border-top: 1px solid var(--hoa-line); overflow-wrap: anywhere; }
.bmn-hoa-plan-disputes__list li p { margin: 6px 0 0; color: var(--hoa-slate); white-space: pre-wrap; }
.bmn-hoa-plan-disputes__open { margin-top: 12px; }
.bmn-hoa-plan-disputes__open summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--hoa-navy); font-weight: 700; }
.bmn-hoa-status--proposed,
.bmn-hoa-status--open { background: #fefce8; color: #854d0e; }
.bmn-hoa-status--active,
.bmn-hoa-status--resolved_adjusted { background: #ecfeff; color: #0e7490; }
.bmn-hoa-status--resolved_upheld,
.bmn-hoa-status--defaulted { background: #f3f4f6; color: #4b5563; }

/* ---------- Document search (0.15.0 M8) ---------- */
.bmn-hoa-doc-search { margin-top: 0; }
.bmn-hoa-doc-search[hidden],
.bmn-hoa-doc-search [hidden],
.bmn-hoa-doc-search-results[hidden],
.bmn-hoa-doc-search-results [hidden],
[data-hoa-doc-default][hidden] { display: none !important; }
.bmn-hoa-doc-search input[type="search"],
.bmn-hoa-doc-search input[type="date"] {
    width: 100%; padding: 9px 12px; border: 1px solid var(--hoa-line); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--hoa-ink);
}
.bmn-hoa-doc-search__filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.bmn-hoa-doc-search__archived { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.bmn-hoa-doc-search input:focus-visible,
.bmn-hoa-doc-search select:focus-visible { outline: 2px solid var(--hoa-navy-2); outline-offset: 2px; }
.bmn-hoa-doc-search-results[aria-busy="true"] { opacity: .6; }
.bmn-hoa-doc-search-results__title { margin-top: 8px; }
.bmn-hoa-doc-search-results__title:focus { outline: none; }
.bmn-hoa-doc-search-results__refresh { color: var(--hoa-red); font-size: 13px; }
.bmn-hoa-doc-result__archived {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: #f3f4f6; color: #4b5563; font-size: 11px; font-weight: 700;
}
.bmn-hoa-doc-result__description { margin: 4px 0 0; color: var(--hoa-slate); font-size: 13px; }
.bmn-hoa-doc-result__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; }
.bmn-hoa-doc-result__tags span {
    padding: 1px 8px; border-radius: 999px; background: #ebf4ff; color: var(--hoa-navy); font-size: 11.5px;
}
@media (max-width: 640px) {
    .bmn-hoa-doc-search__filters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .bmn-hoa-doc-search-results { transition: none; }
}

/* ---------- Attachments (0.16.0): protected photos and PDFs ---------- */
.bmn-hoa-gallery { margin: 8px 0 10px; }
.bmn-hoa-gallery__title { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--hoa-slate); letter-spacing: .03em; text-transform: uppercase; }
.bmn-hoa-gallery__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bmn-hoa-gallery__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bmn-hoa-gallery__thumb {
    width: 96px; height: 96px; padding: 0; overflow: hidden; cursor: zoom-in;
    background: var(--hoa-bg); border: 1px solid var(--hoa-line); border-radius: 8px;
}
.bmn-hoa-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.bmn-hoa-gallery__thumb img.is-loaded { opacity: 1; }
.bmn-hoa-gallery__thumb img.is-unavailable { opacity: .35; }
.bmn-hoa-gallery__thumb:focus-visible,
.bmn-hoa-gallery__file:focus-visible { outline: 2px solid var(--hoa-navy-2); outline-offset: 2px; }
.bmn-hoa-gallery__file {
    display: inline-flex; align-items: center; gap: 8px; max-width: 280px; min-height: 44px;
    padding: 6px 10px; background: var(--hoa-bg); border: 1px solid var(--hoa-line); border-radius: 8px;
    font: inherit; font-size: 13px; color: inherit; cursor: pointer; text-align: left;
}
.bmn-hoa-gallery__file:hover { border-color: var(--hoa-navy-2); background: #eef4fb; }
.bmn-hoa-gallery__type { padding: 2px 6px; border-radius: 4px; background: var(--hoa-navy); color: #fff; font-size: 10.5px; font-weight: 700; }
.bmn-hoa-gallery__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--hoa-navy); }
.bmn-hoa-gallery__size { color: var(--hoa-mute); font-size: 12px; white-space: nowrap; }
.bmn-hoa-gallery__remove {
    padding: 0; background: none; border: 0; color: var(--hoa-red); font: inherit; font-size: 12px;
    text-decoration: underline; cursor: pointer;
}
.bmn-hoa-gallery__status { display: block; min-height: 1em; color: var(--hoa-mute); font-size: 12px; }
.bmn-hoa-gallery__thumb img.is-deferred { opacity: .2; }
.bmn-hoa-gallery__more {
    margin-top: 6px; min-height: 36px; padding: 4px 12px; background: var(--hoa-bg);
    border: 1px solid var(--hoa-line); border-radius: 8px; font: inherit; font-size: 13px;
    color: var(--hoa-navy); cursor: pointer;
}
.bmn-hoa-gallery__more:hover { border-color: var(--hoa-navy-2); }
.bmn-hoa-gallery__more:focus-visible { outline: 2px solid var(--hoa-navy-2); outline-offset: 2px; }
.bmn-hoa-gallery__status.is-error { color: var(--hoa-red); }
.bmn-hoa-file-picker { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 13px; }
.bmn-hoa-file-picker small { color: var(--hoa-mute); font-size: 12px; }
.bmn-hoa-comment-form .bmn-hoa-file-picker,
.bmn-hoa-comment-form .bmn-hoa-comment-form__status { grid-column: 1 / -1; }
.bmn-hoa-attach-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 4px 0 12px; }
.bmn-hoa-attachment-viewer { max-width: min(92vw, 1100px); padding: 12px; border: 0; border-radius: 10px; }
.bmn-hoa-attachment-viewer::backdrop { background: rgba(17, 24, 39, .72); }
.bmn-hoa-attachment-viewer img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
/* The viewer is appended to <body>, outside .bmn-hoa-portal's variables. */
.bmn-hoa-attachment-viewer__name { margin: 8px 0 0; font-size: 13px; color: #4a5568; text-align: center; }
.bmn-hoa-attachment-viewer__close {
    float: right; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #f7fafc; font-size: 20px; line-height: 1; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    .bmn-hoa-gallery__thumb img { transition: none; }
}

/* 0.17.0 (M10): shared common-area maintenance requests. */
.bmn-hoa-shared-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e6f6f4; color: #0f5f58; }
.bmn-hoa-request__sharing { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 2px; font-size: 13px; color: var(--hoa-slate, #4a5568); }
.bmn-hoa-request__submitter { overflow-wrap: anywhere; }
.bmn-hoa-location { border: 0; padding: 0; margin: 0 0 12px; }
.bmn-hoa-location legend { font-weight: 600; margin-bottom: 6px; }
.bmn-hoa-location__note { margin: 6px 0 0; font-size: 13px; }
.bmn-hoa-request__cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }

/* Protected document preview (0.17.1). Native dialog traps keyboard focus. */
.bmn-hoa-doc-preview { margin: .35rem 0 .65rem; padding: .45rem 1rem; border: 1px solid #0b7189; border-radius: .5rem; background: #0b7189; color: #fff; cursor: pointer; }
.bmn-hoa-doc-preview:focus-visible, .bmn-hoa-document-preview a:focus-visible, .bmn-hoa-document-preview button:focus-visible { outline: 3px solid #55d6e8; outline-offset: 3px; }
.bmn-hoa-document-preview { box-sizing: border-box; width: min(960px, 94vw); max-width: 94vw; height: min(860px, 92dvh); max-height: 92dvh; padding: 1rem; border: 1px solid #cbd5e1; border-radius: .8rem; background: #fff; color: #172b42; }
.bmn-hoa-document-preview::backdrop { background: rgba(10, 23, 38, .7); }
.bmn-hoa-document-preview[open] { display: flex; flex-direction: column; gap: .65rem; }
.bmn-hoa-document-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bmn-hoa-document-preview__head h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.bmn-hoa-document-preview__close { flex: 0 0 auto; padding: .6rem .9rem; border: 1px solid #64748b; border-radius: .4rem; background: #f1f5f9; color: #172b42; cursor: pointer; }
.bmn-hoa-document-preview__status { margin: 0; font-size: .9rem; }
.bmn-hoa-document-preview__viewer { flex: 1; min-height: 0; overflow: auto; background: #e2e8f0; }
.bmn-hoa-document-preview__viewer canvas { display: block; margin: 12px auto; background: #fff; }
.bmn-hoa-document-preview__controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.bmn-hoa-document-preview__controls[hidden] { display: none; }
.bmn-hoa-document-preview__controls button, .bmn-hoa-document-preview__controls select { padding: .4rem .55rem; border: 1px solid #64748b; border-radius: .3rem; background: #f1f5f9; color: #172b42; }
.bmn-hoa-document-preview__controls button:disabled { opacity: .5; }
.bmn-hoa-document-preview__viewer img { display: block; max-width: 100%; height: auto; margin: auto; }
.bmn-hoa-document-preview__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.bmn-hoa-document-preview__actions a { color: #0b7189; text-decoration: underline; }
@media (max-width: 600px) { .bmn-hoa-document-preview { width: 96vw; max-width: 96vw; height: 94dvh; max-height: 94dvh; padding: .65rem; } }
