/* Het Huis — productie shell op .screen-home (geen mockup-clone) */
.screen-home.huis-active {
    display: grid !important;
    grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas:
        "kop kop"
        "inhoud stage"
        "inhoud spreek"
        "knoppen knoppen"
        "hint hint";
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    background: #080B11 !important;
    overflow: hidden !important;
}

.screen-home.huis-active .swipe-hint-container,
.screen-home.huis-active .swipe-hint-vertical,
.screen-home.huis-active .lwh-enter-orb,
.screen-home.huis-active .home-orbit,
.screen-home.huis-active .avatar-status-indicator,
.screen-home.huis-active .avatar-home-rich-host {
    display: none !important;
}

.screen-home.huis-active .living-avatar {
    grid-area: stage;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
}

.screen-home.huis-active .bere-lady-home-scene {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}

.screen-home.huis-active.avatar-3d-active .fullscreen-avatar-frame,
.screen-home.huis-active.avatar-3d-active #bereLadyAvatar {
    min-height: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.screen-home.huis-active .fullscreen-avatar-frame {
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
}

.screen-home.huis-active .avatar-greeting {
    display: none !important;
}

.screen-home.huis-active .avatar-settings-gear,
.screen-home.huis-active .bere-lady-settings-fab {
    display: none !important;
}

.bere-lady-settings-fab {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 145, 78, 0.35);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #E8B06A;
    font-size: 1.25rem;
    cursor: pointer;
}

.swipe-universe.active .bere-lady-settings-fab {
    display: flex;
}

.huis-settings-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(212, 145, 78, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #E8B06A;
    font-size: 1.1rem;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    z-index: 10016;
    position: relative;
}

.screen-home.huis-active .living-avatar {
    pointer-events: none !important;
}

.screen-home.huis-active[data-toneel="kamer"] .living-avatar {
    pointer-events: none !important;
    cursor: default;
}

.huis-berichten-vol-slot .composer-breath-moment,
.huis-berichten-vol-slot .composer-hoelang-btn {
    display: none !important;
}

.huis-berichten-vol-slot .composer-p0-row {
    flex-wrap: nowrap;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
}

.huis-berichten-vol-slot #messageInput,
.huis-berichten-vol-slot .input-field {
    flex: 1 1 0;
    min-width: 4.5rem;
    width: auto !important;
    max-width: 100%;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

/* Huis chrome */
.huis-kop {
    grid-area: kop;
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 52px 8px 6px;
    position: relative;
    z-index: 10010;
    pointer-events: auto;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

#huisBrandLogo {
    display: block;
    flex: 0 0 auto;
    width: 90px;
    height: 48px;
    max-width: 90px;
    max-height: 48px;
}

#huisBrandLogo text {
    font-family: Georgia, 'Palatino Linotype', 'Times New Roman', serif;
}

#huisSmaragdPulse rect {
    fill: #1D9E75;
}

#huisSmaragdPulse circle {
    stroke: #5DCAA5;
}

#huisSmaragdPulse.is-tolk-live rect {
    fill: #E9B44C;
}

#huisSmaragdPulse.is-tolk-live circle {
    stroke: #f0d78c;
}

.huis-lampjes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.huis-lamp {
    font-size: .56rem; font-weight: 700; letter-spacing: .1em;
    padding: 4px 7px; border-radius: 4px;
    background: #141922; border: 1px solid #1B2230;
    color: #77848F; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
}
.huis-lamp.is-actief {
    border-color: #1FE6A8; color: #1FE6A8;
    background: rgba(31,230,168,0.08);
}
.huis-lamp.is-on { color: #1FE6A8; border-color: rgba(31,230,168,0.35); }
.huis-lamp.is-live {
    color: #E9B44C; border-color: rgba(233,180,76,0.55);
    animation: huisLeidingPuls 1.6s ease-in-out infinite;
}
@keyframes huisLeidingPuls {
    50% { box-shadow: 0 0 10px 2px rgba(233,180,76,0.35); }
}

#huisInhoud:has(> .huis-berichten-vol-slot),
#huisInhoud:has(> .huis-ai-vol-slot) {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
    height: 100%;
    padding: 2px 4px 0 !important;
}

#huisInhoud:has(> .huis-berichten-vol-slot) > :not(.huis-berichten-vol-slot):not(.huis-ai-vol-slot),
#huisInhoud:has(> .huis-ai-vol-slot) > :not(.huis-ai-vol-slot):not(.huis-berichten-vol-slot) {
    display: none !important;
}

#huisInhoud {
    grid-area: inhoud;
    overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column; gap: 10px;
    padding: 4px 6px 4px 2px;
    position: relative;
    z-index: 10010;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.huis-kaart {
    background: #1a2230;
    border-radius: 10px;
    border: 1px solid rgba(212,145,78,0.22);
    border-left: 3px solid var(--tk-accent, #1FE6A8);
    overflow: hidden;
    animation: HuisKaartIn .35s ease;
}
@keyframes HuisKaartIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: none; }
}
.huis-van {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px 4px;
}
.huis-van-naam {
    font-size: .62rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: var(--tk-accent, #1FE6A8);
}
.huis-van-tijd { font-size: .62rem; color: #9aa8b5; }
.huis-body { padding: 6px 12px 10px; font-size: .86rem; line-height: 1.45; color: #f2f6fa; }
.huis-voet {
    padding: 8px 12px; font-size: .68rem; color: #d4a050;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.huis-thumb {
    display: block; width: 100%; max-height: 80px; object-fit: cover;
    border-radius: 6px; margin-bottom: 8px; background: #1B2230;
}
.huis-stroom-titel {
    font-size: .58rem; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: #B8863B; padding: 2px 2px 6px;
}
.huis-leeg {
    font-size: .74rem; color: #77848F; padding: 12px;
    text-align: center; border: 1px dashed #1B2230; border-radius: 8px;
}

#huisLaagKnoppen {
    grid-area: knoppen;
    position: relative;
    z-index: 10010;
    pointer-events: auto;
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    padding: 6px 4px;
    isolation: isolate;
}
.huis-machineknop {
    padding: 10px 14px; border-radius: 8px;
    background: #1a2230 !important;
    border: 2px solid #2a3548;
    color: #b8c4d0; font-size: .74rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 3px 0 #080B11;
    transition: transform .1s, border-color .15s, color .15s;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
.huis-machineknop:active { transform: translateY(2px); box-shadow: 0 1px 0 #080B11; }
.huis-machineknop.is-actief {
    border-color: var(--knop-hue, #E9B44C);
    color: var(--knop-hue, #E9B44C);
    background: #1a1520 !important;
    box-shadow: 0 3px 0 #080B11, 0 0 12px rgba(233,180,76,0.2);
}
.huis-deep-hint {
    display: block; font-size: .5rem; font-weight: 600;
    opacity: .7; letter-spacing: .05em; margin-top: 2px;
}
.huis-pin-kaart { border-left-color: #22d3ee !important; }
.huis-ai-kaart { border-left-color: #E9B44C !important; }
.huis-call-kaart { border-left-color: #E9B44C !important; }
.huis-ai-model {
    font-size: .9rem; font-weight: 800; color: #E9B44C;
    letter-spacing: .04em;
}

/* Stroom layout types */
.huis-stroom--vertical_9_16 { border-left-color: #E9B44C !important; }
.huis-stroom--vertical_9_16 .huis-thumb--vertical {
    max-height: 140px; aspect-ratio: 9/16; object-fit: cover;
    border-radius: 8px; border: 2px solid rgba(233,180,76,0.35);
}
.huis-stroom--story_ring {
    border-left-color: #c084fc !important;
    position: relative; padding-top: 4px;
}
.huis-story-ring {
    position: absolute; top: 8px; right: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #c084fc;
    box-shadow: 0 0 0 2px rgba(192,132,252,0.25);
}
.huis-stroom--embed_rich { border-left-color: #E8703A !important; }
.huis-stroom--embed_rich .huis-thumb--wide {
    max-height: 72px; aspect-ratio: 16/9; object-fit: cover;
    border-radius: 6px;
}
.huis-stroom--ephemeral {
    border-left-color: #1FE6A8 !important;
    animation: HuisEphemeral 2s ease-in-out infinite;
}
@keyframes HuisEphemeral {
    50% { border-color: rgba(31,230,168,0.55); }
}
.huis-ttl {
    position: absolute; top: 8px; left: 10px;
    font-size: .5rem; font-weight: 800; letter-spacing: .08em;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(8,11,17,0.85); color: #E9B44C;
    border: 1px solid rgba(233,180,76,0.4);
}
.huis-stroom--vertical_9_16,
.huis-stroom--story_ring,
.huis-stroom--embed_rich,
.huis-stroom--ephemeral { position: relative; }

#huisHintBar {
    grid-area: hint;
    position: relative;
    z-index: 10010;
    pointer-events: auto;
    text-align: center; font-size: .66rem; color: #77848F;
    padding: 2px 8px 4px; min-height: 1.2em;
}

#huisAmbientRand {
    position: absolute; right: 2px; top: 20%; z-index: 18;
    pointer-events: none;
}
.huis-ambient {
    display: none; width: 30px; height: 30px; border-radius: 50%;
    background: #1B2230; border: 2px solid #c084fc;
    font-size: .85rem; cursor: pointer; pointer-events: auto;
    animation: HuisAmbientPuls 1.3s ease-in-out infinite;
    align-items: center; justify-content: center;
}
.huis-ambient.is-visible { display: flex; }
@keyframes HuisAmbientPuls {
    50% { box-shadow: 0 0 14px 3px rgba(192,132,252,0.45); }
}

.huis-alarm {
    border-left-color: #E8703A !important;
    border-color: rgba(232,112,58,0.45);
    box-shadow: 0 8px 28px rgba(192,132,252,0.12);
}

.nav-indicators.huis-hidden,
.swipe-universe:has(.screen-home.huis-active) .nav-indicators {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Gesture-laag: positie via Huis.syncGestureLayer() — alleen over .living-avatar */
body.huis-shell-active #gestureLayer {
    z-index: 10008;
}
body.huis-shell-active .screen-home.huis-active {
    position: relative;
    z-index: 10009;
}

body.huis-shell-active .huis-liveband {
    position: relative;
    z-index: 10010;
    pointer-events: auto;
}

.huis-call-live {
    margin: 0 12px 10px; padding: 10px 12px;
    border: 1px solid rgba(233,180,76,0.45); border-radius: 8px;
    background: #1B2230; font-size: .76rem; line-height: 1.4;
}
.huis-call-pl { font-size: .68rem; color: #77848F; margin-top: 6px; font-style: italic; }
.huis-liveband {
    display: none; width: 100%; margin-bottom: 6px;
    padding: 8px 10px; border-radius: 8px;
    background: #141922; border: 1px solid #1B2230;
    font-size: .78rem; color: #ECF2ED;
}
.huis-liveband.is-visible { display: block; }
.huis-intent-chip {
    display: none; margin-top: 6px; padding: 5px 10px; border-radius: 999px;
    border: 1px solid #E9B44C; color: #E9B44C; font-size: .65rem; font-weight: 700;
}
.huis-intent-chip.is-visible { display: inline-block; }
#huisCallPill {
    display: none; position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 130px);
    transform: translateX(-50%); z-index: 200;
    padding: 10px 16px; border-radius: 999px;
    background: #1B2230; border: 1px solid #E9B44C; color: #E9B44C;
    font-size: .72rem; font-weight: 700; cursor: pointer;
}
#huisCallPill.is-visible { display: block; }
.huis-machineknop.is-locked { opacity: .35; pointer-events: none; }

/* mockup parity — stage decor */
.huis-gouden-draad {
    position: absolute; left: 8%; top: 18%; bottom: 22%; width: 2px;
    background: linear-gradient(180deg, transparent, rgba(233,180,76,0.35), transparent);
    z-index: 3; pointer-events: none; opacity: .6;
}
.huis-pin-label {
    position: absolute; left: 6px; bottom: 28%;
    z-index: 19; font-size: .58rem; font-weight: 700;
    color: #E9B44C; letter-spacing: .06em;
    padding: 4px 8px; border-radius: 6px;
    background: rgba(8,11,17,0.75); border: 1px solid rgba(233,180,76,0.3);
    max-width: 90%; pointer-events: none;
}
.huis-status-chip {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + 42px); right: 10px;
    z-index: 35; font-size: .56rem; font-weight: 700; letter-spacing: .08em;
    padding: 4px 8px; border-radius: 6px;
    background: #141922; color: #77848F;
    border: 1px solid #1B2230; text-transform: uppercase;
}
.huis-spreek-zone {
    position: relative;
}

/* Brooch — gloeiend sieraad op borst, geen knop-chrome */
.huis-brooch-ring {
    position: fixed;
    z-index: 15;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0.92;
}

.huis-brooch-ring:focus {
    outline: none;
}

.huis-brooch-ring:focus-visible {
    outline: 1px solid rgba(233,180,76,0.35);
    outline-offset: 3px;
}

.huis-brooch-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,208,63,0.92) 0%, rgba(212,145,78,0.45) 52%, transparent 72%);
    box-shadow: 0 0 10px 2px rgba(233,180,76,0.38);
    pointer-events: none;
}

.huis-brooch-pulse {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1.5px solid rgba(93,202,165,0.5);
    animation: huisBroochPulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes huisBroochPulse {
    0% { transform: scale(0.5); opacity: 0.72; }
    100% { transform: scale(1.4); opacity: 0; }
}

.huis-brooch-pulse.is-media-gen {
    border-color: rgba(31,230,168,0.55);
    box-shadow: 0 0 10px 2px rgba(31,230,168,0.25);
    animation: huisBroochMediaGen 2.8s ease-in-out infinite;
}

@keyframes huisBroochMediaGen {
    0%, 100% { transform: scale(0.85); opacity: 0.45; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

.gesprek-canvas-host .bere-image-gen-rich-card {
    margin-top: 4px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,14,22,0.55);
    max-width: 100%;
}
.gesprek-canvas-host .bere-image-gen-rich-card img {
    display: block;
    width: 100%;
    max-height: min(52vh, 420px);
    object-fit: cover;
}
.gesprek-canvas-host .bere-image-gen-caption {
    padding: 10px 12px 12px;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.huis-tappable { cursor: pointer; }
.huis-tappable:active { transform: scale(0.99); }
.huis-call-live-card .huis-live-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: #1FE6A8; margin-right: 4px;
    animation: HuisLiveDot 1s ease-in-out infinite;
}
@keyframes HuisLiveDot {
    50% { opacity: .35; }
}
.huis-call-hist {
    margin: 0 12px 8px; padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: .68rem; color: #77848F; max-height: 80px; overflow-y: auto;
}
.huis-call-line { margin-bottom: 6px; }
.huis-lightbox {
    position: fixed; inset: 0; z-index: 60000;
    background: rgba(8,11,17,0.92);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.huis-lightbox[hidden] { display: none !important; }
.huis-lightbox img {
    max-width: 100%; max-height: 85vh; border-radius: 12px;
    border: 2px solid rgba(31,230,168,0.35);
}
.huis-ultra-badge {
    font-size: .48rem; font-weight: 800; letter-spacing: .1em;
    padding: 2px 5px; border-radius: 4px; margin-right: 4px;
    background: rgba(232,112,58,0.2); color: #E8703A;
    border: 1px solid rgba(232,112,58,0.45);
    vertical-align: middle;
}
.huis-call-line.is-ultra { color: #ECF2ED; }
.huis-call-live-card.huis-call-live-card {
    box-shadow: 0 0 20px rgba(233,180,76,0.08);
}
.huis-lb-x {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #E9B44C; background: #1B2230; color: #E9B44C;
    font-size: 1.2rem; cursor: pointer; z-index: 1;
}

/* Het Toneel — één ruimte, één Z-as; Lady blijft altijd gemount (geen split/reparent) */
.screen-home.huis-active #huisInhoud,
.screen-home.huis-active .living-avatar,
.screen-home.huis-active .bere-lady-home-scene {
    transition: transform 350ms ease-out, opacity 350ms ease-out;
    will-change: transform, opacity;
}

/* Lady-stand (default): Lady vooraan, kamers erachter */
.screen-home.huis-active:not([data-toneel="kamer"]) #huisInhoud {
    transform: scale(0.94);
    opacity: 0.82;
    transform-origin: left center;
}

.screen-home.huis-active:not([data-toneel="kamer"]) .living-avatar,
.screen-home.huis-active:not([data-toneel="kamer"]) .bere-lady-home-scene {
    transform: scale(1);
    opacity: 1;
    transform-origin: center center;
}

/* Kamer-stand: inhoud vooraan, Lady achter (zichtbaar, niet gedimd) */
.screen-home.huis-active[data-toneel="kamer"] #huisInhoud {
    transform: scale(1);
    opacity: 1;
    transform-origin: left center;
    z-index: 3;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.screen-home.huis-active[data-toneel="kamer"] .bere-lady-home-scene {
    transform: scale(0.96) translateX(8%) translateZ(-32px);
    opacity: 1;
    transform-origin: right center;
    backface-visibility: hidden;
}

/* Schouder-compositie: gesprek vóór Lady, zelfde kader mobiel + desktop */
.screen-home.huis-active[data-toneel="kamer"] {
    perspective: 1100px;
    perspective-origin: 66% 44%;
}

.screen-home.huis-active[data-toneel="kamer"] #huisInhoud:has(.huis-berichten-vol-slot) {
    transform: scale(1) !important;
}

.screen-home.huis-active[data-toneel="kamer"] #huisInhoud {
    transform: scale(1) translateZ(28px);
    transform-style: preserve-3d;
}

.screen-home.huis-active[data-toneel="kamer"] .living-avatar {
    transform: scale(0.96) translateX(8%) translateZ(-32px);
    transform-style: preserve-3d;
    opacity: 1;
    transform-origin: right center;
    z-index: 2;
    pointer-events: none !important;
    cursor: default;
    backface-visibility: hidden;
}

/* Feed bubbels — solide, compact, Lady blijft zichtbaar rechts */
.screen-home.huis-active[data-toneel="kamer"] .huis-moment-feed,
.screen-home.huis-active[data-toneel="kamer"] .huis-kamer-slot #messages,
.screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot #messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transform-style: preserve-3d;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-toneel-feed {
    --huis-feed-shift: 0px;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-toneel-feed > .huis-moment-item,
.screen-home.huis-active[data-toneel="kamer"] .huis-toneel-feed > .huis-call-feed-card,
.screen-home.huis-active[data-toneel="kamer"] .huis-toneel-feed > .huis-incoming-call {
    transform: translateY(calc(var(--huis-feed-shift) * -0.4));
    will-change: transform;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-moment-item {
    max-width: 78%;
    align-self: flex-start;
    background: #141922 !important;
    border: 1px solid #1B2230 !important;
    opacity: 1 !important;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-moment-status {
    display: inline-block;
    margin-left: 6px;
    font-size: .62rem;
    vertical-align: middle;
    border: none;
    background: none;
    padding: 0;
    cursor: default;
    color: #77848F;
}
.huis-moment-status.is-pending { opacity: .85; }
.huis-moment-status.is-sent { color: #E9B44C; font-weight: 700; }
.huis-moment-status.is-failed {
    color: #f59e0b;
    cursor: pointer;
    text-decoration: underline;
    font-size: .58rem;
}
.huis-moment-status.is-blocked {
    display: block;
    margin: 4px 0 0;
    color: #E9B44C;
    font-size: .62rem;
    line-height: 1.35;
}
.huis-moment-item.is-blocked-send {
    border-color: rgba(233,180,76,0.55) !important;
    box-shadow: 0 0 0 1px rgba(233,180,76,0.25);
}

.screen-home.huis-active[data-toneel="kamer"] .huis-moment-item.is-mine {
    align-self: flex-end;
    background: #1B2230 !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-moment-tr-hint {
    color: #E9B44C;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-moment-envelop {
    background: #141922 !important;
    border: 2px dashed rgba(233, 180, 76, 0.55) !important;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-kamer-slot #messages .message,
.screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot #messages .message {
    max-width: 78%;
    opacity: 1 !important;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-kamer-slot #messages .message.user,
.screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot #messages .message.user {
    align-self: flex-end;
    margin-left: auto;
    background: #1B2230 !important;
    border: 1px solid rgba(233, 180, 76, 0.45) !important;
}

.screen-home.huis-active[data-toneel="kamer"] .huis-kamer-slot #messages .message.ai,
.screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot #messages .message.ai,
.screen-home.huis-active[data-toneel="kamer"] .huis-kamer-slot #messages .message.ai.streaming,
.screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot #messages .message.ai.streaming {
    align-self: flex-start;
    margin-right: auto;
    background: #141922 !important;
    border: 1px solid #1B2230 !important;
}

@media (min-width: 900px) {
    .screen-home.huis-active[data-toneel="kamer"] .huis-moment-item,
    .screen-home.huis-active[data-toneel="kamer"] .huis-moment-item.is-mine,
    .screen-home.huis-active[data-toneel="kamer"] .huis-kamer-slot #messages .message,
    .screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot #messages .message {
        max-width: 52%;
    }
}

.huis-kamer-slot,
.huis-berichten-vol-slot {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.huis-berichten-vol-slot > .kamer-podium {
    flex: 1 1 auto;
    min-height: 0;
}

.huis-kamer-slot #chatWindow,
.huis-berichten-vol-slot #chatWindow {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.huis-kamer-slot #chatWindow .chat-area,
.huis-berichten-vol-slot #chatWindow .chat-area {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.huis-kamer-slot #messages,
.huis-berichten-vol-slot #messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.huis-kamer-slot .input-area,
.huis-berichten-vol-slot .input-area {
    flex: 0 0 auto;
    width: 100%;
}

/* Kamer-stand chat — Huis skin (cosmetic; gedrag ongewijzigd) */
.huis-kamer-slot .chat-window-header,
.huis-kamer-slot #bereWelcome,
.huis-berichten-vol-slot .chat-window-header,
.huis-berichten-vol-slot #bereWelcome {
    display: none !important;
}

.huis-kamer-slot .message-actions,
.huis-berichten-vol-slot .message-actions {
    display: none !important;
}

.huis-kamer-slot #messages .message.user,
.huis-berichten-vol-slot #messages .message.user {
    background: #1B2230;
    border: 1px solid rgba(233, 180, 76, 0.4);
    border-left: 3px solid #E9B44C;
    border-bottom-right-radius: 6px;
    color: #ECF2ED;
}

.huis-kamer-slot #messages .message.ai,
.huis-berichten-vol-slot #messages .message.ai {
    background: rgba(8, 11, 17, 0.88);
    border: 1px solid rgba(27, 34, 48, 0.95);
    border-bottom-left-radius: 6px;
    color: #ECF2ED;
}

.huis-kamer-slot #messages .message.ai.streaming,
.huis-berichten-vol-slot #messages .message.ai.streaming {
    background: rgba(8, 11, 17, 0.88);
}

.huis-kamer-slot #messages .message .message-content,
.huis-berichten-vol-slot #messages .message .message-content {
    color: #ECF2ED;
}

.huis-kamer-slot #messages .streaming-cursor,
.huis-berichten-vol-slot #messages .streaming-cursor {
    color: #E9B44C;
}

.huis-kamer-slot #messages .message-content.bere-rich-markdown a,
.huis-berichten-vol-slot #messages .message-content.bere-rich-markdown a {
    color: #E9B44C;
}

/* P2 licht-pas + agenda leiding + device ceremonie */
.huis-berichten-vol-slot .composer-p0-row,
.huis-berichten-vol-slot .input-row,
.huis-ai-vol-slot .composer-p0-row,
.huis-ai-vol-slot .input-row,
.huis-kamer-slot .composer-p0-row,
.huis-kamer-slot .input-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
}

.huis-berichten-vol-slot #messageInput,
.huis-berichten-vol-slot .input-field,
.huis-kamer-slot #messageInput,
.huis-kamer-slot .input-field {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 44px !important;
    max-height: 120px !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    resize: none !important;
}

.huis-berichten-vol-slot .huis-composer-dock,
.huis-ai-vol-slot .huis-composer-dock,
.huis-kamer-slot .huis-composer-dock {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 10040;
    background: #0c1018;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

.huis-unified-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 2px;
}

.huis-unified-thread .huis-moment-feed {
    flex: none;
    min-height: 0;
    overflow: visible;
    max-height: none;
    padding: 6px 4px 10px;
}

.huis-berichten-vol-slot #chatWindow {
    display: none !important;
    flex: 0 0 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.huis-unified-stroom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px 2px;
    flex: 0 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.huis-unified-stroom-label {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #B8863B;
    flex: 0 0 auto;
}

.huis-unified-stroom-chips {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.huis-unified-stroom-chip {
    flex: 0 0 auto;
    max-width: 140px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.12);
    color: #e8edf5;
    font-size: .72rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .screen-home.huis-active[data-toneel="kamer"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) minmax(100px, 20vh) auto auto !important;
        grid-template-areas:
            "kop"
            "inhoud"
            "stage"
            "knoppen"
            "hint" !important;
    }

    .screen-home.huis-active[data-toneel="kamer"] #huisInhoud {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .huis-berichten-vol-slot,
    .huis-berichten-vol-slot > .kamer-podium {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
    }

    .kamer-podium-diepte.huis-scroll {
        min-height: 140px;
    }

    .screen-home.huis-active[data-toneel="kamer"] .living-avatar {
        min-height: 100px;
        max-height: 20vh;
        width: 100% !important;
    }

    .huis-berichten-vol-slot .huis-composer-dock,
    .huis-berichten-vol-slot .kamer-podium-composer .huis-composer-dock,
    .huis-berichten-vol-slot .kamer-podium-composer #bereComposer,
    .huis-berichten-vol-slot .kamer-podium-composer .input-area {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .huis-ai-vol-slot .huis-composer-dock,
    .huis-ai-vol-slot .kamer-podium-composer .huis-composer-dock {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .huis-berichten-vol-slot .composer-p0-row > .bere-invite-btn,
    .huis-berichten-vol-slot .composer-p0-row > #voiceBtn,
    .huis-berichten-vol-slot .composer-p0-row > #sendBtn {
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }
}
.huis-agenda-kaart {
    transform: scale(var(--agenda-scale, 1));
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.huis-agenda-kaart.is-handdruk { border-color: rgba(212,145,78,.65); }
.huis-agenda-zegel {
    width: 18px; height: 18px; margin: 6px 12px 8px auto;
    border: 2px solid rgba(212,145,78,.55); border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(212,145,78,.25);
}
.huis-agenda-kaart.is-gedaan .huis-agenda-zegel { background: rgba(212,145,78,.45); }
.huis-agenda-kaart.is-zegel-anim .huis-agenda-zegel {
    animation: huisZegelStamp 0.55s ease-out 1;
    background: rgba(212,145,78,.55);
}
.huis-agenda-kaart.is-slide-geheugen {
    animation: huisAgendaSlideGeheugen 0.65s ease-in forwards;
    pointer-events: none;
}
@keyframes huisZegelStamp {
    0% { transform: scale(2.2); opacity: 0; }
    60% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes huisAgendaSlideGeheugen {
    0% { opacity: 1; transform: translateX(0) scale(var(--agenda-scale, 1)); }
    100% { opacity: 0; transform: translateX(120%) scale(0.92); }
}
.huis-agenda-delay-porto { border-color: rgba(212,145,78,.55) !important; box-shadow: 0 0 12px rgba(212,145,78,.18); }
.huis-zorg-kaart { border-color: rgba(16,185,129,.45) !important; }
.huis-agenda-voorstel-acties { display: flex; gap: 10px; padding: 8px 12px 10px; }
.huis-agenda-ja, .huis-agenda-nee {
    font-size: 1.2rem; background: #1a2230; border: 1px solid rgba(212,145,78,.35);
    border-radius: 8px; padding: 6px 14px; cursor: pointer; color: #f2f6fa;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}
.huis-moment-feed.huis-agenda-glow { box-shadow: inset 0 0 0 1px rgba(212,145,78,.35); }
.huis-brooch-pulse.is-handdruk-gold {
    animation: huisBroochGold 0.9s ease-out 1 !important;
    box-shadow: 0 0 22px 6px rgba(212,145,78,.55) !important;
}
@keyframes huisBroochGold {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}
.bere-device-ceremony {
    position: fixed; inset: 0; z-index: 100050; display: none;
    align-items: center; justify-content: center;
    background: rgba(4,8,14,.82); backdrop-filter: blur(6px);
}
.bere-device-card {
    background: #1a2230; border: 1px solid rgba(212,145,78,.35);
    border-radius: 14px; padding: 18px; max-width: 320px; color: #f2f6fa;
    text-align: center;
}
.bere-device-qr img { border-radius: 8px; margin: 10px 0; }
.huis-leeg { font-size: .78rem; color: #9aa8b5; }
.huis-waaier-name { color: #e8edf5; font-size: .72rem; }
.huis-waaier-sub { color: #9aa8b5; font-size: .62rem; }

/* ── gesprekCanvas — één gesprekstaal (Berichten / AI / Geheugen) ── */
.gesprek-canvas-host {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 12px;
    gap: 10px;
}
.gesprek-canvas-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.gesprek-groep {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}
.gesprek-groep.is-mine {
    align-self: flex-end;
    align-items: flex-end;
    max-width: 72%;
}
.gesprek-groep.is-other {
    align-self: flex-start;
    align-items: flex-start;
    max-width: 82%;
}
.gesprek-label {
    font-size: .68rem;
    color: #9aa8b5;
    padding: 0 4px 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.gesprek-brooch { display: inline-flex; line-height: 0; }
.gesprek-brooch-svg { filter: drop-shadow(0 0 4px rgba(31,230,168,.45)); }
.gesprek-naam { color: #c5d0dc; font-weight: 600; letter-spacing: .02em; }
.gesprek-beurten {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}
.gesprek-beurt {
    border-radius: 14px;
    padding: 10px 12px;
    font-size: .88rem;
    line-height: 1.45;
    word-break: break-word;
}
.gesprek-beurt.uit-stijl {
    background: linear-gradient(135deg, rgba(26,58,42,.95), rgba(34,48,38,.92));
    border: 1px solid rgba(212,175,76,.35);
    color: #e8f0ea;
}
.gesprek-beurt.in-stijl {
    background: #121820;
    border: 1px solid rgba(233,180,76,.22);
    color: #e8edf5;
}
.gesprek-groep.is-lady .gesprek-beurt.in-stijl {
    border-color: rgba(31,230,168,.28);
}
.gesprek-beurt-body { white-space: pre-wrap; }
.gesprek-beurt.is-blocked-send { opacity: .72; border-style: dashed; }
.gesprek-tr-hint {
    font-size: .68rem;
    color: #9aa8b5;
    margin-top: 6px;
    font-style: italic;
}
.gesprek-tijd {
    font-size: .62rem;
    color: #6b7a8a;
    padding: 2px 4px 0;
    opacity: .85;
}
.gesprek-status.is-sent { color: #E9B44C; }
.gesprek-status.is-pending { color: #9aa8b5; }
.gesprek-status.is-failed,
.gesprek-retry {
    color: #f87171;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gesprek-status.is-blocked { color: #E9B44C; }
.gesprek-status.is-wacht { color: #E9B44C; }
.gesprek-status.is-niet-bezorgd { color: #6b7a8a; }
.gesprek-blocked-hint.is-wacht { border-style: solid; color: #E9B44C; }
.gesprek-blocked-hint.is-stil { border: none; padding: 0; color: #6b7a8a; font-size: .58rem; }
.gesprek-verbind-acties { display: inline-flex; gap: 8px; margin-left: 6px; vertical-align: middle; }
.gesprek-verbind-ja,
.gesprek-verbind-nee {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(233,180,76,0.55);
    background: #1B2230;
    color: #E9B44C;
    font-size: .85rem;
    cursor: pointer;
    pointer-events: auto;
    line-height: 1;
    padding: 0;
}
.gesprek-verbind-nee { color: #9aa8b8; border-color: rgba(255,255,255,0.15); }
.gesprek-blocked-hint {
    display: block;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px dashed rgba(233,180,76,0.55);
    color: #E9B44C;
    font-size: .62rem;
    line-height: 1.35;
}
.gesprek-beurt.is-blocked-send {
    border-color: rgba(233,180,76,0.55) !important;
    box-shadow: 0 0 0 1px rgba(233,180,76,0.25);
}

.huis-verzet-panel {
    position: fixed;
    left: 50%;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 10020;
    width: min(92vw, 360px);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(233,180,76,0.4);
    color: #e2e8f0;
    pointer-events: auto;
}
.huis-verzet-kop { font-weight: 700; margin-bottom: 8px; font-size: .9rem; }
.huis-verzet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.huis-verzet-chips button,
.huis-verzet-acties button {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #1B2230;
    color: #e2e8f0;
    font-size: .78rem;
    cursor: pointer;
    pointer-events: auto;
}
.huis-verzet-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #0f172a;
    color: #e2e8f0;
    font-size: .82rem;
}
.huis-verzet-acties { display: flex; gap: 8px; }
.huis-verzet-acties button[data-verzet-go] { background: #22c55e; color: #052e16; font-weight: 700; }
.gesprek-lady-body .bere-weather-rich-card,
.gesprek-lady-body .bere-financial-rich-card,
.gesprek-lady-body .bere-news-rich-card {
    margin: 0;
    max-width: 100%;
}
.gesprek-lady-body.bere-rich-markdown h2,
.gesprek-lady-body .bere-rich-markdown h2 {
    color: #E9B44C;
    font-size: .95rem;
    margin: 0 0 6px;
}
.gesprek-lady-body.bere-rich-markdown h3,
.gesprek-lady-body .bere-rich-markdown h3 {
    color: #d4af4e;
    font-size: .82rem;
    margin: 8px 0 4px;
}
.huis-geheugen-gesprek {
    min-height: 120px;
    max-height: 42vh;
    margin-bottom: 8px;
}
.gesprek-canvas-host,.huis-ai-feed.gesprek-canvas-host,.huis-moment-feed.gesprek-canvas-host{scrollbar-width:thin;scrollbar-color:rgba(14,20,28,.95) transparent}

/* ── kamer-podium — één begrensd 3D-gebied per vol-kamer (Berichten eerst) ── */
.kamer-podium {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    transform-style: preserve-3d;
    isolation: isolate;
    position: relative;
    z-index: 4;
}

.kamer-podium-kop,
.kamer-podium-ring,
.kamer-podium-composer {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transform: translateZ(0);
    backface-visibility: hidden;
    position: relative;
    z-index: 40;
}

.kamer-podium-diepte.huis-scroll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    transform-style: preserve-3d;
    overscroll-behavior: contain;
    perspective: 980px;
    perspective-origin: 50% 86%;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 20, 28, 0.95) transparent;
}

.kamer-podium-diepte.huis-scroll::-webkit-scrollbar {
    width: 6px;
}

.kamer-podium-diepte.huis-scroll::-webkit-scrollbar-thumb {
    background: rgba(14, 20, 28, 0.95);
    border-radius: 3px;
}

.kamer-podium-diepte.huis-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.kamer-podium-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: min(100%, 100%);
    transform-style: preserve-3d;
}

.kamer-podium .gesprek-canvas-host {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    max-width: 100%;
}

.kamer-podium .gesprek-canvas-inner {
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 6px 28vh 6px;
    width: 100%;
    box-sizing: border-box;
}

.kamer-podium .gesprek-groep {
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: 50% 100%;
}

.kamer-podium .gesprek-groep.podium-tier-front {
    --podium-y: 0px;
    --podium-z: 0px;
    --podium-scale: 1;
    --podium-rx: 0deg;
    opacity: 1;
    z-index: 30;
    max-width: min(92%, 520px);
}

.kamer-podium .gesprek-groep.is-mine.podium-tier-front {
    align-self: flex-end;
}

.kamer-podium .gesprek-groep.is-other.podium-tier-front {
    align-self: flex-start;
}

.kamer-podium .gesprek-groep.podium-tier-deep {
    z-index: 10;
    cursor: pointer;
}

.kamer-podium .gesprek-groep.podium-tier-focus {
    --podium-y: 0px !important;
    --podium-z: 12px !important;
    --podium-scale: 1 !important;
    --podium-rx: 0deg !important;
    opacity: 1 !important;
    z-index: 50 !important;
    max-width: min(94%, 540px) !important;
}

.kamer-podium .gesprek-groep.podium-land-in {
    animation: podiumLandIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes podiumLandIn {
    from {
        opacity: 0.35;
        transform: translate3d(0, 18px, -180px) scale(0.72) rotateX(14deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
    }
}

.kamer-podium.is-flat .gesprek-groep,
.kamer-podium.is-flat .gesprek-groep.podium-tier-deep,
.kamer-podium.is-flat .gesprek-groep.podium-tier-focus {
    --podium-y: 0px !important;
    --podium-z: 0px !important;
    --podium-scale: 1 !important;
    --podium-rx: 0deg !important;
    transform: none !important;
    opacity: 1 !important;
    max-width: 100% !important;
    cursor: default;
}

.kamer-podium-composer {
    padding: 0 0 env(safe-area-inset-bottom, 0);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.72), rgba(8, 10, 14, 0.96));
}

.kamer-podium-composer .huis-composer-dock,
.kamer-podium-composer #bereComposer,
.kamer-podium-composer .input-area {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 480px) {
    .kamer-podium .gesprek-groep.podium-tier-front {
        max-width: 96%;
    }
    .kamer-podium .gesprek-beurt {
        font-size: 0.92rem;
        line-height: 1.48;
    }
}

@media (min-width: 900px) {
    .kamer-podium .gesprek-groep.podium-tier-front {
        max-width: min(68%, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kamer-podium .gesprek-groep {
        transition: none;
    }
    .kamer-podium .gesprek-groep.podium-land-in {
        animation: none;
    }
}

/* Podium vervangt zwevende feed-parallax voor Berichten */
.kamer-podium[data-kamer="berichten"] ~ .huis-contact-waaier,
.kamer-podium[data-kamer="berichten"] .huis-contact-waaier {
    flex: 0 0 auto;
}

.kamer-podium[data-kamer="berichten"] .kamer-podium-diepte .huis-toneel-feed > .huis-moment-item {
    transform: none;
}

/* ── Podium zichtbaar — phone / tablet / desktop ── */
.huis-berichten-vol-slot > .huis-contact-waaier,
.huis-berichten-vol-slot > #chatWindow,
.huis-berichten-vol-slot #messages,
.huis-legacy-chat-hidden {
    display: none !important;
}

.kamer-podium .gesprek-groep.is-mine {
    align-self: flex-end;
    align-items: flex-end;
}

.kamer-podium .gesprek-groep.is-other {
    align-self: flex-start;
    align-items: flex-start;
}

.kamer-podium-kop.huis-gesprekskop {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 10px 8px 8px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 45;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.96), rgba(8, 10, 14, 0.82));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.huis-gesprekskop .huis-gesprek-naam {
    font-weight: 600;
    font-size: 1rem;
    color: #e8edf5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.huis-gesprekskop .huis-gesprek-lang {
    font-size: 0.85rem;
    opacity: 0.85;
}

.huis-gesprekskop .huis-gesprek-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.huis-gesprekskop .huis-gesprek-btn {
    background: #1B2230;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #e8edf5;
    line-height: 1;
}

.huis-gesprekskop .huis-gesprek-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.huis-bericht-stapel.is-unseen {
    box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.45), 0 0 14px rgba(233, 180, 76, 0.22);
}

.huis-stapel-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 6px;
    border-radius: 50%;
    background: #1B2230;
    border: 1px solid rgba(233, 180, 76, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    color: #E9B44C;
    vertical-align: middle;
}

.kamer-podium-ring.huis-moment-ring {
    display: flex !important;
    flex: 0 0 auto;
    min-height: 52px;
    max-height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.kamer-podium-ring.huis-moment-ring::-webkit-scrollbar {
    display: none;
}

.kamer-podium-ring .huis-contact-waaier {
    display: none !important;
}

.kamer-podium .gesprek-groep.podium-tier-front {
    opacity: 1 !important;
    visibility: visible !important;
}

.kamer-podium .gesprek-beurt {
    background: #141922 !important;
    border: 1px solid rgba(233, 180, 76, 0.32) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
    color: #f2f6fa !important;
}

.kamer-podium .gesprek-groep.is-mine .gesprek-beurt {
    background: #1B2230 !important;
    border-color: rgba(233, 180, 76, 0.48) !important;
}

.kamer-podium .gesprek-canvas-inner {
    padding-bottom: 18vh;
    padding-top: 4vh;
}

@media (max-width: 480px) {
    .kamer-podium .gesprek-groep.podium-tier-front {
        max-width: 94% !important;
    }
    .kamer-podium-diepte.huis-scroll {
        perspective: 760px;
        perspective-origin: 50% 88%;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    .kamer-podium-diepte.huis-scroll {
        perspective: 860px;
        perspective-origin: 48% 85%;
    }
    .kamer-podium .gesprek-groep.podium-tier-front {
        max-width: 86% !important;
    }
}

@media (min-width: 901px) {
    .screen-home.huis-active[data-toneel="kamer"] .huis-berichten-vol-slot {
        height: 100%;
        max-height: 100%;
    }
    .kamer-podium-diepte.huis-scroll {
        min-height: 200px;
    }
}
