:root{font:16px/1.45 'Trebuchet MS',Arial,sans-serif;color:#153856;background:#dceefa}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 0,#f3fbff,#d8ecfc 48%,#bedcf4)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.top{height:68px;background:linear-gradient(#50abe7,#0874bd);box-shadow:0 3px 12px #245f983d;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1200px)/2))}.brand{font-size:1.4rem;font-weight:bold}.brandmark{color:#ffda57;font-size:1.7rem}.brand small{font-size:.82rem;font-weight:normal;margin-left:12px;color:#e3f5ff}.box{background:white;border:1px solid #90bce0;border-radius:14px;box-shadow:0 14px 34px #2a689025;overflow:hidden}.auth{max-width:760px;margin:7vh auto;display:grid;grid-template-columns:42% 1fr}.auth-art{background:linear-gradient(150deg,#0873bc,#69c2f1);color:#ffe063;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:7rem}.auth-art span{font-size:1.6rem;color:white;font-weight:bold}.auth-main{padding:36px}.auth-main h1{margin:0 0 4px}label{display:block;font-weight:bold;margin:14px 0 5px}input,select,textarea{display:block;width:100%;border:1px solid #95bad7;border-radius:8px;background:#fff;padding:10px;color:#163856;margin-top:5px}input:focus,textarea:focus,select:focus{outline:2px solid #4eb2e9}.primary{border:1px solid #0770b5;background:#087fc8;color:white;border-radius:8px;padding:9px 13px;font-weight:bold}.ghost,.compose-actions button:not(.primary),.dialog-actions button:not(.primary),#editProfile{border:1px solid #91bfe0;background:#f5fbff;color:#166ca5;border-radius:8px;padding:8px 11px}.top .ghost{color:white;background:#ffffff24;border-color:#ffffff88}.auth-main .primary{margin-top:18px;width:100%}.link{border:0;color:#0874bb;background:none;text-decoration:underline;padding:14px 0}.error{color:#b33235;min-height:1.5em}.workspace{max-width:1200px;margin:24px auto;padding:0 14px;display:grid;grid-template-columns:345px 1fr;gap:14px;height:calc(100vh - 106px);min-height:560px}.sidebar{overflow:auto}.profile{padding:20px 15px;background:#ecf8ff;display:flex;align-items:center;gap:12px;border-bottom:1px solid #cde3f1}.portrait{height:48px;width:48px;background:#fff5cc;border-radius:12px;display:grid;place-items:center;font-size:1.8rem}.profile-text{flex:1;min-width:0;overflow-wrap:anywhere}.sub{font-size:.87rem;color:#58758c}.tools{padding:15px}.tools .primary{width:100%}.sidebar h2{font-size:1rem;color:#2573ab;margin:12px 15px 8px}.contact{display:flex;align-items:center;gap:9px;border:0;background:transparent;width:100%;padding:10px 16px;text-align:left;color:#193e5f}.contact:hover,.contact.active{background:#e4f4ff}.dot{width:11px;height:11px;flex:none;border-radius:50%;background:#aaa}.dot.online{background:#38b257}.dot.busy{background:#e38231}.dot.away{background:#e8b037}.name{flex:1;min-width:0;overflow-wrap:anywhere}.request{padding:12px 15px;background:#fff7da}.request button{margin:5px 0;border:1px solid #167bb8;background:#fff;border-radius:7px;padding:4px 10px}.hint{padding:0 15px}.chat{display:flex;flex-direction:column;min-width:0}.chat-header{min-height:75px;padding:12px 20px;background:linear-gradient(#f7fcff,#e6f5ff);border-bottom:1px solid #cee2f0;display:flex;align-items:center;justify-content:space-between}.chat-header strong{font-size:1.25rem}.messages{flex:1;overflow:auto;padding:22px;background:linear-gradient(white,#fafcff)}.placeholder{text-align:center;color:#86a9bf;margin-top:15vh;font-size:3rem}.placeholder p{font-size:1rem}.message{max-width:76%;margin:0 0 14px}.message.mine{margin-left:auto}.bubble{background:#e9f4ff;border-radius:14px;padding:10px 13px;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:#d9f2df}.meta{font-size:.77rem;color:#73889a;margin:4px}.mine .meta{text-align:right}.composer{border-top:1px solid #cddfe9;padding:15px;background:#f6fbff;position:relative}.composer textarea{margin:0;height:86px;resize:vertical}.compose-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.compose-actions .primary{margin-left:auto}.emoticons{position:absolute;bottom:135px;left:15px;background:white;border:1px solid #9dc9e4;box-shadow:0 7px 25px #234b7250;padding:9px;border-radius:10px;display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.emoticons[hidden]{display:none}.emoticons button{background:#f6fbff;border:0;border-radius:5px;padding:5px;font-size:1.35rem}dialog{border:1px solid #85b5d5;border-radius:12px;box-shadow:0 20px 60px #14365477;padding:22px;width:min(420px,95vw)}dialog::backdrop{background:#123a5888}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}#toast{position:fixed;right:20px;bottom:20px;background:#153e61;color:white;padding:12px 18px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}[hidden]{display:none!important}@media(max-width:740px){.top{padding:0 14px}.brand{font-size:1.1rem}.brand small{display:none}.auth{display:block;margin:12px}.auth-art{display:none}.workspace{display:flex;flex-direction:column;height:auto;margin:10px auto;padding:0 8px}.sidebar{max-height:235px}.chat{height:calc(100dvh - 335px);min-height:370px}.compose-actions .sub{display:none}.messages{padding:12px}.message{max-width:90%}}
.success-notice{background:#e4f6e8;color:#165b32;border:1px solid #81c895;border-radius:8px;padding:12px;margin:14px 0;font-weight:bold}.success-notice[hidden]{display:none}

/* Losse gespreksvensters */
.workspace{grid-template-columns:315px minmax(0,1fr)}.desktop{min-width:0;min-height:0;position:relative;border:1px solid #a6cae4;border-radius:14px;background:linear-gradient(135deg,#ecf8ff,#cfebfc);overflow:auto;padding:16px}.desktop-hint{text-align:center;color:#5798c4;padding:15vh 10px;font-size:3rem}.desktop-hint p{font-size:1rem}.chat-windows{display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:14px}.chat{height:min(570px,calc(100vh - 155px));min-height:400px;width:min(430px,100%);flex:none;box-shadow:0 6px 20px #2a689025}.chat.focused{border-color:#1c85ca;box-shadow:0 12px 28px #2a689045}.chat-heading{min-width:0;flex:1}.chat-heading strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window-close{border:1px solid #91bfe0;background:#f5fbff;border-radius:7px;color:#166ca5;font-size:1.5rem;line-height:1;padding:3px 9px;margin-left:8px}.window-close:hover{background:#ffe7e7;color:#a52828}.chat-header .buzz{white-space:nowrap}.chat .messages{min-height:0}.chat .composer textarea{height:68px}.chat .compose-actions .sub{display:none}.chat .emoticons{bottom:120px;max-width:calc(100% - 20px)}@media(max-width:740px){.workspace{display:flex}.desktop{min-height:390px;padding:8px;overflow:visible}.desktop-hint{padding:60px 10px}.chat-windows{display:block}.chat{width:100%;height:calc(100dvh - 335px);min-height:370px;margin-bottom:10px}.chat .compose-actions{gap:5px}.chat .compose-actions button{font-size:.83rem}.emoticons{grid-template-columns:repeat(6,1fr)}}

/* Eén zichtbaar gesprek, met knoppen voor andere open gesprekken */
.desktop{display:flex;flex-direction:column;overflow:hidden}.chat-windows{display:block;flex:1;min-height:0}.chat-windows .chat{width:100%;height:100%;min-height:0}.window-bar{display:flex;gap:8px;overflow-x:auto;padding-top:12px;min-height:52px}.window-bar:empty{display:none}.window-tab{flex:none;border:1px solid #83badc;border-radius:8px;background:#fff;padding:8px 12px;color:#153856;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window-tab.active{background:#087fc8;color:#fff}.unread-badge{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:12px;background:#d92f36;color:white;font-weight:bold;font-size:.8rem;margin-left:8px}.contact .unread-badge{margin-left:auto}@media(max-width:740px){.desktop{height:calc(100dvh - 330px);min-height:390px;overflow:hidden}.chat-windows .chat{height:100%;min-height:0;margin:0}.window-bar{min-height:48px}.window-tab{max-width:125px}}

/* Windows Live Messenger: versleepbare vensters op een eigen bureaublad */
.desktop{position:relative}.chat-windows{position:relative;flex:1;min-height:0;overflow:hidden}.chat-windows .chat{position:absolute;width:min(440px,calc(100% - 12px));height:min(535px,calc(100% - 12px));min-height:310px;box-shadow:0 12px 30px #21537855}.chat-header{cursor:move;user-select:none}.chat-header button{cursor:pointer}.chat-windows .chat.focused{box-shadow:0 18px 38px #21537877}.window-bar{z-index:20;border-top:1px solid #a9cde7}.desktop-hint{position:absolute;inset:10% 0 auto;pointer-events:none}@media(max-width:740px){.chat-windows .chat{left:0!important;top:0!important;width:100%;height:100%;min-height:0}.chat-header{cursor:auto}}

.contact-avatar{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;background:#eaf6ff;overflow:hidden;flex:none;font-size:1.2rem}.contact-avatar img{width:100%;height:100%;object-fit:cover}.portrait .contact-avatar{width:48px;height:48px;font-size:1.8rem}.sound-setting{display:flex;align-items:center;gap:9px}.sound-setting input{width:auto;margin:0}
