:root{--navy:#17386b;--navy2:#0d2146;--blue:#4699cc;--sky:#7cc8ee;--yellow:#f2c147;--text:#263653;--muted:#748198;--bg:#f4f7fb;--line:#e3e8f0;--green:#107c41;--purple:#7656d6;--red:#c73a3a}*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}button,input,textarea,select{font:inherit}.hidden{display:none!important}.login-wrap{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,var(--navy2),var(--navy));padding:20px}.login-card{background:#fff;width:min(420px,100%);padding:34px;border-radius:24px;box-shadow:0 30px 80px #0004}.brand-mark,.logo{display:grid;place-items:center;background:var(--yellow);color:var(--navy);font-weight:900}.brand-mark{width:58px;height:58px;border-radius:18px;font-size:28px}.login-card h1{margin:16px 0 6px}.login-card p{color:var(--muted)}.login-card input{width:100%;padding:14px;border:1px solid var(--line);border-radius:13px;margin:6px 0}.login-card button{width:100%;padding:14px;margin-top:10px;border:0;border-radius:13px;background:var(--navy);color:#fff;font-weight:700}.shell{height:100%;display:grid;grid-template-columns:86px 380px 1fr;overflow:hidden}.rail{background:linear-gradient(180deg,var(--navy2),var(--navy));padding:10px 8px;display:flex;flex-direction:column;gap:3px;color:#fff;overflow-y:auto}.logo{width:44px;height:44px;border-radius:14px;margin:0 auto 6px}.nav{position:relative;border:0;background:transparent;color:#d8e2f2;padding:8px 5px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;min-height:48px}.nav span{font-size:10px}.nav.active,.nav:hover{background:#ffffff18;color:#fff}.nav b{position:absolute;top:3px;right:7px;background:var(--yellow);color:var(--navy2);min-width:18px;height:18px;padding:0 5px;border-radius:9px;font-size:11px}.nav.bottom{margin-top:auto}.list-pane{background:#fff;border-right:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column}.list-pane>header{padding:18px 20px;display:flex;justify-content:space-between;align-items:center}.list-pane small{color:var(--blue);font-weight:800;letter-spacing:.12em}.list-pane h2{margin:2px 0;font-size:27px}.agent-presence select{font-size:12px;border:1px solid var(--line);background:#f8fafc;border-radius:999px;padding:7px 9px;color:var(--green)}#searchWrap{padding:0 18px 12px}.list-pane input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#f9fbfd}.chips{display:flex;gap:7px;overflow:auto;padding-top:10px}.chip{border:0;border-radius:999px;padding:8px 12px;background:#eef3f8;color:#526179;font-weight:700;white-space:nowrap}.chip.active{background:var(--navy);color:#fff}.list{overflow:auto;flex:1;padding:0 10px 20px}.row{padding:14px 12px;border-radius:14px;margin:3px 0;cursor:pointer;display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center}.row:hover,.row.active{background:#f1f6fb}.avatar{width:46px;height:46px;border-radius:14px;background:#e8f3fb;display:grid;place-items:center;color:var(--navy);font-weight:800}.row h4{margin:0 0 4px}.row p{margin:0;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.row time{font-size:11px;color:#97a3b4}.detail-pane{min-width:0;background:#f7f9fc;position:relative}.empty{height:100%;display:grid;place-content:center;text-align:center;color:var(--muted)}.empty-icon{font-size:48px}.conv{height:100%;display:flex;flex-direction:column}.conv-head{min-height:78px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.conv-heading{min-width:0}.conv-head h3{margin:0}.conv-head #convMeta{font-size:12px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.conv-actions button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 9px;cursor:pointer}.conv-actions button:hover{background:#eef4fa}.mobile-back{display:none;border:0;background:#eef3f8;border-radius:10px;padding:8px}.messages{flex:1;overflow:auto;padding:22px}.msg{max-width:min(720px,82%);padding:10px 13px;border-radius:16px;margin:7px 0;box-shadow:0 1px 4px #0001;background:#fff}.msg.visitor{margin-left:auto;background:var(--navy);color:#fff}.msg.note{background:#fff4ca;border:1px solid #f3d777}.msg.system,.msg.ai{background:#eaf3fb;border:1px solid #cbe0f0}.msg small{display:block;opacity:.65;margin-top:4px}#composer{display:flex;gap:10px;padding:14px;background:#fff;border-top:1px solid var(--line)}#composer textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:14px;padding:12px 13px;max-height:120px}#composer button{width:48px;border:0;border-radius:14px;background:var(--navy);color:#fff}.generic{height:100%;overflow:auto;padding:24px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:10px}.card.clickable{cursor:pointer}.card.clickable:hover{border-color:#b7cce0;box-shadow:0 3px 14px #17386b12}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.stat h1{margin:6px 0 0}.visitor-line{display:flex;justify-content:space-between;gap:12px}.visitor-line b{color:var(--green)}#toastHost{position:fixed;top:16px;right:16px;z-index:99999;display:flex;flex-direction:column;gap:10px}.toast{min-width:320px;max-width:440px;background:#fff;border-radius:16px;box-shadow:0 18px 50px #0003;padding:13px 15px;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);animation:slide .22s ease-out}.toast .ti{width:38px;height:38px;border-radius:12px;background:#eaf3fb;display:grid;place-items:center}.toast h5{margin:0 0 2px}.toast p{margin:0;color:var(--muted);font-size:13px}.toast button{border:0;background:none;font-size:18px}@keyframes slide{from{transform:translateY(-12px);opacity:0}to{transform:none;opacity:1}}.visitor-context{background:#eef4fa;border-bottom:1px solid var(--line);padding:10px 18px;font-size:12px}.context-main{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.context-main span{color:var(--muted)}.presence.online{color:var(--green);font-weight:700}.presence.offline{color:var(--muted)}.visitor-context details{margin-top:7px}.visitor-context summary{cursor:pointer;font-weight:700;color:var(--navy)}.timeline{display:grid;gap:8px;margin-top:8px}.timeline>div{padding:8px 0;border-bottom:1px solid #d9e3ee}.timeline small{display:block;color:var(--muted);margin-top:3px}.visitor-card{display:block;width:100%;text-align:left;cursor:pointer;color:inherit;font:inherit}.primary,.secondary,.danger{border:0;border-radius:11px;padding:10px 13px;cursor:pointer}.primary{background:var(--navy);color:#fff}.secondary{background:#eaf1f8;color:var(--navy)}.danger{background:#fde9e9;color:#9c2525}#composer button:disabled{opacity:.5;cursor:wait}.pill{display:inline-block;border-radius:999px;padding:4px 8px;background:#edf3f8;font-size:12px;margin-right:4px}.pill.good{background:#e8f6ee;color:#0e6c39}.pill.warn{background:#fff4d8;color:#8d6800}.pill.bad{background:#fdeaea;color:#a32929}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid label{display:grid;gap:5px;font-weight:600}.form-grid input,.form-grid select,.form-grid textarea,.setting-row select,.setting-row input{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}.setting-row{display:grid;grid-template-columns:minmax(140px,1fr) 85px 145px 80px 90px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.notify-gate{position:fixed;inset:0;background:#0d2146aa;z-index:100000;display:grid;place-items:center;padding:20px}.notify-card{width:min(560px,100%);background:#fff;border-radius:22px;padding:22px;box-shadow:0 30px 90px #0005;display:grid;grid-template-columns:56px 1fr auto;gap:14px;align-items:center}.notify-card h3{margin:0 0 4px}.notify-card p{margin:0;color:var(--muted)}.notify-icon{width:56px;height:56px;border-radius:17px;background:#fff4ca;display:grid;place-items:center;font-size:26px}.notify-card button{border:0;border-radius:11px;padding:11px 14px;background:var(--navy);color:#fff;cursor:pointer}.notify-card .secondary{grid-column:3;background:#eef3f8;color:var(--navy)}.crm-status{font-size:13px;color:var(--muted)}
@media(max-width:1000px){.shell{grid-template-columns:76px 340px 1fr}.conv-actions button{padding:7px}.setting-row{grid-template-columns:1fr 80px 120px}}
@media(max-width:800px){.shell{grid-template-columns:1fr}.rail{position:fixed;left:0;right:0;bottom:0;height:72px;z-index:50;display:flex;flex-direction:row;overflow-x:auto;padding:6px 8px;background:var(--navy2);padding-bottom:max(6px,env(safe-area-inset-bottom))}.logo,.nav.bottom{display:none}.nav{min-width:64px;padding:6px 2px}.nav span{font-size:9px}.list-pane{border:0;padding-bottom:72px}.detail-pane{position:fixed;inset:0 0 72px 0;z-index:40;transform:translateX(100%);transition:transform .18s ease}.detail-pane.open{transform:none}.mobile-back{display:block}.list-pane>header{padding:14px 16px 8px}.list-pane h2{font-size:24px}.row p{max-width:55vw}#toastHost{left:10px;right:10px;top:max(10px,env(safe-area-inset-top))}.toast{min-width:0;max-width:none;width:100%}.generic{padding:14px}.messages{padding:14px}.conv-head{align-items:flex-start}.conv-actions{gap:4px}.form-grid{grid-template-columns:1fr}.setting-row{grid-template-columns:1fr 80px}.setting-row select:nth-of-type(1){grid-column:1/2}.notify-card{grid-template-columns:48px 1fr}.notify-icon{width:48px;height:48px}.notify-card button,.notify-card .secondary{grid-column:1/-1}}
/* 3.3.0 – replies, copilot, notification diagnostics */
#overlayHost:empty{display:none}.overlay{position:fixed;inset:0;background:rgba(13,33,70,.38);backdrop-filter:blur(2px);z-index:9999;display:flex;justify-content:flex-end}.drawer{width:min(620px,96vw);height:100%;background:#fff;box-shadow:-24px 0 60px #0d214633;overflow:auto;padding:22px}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;position:sticky;top:-22px;background:#fff;padding:22px 0 14px;z-index:2;border-bottom:1px solid #e6ebf2}.drawer-head small{font-weight:800;letter-spacing:.12em;color:#4699cc}.drawer-head h2{margin:4px 0;color:#17386b}.drawer-close{border:0;background:#eef3f8;border-radius:10px;width:38px;height:38px;font-size:24px;cursor:pointer}.reply-tools{display:grid;grid-template-columns:1fr 180px auto;gap:10px;align-items:center;margin:18px 0}.reply-tools input,.reply-tools select{padding:11px;border:1px solid #dbe1ea;border-radius:10px}.reply-card{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;border:1px solid #e2e8f0;border-radius:14px;padding:14px;margin:10px 0;background:#fff}.reply-card h4{margin:4px 0;color:#17386b}.reply-card p{margin:6px 0;line-height:1.45;color:#475467}.reply-card small{color:#7b8798}.reply-fav,.reply-admin-fav{font-size:20px;border:0;background:transparent;cursor:pointer;color:#d29f12}.reply-admin h3{margin:4px 0}.slash-hint{position:absolute;left:0;right:58px;bottom:58px;background:#fff;border:1px solid #d9e2ed;border-radius:14px;box-shadow:0 16px 40px #0d214626;max-height:260px;overflow:auto;z-index:30;padding:6px}.slash-hint button{display:flex;width:100%;gap:10px;align-items:center;border:0;background:#fff;padding:10px;border-radius:9px;cursor:pointer;text-align:left}.slash-hint button:hover{background:#f3f7fb}.slash-hint b{color:#17386b;min-width:120px}.slash-hint span{color:#667085}.mini-summary{margin-top:8px;padding:9px 11px;border-radius:10px;background:#f3f7fb;display:flex;gap:8px;font-size:12px}.mini-summary b{color:#17386b}.crm-status{padding:8px 10px;background:#f5f8fc;border-radius:9px;color:#475467}.notify-gate{z-index:10050}.setting-row{display:grid;grid-template-columns:minmax(135px,1fr) auto 140px auto auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f5}.reply-admin{cursor:default}@media(max-width:760px){.reply-tools{grid-template-columns:1fr}.reply-card{grid-template-columns:auto 1fr}.reply-card .reply-use{grid-column:2}.setting-row{grid-template-columns:1fr 1fr}.drawer{width:100%;padding:16px}}

/* 3.4.0 – clearer iconography, operator profile, workflow drawers */
.nav-icon{display:grid;place-items:center;min-width:28px;height:24px;font:800 19px/1 Arial,sans-serif;color:#fff;letter-spacing:-.03em}.nav-icon.small{font-size:14px;letter-spacing:0}.nav.active .nav-icon,.nav:hover .nav-icon{color:#fff}.conv-actions button{min-width:38px;height:38px;display:grid;place-items:center;color:var(--navy);font-weight:800}.conv-actions button b{font:800 13px/1 Arial,sans-serif}.conv-actions #crmBtn b{font-size:10px}.conv-actions #trainingBtn b{font-size:10px}.workflow-form{display:grid;gap:12px}.workflow-form label{display:grid;gap:6px;font-weight:700;color:#344054}.workflow-form input,.workflow-form textarea,.workflow-form select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text)}.workflow-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.choice-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.choice-grid button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:13px 8px;cursor:pointer;font-weight:800;color:var(--navy)}.choice-grid button:hover,.choice-grid button.active{border-color:var(--navy);background:#eef4fa}.profile-card{display:grid;grid-template-columns:112px 1fr;gap:18px;align-items:start}.profile-avatar{width:108px;height:108px;border-radius:22px;background:#eaf3fb;border:1px solid var(--line);object-fit:cover;display:grid;place-items:center;font-size:32px;color:var(--navy);overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-buttons{display:flex;gap:8px;flex-wrap:wrap}.profile-hours .setting-row{grid-template-columns:minmax(120px,1fr) 90px 130px 30px 130px}.visitor-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.trigger-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.trigger-meta .pill{margin:0}.hint{font-size:12px;color:var(--muted)}.compose-hint{font-size:11px;color:var(--muted);padding:0 16px 8px;background:#fff;text-align:right}#composer textarea{line-height:1.4}.generic h2{color:var(--navy2)}
@media(max-width:800px){.profile-card{grid-template-columns:1fr}.profile-hours .setting-row{grid-template-columns:1fr 90px}.choice-grid{grid-template-columns:repeat(2,1fr)}}

/* 3.5.0 – high-contrast navigation, stable scrolling, CRM/customer workflow */
.shell,.list-pane,.detail-pane,.conv,.generic{min-height:0}.detail-pane{overflow:hidden}.generic{height:100%;max-height:100%;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:80px}.rail{scrollbar-width:thin}.nav-icon{width:30px;height:27px;color:#fff!important}.nav-icon svg{width:23px;height:23px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav.active .nav-icon,.nav:hover .nav-icon{color:#fff!important}.nav{color:#eaf2ff}.nav span:last-of-type{color:inherit;font-weight:650}.nav.active{background:#ffffff20}.nav:hover{background:#ffffff14}.nav b{z-index:2;box-shadow:0 0 0 2px var(--navy2)}
.slash-hint{padding:8px;right:56px}.slash-hint button{display:grid;grid-template-columns:minmax(86px,130px) 1fr;gap:12px;align-items:start;padding:9px 10px;border-radius:10px}.slash-hint button b{min-width:0;display:inline-block;width:max-content;max-width:100%;background:#eef4fa!important;color:#17386b!important;border:1px solid #d5e2ee;border-radius:7px;padding:4px 7px;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slash-hint button span{padding-top:3px;line-height:1.35;color:#526179}.slash-hint button:hover b{background:#e1edf7!important}
.crm-picker{border:1px solid var(--line);border-radius:13px;background:#f8fafc;padding:12px}.crm-picker-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.crm-search-row{display:grid;grid-template-columns:1fr auto;gap:8px}.crm-search-results{max-height:220px;overflow:auto;margin-top:8px;display:grid;gap:6px}.crm-result{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px;text-align:left;cursor:pointer;color:var(--text)}.crm-result:hover,.crm-result.selected{border-color:var(--blue);background:#eef7fd}.crm-result strong{display:block;color:var(--navy)}.crm-result small{display:block;margin-top:3px;color:var(--muted)}.customer-selected{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#eaf6ef;border:1px solid #c4e7d2;color:#0e6336;border-radius:11px;padding:9px 11px;margin-top:8px}.customer-selected button{border:0;background:transparent;color:#8a2525;cursor:pointer}.workflow-error{background:#fff0ef;color:#912018;border:1px solid #f0c8c5;border-radius:10px;padding:10px}.workflow-success{background:#eaf6ef;color:#0e6336;border:1px solid #c4e7d2;border-radius:10px;padding:10px}.workflow-success a{color:inherit;font-weight:800}.field-help{font-size:11px;color:var(--muted);font-weight:500}.tagbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:7px}.tag-chip{display:inline-flex;gap:5px;align-items:center;border-radius:999px;background:#e9f0fa;color:var(--navy);padding:4px 8px;font-size:11px;font-weight:700}.tag-chip button{border:0;background:transparent;color:#7b8798;cursor:pointer;padding:0}.tag-add{border:1px dashed #b7c6d7;background:#fff;color:var(--navy);border-radius:999px;padding:4px 8px;font-size:11px;cursor:pointer}.routing-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ban-state{background:#fdeaea;color:#942b2b;border-radius:8px;padding:5px 8px;font-size:12px;font-weight:700}.rating-stars{display:flex;gap:4px}.rating-stars span{color:#e2a800;font-size:18px}.feature-matrix{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.feature-matrix>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.feature-matrix b{display:block;color:var(--navy)}
@media(min-width:1001px){.shell{grid-template-columns:92px 380px minmax(0,1fr)}.rail{padding-left:9px;padding-right:9px}.nav{min-height:54px}.nav span:last-of-type{font-size:10px}}
@media(max-width:800px){.generic{padding-bottom:100px}.routing-grid,.crm-search-row{grid-template-columns:1fr}.slash-hint{right:8px}.slash-hint button{grid-template-columns:100px 1fr}}


/* 3.9.0 – full-width modules, modern Cursus Compleet layout */
@media(min-width:801px){
  .shell.module-view{grid-template-columns:92px minmax(0,1fr)}
  .shell.module-view .list-pane{display:none}
  .shell.module-view .detail-pane{grid-column:2/-1}
  .shell.inbox-overview{grid-template-columns:92px minmax(0,1fr)}
  .shell.inbox-overview .list-pane{grid-column:2/-1;border-right:0;background:var(--bg)}
  .shell.inbox-overview .detail-pane{display:none}
  .shell.inbox-overview .list-pane>header{padding:26px 30px 10px}
  .shell.inbox-overview #searchWrap{padding:0 30px 12px}
  .shell.inbox-overview .list{padding:8px 30px 34px;display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px;align-content:start}
  .shell.inbox-overview .row{margin:0;background:#fff;border:1px solid var(--line);box-shadow:0 8px 28px rgba(13,33,70,.05);border-radius:18px;padding:16px}
  .shell.inbox-overview .row:hover{transform:translateY(-1px);box-shadow:0 12px 34px rgba(13,33,70,.09);border-color:#c8d8e8}
  .shell.inbox-overview .row p{max-width:none}
}
.generic{background:linear-gradient(180deg,#f8fbfe 0,#f4f7fb 230px);padding:28px 32px 96px}
.module-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:0 0 20px;padding:22px 24px;background:linear-gradient(135deg,#fff 0,#f4f9fd 100%);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 34px rgba(13,33,70,.06)}
.module-hero small,.section-heading small,.settings-toc>small{display:block;font-size:11px;font-weight:900;letter-spacing:.14em;color:var(--blue);text-transform:uppercase}
.module-hero h2{font-size:29px;margin:4px 0 5px!important;color:var(--navy2)}
.module-hero p{margin:0;color:var(--muted);max-width:760px}
.module-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}
.card{border-radius:18px;box-shadow:0 5px 20px rgba(13,33,70,.035);padding:18px}
.card:hover{box-shadow:0 8px 26px rgba(13,33,70,.055)}
.visitor-card-modern,.contact-card-modern{margin:0;display:flex;flex-direction:column;gap:14px;min-height:190px}
.visitor-card-top{display:flex;gap:13px;align-items:flex-start}.avatar.large{width:54px;height:54px;border-radius:17px;flex:0 0 auto}
.visitor-card-copy{min-width:0;flex:1}.visitor-card-copy strong,.contact-card-modern h3{font-size:17px;color:var(--navy2)}
.visitor-page{margin:8px 0;color:var(--text);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta-line{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--muted);font-size:12px}.meta-line span{display:inline-flex;align-items:center}.org-chip{background:#e8f6ee;color:#0e6c39;border-radius:999px;padding:4px 8px;font-weight:750}
.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.ghost{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:11px;padding:10px 13px;cursor:pointer}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-bottom:18px}.meta-stack{display:grid;gap:8px;color:var(--muted)}.meta-stack b{color:var(--text)}
.org-title{font-size:20px;font-weight:800;color:var(--navy);margin:8px 0}.metric-row{display:flex;gap:14px}.metric-row>span{display:grid;place-items:center;min-width:90px;padding:12px;background:#f5f8fc;border-radius:14px;font-size:24px;font-weight:900;color:var(--navy)}.metric-row small{font-size:11px;color:var(--muted);font-weight:600}
.module-section{margin-top:22px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}.section-heading h3{margin:3px 0;color:var(--navy2);font-size:21px}
.timeline.modern{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}.timeline.modern>div{border-bottom:1px solid var(--line);padding:16px}
.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.toolbar-card{padding:12px}.toolbar-card input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px}
.analytics-grid .stat{min-height:132px;display:flex;flex-direction:column;justify-content:center}.analytics-grid .stat h1{font-size:34px;color:var(--navy)}
.trigger-card,.reply-admin{margin-bottom:12px}
.settings-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:start}
.settings-toc{position:sticky;top:0;background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px;box-shadow:0 8px 28px rgba(13,33,70,.05);max-height:calc(100vh - 56px);overflow:auto}
.settings-toc h3{margin:4px 0 12px;color:var(--navy2)}.settings-toc button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:9px 10px;border-radius:10px;cursor:pointer;font-weight:650}.settings-toc button:hover{background:#eef5fb;color:var(--navy)}
.settings-content{min-width:0}.settings-content>.card{scroll-margin-top:18px;margin-bottom:16px}.settings-content>.card>h3{font-size:20px;color:var(--navy2);margin-top:0}
.empty-state{text-align:center;padding:44px 24px;color:var(--muted)}
@media(max-width:800px){
 .generic{padding:14px 14px 104px}.module-hero{padding:17px;display:block;border-radius:18px}.module-hero h2{font-size:24px}.module-actions{justify-content:flex-start;margin-top:13px}
 .module-grid{grid-template-columns:1fr}.visitor-card-modern,.contact-card-modern{min-height:0}.detail-grid{grid-template-columns:1fr}
 .settings-layout{grid-template-columns:1fr}.settings-toc{position:static;display:flex;gap:6px;overflow-x:auto;max-height:none;padding:10px}.settings-toc>small,.settings-toc h3{display:none}.settings-toc button{width:auto;white-space:nowrap;background:#eef4fa}
 .timeline.modern{grid-template-columns:1fr}.card-actions>*{flex:1 1 auto}.module-actions>*{flex:1 1 auto}
}

/* 4.0.0 – multi-tenant operator workspace */
.header-controls{display:flex;gap:9px;align-items:center}.tenant-filter{max-width:180px;border:1px solid var(--line);background:#f8fafc;color:var(--navy);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:750}.tenant-filter:disabled{opacity:.72}.tenant-badge{--tenant-color:#17386b;--tenant-accent:#4699cc;display:inline-flex;align-items:center;gap:6px;max-width:190px;border:1px solid color-mix(in srgb,var(--tenant-color) 18%,#fff);background:color-mix(in srgb,var(--tenant-color) 7%,#fff);color:var(--tenant-color);border-radius:999px;padding:5px 9px;font-weight:800;font-size:11px;white-space:nowrap;vertical-align:middle}.tenant-badge i{width:8px;height:8px;border-radius:50%;background:var(--tenant-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--tenant-accent) 15%,transparent)}.tenant-badge.compact{font-size:10px;padding:3px 7px}.row-title-line{display:flex;gap:8px;align-items:center;min-width:0;flex-wrap:wrap}.row-title-line h4,.row-title-line h3{margin:0;min-width:0}.conv-heading h3 .tenant-badge{margin-left:7px;transform:translateY(-1px)}
.tenant-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.tenant-summary>div{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;display:flex;align-items:baseline;gap:9px;box-shadow:0 5px 20px rgba(13,33,70,.035)}.tenant-summary b{font-size:30px;color:var(--navy)}.tenant-summary span{color:var(--muted);font-weight:650}.tenant-card{min-height:250px;display:flex;flex-direction:column}.tenant-card-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center}.tenant-brand-dot{width:42px;height:42px;border-radius:14px;box-shadow:inset 0 0 0 1px #0001}.tenant-card h3{margin:0;color:var(--navy2)}.tenant-card p{margin:3px 0;color:var(--muted)}.tenant-kv{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:17px 0}.tenant-kv span{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:12px;background:#f7f9fc;color:var(--muted);font-size:11px}.tenant-kv b{color:var(--text);font-size:12px;overflow-wrap:anywhere}
@media(max-width:800px){.header-controls{flex-direction:column;align-items:flex-end;gap:5px}.tenant-filter{max-width:145px;font-size:11px}.tenant-summary{grid-template-columns:1fr}.tenant-card-head{grid-template-columns:42px 1fr}.tenant-card-head>.tenant-badge{grid-column:2}.tenant-kv{grid-template-columns:1fr}.row-title-line .tenant-badge{max-width:150px}.conv-heading h3{display:flex;gap:6px;align-items:center;flex-wrap:wrap}}

/* 4.0.2 – live tenantfilter + realtime bezoekers */
.module-tenant-control{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 10px;box-shadow:0 1px 3px #17386b0a}.module-tenant-control span{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.module-tenant-control select{min-width:180px;border:0;background:#f4f7fb;color:var(--navy);font-weight:800;border-radius:10px;padding:9px 11px;outline:none}.module-tenant-control select:focus{box-shadow:0 0 0 2px #4699cc33}@media(max-width:800px){.module-tenant-control{width:100%;justify-content:space-between}.module-tenant-control select{min-width:0;flex:1;max-width:220px}}
