.assistant-launch {
    position: fixed;
    z-index: 800;
    inset: auto 1rem 5rem auto;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 46px;
    padding: .6rem .9rem;
    border: 1px solid #f2d17d;
    border-radius: 999px;
    background: #102b39;
    color: #fff5da;
    box-shadow: 0 8px 22px #08192438;
    font: 700 .875rem/1.2 "DM Sans", system-ui, sans-serif;
    cursor: pointer;
}
.assistant-launch[hidden], .assistant [hidden] { display: none; }
.assistant-launch svg { width: 1.1rem; height: 1.1rem; }
.assistant {
    position: fixed;
    inset: auto max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) auto;
    width: min(28rem, calc(100% - 1.5rem));
    max-width: none;
    max-height: min(44rem, calc(100dvh - 1.5rem));
    margin: 0;
    padding: 0;
    border: 1px solid #bdc6c6;
    border-radius: 1.2rem;
    background: #faf9f5;
    color: #142b39;
    font: 500 .92rem/1.45 "DM Sans", system-ui, sans-serif;
    box-shadow: 0 16px 56px #08192450;
}
.assistant[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.assistant::backdrop { background: #07192370; }
body:has(.assistant[open]) { overflow: hidden; }
.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1rem;
    background: #102b39;
    color: #fff8e5;
}
.assistant-header h2 { margin: 0; font: 600 1.45rem/1.15 var(--serif, Georgia); }
.assistant-header p { margin: .25rem 0 0; color: #eadab5; }
.assistant-body { overflow: auto; padding: .9rem 1rem; overscroll-behavior: contain; }
.assistant-topics { display: flex; flex-wrap: wrap; gap: .4rem; }
.assistant button:not(.assistant-close) {
    min-height: 44px;
    padding: .45rem .65rem;
    border: 1px solid #acb9bc;
    border-radius: .65rem;
    background: #fff;
    color: #142b39;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.assistant button:hover:not(.assistant-close) { background: #edf3f1; }
.assistant-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #819399;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: 400 1.5rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.assistant form label { font-weight: 700; }
.assistant input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .5rem;
    border: 1px solid #a9b6b9;
    border-radius: .55rem;
    background: #fff;
    color: inherit;
    font: 500 1rem/1.3 "DM Sans", system-ui, sans-serif;
}
#assistant-status { margin: .8rem 0 .55rem; }
#assistant-results { display: grid; gap: .55rem; }
.assistant-property {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .6rem;
    border: 1px solid #d6dedb;
    border-radius: .7rem;
    background: #fff;
}
.assistant-property img { width: 64px; height: 62px; object-fit: cover; border-radius: .4rem; flex: 0 0 64px; }
.assistant-property > div { min-width: 0; }
.assistant-property h3, .assistant-property p { margin: 0 0 .2rem; overflow-wrap: anywhere; }
.assistant-property h3 { font-size: 1rem; }
.assistant-property-note { color: #714719; font-size: .85rem; font-weight: 700; }
.assistant a { color: #076044; text-underline-offset: .18em; font-weight: 700; }
.assistant-footer { padding: .7rem 1rem; border-top: 1px solid #d6dedb; background: white; }
#assistant-question > div { display: flex; gap: .45rem; margin-top: .3rem; }
#assistant-question button { background: #ebc76e; border-color: #967331; }
#assistant-contact { display: inline-flex; align-items: center; min-height: 44px; }
.assistant :focus-visible, .assistant-launch:focus-visible { outline: 2px solid #b48b40; outline-offset: 2px; }
