.wm-page{max-width:1420px;margin:0 auto;padding:0 0 32px;color:#111d38}

.wm-page svg,.wm-modal svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important}

.wm-head,.wm-head-actions,.wm-tabs,.wm-card-head,.wm-workspace-top,.wm-actions,.wm-stat-row,.wm-member,.wm-env,.wm-switch-row,.wm-modal-actions,.wm-icon-title{display:flex;align-items:center}

.wm-head{justify-content:space-between;gap:24px;margin-bottom:24px}

.wm-kicker{font-size:12px;font-weight:850;letter-spacing:.12em;color:#2878f4}

.wm-head h1{font-size:36px;margin:7px 0 8px}

.wm-head p{font-size:15px;color:#71809a;margin:0}

.wm-head-actions,.wm-actions{gap:9px}

.wm-btn{height:43px;border:1px solid #d9e2ef;border-radius:11px;background:#fff;color:#17233d;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:750 13px/1 inherit;cursor:pointer}

.wm-btn:hover{border-color:#96b9f2;background:#f8fbff}

.wm-btn.primary{background:#2476f3;border-color:#2476f3;color:#fff;box-shadow:0 8px 20px #2476f326}

.wm-btn.danger{color:#d93d50;border-color:#f0cbd1}

.wm-btn.small{height:36px;padding:0 11px}

.wm-card{background:#fff;border:1px solid #dfe6f1;border-radius:17px;box-shadow:0 7px 25px #15345c0d}

.wm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}

.wm-stat{padding:17px}

.wm-stat-row{justify-content:space-between;color:#7b89a0}

.wm-stat-row span{width:34px;height:34px;border-radius:10px;background:#eaf3ff;color:#2476f3;display:grid;place-items:center}

.wm-stat b{font-size:22px;display:block;margin-top:9px}

.wm-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px}

.wm-workspace-list{padding:12px;height:max-content}

.wm-list-title{padding:8px 8px 12px;font-size:11px;color:#8996aa;font-weight:850;letter-spacing:.1em}

.wm-workspace{width:100%;border:1px solid transparent;border-radius:13px;background:transparent;padding:12px;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer;color:#17233d}

.wm-workspace:hover{background:#f6f9fe}

.wm-workspace.active{background:#ebf3ff;border-color:#b8d1f9}

.wm-avatar{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#367ef5,#55c7e8);color:#fff;display:grid;place-items:center;font-size:18px;font-weight:850;flex:none}

.wm-workspace:nth-of-type(3) .wm-avatar{background:linear-gradient(135deg,#7656e8,#d07bdc)}

.wm-workspace div{min-width:0;flex:1}

.wm-workspace b,.wm-workspace small{display:block}

.wm-workspace small{color:#7e8da5;margin-top:4px}

.wm-workspace>svg{color:#2476f3}

.wm-list-create{width:100%;margin-top:10px}

.wm-main{min-width:0;overflow:hidden}

.wm-main-header{padding:20px 22px;border-bottom:1px solid #e8edf4}

.wm-workspace-top{justify-content:space-between;gap:16px}

.wm-icon-title{gap:12px}

.wm-icon-title .wm-avatar{width:48px;height:48px}

.wm-icon-title h2{margin:0;font-size:20px}

.wm-icon-title p{margin:4px 0 0;color:#75839b;font-size:12px}

.wm-status{border-radius:999px;background:#e9faf3;color:#14966b;padding:6px 9px;font-size:11px;font-weight:850}

.wm-tabs{gap:4px;padding:0 18px;border-bottom:1px solid #e8edf4;overflow:auto}

.wm-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#71809a;padding:15px 12px 13px;font-weight:750;white-space:nowrap;cursor:pointer}

.wm-tabs button.active{color:#2476f3;border-color:#2476f3}

.wm-panel{padding:22px}

.wm-section{padding:19px;border:1px solid #e1e7f0;border-radius:14px;margin-bottom:15px}

.wm-section:last-child{margin-bottom:0}

.wm-card-head{justify-content:space-between;gap:18px;margin-bottom:16px}

.wm-card-head h3{margin:0;font-size:16px}

.wm-card-head p{margin:4px 0 0;color:#7c8aa1;font-size:12px}

.wm-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}

.wm-form label{font-size:12px;font-weight:800}

.wm-form label.full{grid-column:1/-1}

.wm-input,.wm-select{width:100%;height:44px;border:1px solid #d9e2ef;border-radius:10px;background:#fbfcff;color:#17233d;padding:0 12px;font:650 13px inherit;box-sizing:border-box;outline:0;margin-top:7px}

.wm-input:focus{border-color:#3e84f4;box-shadow:0 0 0 3px #2476f318;background:#fff}

.wm-help{color:#8391a6;font-size:11px;line-height:1.5;margin-top:6px}

.wm-member,.wm-env{gap:13px;padding:13px 0;border-top:1px solid #edf1f6}

.wm-member:first-of-type,.wm-env:first-of-type{border-top:0}

.wm-member .wm-avatar{width:38px;height:38px;font-size:14px}

.wm-member>div,.wm-env>div{flex:1;min-width:0}

.wm-member b,.wm-member small,.wm-env b,.wm-env small{display:block}

.wm-member small,.wm-env small{color:#7d8ba2;margin-top:3px}

.wm-role,.wm-env-badge{border-radius:999px;background:#eef3fb;color:#5f708d;padding:6px 9px;font-size:11px;font-weight:800}

.wm-env-badge.live{background:#e9faf3;color:#14966b}

.wm-switch-row{justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid #edf1f6}

.wm-switch-row:first-child{border-top:0}

.wm-switch-row b,.wm-switch-row small{display:block}

.wm-switch-row small{color:#7c8aa1;margin-top:4px}

.wm-toggle{width:43px;height:25px;border:0;border-radius:999px;background:#cbd5e4;padding:3px;cursor:pointer;flex:none}

.wm-toggle i{display:block;width:19px;height:19px;border-radius:50%;background:#fff;transition:.18s}

.wm-toggle.on{background:#287af4}

.wm-toggle.on i{transform:translateX(18px)}

.wm-security-score{display:grid;grid-template-columns:auto 1fr;gap:15px;align-items:center;background:linear-gradient(90deg,#eef6ff,#effff9)}

.wm-security-score>span{width:58px;height:58px;border-radius:50%;border:6px solid #32c899;display:grid;place-items:center;font-weight:850}

.wm-security-score h3{margin:0}

.wm-security-score p{margin:5px 0;color:#6f7f98}

.wm-danger{border-color:#f1d5da;background:#fffafb}

.wm-danger h3{color:#c9364a}

/* Modal stays inside #senditto-platform-root (project), not browser tab chrome */
#senditto-platform-root{position:relative}
#senditto-platform-root[data-workspace-manager="true"]{min-height:70vh}
.wm-modal{position:absolute;inset:0;z-index:6500;display:grid;place-items:center;padding:22px}
#senditto-platform-root .wm-modal{position:absolute}
body>.wm-modal{position:fixed}

.wm-backdrop{position:absolute;inset:0;border:0;background:#0b183b66;backdrop-filter:blur(4px)}

.wm-dialog{position:relative;width:min(650px,100%);max-height:calc(100vh - 44px);overflow:auto;background:#fff;border-radius:21px;padding:27px;box-shadow:0 30px 80px #0b183b3d}

.wm-dialog.wide{width:min(900px,100%)}

.wm-close{position:absolute;top:17px;right:17px;width:40px;height:40px;border:1px solid #dbe4ef;border-radius:11px;background:#fff;display:grid;place-items:center;cursor:pointer;z-index:5}

.wm-modal-icon{width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,#e9f3ff,#e5fff5);color:#2476f3;display:grid;place-items:center;margin-bottom:17px}

.wm-modal-icon svg{width:23px!important;height:23px!important}

.wm-dialog h2{font-size:25px;margin:0 54px 7px 0}

.wm-dialog>p{color:#71809a;margin:0 0 21px;line-height:1.55}

.wm-modal-actions{justify-content:flex-end;gap:9px;margin-top:21px;padding-top:17px;border-top:1px solid #edf1f6}

.wm-confirm{background:#fff4f6;border:1px solid #f2d4da;border-radius:11px;padding:12px;color:#a82d40;font-size:12px;margin:13px 0}

.wm-toast{position:fixed;right:24px;bottom:24px;z-index:7000;background:#15213a;color:#fff;border-radius:12px;padding:14px 17px;box-shadow:0 15px 40px #10213d33;font-weight:750;display:flex;align-items:center;gap:9px;max-width:360px}
.wm-toast svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important}
.wm-avatar{background:linear-gradient(135deg,var(--wm-color,#367ef5),color-mix(in srgb,var(--wm-color,#367ef5) 55%,#7ee8e0));overflow:hidden}
.wm-avatar img{width:100%;height:100%;object-fit:cover}
.wm-dialog:has(.app-select-menu){overflow:visible!important}
.wm-modal:has(.app-select-menu){z-index:7600}
.wm-dialog .app-select-menu{z-index:7800!important;max-height:230px;overflow:auto}
.wm-icon-editor{display:grid;grid-template-columns:120px 1fr;gap:24px;align-items:center;background:#f7faff;border:1px solid #e1e8f3;border-radius:15px;padding:20px}
.wm-avatar-preview{width:104px;height:104px;border-radius:25px;font-size:36px;box-shadow:0 12px 30px #1939611f}
.wm-icon-options{display:grid;gap:13px}
.wm-colors{display:flex;gap:9px;flex-wrap:wrap}
.wm-colors button{width:31px;height:31px;border:3px solid #fff;border-radius:50%;background:var(--c);box-shadow:0 0 0 1px #d7e1ee;cursor:pointer}
.wm-colors button.active{box-shadow:0 0 0 3px #2476f3}
.wm-upload{width:max-content;border:1px solid #d9e2ef;border-radius:10px;background:#fff;color:#17233d;padding:10px 13px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;cursor:pointer}
.wm-upload input{display:none}
.wm-access-note{margin-top:16px;padding:12px;border-radius:10px;background:#f0f7ff;color:#4e6585;font-size:12px}
.wm-modal-actions.split{display:grid;grid-template-columns:auto 1fr auto auto}
.wm-role-grid{display:grid;grid-template-columns:minmax(170px,1.6fr) repeat(4,1fr);border:1px solid #e1e8f1;border-radius:13px;overflow:hidden}
.wm-role-grid>*{padding:12px;border-right:1px solid #edf1f6;border-bottom:1px solid #edf1f6;text-align:center;font-style:normal;font-size:12px}
.wm-role-grid span{text-align:left;font-weight:700}
.wm-role-grid i.yes{color:#14966b;font-weight:900}
.wm-review-tabs{display:flex;gap:5px;border-bottom:1px solid #e4eaf3;margin-bottom:5px}
.wm-review-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:11px 14px;color:#71809a;font-weight:800;cursor:pointer}
.wm-review-tabs button.active{border-color:#2476f3;color:#2476f3}

.wm-empty{text-align:center;padding:35px;color:#71809a}
@media(max-width:1050px){.wm-layout{grid-template-columns:1fr}

.wm-workspace-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}

.wm-list-title,.wm-list-create{grid-column:1/-1}
}
@media(max-width:760px){.wm-page{padding:24px 16px 55px}

.wm-head{align-items:flex-start;flex-direction:column}

.wm-head-actions{width:100%}

.wm-head-actions .wm-btn{flex:1}

.wm-stats{grid-template-columns:repeat(2,1fr)}

.wm-workspace-list{display:block}

.wm-form{grid-template-columns:1fr}

.wm-form label.full{grid-column:auto}

.wm-workspace-top{align-items:flex-start;flex-direction:column}

.wm-actions{width:100%}

.wm-actions .wm-btn{flex:1}

.wm-panel{padding:15px}

.wm-section{padding:15px}

.wm-dialog{padding:22px}

.wm-member,.wm-env{align-items:flex-start;flex-wrap:wrap}

.wm-member .wm-btn,.wm-env .wm-btn{margin-left:50px}
}


/* adaptive laptop pages */
@media(max-width:1200px){
  .tpl-grid,.wm-layout{grid-template-columns:1fr!important}
  .tpl-head,.wm-head{flex-wrap:wrap;gap:12px}
  .tpl-campaign-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .wm-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .tpl-campaign-stats,.wm-stats{grid-template-columns:1fr!important}
}
