.hhx-preview,
.hhx-dialog {
    --hhx-ink: #203c30;
    --hhx-deep: #153728;
    --hhx-green: #254d38;
    --hhx-paper: #faf6ec;
    --hhx-white: #fffcf5;
    --hhx-rule: #e2d9c7;
    --hhx-gold: #9a732d;
    --hhx-muted: #5a6357;
    --hhx-heading: "Playfair Display", Georgia, serif;
    --hhx-body: "Source Sans 3", system-ui, sans-serif;
    box-sizing: border-box;
    color: var(--hhx-ink);
    font-family: var(--hhx-body);
}
.hhx-preview *, .hhx-dialog * { box-sizing: border-box; }
.hhx-dialog [hidden], .hhx-preview [hidden] { display: none !important; }
.hhx-dialog button, .hhx-dialog input, .hhx-dialog select, .hhx-preview button {
    font: inherit;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.hhx-preview button, .hhx-dialog button, .hhx-dialog summary { cursor: pointer; }
.hhx-preview :focus-visible, .hhx-dialog :focus-visible {
    outline: 3px solid #8b6118;
    outline-offset: 3px;
}
.hhx-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.hhx-preview {
    margin-block: clamp(2.25rem, 6vw, 4.75rem) !important;
    width: auto;
}
.hhx-preview-intro { max-width: 720px; margin-bottom: 1.3rem; }
.hhx-preview-intro h1, .hhx-preview-intro h2 {
    color: var(--hhx-deep);
    font: 400 clamp(1.85rem, 5.2vw, 3.1rem)/1.12 var(--hhx-heading);
    margin: 0 0 .45em;
}
.hhx-preview-intro p { color: var(--hhx-muted); font-size: 1.05rem; margin: 0; }
.hhx-cover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(12.5rem, 34vw, 23rem);
    border: 1px solid #cabfa9;
    border-radius: 17px;
    background: #e4ecd8 url("./preview-yorkshire.webp") center 55% / cover no-repeat;
}
.hhx-cover .hhx-open {
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(237, 243, 226, .06), rgba(33, 66, 45, .12));
}
.hhx-cover .hhx-open:focus-visible { outline-offset: -5px; }
.hhx-open-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: .75rem 1.35rem;
    background: var(--hhx-deep);
    color: var(--hhx-white);
    border-radius: 100px;
    box-shadow: 0 5px 20px #14342740;
    font-weight: 700;
    transition: background .18s ease, transform .18s ease;
}
.hhx-open:hover .hhx-open-cta { background: #244f38; transform: translateY(-2px); }
.hhx-preview-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: .22rem .5rem;
    font-size: .66rem;
    color: #35483a;
    background: #fffcf2ec;
    border-radius: 6px 0 0 0;
}
.hhx-preview-credit a { color: inherit; }
.hhx-preview-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: center; }
.hhx-preview-bottom button, .hhx-preview-bottom a {
    color: var(--hhx-green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .25em;
    font-size: .98rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 0;
    border: 0;
    background: transparent;
}

.hhx-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    min-width: 0;
    overflow: hidden;
    background: var(--hhx-paper);
    border: 0;
    overscroll-behavior: contain;
}
.hhx-dialog[open] { display: flex; flex-direction: column; }
.hhx-dialog::backdrop { background: var(--hhx-deep); }
.hhx-bar {
    flex: none;
    position: relative;
    z-index: 10;
    padding: max(.78rem, env(safe-area-inset-top)) max(1.65rem, env(safe-area-inset-right)) 0 max(1.65rem, env(safe-area-inset-left));
    background: var(--hhx-paper);
    border-bottom: 1px solid var(--hhx-rule);
}
.hhx-bar-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hhx-bar-heading { min-width: 0; }
.hhx-bar-heading h2 {
    color: var(--hhx-deep);
    font: 400 clamp(1.65rem, 3.55vw, 2.6rem)/1.1 var(--hhx-heading);
    margin: 0;
    letter-spacing: -.022em;
}
.hhx-bar-heading p { color: var(--hhx-muted); font-size: .96rem; margin: .35rem 0 0; line-height: 1.3; }
.hhx-dialog .hhx-close {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    min-height: 48px;
    border: 1px solid #b9ad94;
    border-radius: 50%;
    background: var(--hhx-white);
    color: var(--hhx-deep);
}
.hhx-dialog .hhx-close:hover { background: #ece2cc; }
.hhx-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .8rem 0 .65rem;
    min-width: 0;
}
.hhx-categories { display: flex; gap: 5px; }
.hhx-dialog .hhx-category {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--hhx-rule);
    border-radius: 9px;
    background: var(--hhx-white);
    padding: .38rem .7rem;
    font-size: .91rem;
    font-weight: 700;
    white-space: nowrap;
}
.hhx-category svg { flex: none; width: 18px; height: 18px; }
.hhx-dialog .hhx-category[aria-pressed="true"] {
    color: #fffdf6;
    background: var(--hhx-green);
    border-color: var(--hhx-green);
}
.hhx-dialog [data-category="eat"] { --pin: #8a502f; }
.hhx-dialog [data-category="stay"] { --pin: #365f7a; }
.hhx-dialog [data-category="experience"] { --pin: #805171; }
.hhx-dialog [data-category="walk"] { --pin: #276344; }
.hhx-dialog .hhx-category:not([aria-pressed="true"]) svg { color: var(--pin, var(--hhx-green)); }
.hhx-search {
    flex: 1 1 13rem;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 9px;
    background: var(--hhx-white);
    color: var(--hhx-green);
    border: 1px solid #cfc3ab;
    border-radius: 9px;
    min-height: 44px;
}
.hhx-search svg { flex: none; }
.hhx-dialog .hhx-search input {
    min-width: 0;
    padding: 0;
    width: 100%;
    height: 42px;
    background: transparent;
    border: 0;
    font-size: 1rem;
    color: var(--hhx-deep);
    outline-offset: -2px;
    box-shadow: none;
}
.hhx-search input::placeholder { color: #596557; opacity: 1; }
.hhx-filters { position: relative; flex: none; margin: 0; }
.hhx-filters summary {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0 .72rem;
    font-weight: 700;
    background: var(--hhx-white);
    border: 1px solid #cfc3ab;
    border-radius: 9px;
    list-style: none;
    white-space: nowrap;
}
.hhx-filters summary::-webkit-details-marker { display: none; }
.hhx-filters[open] summary { background: #eee5d3; }
.hhx-filter-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 9px);
    z-index: 12;
    width: min(285px, 84vw);
    max-height: min(62vh, 440px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: .85rem;
    display: grid;
    gap: .6rem;
    background: var(--hhx-white);
    border: 1px solid var(--hhx-rule);
    border-radius: 12px;
    box-shadow: 0 7px 24px #1d352827;
    font-size: .94rem;
}
.hhx-filter-field { display: grid; gap: 4px; font-weight: 600; }
.hhx-filter-field select {
    min-width: 0;
    min-height: 42px;
    border: 1px solid #cfc3ab;
    border-radius: 6px;
    background: white;
    padding: 0 .5rem;
    font-size: 1rem;
}
.hhx-filter-check { display: flex; align-items: center; gap: .35rem; min-height: 35px; }
.hhx-filter-check input { width: 18px; height: 18px; accent-color: var(--hhx-green); }
.hhx-filter-note { color: var(--hhx-muted); margin: 0; }
.hhx-dialog .hhx-clear-filters {
    min-height: 42px;
    text-align: left;
    padding: 0;
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}
.hhx-view-switch {
    display: flex;
    flex: none;
    padding: 3px;
    min-height: 44px;
    border: 1px solid #cfc3ab;
    border-radius: 9px;
    background: #eee7d8;
}
.hhx-dialog .hhx-view-switch button {
    padding: 0 .62rem;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-weight: 700;
    font-size: .92rem;
}
.hhx-dialog .hhx-view-switch button[aria-pressed="true"] {
    background: var(--hhx-white);
    box-shadow: 0 1px 4px #203c3026;
}

.hhx-main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: clamp(260px, 27vw, 390px) minmax(0, 1fr);
}
.hhx-main[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
.hhx-main[data-view="list"] .hhx-map-stage { display: none; }
.hhx-results {
    position: relative;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--hhx-paper);
    padding: 0 0 max(.8rem, env(safe-area-inset-bottom));
    border-right: 1px solid var(--hhx-rule);
}
.hhx-results-head {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 1rem .95rem .65rem;
    background: var(--hhx-paper);
}
.hhx-results-head h3 { margin: 0; color: var(--hhx-deep); font: 400 1.28rem/1.1 var(--hhx-heading); }
.hhx-count { color: var(--hhx-muted); margin: 0; font-size: .88rem; white-space: nowrap; }
.hhx-results-list { padding: 0 .8rem; display: grid; gap: .45rem; }
.hhx-main[data-view="list"] .hhx-results-head, .hhx-main[data-view="list"] .hhx-results-list {
    max-width: 1240px;
    margin-inline: auto;
}
.hhx-main[data-view="list"] .hhx-results-list { grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); }
.hhx-dialog .hhx-result {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr) 9px;
    min-width: 0;
    align-items: center;
    min-height: 90px;
    width: 100%;
    text-align: left;
    padding: 6px 10px 6px 6px;
    gap: .65rem;
    background: var(--hhx-white);
    border: 1px solid var(--hhx-rule);
    border-radius: 10px;
}
.hhx-dialog .hhx-result:hover, .hhx-dialog .hhx-result[aria-pressed="true"] { border-color: var(--pin, var(--hhx-green)); background: #f5f0df; }
.hhx-result-photo {
    display: block;
    width: 75px;
    height: 67px;
    border-radius: 6px;
    object-fit: cover;
    background: #ede7d9;
}
.hhx-photo-icon { display: grid; place-items: center; color: var(--pin, var(--hhx-green)); }
.hhx-photo-icon svg { width: 27px; height: 27px; }
.hhx-result-copy { display: grid; gap: 4px; min-width: 0; }
.hhx-result-title { color: var(--hhx-deep); font-weight: 700; font-size: .98rem; line-height: 1.22; overflow-wrap: anywhere; }
.hhx-result-meta { color: var(--hhx-muted); font-size: .84rem; line-height: 1.25; }
.hhx-result-arrow { font-size: 1.35rem; opacity: .72; }
.hhx-empty { margin: .8rem .25rem; color: var(--hhx-muted); }

.hhx-map-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: #e1ead5 url("./preview-yorkshire.webp") center / cover no-repeat;
    overflow: hidden;
}
.hhx-dialog .hhx-map { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
.hhx-map-actions {
    position: absolute;
    top: 13px;
    left: 59px;
    right: 14px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}
.hhx-dialog .hhx-map-actions button, .hhx-map-count, .hhx-map-status {
    padding: .35rem .66rem;
    background: #fffcf5f5;
    border: 1px solid #baaf98;
    border-radius: 8px;
    color: var(--hhx-deep);
    box-shadow: 0 2px 7px #203c3020;
    font-weight: 700;
    font-size: .84rem;
}
.hhx-dialog .hhx-map-actions button { pointer-events: auto; min-height: 43px; }
.hhx-dialog .hhx-map-actions button:hover { background: #f1e9d7; }
.hhx-dialog .hhx-map-status {
    position: absolute;
    z-index: 2;
    top: 68px;
    left: 13px;
    margin: 0;
    max-width: calc(100% - 26px);
}
.hhx-map-count {
    display: none;
    position: absolute;
    left: 12px;
    bottom: max(31px, calc(env(safe-area-inset-bottom) + 18px));
    z-index: 2;
    pointer-events: none;
}
.hhx-dialog .maplibregl-ctrl-top-left { margin-top: 3px; margin-left: max(2px, env(safe-area-inset-left)); }
.hhx-dialog .maplibregl-ctrl-group { box-shadow: 0 1px 8px #203c3047; background: var(--hhx-white); }
.hhx-dialog .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.hhx-dialog .maplibregl-ctrl-bottom-right { margin-right: env(safe-area-inset-right); margin-bottom: env(safe-area-inset-bottom); }
.hhx-dialog .maplibregl-ctrl-bottom-left { margin-left: env(safe-area-inset-left); margin-bottom: env(safe-area-inset-bottom); }
.hhx-dialog .maplibregl-ctrl-attrib { font-weight: 600; }
.hhx-dialog .hhx-pin, .hhx-dialog .hhx-cluster {
    display: grid;
    place-items: center;
    padding: 0;
    height: 46px;
    width: 46px;
    min-width: 0;
    color: white;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hhx-dialog .hhx-pin span {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid white;
    border-radius: 50% 50% 50% 5px;
    transform: rotate(-45deg);
    background: var(--pin, var(--hhx-green));
    box-shadow: -2px 4px 8px #29423656;
}
.hhx-pin svg { width: 17px; height: 17px; transform: rotate(45deg); }
.hhx-dialog .hhx-pin[aria-pressed="true"] span { outline: 3px solid #b58238; outline-offset: 2px; }
.hhx-dialog .hhx-related-pin span { outline: 2px solid #e4aa52; outline-offset: 1px; }
.hhx-dialog .hhx-pin[aria-pressed="true"] { z-index: 4; }
.hhx-dialog .hhx-cluster {
    width: 45px;
    height: 45px;
    border: 2px solid #fffff8;
    border-radius: 50%;
    background: #254f38;
    box-shadow: 0 0 0 4px #254f3840, 0 5px 12px #203c304d;
    font-weight: 700;
    font-size: 1rem;
}
.hhx-dialog .hhx-stack { background: #6e5428; }
.hhx-dialog .hhx-pin:hover span, .hhx-dialog .hhx-cluster:hover { filter: brightness(1.13); }

.hhx-card {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: max(15px, calc(env(safe-area-inset-right) + 7px));
    width: min(370px, calc(100% - 30px));
    max-height: calc(100% - 34px - env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border: 1px solid #c9bca5;
    border-radius: 16px;
    background: var(--hhx-white);
    box-shadow: 0 8px 32px #203c3040;
    animation: hhx-enter .25s ease both;
}
@keyframes hhx-enter { from { opacity: .5; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
.hhx-card-photo {
    width: 100%;
    height: clamp(102px, 25vh, 188px);
    display: block;
    object-fit: cover;
    object-position: center;
    background: #ede7d9;
}
.hhx-dialog .hhx-card-close {
    position: sticky;
    top: 8px;
    z-index: 2;
    float: right;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 8px 9px -52px 0;
    padding: 0;
    color: var(--hhx-ink);
    background: var(--hhx-white);
    border: 1px solid #c9bca5;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
}
.hhx-card-photo + .hhx-card-close { margin-top: calc(-1 * clamp(102px, 25vh, 188px) + 8px); }
.hhx-card-body { padding: 1rem 1.12rem 1.1rem; display: flex; flex-direction: column; }
.hhx-card-mobile-pub { display: none; }
.hhx-card-body > h3, .hhx-card-body > p { order: 1; }
.hhx-card-body .hhx-card-facts { order: 2; }
.hhx-card-body .hhx-card-actions { order: 3; }
.hhx-card-body .hhx-card-secondary, .hhx-card-body > .hhx-relation, .hhx-card-body > .hhx-relations { order: 4; }
.hhx-card-category {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 45px .35rem 0;
    color: var(--pin, var(--hhx-green));
    font-weight: 700;
    font-size: .85rem;
}
.hhx-card-title {
    color: var(--hhx-deep);
    font: 400 clamp(1.31rem, 3.8vw, 1.74rem)/1.11 var(--hhx-heading);
    margin: 0 0 .48rem;
    overflow-wrap: anywhere;
}
.hhx-card:not(:has(.hhx-card-photo)) .hhx-card-title { margin-right: 41px; }
.hhx-card-title:focus { outline: 0; }
.hhx-card-subtitle, .hhx-card-description { color: var(--hhx-muted); margin: .45rem 0; line-height: 1.36; font-size: .95rem; }
.hhx-card-quick { font-weight: 700; font-size: .95rem; color: var(--hhx-deep); margin: .4rem 0; }
.hhx-card-facts { margin: .55rem 0 .7rem; border-top: 1px solid var(--hhx-rule); padding-top: .45rem; }
.hhx-card-facts div { display: grid; grid-template-columns: 67px 1fr; gap: .4rem; margin: .23rem 0; font-size: .86rem; line-height: 1.24; }
.hhx-card-facts dt { font-weight: 700; }
.hhx-card-facts dd { margin: 0; color: var(--hhx-muted); }
.hhx-card-actions { display: grid; gap: 6px; }
.hhx-card-actions .hhx-primary {
    display: grid;
    place-items: center;
    min-height: 46px;
    margin-top: .15rem;
    padding: .45rem .55rem;
    background: var(--hhx-green);
    color: #fffdf7;
    font-size: .98rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border-radius: 7px;
}
.hhx-card-actions .hhx-primary:hover { background: var(--hhx-deep); }
.hhx-card-secondary { display: flex; flex-wrap: wrap; column-gap: 13px; align-items: center; }
.hhx-card-secondary a, .hhx-dialog .hhx-text-button, .hhx-dialog .hhx-action-secondary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: var(--hhx-green);
    padding: 0;
    font-weight: 700;
    font-size: .88rem;
    border: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hhx-dialog .hhx-route-error { color: #7e3924; margin: 0; font-size: .9rem; }
.hhx-relations { margin-top: .48rem; padding-top: .6rem; border-top: 1px solid var(--hhx-rule); }
.hhx-relations h4 { margin: 0; color: var(--hhx-muted); font-size: .88rem; }
.hhx-dialog .hhx-relation {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    text-align: left;
    min-height: 43px;
    padding: .35rem .15rem;
    border: 0;
    border-bottom: 1px solid var(--hhx-rule);
    background: transparent;
    font-size: .91rem;
    font-weight: 700;
}
.hhx-relation:hover { text-decoration: underline; }
.hhx-relation svg { flex: none; width: 17px; height: 17px; }
.hhx-relation span { margin-left: auto; }

@media (max-width: 920px) {
    .hhx-bar { padding-inline: max(13px, env(safe-area-inset-left)) max(13px, env(safe-area-inset-right)); }
    .hhx-dialog .hhx-category { padding-inline: .5rem; }
}
@media (max-width: 760px) {
    .hhx-cover { border-radius: 12px; }
    .hhx-bar { padding-top: max(8px, env(safe-area-inset-top)); }
    .hhx-bar-heading p { font-size: .84rem; max-width: 34rem; }
    .hhx-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; padding-block: .65rem .49rem; }
    .hhx-categories { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) minmax(0,1.3fr); gap: 4px; }
    .hhx-dialog .hhx-category { justify-content: center; min-height: 44px; padding: 0 .12rem; gap: 3px; font-size: clamp(.7rem, 2.7vw, .86rem); }
    .hhx-category svg { width: 14px; height: 14px; }
    .hhx-dialog .hhx-view-switch button { padding: 0 .46rem; }
    .hhx-filters { position: static; }
    .hhx-filter-panel { top: calc(100% + 7px); right: max(8px, env(safe-area-inset-right)); }
    .hhx-filters summary { font-size: .86rem; padding: 0 .45rem; }
    .hhx-main { grid-template-columns: minmax(0, 1fr); }
    .hhx-main[data-view="map"] .hhx-results { display: none; }
    .hhx-map-count { display: block; }
    .hhx-card {
        top: auto;
        right: max(7px, env(safe-area-inset-right));
        left: max(7px, env(safe-area-inset-left));
        bottom: max(25px, calc(env(safe-area-inset-bottom) + 17px));
        width: auto;
        max-height: min(calc(100% - 108px), 49dvh);
        border-radius: 17px 17px 12px 12px;
    }
    .hhx-card-photo { height: clamp(80px, 15vh, 124px); }
    .hhx-card-body .hhx-card-actions { order: 2; }
    .hhx-card-body .hhx-card-description, .hhx-card-body .hhx-card-facts { order: 3; }
    .hhx-card-mobile-pub { display: block; margin: 0 0 .45rem; font-size: .87rem; }
    .hhx-card-facts .hhx-card-pub-fact { display: none; }

    .hhx-card-photo + .hhx-card-close { margin-top: calc(-1 * clamp(80px, 15vh, 124px) + 8px); }
    .hhx-card-body { padding: .72rem .89rem .88rem; }
}
@media (max-width: 380px) {
    .hhx-bar { padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); }
    .hhx-dialog .hhx-category { gap: 2px; }
    .hhx-category svg { width: 12px; height: 12px; }
    .hhx-search { padding-inline: 6px; }
    .hhx-search svg { width: 14px; height: 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .hhx-bar-heading h2 { font-size: 1.38rem; }
    .hhx-bar-heading p { font-size: .75rem; }
    .hhx-bar { padding-top: max(4px, env(safe-area-inset-top)); }
    .hhx-toolbar { display: grid; grid-template-columns: minmax(0, auto) minmax(110px, 1fr) auto auto; padding-block: .32rem; }
    .hhx-categories { grid-column: auto; display: flex; }
    .hhx-dialog .hhx-category { padding-inline: .28rem; }
    .hhx-category svg { width: 11px; height: 11px; }
    .hhx-card { top: 7px; right: max(8px, env(safe-area-inset-right)); bottom: auto; left: auto; width: min(320px, 55vw); max-height: calc(100% - 19px); }
    .hhx-card-photo { height: 82px; }
    .hhx-card-photo + .hhx-card-close { margin-top: -74px; }
}
@media (prefers-reduced-motion: reduce) {
    .hhx-open-cta { transition: none; }
    .hhx-card { animation: none; }
}
