/* Owner inquiry controls v1. Scoped to the private host inbox. */
.host-page .hi-section {
    min-width: 0;
    scroll-margin-top: 120px;
}

.host-page .hi-section *,
.host-page .hi-section *::before,
.host-page .hi-section *::after {
    box-sizing: border-box;
}

.host-page .hi-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}

.host-page .hi-heading > div {
    flex: 1 1 240px;
    min-width: 0;
}

.host-page .hi-heading h2 {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.host-page .hi-total,
.host-page .hi-results-meta p {
    margin: 0;
    color: #52675f;
    font-size: 0.94rem;
}

.host-page .hi-new-count {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    max-width: 100%;
    padding: 8px 13px;
    border: 1px solid #ddc27a;
    border-radius: 12px;
    color: #654b08;
    background: #fff4cf;
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.host-page .hi-new-count__number {
    font-variant-numeric: tabular-nums;
    font-size: 1.08rem;
}

.host-page .hi-access-note {
    margin: 20px 0;
    max-width: 80ch;
    font-size: 0.94rem;
    line-height: 1.6;
}

.host-page .hi-filters {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1.4fr) auto;
    align-items: end;
    gap: 14px;
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #dce3d6;
    border-radius: 16px;
    background: #f5f6ef;
}

.host-page .hi-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.host-page .hi-field label {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.host-page .hi-field input,
.host-page .hi-field select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #b9c6bc;
    border-radius: 10px;
    color: #203e35;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.host-page .hi-field input::placeholder {
    color: #64736e;
    opacity: 1;
}

.host-page .hi-filter-actions,
.host-page .hi-status-form,
.host-page .hi-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.host-page .hi-filter-actions {
    align-self: end;
}

.host-page .hi-button,
.host-page .hi-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #759087;
    border-radius: 10px;
    color: #1d5144;
    background: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.host-page .hi-button:hover,
.host-page .hi-reset:hover {
    border-color: #1d5144;
    background: #edf4ef;
}

.host-page .hi-button--primary,
.host-page .hi-button--reply {
    color: #fff;
    border-color: #1d5144;
    background: #1d5144;
}

.host-page .hi-button--primary:hover,
.host-page .hi-button--reply:hover {
    color: #fff;
    background: #143f34;
}

.host-page .hi-button--quiet {
    color: #5c645f;
    border-color: #bec8bf;
    background: transparent;
}

.host-page .hi-reset {
    padding-inline: 10px;
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.host-page .hi-section a:focus-visible,
.host-page .hi-section button:focus-visible,
.host-page .hi-section input:focus-visible,
.host-page .hi-section select:focus-visible {
    outline: 3px solid #7952b3;
    outline-offset: 3px;
}

.host-page .hi-results-meta {
    margin: 0 0 12px;
}

.host-page .hi-reply-help {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 3px solid #759087;
    border-radius: 0 8px 8px 0;
    color: #486056;
    background: #f1f6f3;
    font-size: 0.88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.host-page .hi-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.host-page .hi-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #dce3d6;
    border-radius: 16px;
    background: #fcfbf8;
    overflow-wrap: anywhere;
}

.host-page .hi-card--new {
    border-color: #83a99a;
    box-shadow: inset 4px 0 0 #2c6a58;
    background: #f5faf6;
}

.host-page .hi-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 15px;
}

.host-page .hi-card__heading time {
    color: #617168;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.host-page .hi-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    color: #4a5b54;
    background: #e7ede8;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}

.host-page .hi-status--new {
    color: #684d00;
    background: #fff0bf;
}

.host-page .hi-status--replied {
    color: #21563d;
    background: #dfefdf;
}

.host-page .hi-status--closed,
.host-page .hi-status--spam {
    color: #555b58;
    background: #ecece8;
}

.host-page .hi-property-name {
    margin: 0 0 6px;
    color: #486056;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
}

.host-page .hi-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.host-page .hi-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin: 0 0 18px;
    font-size: 0.94rem;
    line-height: 1.5;
}

.host-page .hi-contact > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.host-page .hi-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #1d5144;
    text-underline-offset: 3px;
}

.host-page .hi-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin: 0 0 18px;
}

.host-page .hi-facts > div {
    min-width: 0;
}

.host-page .hi-facts dt {
    margin: 0 0 3px;
    color: #617168;
    font-size: 0.8rem;
}

.host-page .hi-facts dd {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
}

.host-page .hi-message {
    margin: 0 0 20px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.host-page .hi-card__actions {
    gap: 10px 14px;
    padding-top: 16px;
    border-top: 1px solid #dce3d6;
}

.host-page .hi-status-form {
    flex: 1 1 340px;
}

.host-page .hi-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 0;
}

.host-page .hi-page-number {
    padding: 8px 4px;
    color: #52675f;
    font-size: 0.9rem;
    text-align: center;
}

.host-page .hi-empty {
    min-width: 0;
    padding: 28px 24px;
    border: 1px dashed #c9d4c7;
    border-radius: 16px;
    background: #fafbf6;
    overflow-wrap: anywhere;
}

.host-page .hi-empty h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.host-page .hi-empty p {
    margin: 0;
    color: #617168;
    line-height: 1.6;
}

.host-page .hi-empty .hi-button {
    margin-top: 18px;
}

@media (max-width: 1050px) {
    .host-page .hi-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .host-page .hi-section {
        padding: 20px 16px;
        scroll-margin-top: 160px;
    }

    .host-page .hi-filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 14px;
    }

    .host-page .hi-filter-actions {
        align-items: stretch;
    }

    .host-page .hi-filter-actions .hi-button {
        flex: 1 1 120px;
    }

    .host-page .hi-card {
        padding: 18px 15px;
    }

    .host-page .hi-card__actions {
        align-items: stretch;
    }

    .host-page .hi-button--reply {
        width: 100%;
    }

    .host-page .hi-status-form {
        flex-basis: 100%;
    }

    .host-page .hi-status-form .hi-button {
        flex: 1 1 120px;
    }

    .host-page .hi-empty {
        padding: 22px 18px;
    }
}

@media (max-width: 360px) {
    .host-page .hi-status-form .hi-button {
        flex-basis: 100%;
    }

    .host-page .hi-pagination .hi-page-number {
        flex-basis: 100%;
        order: -1;
    }
}
