.house-tools { display: flex; align-items: center; flex-wrap: nowrap; gap: 24px; margin-top: 12px; }
.house-tools button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; width: 21px; padding: 0; border: 0; background: transparent; color: #4a5865; }
.house-tools svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.house-category { margin-left: auto; color: #111; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.house-comment-preview { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 12px 0 24px; padding: 14px; border: 0; border-radius: 12px; background: #e9edf1; color: #182533; text-align: left; font: inherit; cursor: pointer; }
.house-comment-preview small { display: block; color: #4a5865; }
.house-panel { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow-y: auto; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -6px 24px #0002; transform: translateY(100%); transition: transform .25s ease; }
.house-panel.is-open { transform: translateY(0); }
.house-panel header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.house-panel h2 { margin: 0; font-size: 1.125rem; }
.house-panel header button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 24px; }
.house-panel-backdrop { position: fixed; z-index: 79; inset: 0; background: #0005; }
.house-status { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(66px + env(safe-area-inset-bottom)); margin: 0; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: 0 2px 16px #0002; color: #4a5865; font-size: .85rem; }
.house-status:empty { display: none; }
.house-fullscreen { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; background: #111; color: #fff; }
.house-fullscreen header { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; min-height: 56px; padding: env(safe-area-inset-top) 12px 0; }
.house-fullscreen header button { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 28px; }
.house-fullscreen .house-gallery { flex: 1; min-height: 0; aspect-ratio: auto; padding-bottom: env(safe-area-inset-bottom); }
body.house-fullscreen-open { overflow: hidden; }
@media(prefers-reduced-motion:reduce) { .house-panel { transition: none; } }
body.house-panel-open { overflow: hidden; }
.house-panel { overscroll-behavior: contain; }
.house-panel-backdrop { touch-action: none; }

.house-gallery-empty { position: absolute; inset: 0; }

.house-gallery-empty { background: #edf1f5 url('house-default.svg') center/contain no-repeat; color: #182533; align-items: end; padding: 24px; }

/* Album interactions: preserve the gallery DOM and its current position. */
.house-tools button { width: auto; gap: 5px; cursor: pointer; }
.house-tools svg { flex: 0 0 21px; }
.house-tools .is-liked { color: #1877d2; }
.house-tools .is-liked svg { fill: #dcecff; }
.house-action-count { font: 12px/1.2 system-ui,sans-serif; }
.house-tools button:disabled { opacity: .6; }
.house-category { flex-shrink: 0; }
.house-panel { display: flex; flex-direction: column; max-height: min(85dvh,780px); }
.house-panel[hidden] { display: none; }
.house-panel header { flex: 0 0 auto; }
.house-comments-list { flex: 1 1 auto; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; }
.house-comments-list article { padding: 12px 0; border-bottom: 1px solid #e0e5e9; overflow-wrap: anywhere; }
.house-comments-list time { display: block; color: #667788; font-size: 12px; }
.house-comments-list p,.house-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.house-comment-form { flex: 0 0 auto; padding-top: 12px; border-top: 1px solid #e0e5e9; }
.house-comment-form label { display: block; font-size: 14px; }
.house-comment-form input,.house-comment-form textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; margin: 4px 0 8px; border: 1px solid #a6b1bc; border-radius: 5px; font: inherit; }
.house-comment-form p { margin: 6px 0; font-size: 13px; }
.house-comment-form button,#house-comments-more,.house-admin button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 5px; background: #17486d; color: white; font: inherit; cursor: pointer; }
.house-comment-form .house-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.house-admin { background: #f3f5f7; color: #182533; font: 16px/1.6 system-ui,sans-serif; }
.house-admin main { max-width: 900px; margin: auto; padding: 16px; }
.house-admin nav,.house-admin form { display: flex; flex-wrap: wrap; gap: 12px; }
.house-admin article { padding: 16px; margin: 16px 0; border-radius: 12px; background: white; overflow-wrap: anywhere; }
.house-admin h2 { font-size: 18px; }
