:root{--bg:#090d15;--panel:#131a27;--panel2:#1b2434;--line:#2c374b;--text:#f4f7fb;--muted:#98a6bd;--accent:#ef476f;--accent2:#8f7cff}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}button,input,textarea,select{font:inherit}.topbar{height:72px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#0d131f}.sub{display:block;color:var(--muted);font-size:.8rem;margin-top:3px}.top-actions{display:flex;align-items:center;gap:10px;color:var(--muted)}.layout{display:grid;grid-template-columns:300px minmax(360px,1fr) 360px;gap:16px;padding:16px;min-height:calc(100vh - 72px)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}.panel-title{height:56px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;font-weight:700;border-bottom:1px solid var(--line)}.pill{background:var(--accent);padding:3px 9px;border-radius:999px;font-size:.75rem}.search{margin:12px;width:calc(100% - 24px);background:#0d111a;border:1px solid var(--line);border-radius:10px;padding:11px;color:white}.users{height:calc(100vh - 188px);overflow:auto;padding:0 8px 12px}.user-card{padding:12px;border-radius:12px;margin-bottom:7px;background:var(--panel2);border:1px solid transparent}.user-card:hover{border-color:#47516a}.user-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.user-name{font-weight:750}.live{color:#ff557b;font-size:.72rem;font-weight:800}.meta,.about,.field-hint,.notice{color:var(--muted);font-size:.85rem}.about{margin:6px 0}.user-actions{display:flex;gap:7px;margin-top:9px;flex-wrap:wrap}.messages{height:calc(100vh - 216px);padding:18px;overflow:auto}.message{margin-bottom:12px;max-width:86%}.message.private{border-left:3px solid var(--accent2);padding-left:9px}.who{font-size:.78rem;color:#aab4c7}.bubble{margin-top:4px;background:var(--panel2);padding:10px 12px;border-radius:4px 14px 14px 14px;white-space:pre-wrap;overflow-wrap:anywhere}.message-actions{text-align:right}.text-button{background:transparent;border:0;color:#8998b1;font-size:.75rem;cursor:pointer}.composer{height:72px;padding:12px;border-top:1px solid var(--line);display:flex;gap:9px}.composer input{flex:1;background:#0d111a;border:1px solid var(--line);border-radius:10px;padding:0 14px;color:white}.primary,.secondary,.danger,.cam-button,.danger-outline,.mini,.link-button,.icon-button{border:0;border-radius:9px;padding:9px 13px;cursor:pointer}.primary{background:linear-gradient(135deg,var(--accent),#ff7355);color:#fff;font-weight:700}.secondary,.mini{background:#2a3344;color:#fff}.danger{background:#c72c52;color:#fff}.cam-button{background:#243b31;color:#71e6a8}.danger-outline{background:transparent;color:#ff718f;border:1px solid #8f334a}.link-button,.icon-button{background:transparent;color:#b6aaff}.full{width:100%}.video-shell{position:relative;background:#05070b;aspect-ratio:4/3;margin:16px;border-radius:12px;overflow:hidden}.video-shell video{width:100%;height:100%;object-fit:contain}.video-placeholder{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:var(--muted);padding:25px}.watching-info,.notice{margin:16px}.info-panel>button{margin:0 16px 10px;width:calc(100% - 32px)}.notice{border-top:1px solid var(--line);padding-top:16px}.overlay{position:fixed;inset:0;background:#05070bea;display:flex;align-items:center;justify-content:center;z-index:20;padding:16px;overflow:auto}.modal{width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 24px 80px #0009}.modal.narrow{width:min(430px,100%)}.modal.wide{width:min(760px,100%)}.modal-header{display:flex;align-items:center;justify-content:space-between}.modal h1,.modal h2{margin:8px 0 16px}.modal label{display:grid;gap:6px;margin:12px 0;color:#c5ccda}.modal input,.modal textarea,.modal select{width:100%;background:#0d111a;color:#fff;border:1px solid var(--line);border-radius:9px;padding:11px}.grid2{display:grid;grid-template-columns:1fr 120px;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px;position:sticky;bottom:-24px;background:linear-gradient(transparent,var(--panel) 28%);padding-top:24px;padding-bottom:4px}.camera-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;align-items:end}.camera-field{min-width:0}.camera-field label{margin-bottom:6px}.camera-settings-full{grid-column:1/-1}.checkbox-row{display:flex!important;align-items:center;gap:10px;margin:6px 0!important}.checkbox-row input{width:18px!important;height:18px;flex:0 0 auto}.checkbox-row label{display:inline!important;margin:0!important;white-space:normal}.field-hint{margin:0}.camera-modal #localVideo{display:block;width:100%;max-height:42vh;aspect-ratio:16/9;object-fit:contain;background:#000;border-radius:12px;margin-top:14px}.toast{position:fixed;right:20px;top:90px;z-index:50;background:#222b3b;border:1px solid #4a5870;border-radius:10px;padding:13px 16px;max-width:360px;box-shadow:0 12px 40px #0008}
@media(max-width:1100px){.layout{grid-template-columns:270px 1fr}.info-panel{grid-column:1/-1}.video-shell{max-width:600px}}
@media(max-width:720px){.topbar{height:auto;padding:13px;align-items:flex-start}.top-actions{align-items:flex-end;flex-direction:column}.layout{display:block;padding:8px}.panel{margin-bottom:10px}.users,.messages{height:390px}.grid2,.camera-settings-grid{grid-template-columns:1fr}.camera-settings-full{grid-column:auto}.camera-modal #localVideo{max-height:32vh}.modal{padding:18px;max-height:calc(100dvh - 16px)}.modal-actions{bottom:-18px}.overlay{padding:8px}}

/* Profielfoto en uitgebreid bezoekersfilter */
.profile-photo-picker{display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;margin:8px 0 16px}.profile-photo-preview{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#0d111a;border:2px dashed var(--line);color:var(--muted);font-weight:700}.profile-photo-preview img{width:100%;height:100%;object-fit:cover}.profile-photo-controls{min-width:0}.profile-photo-controls>label{display:block;margin:0 0 7px}.profile-photo-controls input[type=file]{padding:8px;font-size:.86rem}.profile-photo-controls .field-hint{display:block;margin-top:6px}.optional{font-weight:400;color:var(--muted)}.photo-remove{display:block;margin-top:5px;padding:4px 0}.user-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:11px;align-items:start}.user-card-content{min-width:0}.user-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#303b51;border:1px solid #4b5870;color:#fff;font-weight:800;font-size:1.05rem}.user-avatar img{width:100%;height:100%;object-fit:cover}.search::-webkit-search-cancel-button{cursor:pointer}
@media(max-width:420px){.profile-photo-picker{grid-template-columns:72px minmax(0,1fr)}.profile-photo-preview{width:72px;height:72px}}

/* Anonieme, op dit apparaat onthouden profielen */
.remembered-profiles{margin:12px 0 18px;padding:12px;background:#0d111a;border:1px solid var(--line);border-radius:12px}.remembered-title{font-weight:800;margin-bottom:9px}.remembered-list{display:grid;gap:8px;margin-bottom:10px}.remembered-profile{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:9px;text-align:left;color:var(--text);background:var(--panel2);border:1px solid transparent;border-radius:10px;cursor:pointer}.remembered-profile:hover,.remembered-profile.selected{border-color:var(--accent2)}.remembered-profile .user-avatar{width:42px;height:42px}.remembered-profile-text{display:grid;gap:3px;min-width:0}.remembered-profile-text strong,.remembered-profile-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remembered-profile-text small{color:var(--muted)}.profile-editor-actions{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.profile-editor-actions .primary{margin-left:auto}.privacy-note{color:var(--muted);font-size:.75rem;line-height:1.4;margin-bottom:0}@media(max-width:480px){.profile-editor-actions{flex-direction:column-reverse}.profile-editor-actions button{width:100%}}


/* Compact bezoekersoverzicht en uitgebreid profielvenster */
.compact-user-card{cursor:pointer;grid-template-columns:48px minmax(0,1fr);padding:10px}.compact-user-card:focus-visible{outline:2px solid var(--accent2);outline-offset:2px}.user-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.chat-icon-button{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:1px solid #47516a;border-radius:50%;background:#252f41;color:#fff;cursor:pointer;font-size:1rem}.chat-icon-button:hover{background:#34415a}.profile-details-modal{width:min(820px,100%)}.profile-details-meta{color:var(--muted);margin-top:-10px}.profile-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.gallery-photo{position:relative;margin:0;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:#090d15;border:1px solid var(--line)}.gallery-photo.main-photo{grid-column:span 2;grid-row:span 2}.gallery-photo img{width:100%;height:100%;object-fit:cover;display:block}.gallery-remove{position:absolute;top:7px;right:7px;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#090d15dd;color:white;font-size:1.25rem;cursor:pointer}.gallery-empty{grid-column:1/-1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);background:#0d111a;border:1px dashed var(--line);border-radius:14px}.gallery-empty .user-avatar{width:84px;height:84px;font-size:1.6rem}.profile-about-section{padding:16px;background:#0d111a;border:1px solid var(--line);border-radius:12px}.profile-about-section h3{margin:0 0 8px}.profile-about-section p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.own-gallery-controls{display:grid;gap:9px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:12px}.own-gallery-controls label{margin:0;font-weight:700}.own-gallery-controls input{padding:9px;background:#0d111a;color:white;border:1px solid var(--line);border-radius:9px}.own-gallery-controls .secondary{justify-self:start}.profile-details-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:18px}
@media(max-width:600px){.profile-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-photo.main-photo{grid-column:1/-1;grid-row:auto;aspect-ratio:4/3}.profile-details-actions>button{flex:1 1 45%}}

/* Profielacties bovenaan, eigen profiel bewerken en duidelijk chat-icoon */
.profile-details-actions{margin:4px 0 16px;justify-content:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line)}
.chat-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.own-profile-editor{margin:16px 0;padding:16px;background:#0d111a;border:1px solid var(--line);border-radius:12px}
.own-profile-editor h3{margin:0 0 10px}
.own-profile-editor label{display:grid;gap:6px;margin:10px 0;color:#c5ccda}
.own-profile-editor input,.own-profile-editor textarea{width:100%;background:#090d15;color:#fff;border:1px solid var(--line);border-radius:9px;padding:11px}
.own-profile-editor .primary{margin-top:4px}
@media(max-width:720px){.top-actions{gap:7px}.profile-details-actions{display:grid;grid-template-columns:1fr 1fr}.profile-details-actions button{width:100%}}
.location-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 12px}.location-controls .secondary{padding:7px 10px}.location-controls .field-hint{flex:1 1 240px}.gallery-photo img{cursor:zoom-in}.gallery-photo img:focus-visible{outline:3px solid var(--accent2);outline-offset:-3px}.photo-lightbox{z-index:60;background:#02040af2;padding:56px 72px}.photo-lightbox img{display:block;max-width:min(1200px,92vw);max-height:86vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 80px #000}.lightbox-close,.lightbox-nav{position:fixed;border:0;background:#101827cc;color:white;cursor:pointer;z-index:61}.lightbox-close{top:18px;right:22px;width:44px;height:44px;border-radius:50%;font-size:2rem;line-height:1}.lightbox-nav{top:50%;transform:translateY(-50%);width:52px;height:72px;border-radius:12px;font-size:3rem}.lightbox-prev{left:18px}.lightbox-next{right:18px}.lightbox-counter{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:999px;background:#101827cc;color:white}.meta{line-height:1.35}
@media(max-width:600px){.photo-lightbox{padding:56px 8px}.lightbox-nav{width:42px;height:58px;font-size:2.4rem}.lightbox-prev{left:6px}.lightbox-next{right:6px}}

.moderator-notice-overlay{z-index:100;background:#02040aee}
.moderator-notice-modal{text-align:center;border-color:#a84a61;box-shadow:0 24px 90px #000c}
.moderator-notice-icon{width:58px;height:58px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#c72c52;color:#fff;font-size:2rem;font-weight:900}
.moderator-notice-modal h2{margin-bottom:10px}
.moderator-notice-modal p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;color:#e9edf5}
.moderator-notice-actions{position:static;background:none;padding:0;margin-top:20px;justify-content:center}
.moderator-notice-actions button{min-width:140px}

.chat-icon-button{position:relative}.private-unread-badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:#fff;border:2px solid var(--panel2);font-size:.7rem;font-weight:800;line-height:1;pointer-events:none}

.private-senders-panel{margin:10px 8px 2px;border:1px solid var(--line);border-radius:12px;background:#0d131f;overflow:hidden}.private-senders-title{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;color:#d8deea;font-size:.82rem;font-weight:800;border-bottom:1px solid var(--line)}.private-senders-list{display:grid;gap:2px;padding:5px;max-height:230px;overflow:auto}.private-sender-item{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.private-sender-item:hover,.private-sender-item:focus-visible{background:var(--panel2);outline:none}.private-sender-item .user-avatar{width:36px;height:36px}.private-sender-text{min-width:0;display:grid;gap:2px}.private-sender-text strong,.private-sender-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.private-sender-text small{color:var(--muted);font-size:.72rem}.private-sender-badge{min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:#fff;font-size:.7rem;font-weight:800}.private-senders-panel:not([hidden])~.users{height:calc(100vh - 330px)}

.location-controls-before-region{margin-top:4px;margin-bottom:10px}.location-controls-before-region .secondary:disabled{opacity:.7;cursor:wait}

.user-card-bottom{justify-content:flex-start}.user-card-bottom .meta{margin-right:auto}.webcam-icon-button{color:#71e6a8;border-color:#315b47;background:#1d382d}.webcam-icon-button:hover{background:#28503d}.webcam-icon-button svg{width:19px;height:19px}

.stream-controls{position:absolute;right:10px;bottom:10px;display:flex;gap:8px;z-index:3}.stream-control-button{width:42px;height:42px;border:1px solid #ffffff33;border-radius:10px;background:#05070bcc;color:#fff;font-size:1.2rem;cursor:pointer;display:grid;place-items:center;backdrop-filter:blur(8px)}.stream-control-button:hover{background:#1b2434ee}.video-shell:fullscreen{width:100vw;height:100vh;max-width:none;margin:0;border-radius:0;aspect-ratio:auto;background:#000}.video-shell:fullscreen video{width:100%;height:100%;object-fit:contain}.video-shell:fullscreen .stream-controls{right:24px;bottom:24px}.selected-viewers-panel{border:1px solid var(--line);background:#0d111a;border-radius:10px;padding:12px}.selected-viewers-title{font-weight:700;margin-bottom:8px}.selected-viewers-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:180px;overflow:auto}.selected-viewer-option{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:8px;border-radius:8px;background:var(--panel2);cursor:pointer}.selected-viewer-option input{width:17px!important;height:17px;flex:0 0 auto}.selected-viewer-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:600px){.selected-viewers-list{grid-template-columns:1fr}}


/* Centrale formulier- en servervalidatie */
.validation-modal { text-align:left; }
.validation-icon { width:52px;height:52px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#fff1d6;color:#9a5b00;font-size:30px;font-weight:800; }
.validation-modal h2 { text-align:center;margin-bottom:8px; }
.validation-summary { text-align:center;color:var(--muted,#68707d);margin-bottom:10px; }
.validation-errors { margin:0 0 8px;padding-left:24px;max-height:42vh;overflow:auto; }
.validation-errors li { margin:7px 0;line-height:1.35; }
.field-invalid { border-color:#d93838 !important;box-shadow:0 0 0 3px rgba(217,56,56,.15) !important; }
label:has(.field-invalid) { color:#a82424; }

.anti-bot-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}


/* Webcam request feedback */
.toast.toast-left{left:20px;right:auto;top:90px}
.webcam-icon-button.request-pending{opacity:.72;cursor:wait;background:#3b3420;border-color:#78662d;color:#ffd66b}
.request-spinner{font-size:.95rem;line-height:1}
.user-card.incoming-view-request{animation:incoming-view-request-pulse 1s ease-in-out 4;border-color:#7e8cff;box-shadow:0 0 0 3px #7e8cff33}
@keyframes incoming-view-request-pulse{0%,100%{transform:translateX(0);box-shadow:0 0 0 0 #7e8cff55}50%{transform:translateX(3px);box-shadow:0 0 0 5px #7e8cff22}}
.confirm-request-content{display:flex;align-items:center;gap:16px;margin:8px 0 4px}
.confirm-request-content p{margin:0;line-height:1.5}
.confirm-request-avatar{width:76px;height:76px;flex:0 0 76px;border-radius:50%;overflow:hidden;background:#303b51;border:2px solid #66748f}
.confirm-request-avatar img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:720px){.toast.toast-left{left:12px;right:12px;top:auto;bottom:12px;max-width:none}.confirm-request-content{align-items:flex-start}.confirm-request-avatar{width:64px;height:64px;flex-basis:64px}}


/* Gebruiksvriendelijkheidspakket */
.sidebar-title,.activity-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.icon-button.small{width:2rem;height:2rem;font-size:1.25rem}.own-profile-card{margin:.5rem 0 1rem;padding:.75rem;border:1px solid #3a475a;border-radius:12px;background:#182131}.own-profile-card .user-card{margin:0}.favorite-button{border:0;background:transparent;color:#f6c945;font-size:1.15rem;cursor:pointer;padding:.25rem}.favorite-button[aria-pressed="false"]{color:#778397}.user-status{display:inline-flex;align-items:center;gap:.3rem;font-size:.74rem;color:#9eabc0}.status-dot{width:.55rem;height:.55rem;border-radius:50%;background:#45c46b}.status-dot.away{background:#e4ad3c}.status-dot.live{background:#ef5350}.status-dot.typing{background:#52a8ff;animation:pulse 1s infinite}.new-user-badge{font-size:.67rem;background:#2e8b57;color:white;border-radius:999px;padding:.1rem .42rem}.user-card.new-arrival{animation:newArrival 1.2s ease 2}.webcam-state{font-size:.7rem;border-radius:999px;padding:.12rem .4rem;background:#26364c;color:#c9d6e8}.webcam-state.busy{background:#5a3434}.webcam-state.pending{background:#5a4b27}.user-hover-card{display:none;position:absolute;left:calc(100% + .5rem);top:0;width:240px;z-index:40;padding:.8rem;border-radius:12px;background:#101827;border:1px solid #40516d;box-shadow:0 12px 30px #0008;pointer-events:none}.user-card{position:relative}.user-card:hover .user-hover-card,.user-card:focus-within .user-hover-card{display:block}.hover-photo{width:64px;height:64px;border-radius:50%;object-fit:cover}.hover-title{font-weight:700;margin:.35rem 0}.hover-about{font-size:.82rem;color:#b8c3d4;line-height:1.35}.message-status{font-size:.68rem;color:#8290a6;text-align:right;margin-top:.2rem}.message-status.read{color:#55aaff}.typing-indicator{font-size:.75rem;color:#69b7ff;margin-left:.5rem}.activity-panel{margin-top:1rem;border-top:1px solid #344258;padding-top:.75rem}.activity-feed{display:flex;flex-direction:column;gap:.45rem;max-height:220px;overflow:auto}.activity-item{font-size:.78rem;color:#b7c2d3;border-left:2px solid #4b79b7;padding-left:.5rem}.activity-time{color:#758197;margin-right:.35rem}.empty-state{text-align:center;padding:1rem;color:#8996a9}@keyframes newArrival{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 3px #45c46b88}}


/* Bezoekerskaart: metadata en acties op aparte regels zodat niets buiten de kaart valt */
.user-card-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-width:0;margin-top:7px}
.user-card-meta{min-width:0;line-height:1.45;overflow-wrap:anywhere}
.user-card-action-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.user-card-action-row .user-status{min-width:0;flex:1 1 auto}
.user-card-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;min-width:0}
.user-card-controls .webcam-state{max-width:105px;white-space:normal;text-align:center;line-height:1.2}
.chat-icon-button{position:relative}
@media(max-width:1180px){
  .user-card-action-row{align-items:flex-start;flex-direction:column}
  .user-card-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}
}

/* Activiteitsmeldingen op desktop rechtsonder, verzoekfeedback blijft links */
.toast:not(.toast-left){top:auto;bottom:20px;right:20px}
\n\n/* Eigen profiel: rustige, duidelijke kaart */\n.own-profile-card{margin:.5rem 0 1rem;padding:0;overflow:hidden;border:1px solid #3a475a;border-radius:16px;background:linear-gradient(180deg,#182131,#141c2a)}\n.own-profile-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #2d394d}\n.own-profile-label{font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#9eabc0}\n.own-profile-edit{margin:0;padding:4px 0;white-space:nowrap}\n.own-profile-body{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:14px;padding:14px}\n.own-profile-avatar{width:68px!important;height:68px!important}\n.own-profile-info{min-width:0;display:grid;gap:5px}\n.own-profile-name{font-size:1.08rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.own-profile-status{font-size:.78rem}\n.own-profile-meta{font-size:.76rem;color:#8996a9;overflow-wrap:anywhere}\n@media(max-width:520px){.own-profile-body{grid-template-columns:56px minmax(0,1fr);gap:11px}.own-profile-avatar{width:56px!important;height:56px!important}.own-profile-header{padding:10px 12px}.own-profile-body{padding:12px}}\n
/* Eigen profiel gebruikt dezelfde compacte kaartopbouw als andere bezoekers. */
.own-profile-card{
  margin:.5rem 0 1rem;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
}
.own-profile-user-card{
  cursor:default;
  border:1px solid #3a475a;
  background:#182131;
}
.own-profile-user-card:hover{border-color:#3a475a}
.own-profile-user-card .user-head{gap:.45rem}
.own-profile-user-card .own-profile-edit{
  margin-left:auto;
  padding:.2rem .1rem;
  white-space:nowrap;
}
.own-user-badge{
  flex:0 0 auto;
  font-size:.66rem;
  line-height:1;
  padding:.2rem .42rem;
  border-radius:999px;
  color:#bcd5ff;
  background:#263a58;
  border:1px solid #3c5579;
}
@media(max-width:420px){
  .own-profile-user-card .user-head{flex-wrap:wrap}
  .own-profile-user-card .own-profile-edit{margin-left:0;width:100%;text-align:left}
}

/* Bij opgeslagen profielen blijft het aanmaak-/bewerkformulier verborgen tot een keuze wordt gemaakt. */
#profileEditor[hidden]{display:none!important}


/* Eigen webcamstatus: toon live-indicator en huidig/maximaal aantal kijkers. */
.own-profile-user-card .user-card-action-row{align-items:center;flex-direction:row}
.own-live-status{display:inline-flex;align-items:center;gap:.38rem;flex:0 0 auto;padding:.22rem .5rem;border:1px solid #7a3340;border-radius:999px;background:#321b22;color:#ffd9df;font-size:.72rem;font-weight:700;line-height:1}
.own-live-label{color:#ff687d;font-size:.66rem;letter-spacing:.08em}
.own-live-viewers{font-variant-numeric:tabular-nums;color:#fff}
@media(max-width:420px){.own-profile-user-card .user-card-action-row{align-items:flex-start;flex-direction:column}.own-live-status{margin-top:.1rem}}

/* Webcambezetting bij andere bezoekers */
.webcam-occupancy{display:inline-flex;align-items:center;justify-content:center;min-width:46px;padding:.2rem .48rem;border-radius:999px;font-size:.7rem;font-weight:800;font-variant-numeric:tabular-nums;border:1px solid #315b47;background:#1d382d;color:#8ff0ba;white-space:nowrap}
.webcam-occupancy.high{border-color:#80652d;background:#40351d;color:#ffd46d}
.webcam-occupancy.full{border-color:#7a3c46;background:#43242a;color:#ff9bab}
.webcam-occupancy.pending{border-color:#78662d;background:#3b3420;color:#ffd66b;min-width:auto}

/* Eigen profiel als uitgebreid persoonlijk dashboard */
.own-profile-card{margin:.5rem 0 1rem;padding:0;border:0;background:transparent;overflow:visible}
.own-profile-dashboard{overflow:hidden;border:1px solid #3a475a;border-radius:16px;background:linear-gradient(180deg,#182131,#141c2a);box-shadow:0 8px 22px #00000024}
.own-profile-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #2d394d}
.own-profile-dashboard-header strong{font-size:.95rem}
.own-profile-dashboard-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;margin-left:auto}
.own-profile-sound-toggle{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #40506a;border-radius:50%;background:#111927;color:#dbe8ff;font-size:1rem;line-height:1;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease}
.own-profile-sound-toggle:hover{transform:translateY(-1px);border-color:#79a8ff;background:#19253a}
.own-profile-sound-toggle:focus-visible{outline:3px solid #6b9cff55;outline-offset:2px}
.own-profile-sound-toggle.muted{background:#2a1b24;border-color:#82445e;color:#ffb6ca;opacity:.9}
.own-profile-dashboard-body{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:14px;padding:14px}
.own-profile-dashboard-avatar{width:68px!important;height:68px!important}
.own-profile-dashboard-info{min-width:0;display:grid;gap:5px}
.own-profile-dashboard-name{font-size:1.12rem;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.own-profile-dashboard-status{font-size:.8rem}
.own-profile-dashboard-meta{line-height:1.4;overflow-wrap:anywhere}
.own-live-panel{margin:0 14px 14px;padding:9px 11px;border:1px solid #5a3140;border-radius:999px;background:#2b1920;display:flex;align-items:center;justify-content:space-between;gap:12px}
.own-live-panel-header{display:flex;align-items:center;gap:.45rem;color:#ff788d;letter-spacing:.08em;font-size:.76rem;white-space:nowrap}
.own-live-pulse{width:.58rem;height:.58rem;border-radius:50%;background:#ff4f6d;box-shadow:0 0 0 0 #ff4f6d88;animation:ownLivePulse 1.8s infinite}
.own-live-panel-viewers{display:flex;align-items:center;gap:.38rem;color:#f4dfe5;white-space:nowrap}
.own-live-panel-viewers strong{font-size:.86rem;font-variant-numeric:tabular-nums}
.own-live-panel-viewers span:last-child{color:#c8b6bc;font-size:.72rem}
.own-live-eye{font-size:.86rem}
@keyframes ownLivePulse{0%{box-shadow:0 0 0 0 #ff4f6d88}70%{box-shadow:0 0 0 7px #ff4f6d00}100%{box-shadow:0 0 0 0 #ff4f6d00}}
@media(max-width:420px){.own-profile-dashboard-body{grid-template-columns:56px minmax(0,1fr);gap:11px;padding:12px}.own-profile-dashboard-avatar{width:56px!important;height:56px!important}.own-profile-dashboard-header{padding:11px 12px}.own-live-panel{margin:0 12px 12px;padding:8px 10px}.own-live-panel-viewers span:last-child{display:none}}

.remembered-profile.joining {
  cursor: wait;
  opacity: .72;
}

/* Verwijderknop op opgeslagen profielkaarten */
.remembered-profile-wrapper{position:relative;min-width:0}
.remembered-profile-wrapper .remembered-profile{padding-right:42px;margin:0}
.remembered-profile-remove{position:absolute;top:7px;right:7px;z-index:2;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:999px;background:transparent;color:#9fb0c9;font-size:1.35rem;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.remembered-profile-remove:hover,.remembered-profile-remove:focus-visible{background:#3a2028;border-color:#77404c;color:#ff9bab;outline:none;transform:scale(1.05)}
.remembered-profile-remove:active{transform:scale(.96)}
\n\n/* V2 persoonlijke status, filters, reacties, thema en instellingen */\n:root{--page:#0b111b;--panel:#141d2b;--panel-2:#182334;--line:#344258;--text:#f4f7fb;--muted:#9eb0c8;--accent:#6aa9ff;--input:#0e1623}\n:root[data-theme="light"]{--page:#eef3f8;--panel:#ffffff;--panel-2:#f6f8fb;--line:#cdd7e3;--text:#172235;--muted:#607089;--accent:#246fca;--input:#ffffff}\nbody{background:var(--page);color:var(--text)}.panel,.modal,.topbar{background:var(--panel);color:var(--text);border-color:var(--line)}input,textarea,select{background:var(--input);color:var(--text);border-color:var(--line)}.meta,.notice,.field-hint{color:var(--muted)}\n.visitor-filters{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;padding:.65rem;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);font-size:.75rem}.visitor-filters label{display:flex;align-items:center;gap:.38rem}.visitor-filters select{grid-column:1/-1;padding:.45rem;border-radius:8px}\n.quick-reactions{display:flex;gap:.35rem;padding:.5rem .75rem;border-top:1px solid var(--line);background:var(--panel-2)}.quick-reactions button{border:1px solid transparent;background:transparent;border-radius:8px;padding:.3rem .45rem;font-size:1.05rem;cursor:pointer}.quick-reactions button:hover{border-color:var(--line);background:var(--panel)}\n.settings-switches{display:grid;gap:.65rem;margin-top:.85rem}.settings-switches label{display:flex;align-items:center;gap:.55rem}.settings-modal>label{display:grid;gap:.35rem;margin-top:.75rem}\n.activity-panel{margin:1rem -1rem -1rem;border-top:1px solid var(--line);padding:0;background:var(--panel)}.activity-title{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;border-bottom:1px solid var(--line);font-weight:800}.activity-feed{padding:.8rem 1rem;max-height:220px}.activity-item{display:grid;grid-template-columns:42px 1fr;gap:.4rem;padding:.45rem .55rem;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:var(--panel-2);color:var(--text)}.activity-time{color:var(--muted);font-variant-numeric:tabular-nums}\n.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}\n@media(max-width:700px){.visitor-filters{grid-template-columns:1fr}.visitor-filters select{grid-column:1}.top-actions{flex-wrap:wrap}}\n
/* UI polish: filterchips, instellingen, activiteitenfeed en emoji-invoer */
.visitor-filter-panel{display:grid;gap:.7rem;margin:.8rem 0 1rem}.filter-chips{display:flex;flex-wrap:wrap;gap:.45rem}.filter-chip{position:relative;cursor:pointer}.filter-chip input{position:absolute;opacity:0;pointer-events:none}.filter-chip span{display:inline-flex;align-items:center;min-height:2.15rem;padding:.45rem .72rem;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:.76rem;font-weight:700;transition:.18s ease}.filter-chip:hover span{border-color:var(--accent);color:var(--text)}.filter-chip input:checked+span{background:color-mix(in srgb,var(--accent) 22%,var(--panel-2));border-color:var(--accent);color:var(--text);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 16%,transparent)}.sort-control{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.65rem;color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.sort-control select{min-width:0;padding:.58rem .7rem;border-radius:10px}
.settings-modal{width:min(590px,calc(100vw - 2rem));padding:1.4rem}.settings-modal .modal-header{margin-bottom:.8rem}.settings-modal>label{padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--panel-2)}.settings-modal>label select{margin-top:.35rem}.settings-switches{gap:.55rem}.setting-row{display:grid!important;grid-template-columns:2.2rem minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.78rem .85rem;border:1px solid var(--line);border-radius:13px;background:var(--panel-2);cursor:pointer;transition:.18s ease}.setting-row:hover{border-color:color-mix(in srgb,var(--accent) 65%,var(--line));transform:translateY(-1px)}.setting-icon{display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:10px;background:var(--input);font-size:1.05rem}.setting-copy{display:grid;gap:.12rem;min-width:0}.setting-copy strong{font-size:.9rem}.setting-copy small{color:var(--muted);font-size:.7rem;line-height:1.35}.switch{position:relative;width:2.85rem;height:1.55rem;flex:none}.switch input{position:absolute;opacity:0}.switch-track{position:absolute;inset:0;border-radius:999px;background:#526073;box-shadow:inset 0 0 0 1px #ffffff18;transition:.2s}.switch-track::after{content:"";position:absolute;top:.18rem;left:.18rem;width:1.19rem;height:1.19rem;border-radius:50%;background:white;box-shadow:0 2px 7px #0006;transition:.2s}.switch input:checked+.switch-track{background:var(--accent)}.switch input:checked+.switch-track::after{transform:translateX(1.3rem)}.switch input:focus-visible+.switch-track{outline:3px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:2px}.settings-modal .modal-actions{margin-top:1rem}.settings-modal .modal-actions .primary{min-width:8rem}
.activity-panel{overflow:hidden;border:1px solid var(--line)!important;border-radius:14px;margin:1rem 0 0!important;background:var(--panel-2)!important}.activity-title{padding:.75rem .9rem!important;background:color-mix(in srgb,var(--panel) 72%,transparent)}.activity-feed{padding:.65rem!important;gap:.5rem!important}.activity-item{grid-template-columns:2rem 1fr!important;align-items:center;gap:.6rem!important;padding:.62rem .7rem!important;border:1px solid var(--line)!important;border-left:1px solid var(--line)!important;border-radius:10px!important;background:var(--panel)!important;font-size:.75rem!important;line-height:1.35}.activity-item::before{content:attr(data-icon);display:grid;place-items:center;width:2rem;height:2rem;border-radius:9px;background:var(--panel-2);font-size:.95rem}.activity-time{display:block;margin:0!important;font-size:.66rem!important}.activity-text{min-width:0;color:var(--text)}
.composer-modern{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;padding:.7rem}.message-input-shell{position:relative;display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:13px;background:var(--input);transition:.18s}.message-input-shell:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}.message-input-shell #messageInput{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding:.72rem .75rem .72rem .2rem}.emoji-toggle{width:2.6rem;height:2.6rem;border:0;background:transparent;color:var(--muted);font-size:1.35rem;cursor:pointer;border-radius:10px}.emoji-toggle:hover,.emoji-toggle[aria-expanded="true"]{background:var(--panel-2);color:var(--text)}.emoji-picker{position:absolute;left:0;bottom:calc(100% + .55rem);z-index:80;width:260px;padding:.65rem;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 18px 45px #0008}.emoji-picker-title{padding:.15rem .2rem .55rem;color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.28rem}.emoji-grid button{display:grid;place-items:center;aspect-ratio:1;border:0;border-radius:9px;background:transparent;font-size:1.25rem;cursor:pointer}.emoji-grid button:hover{background:var(--panel-2);transform:scale(1.08)}.send-button{min-width:6.4rem}.message .body,.message-text{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.setting-row{grid-template-columns:2rem minmax(0,1fr) auto;padding:.65rem}.setting-copy small{display:none}.composer-modern{grid-template-columns:1fr}.send-button{width:100%}.emoji-picker{width:min(260px,calc(100vw - 3.5rem))}.sort-control{grid-template-columns:1fr}.filter-chips{gap:.35rem}}

@media(max-width:420px){.own-profile-dashboard-actions{gap:7px}.own-profile-sound-toggle{width:32px;height:32px}}

/* Volwaardig licht/donker thema. De bestaande vormgeving is het donkere thema. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#090d15;
  --page:#0b111b;
  --panel:#141d2b;
  --panel2:#1b2434;
  --panel-2:#182334;
  --line:#344258;
  --text:#f4f7fb;
  --muted:#9eb0c8;
  --accent:#6aa9ff;
  --accent2:#8f7cff;
  --input:#0e1623;
  --topbar:#0d131f;
  --hover:#253249;
  --shadow:#0009;
  --video:#05070b;
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#edf3f9;
  --page:#edf3f9;
  --panel:#ffffff;
  --panel2:#f4f7fb;
  --panel-2:#f4f7fb;
  --line:#cfdae7;
  --text:#172235;
  --muted:#65758d;
  --accent:#2878d0;
  --accent2:#6857d9;
  --input:#ffffff;
  --topbar:#ffffff;
  --hover:#e8f0fa;
  --shadow:#26364d26;
  --video:#10151d;
}

html[data-theme="light"] body{background:var(--page);color:var(--text)}
html[data-theme="light"] .topbar{background:var(--topbar);border-color:var(--line);box-shadow:0 2px 14px var(--shadow)}
html[data-theme="light"] .panel,
html[data-theme="light"] .modal{background:var(--panel);color:var(--text);border-color:var(--line);box-shadow:0 10px 30px var(--shadow)}
html[data-theme="light"] .panel-title,
html[data-theme="light"] .composer,
html[data-theme="light"] .notice,
html[data-theme="light"] .quick-reactions{border-color:var(--line)}
html[data-theme="light"] .search,
html[data-theme="light"] .composer input,
html[data-theme="light"] .modal input,
html[data-theme="light"] .modal textarea,
html[data-theme="light"] .modal select,
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{background:var(--input);color:var(--text);border-color:var(--line)}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#8290a4}
html[data-theme="light"] .user-card,
html[data-theme="light"] .remembered-profile,
html[data-theme="light"] .visitor-filters,
html[data-theme="light"] .filter-chip span,
html[data-theme="light"] .setting-row,
html[data-theme="light"] .settings-modal>label,
html[data-theme="light"] .activity-panel,
html[data-theme="light"] .profile-about-section,
html[data-theme="light"] .gallery-empty{background:var(--panel-2);color:var(--text);border-color:var(--line)}
html[data-theme="light"] .user-card:hover,
html[data-theme="light"] .remembered-profile:hover{background:var(--hover);border-color:#9fb6d0}
html[data-theme="light"] .remembered-profiles,
html[data-theme="light"] .profile-photo-preview,
html[data-theme="light"] .profile-about-section,
html[data-theme="light"] .gallery-empty{background:#f8fafc}
html[data-theme="light"] .user-avatar{background:#dce6f1;border-color:#b9c8d9;color:#29425f}
html[data-theme="light"] .secondary,
html[data-theme="light"] .mini{background:#e4ebf4;color:#253650;border:1px solid #cbd7e5}
html[data-theme="light"] .secondary:hover,
html[data-theme="light"] .mini:hover{background:#d8e3ef}
html[data-theme="light"] .chat-icon-button{background:#edf3f9;color:#334967;border-color:#c7d4e3}
html[data-theme="light"] .chat-icon-button:hover{background:#dfe9f4}
html[data-theme="light"] .link-button,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .text-button{color:#526c91}
html[data-theme="light"] .bubble{background:#edf3f9;color:var(--text);border:1px solid #d7e1ec}
html[data-theme="light"] .who{color:#687991}
html[data-theme="light"] .message.private .bubble{background:#f0edff;border-color:#d9d1ff}
html[data-theme="light"] .message.private{border-left-color:var(--accent2)}
html[data-theme="light"] .video-shell{background:var(--video)}
html[data-theme="light"] .video-placeholder{color:#c2cbd7}
html[data-theme="light"] .overlay{background:#172235b8;backdrop-filter:blur(3px)}
html[data-theme="light"] .modal{box-shadow:0 24px 70px #1c2f4938}
html[data-theme="light"] .modal label{color:#33445d}
html[data-theme="light"] .modal-actions{background:linear-gradient(transparent,var(--panel) 28%)}
html[data-theme="light"] .toast{background:#ffffff;color:var(--text);border-color:#bdcadd;box-shadow:0 14px 38px #26364d35}
html[data-theme="light"] .activity-title{background:#f7f9fc}
html[data-theme="light"] .activity-item{background:#ffffff!important;border-color:#d4deea!important;color:var(--text)}
html[data-theme="light"] .activity-item::before,
html[data-theme="light"] .setting-icon{background:#e9f0f7}
html[data-theme="light"] .message-input-shell{background:#ffffff;border-color:#cdd8e5}
html[data-theme="light"] .emoji-picker{background:#ffffff;border-color:#c8d5e4;box-shadow:0 18px 45px #26364d35}
html[data-theme="light"] .emoji-grid button:hover,
html[data-theme="light"] .emoji-toggle:hover,
html[data-theme="light"] .emoji-toggle[aria-expanded="true"]{background:#edf3f9}
html[data-theme="light"] .switch-track{background:#aeb9c8;box-shadow:inset 0 0 0 1px #8795a8}
html[data-theme="light"] .filter-chip input:checked+span{background:#e0edfb;color:#174d86;box-shadow:0 0 0 2px #2878d024}
html[data-theme="light"] .remembered-profile-remove{color:#65758d}
html[data-theme="light"] .remembered-profile-remove:hover,
html[data-theme="light"] .remembered-profile-remove:focus-visible{background:#ffe8ed;border-color:#f0b4c0;color:#b72f4c}
html[data-theme="light"] .danger-outline{color:#b72f4c;border-color:#d99aaa}
html[data-theme="light"] .cam-button{background:#def4e9;color:#16663d;border:1px solid #acd9c1}
html[data-theme="light"] .own-profile-dashboard,
html[data-theme="light"] .own-profile-card{background:var(--panel);border-color:var(--line)}
html[data-theme="light"] .own-profile-dashboard-header{border-color:var(--line)}
html[data-theme="light"] .own-profile-sound-toggle{color:#4b6384}
html[data-theme="light"] .profile-gallery .gallery-photo{background:#edf3f9;border-color:var(--line)}
html[data-theme="light"] .gallery-remove{background:#fffffff0;color:#273a54;box-shadow:0 2px 10px #26364d35}

/* De themawissel voelt direct aan, maar respecteert de instelling voor minder animatie. */
html:not(.reduce-motion) body,
html:not(.reduce-motion) .panel,
html:not(.reduce-motion) .modal,
html:not(.reduce-motion) .topbar,
html:not(.reduce-motion) input,
html:not(.reduce-motion) textarea,
html:not(.reduce-motion) select{transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}

/* V2 UI polish: moderne effen knoppen zonder gradients */
:root{
  --button-primary:#3b82f6;
  --button-primary-hover:#2563eb;
  --button-primary-active:#1d4ed8;
  --button-secondary:#273449;
  --button-secondary-hover:#33445e;
  --button-secondary-border:#42516a;
  --button-danger:#dc2626;
  --button-danger-hover:#b91c1c;
  --button-success:#16865a;
  --button-success-hover:#107047;
  --button-focus:color-mix(in srgb,var(--button-primary) 32%,transparent);
}
html[data-theme="light"]{
  --button-primary:#2563eb;
  --button-primary-hover:#1d4ed8;
  --button-primary-active:#1e40af;
  --button-secondary:#ffffff;
  --button-secondary-hover:#edf4fc;
  --button-secondary-border:#bdcad9;
  --button-danger:#dc2626;
  --button-danger-hover:#b91c1c;
  --button-success:#16865a;
  --button-success-hover:#107047;
}
.primary,.secondary,.danger,.cam-button,.danger-outline,.mini,
.send-button,.profile-editor-actions button,.modal-actions button,
.profile-details-actions button,.info-panel>button{
  background-image:none!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
  box-shadow:0 1px 2px #00000024;
  font-weight:700;
}
.primary,.send-button{
  background:var(--button-primary)!important;
  color:#fff!important;
  border:1px solid var(--button-primary)!important;
}
.primary:hover,.send-button:hover{
  background:var(--button-primary-hover)!important;
  border-color:var(--button-primary-hover)!important;
  transform:translateY(-1px);
  box-shadow:0 5px 14px #00000030;
}
.primary:active,.send-button:active{
  background:var(--button-primary-active)!important;
  transform:translateY(0);
  box-shadow:0 1px 2px #00000024;
}
.secondary,.mini{
  background:var(--button-secondary)!important;
  color:var(--text)!important;
  border:1px solid var(--button-secondary-border)!important;
}
.secondary:hover,.mini:hover{
  background:var(--button-secondary-hover)!important;
  border-color:color-mix(in srgb,var(--button-secondary-border) 72%,var(--button-primary))!important;
  transform:translateY(-1px);
}
.danger{
  background:var(--button-danger)!important;
  color:#fff!important;
  border:1px solid var(--button-danger)!important;
}
.danger:hover{
  background:var(--button-danger-hover)!important;
  border-color:var(--button-danger-hover)!important;
  transform:translateY(-1px);
}
.cam-button{
  background:var(--button-success)!important;
  color:#fff!important;
  border:1px solid var(--button-success)!important;
}
.cam-button:hover{
  background:var(--button-success-hover)!important;
  border-color:var(--button-success-hover)!important;
  transform:translateY(-1px);
}
.danger-outline{
  background:transparent!important;
  color:#f87171!important;
  border:1px solid #ef4444!important;
  box-shadow:none;
}
.danger-outline:hover{
  background:color-mix(in srgb,#dc2626 14%,transparent)!important;
  color:#fecaca!important;
  transform:translateY(-1px);
}
html[data-theme="light"] .danger-outline{color:#b91c1c!important}
html[data-theme="light"] .danger-outline:hover{background:#fef2f2!important;color:#991b1b!important}
.primary:focus-visible,.secondary:focus-visible,.danger:focus-visible,.cam-button:focus-visible,
.danger-outline:focus-visible,.mini:focus-visible,.send-button:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px var(--button-focus),0 2px 8px #00000028;
}
.primary:disabled,.secondary:disabled,.danger:disabled,.cam-button:disabled,
.danger-outline:disabled,.mini:disabled,.send-button:disabled{
  opacity:.52;
  cursor:not-allowed;
  transform:none!important;
  box-shadow:none!important;
}

/* Snelle contactstatus op de eigen profielkaart */
.own-profile-status-control{display:flex;align-items:center;gap:.48rem;min-width:0}
.own-profile-status-select{min-width:0;max-width:100%;padding:.34rem 1.9rem .34rem .58rem;border:1px solid #40506a;border-radius:999px;background:#111927;color:#dbe8ff;font:inherit;font-size:.78rem;line-height:1.2;cursor:pointer;appearance:auto;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.own-profile-status-select:hover{border-color:#6683ad;background:#172238}
.own-profile-status-select:focus-visible{outline:0;border-color:#6b9cff;box-shadow:0 0 0 3px #6b9cff38}
html[data-theme="light"] .own-profile-status-select{background:#fff;color:#26364c;border-color:#c7d2e2}
html[data-theme="light"] .own-profile-status-select:hover{background:#f4f7fb;border-color:#9eb1ca}
@media(max-width:420px){.own-profile-status-select{font-size:.74rem;max-width:180px}}

/* Quick actions in de header van de eigen profielkaart */
.own-profile-quick-action{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #40506a;border-radius:50%;background:#111927;color:#dbe8ff;font-size:1rem;line-height:1;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease,opacity .16s ease}
.own-profile-quick-action:hover{transform:translateY(-1px);border-color:#79a8ff;background:#19253a}
.own-profile-quick-action:focus-visible{outline:3px solid #6b9cff55;outline-offset:2px}
.own-profile-quick-action.muted{background:#2a1b24;border-color:#82445e;color:#ffb6ca;opacity:.9}
html[data-theme="light"] .own-profile-quick-action{background:#fff;color:#4b6384;border-color:#c8d4e3;box-shadow:0 1px 3px #17304f14}
html[data-theme="light"] .own-profile-quick-action:hover{background:#eef5ff;border-color:#6f9fe0;color:#1f5fae}
html[data-theme="light"] .own-profile-quick-action.muted{background:#fff1f4;border-color:#e6a3b2;color:#b53353}
@media(max-width:420px){.own-profile-quick-action{width:32px;height:32px;font-size:.94rem}}


/* Contactstatuskleuren: het bolletje volgt direct de gekozen status. */
.status-dot.contact-open{background:#45c46b}
.status-dot.contact-watching{background:#e4ad3c}
.status-dot.contact-dnd{background:#ef5350}
.status-dot.contact-new{background:#ec5fa7}


/* Instelbare afstandsfilter */
.distance-filter{display:inline-flex;align-items:center;gap:.38rem;min-height:2.15rem;padding-right:.55rem;border:1px solid var(--line);border-radius:999px;background:var(--panel-2);transition:.18s ease}.distance-filter:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 16%,transparent)}.distance-filter .filter-chip span{border:0;background:transparent;box-shadow:none!important;padding-right:.28rem}.distance-filter .filter-chip input:checked+span{border:0;background:color-mix(in srgb,var(--accent) 22%,var(--panel-2));border-radius:999px 6px 6px 999px}.distance-filter-input{width:3.7rem!important;min-width:0;padding:.28rem .3rem!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;color:var(--text)!important;text-align:right;font-size:.78rem;font-weight:800;box-shadow:none!important}.distance-filter-input:focus{outline:0;border-bottom-color:var(--accent)!important}.distance-filter-unit{color:var(--muted);font-size:.72rem;font-weight:800}.distance-filter-input::-webkit-inner-spin-button{opacity:.65}
html[data-theme="light"] .distance-filter{background:#f2f6fa;border-color:#cbd7e5}
@media(max-width:700px){.distance-filter{max-width:100%}}


/* V2 duidelijke SignalR-verbindingsstatus */
.connection-status{
  --connection-color:#f2b94b;
  --connection-bg:color-mix(in srgb,var(--connection-color) 15%,transparent);
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:34px;
  padding:.42rem .72rem;
  border:1px solid color-mix(in srgb,var(--connection-color) 45%,transparent);
  border-radius:999px;
  background:var(--connection-bg);
  color:var(--text);
  font-size:.78rem;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 7%,transparent);
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.connection-status-icon{
  position:relative;
  display:inline-block;
  width:.62rem;
  height:.62rem;
  flex:0 0 .62rem;
  border-radius:50%;
  background:var(--connection-color);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--connection-color) 18%,transparent);
}
.connection-connected{--connection-color:#32c878}
.connection-connecting,.connection-reconnecting{--connection-color:#f2b94b}
.connection-disconnected{--connection-color:#ef5b69}
.connection-connected .connection-status-icon::after{
  content:"";
  position:absolute;
  inset:-.26rem;
  border:1px solid color-mix(in srgb,var(--connection-color) 58%,transparent);
  border-radius:50%;
  animation:connectionPulse 1.7s ease-out 2;
}
.connection-connecting .connection-status-icon,
.connection-reconnecting .connection-status-icon{
  background:transparent;
  border:2px solid color-mix(in srgb,var(--connection-color) 32%,transparent);
  border-top-color:var(--connection-color);
  box-shadow:none;
  animation:connectionSpin .85s linear infinite;
}
.connection-disconnected{animation:connectionAttention .28s ease-out 1}
@keyframes connectionSpin{to{transform:rotate(360deg)}}
@keyframes connectionPulse{0%{transform:scale(.72);opacity:.9}100%{transform:scale(1.75);opacity:0}}
@keyframes connectionAttention{0%,100%{transform:translateX(0)}35%{transform:translateX(-3px)}70%{transform:translateX(3px)}}
html[data-theme="light"] .connection-status{box-shadow:0 2px 8px rgba(23,34,53,.08)}
@media(max-width:720px){
  .connection-status{min-height:31px;padding:.38rem .62rem;font-size:.74rem}
}

/* NachtContact 18+ splash / toegangspoort */
body.age-gate-open{overflow:hidden}
.age-gate{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#31152d 0,#120b17 44%,#07070b 100%);color:#f7f2f7}
.age-gate[hidden]{display:none!important}
.age-gate-card{width:min(620px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:clamp(28px,5vw,50px);border:1px solid #ffffff24;border-radius:24px;background:#151018f2;box-shadow:0 30px 100px #000c;text-align:center;backdrop-filter:blur(18px)}
.age-gate-mark{width:92px;height:92px;margin:0 auto 18px;display:grid;place-items:center;border-radius:50%;background:#a9214f;color:#fff;border:5px solid #ffffff18;font-size:2rem;font-weight:900;box-shadow:0 0 0 10px #a9214f20}
.age-gate-brand{margin:0 0 8px;color:#e490ae;font-size:.82rem;font-weight:900;letter-spacing:.22em;text-transform:uppercase}
.age-gate h1{margin:0 0 16px;font-size:clamp(1.75rem,5vw,2.65rem);line-height:1.08}
.age-gate-card>p:not(.age-gate-brand):not(.age-gate-note){margin:0 auto;color:#d4c9d3;line-height:1.65;max-width:52ch}
.age-gate-points{display:grid;gap:10px;margin:24px 0;padding:18px 20px 18px 42px;border:1px solid #ffffff14;border-radius:14px;background:#ffffff08;color:#e6dfe5;text-align:left;line-height:1.45}
.age-gate-points li::marker{color:#e05a89}
.age-gate-enter{width:100%;min-height:52px;font-size:1rem;font-weight:850;background:#b7295a;border-color:#b7295a}
.age-gate-enter:hover{background:#ca3568;border-color:#ca3568}
.age-gate-note{margin:16px 0 0;color:#9f929d;font-size:.78rem;line-height:1.45}
@media(max-width:600px){.age-gate{padding:12px}.age-gate-card{padding:26px 20px;border-radius:18px}.age-gate-mark{width:76px;height:76px;font-size:1.65rem}.age-gate-points{padding-left:34px}}

/* NachtContact logo-integratie */
.topbar-brand{display:flex;flex-direction:column;justify-content:center;min-width:0}
.topbar-wordmark{display:block;width:auto;height:34px;max-width:min(360px,38vw);object-fit:contain;object-position:left center}
.topbar-brand .sub{margin-left:3px}
.age-gate-card{width:min(820px,100%)}
.age-gate-logo{display:block;width:min(100%,720px);height:auto;margin:0 auto 20px;border-radius:14px;filter:drop-shadow(0 16px 30px #0008)}
@media(max-width:720px){
  .topbar-wordmark{height:28px;max-width:58vw}
  .topbar-brand .sub{font-size:.72rem}
  .age-gate-logo{margin-bottom:16px;border-radius:10px}
}
@media(max-width:420px){.topbar-wordmark{height:24px;max-width:64vw}}

/* Compacte, schermvullende 18+ toegangspoort */
.age-gate{padding:clamp(10px,2vh,20px)}
.age-gate-card{
  width:min(940px,100%);
  max-height:calc(100svh - clamp(20px,4vh,40px));
  padding:clamp(20px,3.2vh,34px) clamp(22px,4vw,44px);
}
.age-gate-logo{
  width:min(100%,760px);
  max-height:clamp(170px,34vh,310px);
  object-fit:contain;
  margin-bottom:clamp(10px,1.8vh,18px);
}
.age-gate h1{margin-bottom:clamp(10px,1.5vh,14px);font-size:clamp(1.45rem,3.6vw,2.25rem)}
.age-gate-card>p:not(.age-gate-brand):not(.age-gate-note){
  max-width:76ch;
  font-size:clamp(.86rem,1.6vw,.96rem);
  line-height:1.48;
}
.age-gate-points{margin:clamp(14px,2vh,20px) 0;padding-top:14px;padding-bottom:14px;gap:7px;font-size:.91rem;line-height:1.35}
.age-gate-enter{min-height:48px}
.age-gate-note{margin-top:11px}

/* Transparant woordmerk, leesbaar in beide thema's */
.topbar-wordmark{filter:drop-shadow(0 1px 2px rgba(0,0,0,.75))}
html[data-theme="light"] .topbar-wordmark{filter:drop-shadow(0 1px 1px rgba(15,20,32,.95)) drop-shadow(0 0 3px rgba(15,20,32,.35))}

@media(max-height:760px){
  .age-gate-card{padding-top:16px;padding-bottom:16px}
  .age-gate-logo{max-height:225px;margin-bottom:8px}
  .age-gate h1{font-size:1.45rem;margin-bottom:8px}
  .age-gate-points{margin:11px 0;padding-top:10px;padding-bottom:10px;gap:5px;font-size:.84rem}
  .age-gate-enter{min-height:44px;font-size:.92rem}
  .age-gate-note{font-size:.72rem;margin-top:8px}
}
@media(max-height:620px){
  .age-gate-logo{max-height:165px}
  .age-gate-points{grid-template-columns:1fr;}
}


/* Stabiele typindicator: geen volledige herbouw van bezoekerskaarten tijdens typen. */
.chat-panel-title{gap:12px}
.chat-title-group{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
.chat-title-group #chatTitle{flex:0 0 auto}
.typing-indicator{display:inline-flex;align-items:center;min-width:0;margin-left:0;padding:4px 9px;border-radius:999px;background:rgba(82,168,255,.12);color:#69b7ff;font-size:.75rem;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.typing-indicator[hidden]{display:none!important}
html[data-theme="light"] .typing-indicator{background:rgba(36,111,202,.1);color:#1e62ad}
.topbar{position:relative;z-index:60}
.topbar-wordmark{isolation:isolate;transform:translateZ(0);backface-visibility:hidden}
@media(max-width:560px){.chat-panel-title{height:auto;min-height:56px;align-items:flex-start;padding-top:11px;padding-bottom:11px}.chat-title-group{align-items:flex-start;flex-direction:column;gap:5px}.typing-indicator{max-width:100%}}

/* Uitgebreide emoji-picker */
.emoji-picker{width:min(360px,calc(100vw - 2rem));max-height:min(430px,70vh);overflow:hidden;display:flex;flex-direction:column}.emoji-picker[hidden]{display:none}.emoji-picker-header{display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem}.emoji-picker-hint{padding:0 .15rem .5rem;color:var(--muted);font-size:.66rem;white-space:nowrap}.emoji-tabs{display:flex;gap:.25rem;padding:.15rem 0 .55rem;overflow-x:auto;scrollbar-width:thin}.emoji-tab{display:flex;align-items:center;gap:.32rem;flex:0 0 auto;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted);padding:.38rem .55rem;cursor:pointer;font-weight:700}.emoji-tab span{font-size:.7rem}.emoji-tab:hover,.emoji-tab.active{background:var(--panel-2);border-color:var(--line);color:var(--text)}.emoji-grid{overflow-y:auto;grid-template-columns:repeat(8,1fr);padding-right:.15rem}.emoji-grid button{min-width:0;font-size:1.32rem}.emoji-empty{grid-column:1/-1;padding:1.2rem .6rem;text-align:center;color:var(--muted);font-size:.82rem}.emoji-grid button:active{transform:scale(.94)}
@media(max-width:520px){.emoji-picker{left:-.4rem;width:min(330px,calc(100vw - 1.2rem))}.emoji-picker-hint{display:none}.emoji-tab span{display:none}.emoji-tab{font-size:1.05rem;padding:.38rem .52rem}.emoji-grid{grid-template-columns:repeat(7,1fr)}}
html[data-theme="light"] .emoji-tab:hover,html[data-theme="light"] .emoji-tab.active{background:#edf3f9;border-color:#c8d5e4}

/* Volwaardige animatie-instelling */
.setting-row-select select{width:min(170px,42%);margin:0;padding:.48rem .65rem;border-radius:9px}
html:not(.reduce-motion) .overlay:not([hidden]){animation:ncOverlayIn .18s ease-out both}
html:not(.reduce-motion) .overlay:not([hidden])>.modal{animation:ncModalIn .22s cubic-bezier(.2,.8,.2,1) both}
html:not(.reduce-motion) .toast:not([hidden]){animation:ncToastIn .24s cubic-bezier(.2,.8,.2,1) both}
html:not(.reduce-motion) .toast.toast-left:not([hidden]){animation-name:ncToastInLeft}
html:not(.reduce-motion) .emoji-picker:not([hidden]){animation:ncPopoverIn .16s ease-out both;transform-origin:left bottom}
html:not(.reduce-motion) .user-card{transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
html:not(.reduce-motion) .user-card:hover{transform:translateY(-1px)}
html:not(.reduce-motion) .message{animation:ncMessageIn .18s ease-out both}
html:not(.reduce-motion) .activity-item{animation:ncMessageIn .18s ease-out both}
html:not(.reduce-motion) .age-gate{transition:opacity .2s ease,visibility .2s ease}
html:not(.reduce-motion) .age-gate-card{animation:ncGateIn .28s cubic-bezier(.2,.8,.2,1) both}
html:not(.reduce-motion) .age-gate.age-gate-closing{opacity:0;visibility:hidden}
html:not(.reduce-motion) .connection-connected .connection-dot{animation:connectionPulse 1.8s ease-out infinite}
html:not(.reduce-motion) .panel-title,.topbar,.composer,.quick-reactions,.visitor-filters,.emoji-tab,.filter-chip span,.icon-button{transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
html:not(.reduce-motion) .icon-button:hover,html:not(.reduce-motion) .emoji-tab:hover{transform:translateY(-1px)}
@keyframes ncOverlayIn{from{opacity:0}to{opacity:1}}
@keyframes ncModalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ncToastIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@keyframes ncToastInLeft{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
@keyframes ncPopoverIn{from{opacity:0;transform:translateY(7px) scale(.98)}to{opacity:1;transform:none}}
@keyframes ncMessageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes ncGateIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:520px){.setting-row-select{align-items:flex-start}.setting-row-select select{width:100%;grid-column:2/-1}}

/* Keep select-based settings readable: place the control below the explanatory copy. */
.setting-row-select{
  grid-template-columns:2.2rem minmax(0,1fr)!important;
  align-items:center;
  cursor:default;
}
.setting-row-select .setting-icon{
  grid-row:1 / span 2;
}
.setting-row-select .setting-copy{
  grid-column:2;
}
.setting-row-select select{
  grid-column:2;
  width:min(220px,100%);
  max-width:100%;
  margin:.35rem 0 0;
  justify-self:start;
  padding:.48rem .65rem;
  border-radius:9px;
}

@media(max-width:520px){
  .setting-row-select{
    grid-template-columns:2rem minmax(0,1fr)!important;
    align-items:start;
  }
  .setting-row-select select{
    grid-column:2;
    width:100%;
  }
}

/* Viewportveilige modals: vaste kop/acties en alleen de inhoud scrollt. */
.overlay{
  align-items:safe center;
  overscroll-behavior:contain;
}
.modal{
  max-height:calc(100dvh - 32px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scroll-padding-top:76px;
  scroll-padding-bottom:88px;
}
.modal-header{
  position:sticky;
  top:-24px;
  z-index:8;
  margin:-24px -24px 16px;
  padding:20px 24px 13px;
  background:var(--panel);
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}
.modal-header h1,
.modal-header h2{
  margin:0;
}
.modal-header .icon-button{
  flex:0 0 auto;
}
.modal-actions{
  position:sticky;
  bottom:-24px;
  z-index:7;
  margin:16px -24px -24px;
  padding:15px 24px 20px;
  background:var(--panel);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 18px rgba(0,0,0,.12);
}
.settings-modal{
  width:min(590px,calc(100vw - 2rem));
}
.settings-modal .modal-header{
  margin-bottom:1rem;
}
.settings-modal .modal-actions{
  margin-top:1rem;
}
.camera-modal .modal-header,
.profile-details-modal .modal-header{
  margin-bottom:18px;
}
html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-actions{
  background:var(--panel);
}
html[data-theme="light"] .modal-header{
  box-shadow:0 8px 18px rgba(28,47,73,.09);
}
html[data-theme="light"] .modal-actions{
  box-shadow:0 -8px 18px rgba(28,47,73,.09);
}

@media(max-width:720px){
  .overlay{
    align-items:flex-start;
    padding:8px;
  }
  .modal{
    max-height:calc(100dvh - 16px);
    scroll-padding-top:68px;
    scroll-padding-bottom:82px;
  }
  .modal-header{
    top:-18px;
    margin:-18px -18px 14px;
    padding:16px 18px 12px;
  }
  .modal-actions{
    bottom:-18px;
    margin:14px -18px -18px;
    padding:14px 18px 16px;
  }
}

@media(max-height:620px){
  .overlay{
    align-items:flex-start;
  }
}

/* Modal stacking and scroll-space correction.
   The site header uses z-index:60, so dialogs must be rendered above it. */
.overlay{
  z-index:100;
}

/* Keep sticky dialog chrome inside the visible modal bounds. */
.modal-header{
  top:0;
  margin:-24px -24px 16px;
}
.modal-actions{
  bottom:0;
  margin:16px -24px -24px;
}

/* Prevent the final settings control from being covered by the sticky footer. */
.settings-modal .settings-switches{
  padding-bottom:18px;
}
.settings-modal .setting-row:last-child{
  margin-bottom:0;
}

@media(max-width:720px){
  .modal-header{
    top:0;
    margin:-18px -18px 14px;
  }
  .modal-actions{
    bottom:0;
    margin:14px -18px -18px;
  }
  .settings-modal .settings-switches{
    padding-bottom:14px;
  }
}


/* Profile dialog polish: keep title, metadata and actions visually separated. */
.profile-details-modal .modal-header{
  align-items:center;
  min-height:92px;
}
.profile-details-modal .modal-header > div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.profile-details-modal .modal-header h2{
  line-height:1.15;
  overflow-wrap:anywhere;
}
.profile-details-meta{
  margin-top:0!important;
  line-height:1.35;
}
.profile-details-actions{
  justify-content:flex-start;
  margin:0 0 20px;
  padding:0 0 18px;
  border-bottom:1px solid var(--line);
}
.profile-details-actions:empty{display:none}
.profile-details-actions button{flex:0 0 auto}
@media(max-width:560px){
  .profile-details-modal .modal-header{min-height:78px}
  .profile-details-actions{gap:8px}
  .profile-details-actions button{flex:1 1 calc(50% - 8px)}
}

/* Responsive modal actions: action buttons must always remain fully visible. */
.modal{
  overflow-x:hidden;
}
.modal-actions{
  flex-wrap:wrap;
}
.modal-actions > button{
  max-width:100%;
}
.profile-details-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));
  width:100%;
  gap:10px;
  overflow:visible;
}
.profile-details-actions button{
  width:100%;
  min-width:0;
  max-width:100%;
  white-space:normal;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.profile-details-modal{
  overflow-x:hidden;
}

@media(max-width:560px){
  .profile-details-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:380px){
  .profile-details-actions{
    grid-template-columns:1fr;
  }
}


/* Definitieve profielmodal-opbouw: vaste kop en een afzonderlijk ingesprongen inhoudsgebied. */
.profile-details-modal{
  padding:0;
  overflow-y:auto;
  overflow-x:hidden;
}
.profile-details-modal .modal-header{
  top:0;
  margin:0;
  padding:24px 36px 20px;
  min-height:118px;
  z-index:10;
  border-radius:18px 18px 0 0;
}
.profile-details-content{
  padding:24px 36px 36px;
  min-width:0;
}
.profile-details-actions{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  width:auto;
  margin:0 0 28px;
  padding:0 0 28px;
  border-bottom:1px solid var(--line);
  overflow:visible;
}
.profile-details-actions button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:11px 16px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.profile-details-actions:empty{
  display:none;
}

@media(max-width:720px){
  .profile-details-modal .modal-header{
    padding:20px 22px 17px;
    min-height:100px;
  }
  .profile-details-content{
    padding:20px 22px 28px;
  }
  .profile-details-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
}

@media(max-width:430px){
  .profile-details-actions{
    grid-template-columns:1fr;
  }
}

.microphone-test-row{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}.microphone-meter{display:grid;grid-template-columns:auto minmax(110px,1fr) auto;align-items:center;gap:8px;flex:1;min-width:260px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--panel2) 78%,transparent)}.microphone-meter-label,.microphone-level-text{font-size:.8rem;color:var(--muted);white-space:nowrap}.microphone-level-text{min-width:72px;text-align:right}.microphone-meter-track{height:8px;border-radius:999px;background:#0b1019;overflow:hidden;border:1px solid color-mix(in srgb,var(--line) 80%,transparent)}.microphone-meter-fill{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#47d17d,#e0c84f,#ef476f);transition:width .08s linear}.microphone-test-button.active{outline:2px solid color-mix(in srgb,var(--accent) 65%,transparent)}@media(max-width:720px){.microphone-test-row{align-items:stretch}.microphone-meter{min-width:0;width:100%;grid-template-columns:auto 1fr}.microphone-level-text{grid-column:1/-1;text-align:left}.microphone-test-button{width:100%}}
