/* All surfaces use the same paired foreground/background in either theme. */
.houses-screen :is(.hq-completion,.hf-post,.ha-event,.ha-comment,.hg-tier,.hl-task,.ha-offer,.hl-events,.hl-next,.hl-choice){background:var(--paper-2);color:var(--ink);border-color:var(--line)}
.houses-screen :is(dialog,dialog .f,.ha-selected,#hBattlesCard:fullscreen){background:var(--paper);color:var(--ink);border-color:var(--line)}
.houses-screen :is(input,select,textarea,.ha-field input,.ha-field select,.ha-comment-form textarea,#hLessonsCard textarea,#hlForm input,#hlForm select,.hf-preview button){background:var(--paper-2)!important;color:var(--ink)!important;border-color:var(--line)!important}
.houses-screen :is(.ha-pin,.ha-date,.hl-feedback,.hq-heading strong){color:var(--wood-text,var(--muted))}
.houses-screen :is(.hl-roster,.hl-deadline,.hl-group-panel,.hl-group,.hl-person,.hl-people){border-color:var(--line)}
.houses-screen .ha-selected{background:var(--paper-2)!important;outline:2px solid var(--good);outline-offset:-2px}
.houses-screen .hf-list{max-width:100%;margin:20px 0;gap:20px}
.houses-screen .hf-post{padding:24px;border-radius:18px;box-shadow:0 3px 14px #00000006}
.hf-author{display:flex;gap:12px;align-items:center;min-width:0;flex:1}
.hf-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);font:600 16px/1 system-ui}
.houses-screen .hf-post-head strong{font-size:16px}.houses-screen .hf-date{font-size:13px}.houses-screen .hf-text{font-size:16px;line-height:1.7;max-width:78ch;margin:22px 0}
.hf-manage{position:relative;flex:none}.hf-manage summary{cursor:pointer;font-size:22px;list-style:none;padding:0 12px;border-radius:10px;min-height:40px;border:1px solid var(--line)}
.hf-manage summary::-webkit-details-marker{display:none}.hf-manage[open] .hf-actions{position:absolute;z-index:4;right:0;top:42px;min-width:160px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 24px #0002;display:grid}
.hf-social{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.hf-social .h-mini{min-height:40px;min-width:48px;border-radius:20px;text-transform:none;font-size:14px;display:inline-flex;align-items:center;gap:6px;justify-content:center}
.hf-social .h-mini[aria-pressed=true]{background:var(--good);color:var(--paper);border-color:var(--good)}
.hf-social .hf-comments-toggle{margin-left:auto}.hf-stone{width:16px;height:16px;display:inline-block;border-radius:50%;background:radial-gradient(circle at 35% 28%,#75817d,#151918 65%);border:1px solid #7b8982}
.house-unread{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;margin-left:6px;border-radius:12px;background:#b64d37;color:white;font:700 11px/1 system-ui;vertical-align:middle;box-sizing:border-box}.house-unread[hidden]{display:none}
.houses-screen .hq-completion{border-color:var(--good);padding:18px}.houses-screen .hq-completion p{font-size:14px;line-height:1.6}
@media(max-width:960px){.houses-screen .hq-workspace{grid-template-columns:1fr}}
@media(min-width:961px){.houses-screen .house-panels #hQuestsCard.is-active{overflow-y:auto}.houses-screen .hq-workspace{flex:none;min-height:380px;height:clamp(380px,52vh,640px)}.houses-screen .hq-controls{max-height:none;overflow:visible}}
@media(max-width:600px){.houses-screen .hf-post{padding:16px;border-radius:14px}.hf-social{gap:6px}.hf-social .h-mini{min-height:44px;padding:8px 10px}.hf-social .hf-comments-toggle{margin-left:0}.houses-screen .hf-post-head{flex-wrap:nowrap}.hf-author{gap:8px}.hf-avatar{width:36px;height:36px;flex-basis:36px}.houses-screen .hf-text{font-size:15px}.hf-date{line-height:1.5}}
