/* WELOOMA 0.6.x UI v13: single-screen, original design, no external assets */
:root{--wf-top:54px;--wf-bottom:79px;--wf-ink:#173d35;--wf-surface:rgba(250,251,247,.98)}
html,body{width:100%!important;height:100%!important;height:100dvh!important;margin:0!important;padding:0!important;overflow:hidden!important}
*,*:before,*:after{box-sizing:border-box}
body{display:flex!important;flex-direction:column!important;font:14px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif!important;background:#223c37!important}
.wf-header{height:var(--wf-top);min-height:var(--wf-top);display:flex;align-items:center;gap:18px;padding:0 18px;background:#172f2b;color:#ecf4ef;z-index:60;border-bottom:1px solid #658779}
.wf-brand{font-size:23px;letter-spacing:.06em;font-weight:850;color:#fff!important;text-decoration:none!important}.wf-brand-dot{color:#debb78}
.wf-world-title{font-size:15px;color:#eff4ec}.wf-world-title small{margin-left:9px;font-size:11px;color:#bacfc6}
.wf-headlinks{margin-left:auto;display:flex;align-items:center;gap:14px;white-space:nowrap}.wf-headlinks a{color:#e6f0e9!important;text-decoration:none;font-size:13px}.wf-headlinks button{border:0;border-radius:8px;background:#d7e9df;padding:8px 12px;font-weight:700;cursor:pointer}
.wf-world{position:relative!important;width:100%!important;height:auto!important;max-width:none!important;flex:1 1 auto!important;min-height:0!important;display:block!important;overflow:hidden!important;padding:0!important;margin:0!important;background:#a3b1a9}
.wf-world>.viewer{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
.wf-world #stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#a2b7ae!important}
.wf-world #stage canvas{display:block}
.wf-rail{position:absolute;top:12px;bottom:calc(var(--wf-bottom) + 15px);z-index:18;display:flex;flex-direction:column;gap:8px;pointer-events:none;max-width:min(320px,calc(100% - 80px))}
.wf-left{left:10px;align-items:flex-start}.wf-right{right:10px;align-items:flex-end}
.wf-drawer{position:relative;pointer-events:auto;flex:0 1 auto;max-height:100%;filter:drop-shadow(0 2px 9px #132e2b45)}
.wf-drawer summary{list-style:none;cursor:pointer;display:flex;gap:10px;align-items:center;padding:8px 12px;border-radius:11px;background:#193b34ec;color:white;border:1px solid #93aea0;min-height:43px;font-weight:650;font-size:13px}
.wf-drawer summary::-webkit-details-marker{display:none}.wf-drawer summary>span:first-child{display:grid;place-items:center;width:23px;font-size:21px;color:#e8ce91}.wf-drawer[open] summary{border-radius:11px 11px 0 0;background:#356255}
.wf-drawer-content{background:var(--wf-surface);border:1px solid #8aab9c;border-radius:0 11px 11px 11px;padding:11px;overflow-y:auto;overscroll-behavior:contain;max-height:min(72dvh,600px);width:min(304px,calc(100vw - 85px));box-shadow:0 8px 25px #10272055}
.wf-right .wf-drawer-content{border-radius:11px 0 11px 11px}
.wf-drawer .panel,.wf-drawer section.panel{display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.wf-drawer .panel h2{font-size:15px!important;margin:0 0 9px!important}.wf-drawer .panel label{display:block;font-size:12px!important;margin-top:9px!important}.wf-drawer .panel select{width:100%;max-width:100%;min-height:35px!important;font-size:13px!important}.wf-drawer .panel input[type=range]{width:100%}.wf-drawer .panel button{font-size:12px!important;padding:6px 10px!important;min-height:32px!important}.wf-drawer .panel p{font-size:12px!important;color:#4b6156!important;margin:8px 0!important;line-height:1.35}
.wf-status{position:absolute!important;bottom:calc(var(--wf-bottom) + 8px);left:50%;transform:translateX(-50%);z-index:16;width:max-content;max-width:calc(100% - 190px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:22px;background:#1b3630d9;color:white!important;font-size:11px!important;padding:5px 14px!important;pointer-events:none}
.wf-bottom-bar{position:absolute;z-index:30;bottom:0;left:0;right:0;min-height:var(--wf-bottom);height:var(--wf-bottom);background:linear-gradient(#1a3e35f5,#132f29);border-top:2px solid #8cad96;box-shadow:0 -5px 25px #10292477;display:flex;align-items:center;gap:13px;padding:8px 15px;color:white}
.wf-action-group,.wf-dock-shortcuts{display:flex;align-items:center;gap:4px;flex:0 0 auto}.wf-group-caption{display:none}
.wf-bottom-bar button{cursor:pointer;border:1px solid #71968a;background:#e4eee7;color:#214338;border-radius:8px;min-height:39px!important;padding:7px 10px;font-weight:750;line-height:1.1}
.wf-bottom-bar button:hover{background:#c3dfcd}.wf-bottom-bar button:focus-visible,.wf-drawer summary:focus-visible{outline:3px solid #ffcf77;outline-offset:2px}
.wf-action-group .wf-action{width:40px;min-width:40px;height:42px!important;min-height:42px!important;padding:0!important;font-size:0!important;overflow:hidden}
.wf-action:before{content:attr(data-icon);display:block;font-family:system-ui,sans-serif;font-size:23px;line-height:1}.wf-action[data-active=true]{background:#9ccfb3!important}
.wf-composer{flex:1;min-width:175px;max-width:800px;display:flex;align-items:center;gap:9px}.wf-composer label{font-size:12px;font-weight:750;white-space:nowrap;color:#edf6ed}
#wfChatForm{display:flex;align-items:center;flex:1;min-width:0;gap:6px;margin:0!important}#wfChatInput{flex:1;min-width:0;width:100%;min-height:39px!important;border:1px solid #a9c6b7;border-radius:7px;padding:7px 10px!important;font:13px system-ui,sans-serif}#wfChatSend{background:#89c4a3!important;color:#143e2d!important}
.wf-dock-shortcuts button{min-width:40px;font-size:17px!important}.wf-dock-shortcuts span{font-size:12px}
.wf-overlay-layer{position:absolute;z-index:27;bottom:calc(var(--wf-bottom) + 8px);left:0;right:0;display:flex;justify-content:center;pointer-events:none}
.wf-popup{pointer-events:auto;position:relative!important;display:block;width:min(880px,calc(100vw - 165px));height:min(305px,calc(100dvh - var(--wf-top) - var(--wf-bottom) - 28px));margin:0!important;padding:12px 15px!important;border:1px solid #688c7d!important;border-radius:14px!important;background:#fafbf7f9!important;box-shadow:0 -6px 27px #192d2c77;overflow:hidden}
[hidden],.wf-popup[hidden]{display:none!important}
.wf-popup-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #d5e2d9;padding-bottom:7px;margin-bottom:6px}.wf-popup-heading h2{font-size:15px!important;margin:0!important;color:#234639}.wf-popup-heading small{font-size:11px;color:#506a5e}
.wf-popup-buttons{display:flex;gap:5px}.wf-popup-heading button{font-size:12px!important;border:1px solid #adc4b7;border-radius:8px;min-height:30px;padding:4px 9px;background:#e1eee4;cursor:pointer}
#wfChatIdentity,#wfAiIdentity{margin:3px 0!important;font-size:11px;color:#4e6b5e}
#wfChatMessages,#wfAiMessages{height:calc(100% - 94px)!important;min-height:10px!important;max-height:none!important;overflow-y:auto;overscroll-behavior:contain;padding:7px 9px!important;background:#f3f8f3;border:1px solid #d0ded3;border-radius:8px;font-size:13px}
#wfChatMessages p,#wfAiMessages p{margin:5px 0;overflow-wrap:anywhere}.wf-popup-hint{font-size:11px;color:#526b5d;margin:4px 0!important}
.wf-ai-popup{height:min(355px,calc(100dvh - var(--wf-top) - var(--wf-bottom) - 28px))}.wf-ai-tag{font-size:10px;font-weight:400}.wf-ai-popup #wfAiMessages{height:calc(100% - 128px)!important}
#wfAiForm{display:flex;gap:7px;margin:8px 0 2px!important;height:36px}#wfAiInput{min-width:0;flex:1;border:1px solid #abc3b7;border-radius:8px;padding:6px 10px;font:13px system-ui}#wfAiSend{background:#305e4c;color:white;border:0;border-radius:8px;padding:6px 12px}#wfAiNotice{font-size:11px!important;margin:2px 0!important}
#wfAuthDialog{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow-y:auto;padding:20px 24px;border:1px solid #7ca38d;border-radius:15px;background:#f8faf6;color:#1b3d30;box-shadow:0 15px 50px #0d2222aa}
#wfAuthDialog::backdrop{background:#102821ac}.wf-auth-head{display:flex;align-items:center;justify-content:space-between}.wf-auth-head h2{font-size:20px;margin:0}.wf-auth-head button{background:none;border:0;font-size:20px;cursor:pointer}
#wfAuthForm p{font-size:13px}#wfAuthForm label{display:block;margin:12px 0 5px;font-weight:750;font-size:12px}#wfAuthForm input{display:block;width:100%;min-height:40px;border:1px solid #9eb7a9;background:white;border-radius:8px;padding:8px;font:inherit}#wfAuthForm .wf-auth-note{font-size:11px;color:#637267}#wfAuthStatus{min-height:1.3em;color:#984335}.wf-auth-actions{display:flex;gap:9px}.wf-auth-actions button{flex:1;border:1px solid #7c9c8c;border-radius:8px;padding:9px;background:#dfeee3;font-weight:750;cursor:pointer}#wfAuthLogin{background:#2f654d;color:white}
@media(max-width:1090px){.wf-world-title small{display:none}.wf-bottom-bar{gap:6px;padding:6px 9px}.wf-action-group .wf-action{width:35px;min-width:35px}.wf-composer label{font-size:11px}.wf-dock-shortcuts button{min-width:34px;padding:6px}.wf-popup{width:calc(100vw - 116px)}}
@media(max-width:780px){:root{--wf-top:49px;--wf-bottom:110px}.wf-header{gap:8px;padding:0 9px}.wf-world-title{display:none}.wf-brand{font-size:18px}.wf-headlinks{gap:7px}.wf-headlinks a{font-size:11px}.wf-bottom-bar{flex-wrap:wrap;align-content:center}.wf-action-group{flex:1 0 100%;justify-content:flex-start}.wf-composer{flex:1 1 auto}.wf-composer label{max-width:85px;white-space:normal}.wf-dock-shortcuts{margin-left:auto}.wf-dock-shortcuts span{display:none}.wf-drawer summary{min-height:36px;font-size:12px;padding:5px 8px}.wf-drawer-title{display:none}.wf-drawer-content{width:min(290px,calc(100vw - 70px))}.wf-popup{width:calc(100vw - 20px);height:min(260px,calc(100dvh - var(--wf-top) - var(--wf-bottom) - 26px))}}
@media(max-height:540px){:root{--wf-top:44px;--wf-bottom:64px}.wf-world-title{display:none}.wf-status{display:none}.wf-drawer-content{max-height:calc(100dvh - 130px)}.wf-popup{height:calc(100dvh - 126px)}}
/* Standaard vijf zichtbare chatregels; echte gebruikersvoorkeur voor aantal regels volgt in profielinstellingen. */
.wf-chat-popup{height:min(218px,calc(100dvh - var(--wf-top) - var(--wf-bottom) - 28px))}

/* v14: local public message bubble positioned from animated avatar Head bone. */
#wfPublicSpeechBubble.wf-public-speech{position:absolute;z-index:25;transform:translate(-50%,-100%);
 max-width:min(310px,calc(100vw - 55px));min-width:65px;padding:10px 15px;
 border:2px solid #244737;border-radius:17px;background:#fffef7;color:#142c25!important;
 box-shadow:0 5px 18px #122a2590;font-size:15px;line-height:1.35;text-align:center;
 overflow-wrap:anywhere;white-space:pre-wrap;pointer-events:none}
#wfPublicSpeechBubble.wf-public-speech::after{content:'';position:absolute;left:calc(50% - 7px);bottom:-9px;
 width:14px;height:14px;background:#fffef7;border-right:2px solid #244737;
 border-bottom:2px solid #244737;transform:rotate(45deg)}
#wfPublicSpeechBubble[hidden]{display:none!important}
/* status from the 3D scene must always be legible on variable scenery */
#status.wf-status{background:#132d27f2!important;color:#fff!important;opacity:1!important;
 text-shadow:0 1px 2px #07150e!important;font-weight:700!important;
 border:1px solid #a1d2b2!important;box-shadow:0 2px 8px #061d1588!important}

/* v17: non-native login overlay avoids Bitwarden inline autofill + native dialog conflicts. */
#wfAuthBackdrop{position:fixed;inset:0;z-index:99;background:#102821ac}
#wfAuthBackdrop[hidden],#wfAuthDialog[hidden]{display:none!important}
#wfAuthDialog{display:block;box-sizing:border-box;overscroll-behavior:contain}
body.wf-auth-modal-active{overflow:hidden}

/* WELOOMA_ADMIN_V25 noninteractive signed-in label */
.wf-signed-label{display:inline-flex;align-items:center;padding:6px 10px;font:600 13px system-ui,Arial;color:#e9f4eb;white-space:nowrap;}
.wf-signed-label[hidden],#wfAccountButton[hidden],#wfAdminLink[hidden]{display:none!important;}
