/* Manage Views — All views tab */
.mva-page{height:100dvh;min-height:520px;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);color:var(--text);font-family:inherit;font-size:14px}
.mva-topbar{height:52px;flex:0 0 52px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 18px;background:#303030;color:#fff;border-bottom:1px solid #4a4a4a}
.mva-topbar h1{margin:0;font-size:18px;line-height:1.2;font-weight:700;color:#fff;text-align:center}
.mva-back{justify-self:start;display:inline-flex;align-items:center;gap:4px;color:#fff;text-decoration:none;font-size:14px;font-weight:600}
.mva-back:hover{text-decoration:underline}.mva-topbar-spacer{justify-self:end}
.mva-tabs{height:49px;flex:0 0 49px;display:flex;align-items:stretch;justify-content:center;border-bottom:1px solid var(--border);background:var(--surface); overflow: auto;}

.mva-tab{position:relative;min-width:110px;display:flex;align-items:center;justify-content:center;padding:0 18px;color:var(--text);font-size:13px;font-weight:600;text-decoration:none}
.mva-tab.is-active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:4px;border-radius:4px 4px 0 0;background:#303030}
.mva-content{flex:1;min-height:0;display:flex;flex-direction:column;padding:18px 10px 0;gap:14px;background:var(--surface)}
.mva-toolbar{position:relative;z-index:5;display:flex;align-items:center;gap:20px;min-height:44px;flex:0 0 auto;padding:0 0 2px}
.mva-search{position:relative;width:220px;height:38px;flex:0 0 220px;display:flex;align-items:center}
.mva-search input{width:100%;height:38px;padding:0 38px 0 15px;border:1px solid var(--border-strong);border-radius:22px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;outline:0}
.mva-search input:focus,.mva-dropdown-search input:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--focus-ring)}
.mva-search>span{position:absolute;right:10px;top:10px;color:var(--text-muted);font-size:24px;line-height:28px;pointer-events:none}
.mva-filter-wrap{position:relative;display:flex;align-items:center}

.mva-access-options,
.mva-export-options {
  position: absolute;
  z-index: 10040;
  right: 0;
  top: calc(100% + 5px);
  width: min(100%, 420px);
  padding: 6px 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(16, 24, 40, .2);
}.mva-access-options,
.mva-export-options {
  overflow-y: auto;
  max-height: 260px;
}


.mva-filter-btn,.mva-standard-btn{height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.mva-filter-btn:hover,.mva-filter-btn[aria-expanded=true],.mva-standard-btn:hover{background:var(--surface-hover)}
.mva-filter-btn span{font-size:13px;color:var(--text-muted)}.mva-standard-btn{margin-left:auto}
.mva-dropdown{position:absolute;top:calc(100% + 8px);left:0;width:260px;max-height:min(390px,calc(100dvh - 150px));display:flex;flex-direction:column;padding:10px 0 0;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 12px 32px rgba(16,24,40,.18);z-index:20;overflow:hidden}
.mva-dropdown[hidden]{display:none!important}.mva-dropdown-search{display:block;padding:0 10px 9px}.mva-dropdown-search input{width:100%;height:36px;padding:0 10px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;outline:0}
.mva-dropdown-options{align-items:start;overflow:auto;min-height:0;padding:0 0 6px}.mva-check-option{display:flex;align-items:center;gap:9px;min-height:36px;padding:7px 12px;color:var(--text);font-size:13px;cursor:pointer}.mva-check-option:hover{background:var(--surface-hover)}.mva-check-option input{width:15px;height:15px;margin:0;accent-color:var(--brand-ink)}
.mva-dropdown-actions{display:flex;justify-content:flex-end;gap:8px;padding:9px 10px;border-top:1px solid var(--border);background:var(--surface)}.mva-dropdown-actions button{min-height:30px;padding:0 12px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.mva-dropdown-actions [data-filter-done]{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.mva-table-panel{flex:1;min-height:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:2px 2px 0 0;overflow:hidden;background:var(--surface)}.mva-table-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#888 transparent}
.mva-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.mva-table th{position:sticky;top:0;z-index:1;height:38px;padding:0 22px;text-align:left;background:var(--surface);color:var(--text-muted);font-weight:500;border-bottom:1px solid var(--border-strong);white-space:nowrap}.mva-table th:nth-child(1){width:20%}.mva-table th:nth-child(2){width:40%}.mva-table th:nth-child(3){width:20%}.mva-table th:nth-child(4){width:20%}.mva-table th[data-sort]{cursor:pointer}.mva-table th[data-sort]:hover{color:var(--text)}.mva-sort-mark{display:inline-block;margin-left:6px;color:var(--text-muted)}
.mva-table td{height:38px;padding:0 22px;border-bottom:1px solid var(--border-strong);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mva-table tbody tr:hover{background:var(--surface-hover)}.mva-view-name{color:var(--brand-ink);font-weight:650;text-decoration:none}.mva-view-name:hover{text-decoration:underline}.mva-view-icon{margin-right:6px;font-size:12px;color:#f28f23}.mva-shared{color:var(--brand-ink);font-weight:600}.mva-empty{padding:50px 20px;text-align:center;color:var(--text-muted)}.mva-empty[hidden]{display:none!important}
.mva-table-footer{height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 10px 0 0;background:var(--surface);color:var(--text-muted);font-size:12px}.mva-pagination{display:flex;align-items:center;gap:8px}.mva-pagination button{display:inline-flex;align-items:center;gap:5px;padding:5px 3px;border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer}.mva-pagination button:disabled{opacity:.4;cursor:not-allowed}.mva-pagination select{height:28px;max-width:120px;border:0;background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;outline-color:var(--brand)}.mva-toast{position:fixed;right:22px;bottom:20px;z-index:50;padding:11px 15px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 8px 24px rgba(16,24,40,.18)}.mva-toast[hidden]{display:none!important}
@media(max-width:760px){.mva-topbar{padding:0 12px}.mva-content{padding:12px 8px 0}.mva-toolbar{gap:6px;flex-wrap:wrap}.mva-search{width:100%;flex:1 0 100%}.mva-standard-btn{margin-left:0}.mva-table{min-width:760px}.mva-table-footer{height:auto;min-height:44px;flex-wrap:wrap}.mva-pagination{gap:4px}.mva-pagination select{max-width:105px}}

/* Interactive controls visible in the reference recording. */
.mva-clear-all{border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:8px 3px}.mva-clear-all[hidden]{display:none!important}
.mva-chip-x{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border-radius:4px;background:var(--surface-3);font-size:15px;font-weight:400;line-height:1}
.mva-check-option span{display:flex;flex-direction:column;gap:3px;line-height: 1;}.mva-check-option small{font-size:11px;color:var(--text-muted)}
.mva-name-cell{position:relative;display:flex;align-items:center;min-width:0;height:100%;gap:12px}.mva-name-cell .mva-view-name{display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mva-row-actions{display:none;align-items:center;gap:7px;position:absolute;right:0;top:50%;transform:translateY(-50%);padding:3px 0 3px 10px;background:var(--surface-hover);z-index:2}.mva-table tbody tr:hover .mva-row-actions,.mva-table tbody tr:focus-within .mva-row-actions{display:flex}.mva-row-actions>button,.mva-row-more-wrap>button{display:flex;align-items:center;height:28px;padding:0 11px;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.mva-row-actions button:hover{background:var(--surface-2);border-color:var(--text-subtle)}.mva-row-more-wrap{position:relative}.mva-row-menu{position:absolute;top:calc(100% + 5px);right:0;width:150px;padding:6px 0;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 12px 30px rgba(16,24,40,.18);z-index:30}.mva-row-menu button{display:block;width:100%;padding:10px 16px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;font-size:12px;cursor:pointer}.mva-row-menu button:hover{background:var(--surface-hover)}
.mva-drawer-backdrop{position:fixed;inset:0;z-index:70;background:rgba(16,24,40,.12)}.mva-drawer-backdrop[hidden],.mva-standard-drawer[hidden],.mva-dialog-backdrop[hidden],.mva-dialog[hidden]{display:none!important}.mva-standard-drawer{position:fixed;z-index:71;top:0;right:0;width:min(370px,94vw);height:100dvh;display:flex;flex-direction:column;background:var(--surface);color:var(--text);border-left:1px solid var(--border);box-shadow:-8px 0 30px rgba(16,24,40,.15)}.mva-standard-drawer>header{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--border)}.mva-standard-drawer h2{margin:0;font-size:17px;font-weight:700}.mva-standard-drawer header button,.mva-dialog header button{width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:var(--text-muted);font-size:24px;cursor:pointer}.mva-standard-list{overflow:auto;flex:1}.mva-standard-group{border-bottom:1px solid var(--border)}.mva-standard-group-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:49px;padding:0 18px;border:0;background:var(--surface);color:var(--text);text-align:left;font:inherit;font-weight:650;cursor:pointer}.mva-standard-group-toggle:hover{background:var(--surface-hover)}.mva-chevron{display:inline-block;font-size:20px;transform:rotate(0deg);transition:transform .12s}.mva-chevron.is-open{transform:rotate(90deg)}.mva-standard-items{padding:0 16px 10px 38px}.mva-standard-items label{display:flex;align-items:center;gap:10px;min-height:36px;color:var(--brand-ink);font-size:13px;font-weight:600;cursor:pointer}.mva-standard-items input{width:16px;height:16px;accent-color:var(--brand-ink)}
.mva-dialog-backdrop{position:fixed;inset:0;z-index:90;background:rgba(16,24,40,.36)}.mva-dialog{position:fixed;z-index:91;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 24px 60px rgba(16,24,40,.25)}.mva-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.mva-dialog h2{margin:0;font-size:17px}.mva-dialog-body{padding:20px;overflow:auto;font-size:13px}.mva-dialog-body p{margin:0 0 14px;line-height:1.5}.mva-dialog-muted{color:var(--text-muted)}.mva-dialog-label{display:block;margin:0 0 16px;font-size:13px;font-weight:600}.mva-dialog-label input,.mva-dialog-label select{display:block;width:100%;height:40px;margin-top:7px;padding:0 11px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);color:var(--text);font:inherit}.mva-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 20px;border-top:1px solid var(--border)}.mva-dialog>footer button{min-height:36px;padding:0 15px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.mva-dialog>footer .mva-primary{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}.mva-dialog>footer .mva-danger{background:#b42318;border-color:#b42318;color:#fff}.mva-preview-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:30px 12px;border:1px solid var(--border);border-radius:10px;text-align:center}.mva-preview-empty>span{font-size:36px;color:var(--text-subtle)}.mva-preview-empty p{color:var(--text-muted)}.mva-preview-empty button{padding:9px 14px;border:0;border-radius:7px;background:var(--brand-ink);color:#fff;font:inherit;font-weight:600;cursor:pointer}
@media(max-width:760px){.mva-row-actions{gap:3px}.mva-row-actions>button,.mva-row-more-wrap>button{padding:0 7px}.mva-name-cell{gap:6px}}

/* Match the reference video's right-side view details pane (Info / Filters). */
.mva-view-detail[hidden]{display:none!important}
.mva-view-detail{position:fixed;z-index:65;top:0;right:0;width:min(33.333vw,630px);min-width:360px;height:100dvh;display:flex;flex-direction:column;background:var(--surface);color:var(--text);border-left:1px solid var(--border);box-shadow:-3px 0 12px rgba(16,24,40,.06)}
.mva-view-detail>header{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px;border-bottom:1px solid var(--border)}
.mva-view-detail>header h2{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:650}
.mva-view-detail>header button{flex:0 0 30px;width:30px;height:30px;border:0;background:transparent;color:var(--text-muted);font-size:24px;cursor:pointer}
.mva-detail-tabs{display:flex;gap:28px;padding:0 24px;border-bottom:1px solid var(--border)}
.mva-detail-tabs button{position:relative;min-width:72px;height:48px;border:0;background:transparent;color:var(--text-muted);font:inherit;font-size:13px;cursor:pointer}
.mva-detail-tabs button.is-active{color:var(--text);font-weight:650}
.mva-detail-tabs button.is-active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;border-radius:3px;background:#303030}
.mva-view-detail-body{flex:1;overflow:auto;padding:8px 24px}
.mva-detail-field{padding:18px 0;border-bottom:1px solid var(--border)}
.mva-detail-field label{display:block;margin-bottom:12px;color:var(--text-muted);font-size:13px}
.mva-detail-field h3{margin:0 0 10px;font-size:15px}
.mva-detail-value{min-height:28px;color:var(--text);font-size:13px}
.mva-detail-muted{color:var(--text-muted);font-size:12px}
@media(max-width:760px){.mva-view-detail{width:100vw;min-width:0}.mva-view-detail>header{padding:0 14px}.mva-view-detail-body{padding:8px 16px}}

/* View-all page corrections: suppress global theme switch only on this screen. */
body:has(#manageViewsAll) [data-theme-toggle]{display:none!important}
/* Menus are portaled to body so table overflow cannot clip them. */
.mva-row-menu-portal{position:fixed!important;right:auto!important;top:0;left:0;width:170px;z-index:10050!important;padding:6px 0;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 12px 30px rgba(16,24,40,.20);overflow:visible}
.mva-row-menu-portal button{display:block;width:100%;padding:11px 16px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;font-size:13px;cursor:pointer}
.mva-row-menu-portal button:hover{background:var(--surface-hover)}
.mva-row-menu-portal button:nth-child(2),.mva-row-menu-portal button:nth-child(4){border-bottom:1px solid var(--border);padding-bottom:13px;margin-bottom:4px}
.mva-filter-heading{display:block;margin:14px 0 8px;font-size:13px}
.mva-filter-group{margin:12px 0 18px;padding:14px 12px 8px;border:1px solid var(--border-strong);border-radius:16px;background:var(--surface)}
.mva-filter-group h3{margin:0 0 10px;font-size:14px;font-weight:700}
.mva-filter-condition{padding:10px 9px;border-radius:18px;background:var(--surface-3);color:var(--text);font-size:13px;line-height:1.35}
.mva-filter-join{padding:8px 4px;color:var(--text-muted);font-size:13px}

/* Fix search label overlap from global CRM styles. */
#mvaSearch{display:block;box-sizing:border-box;line-height:normal;padding-left:15px;padding-right:38px;font-size:13px!important;letter-spacing:normal}
.mva-search .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mva-search{box-sizing:border-box;min-width:220px}
.mva-search input::-webkit-search-decoration,.mva-search input::-webkit-search-cancel-button{-webkit-appearance:none}
/* Keep overlays above the table and guarantee their visibility. */
#mvaRowMenuPortal{position:fixed!important;z-index:99999!important;display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;min-width:170px;max-height:calc(100dvh - 16px);overflow:auto}
#mvaViewDetail{z-index:10010!important}
#mvaStandardDrawer{z-index:10020!important}
#mvaDrawerBackdrop{z-index:10019!important}
#mvaDialogBackdrop{z-index:10029!important}
#mvaDialog{z-index:10030!important}

/* Standard views drawer: visible checkbox controls and per-view Actions menus. */
.mva-standard-group-toggle{gap:10px}.mva-standard-group-toggle>span:last-child{flex:1}.mva-svg-chevron{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(0deg);transition:transform .12s}.mva-svg-chevron.is-open{transform:rotate(90deg)}.mva-standard-items{padding:0 12px 10px 28px}.mva-standard-item{position:relative;display:flex;align-items:center;gap:8px;min-height:40px}.mva-standard-check{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:36px;color:var(--brand-ink,var(--text));font-size:13px;font-weight:600;cursor:pointer}.mva-standard-check input{display:inline-block!important;appearance:auto!important;visibility:visible!important;opacity:1!important;position:static!important;width:16px!important;height:16px!important;flex:0 0 16px;margin:0!important;accent-color:var(--brand-ink);cursor:pointer}.mva-standard-check span{min-width:0;overflow-wrap:anywhere}.mva-standard-action-wrap{position:relative;flex:0 0 auto}.mva-standard-action{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer}.mva-standard-action:hover,.mva-standard-action[aria-expanded=true]{border-color:var(--border);background:var(--surface-hover)}.mva-standard-action svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.mva-standard-action-menu{position:absolute;right:100%;top:50%;transform:translateY(-50%);z-index:100;min-width:148px;padding:6px 0;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 10px 28px rgba(16,24,40,.16)}.mva-standard-action-menu[hidden]{display:none!important}.mva-standard-action-menu button{display:block;width:100%;padding:10px 16px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;font-size:13px;cursor:pointer}.mva-standard-action-menu button:hover{background:var(--surface-hover)}.mva-standard-action-menu button:focus-visible,.mva-standard-action:focus-visible{outline:2px solid var(--brand-ink);outline-offset:2px}
/* Final theme-token and SVG alignment for All Views */
.mva-topbar{background:var(--surface-2,var(--surface))!important;color:var(--text)!important;border-color:var(--border)!important}
.mva-topbar h1,.mva-back{color:var(--text)!important}
.mva-tab.is-active:after{background:var(--brand-ink)!important}
.mva-view-icon{width:13px;height:13px;margin-right:6px;vertical-align:-2px;fill:none;stroke:var(--brand-ink);stroke-width:2}
.mva-row-actions svg,.mva-row-more-wrap svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-2px}
.mva-standard-items{padding:0 12px 10px 28px}
.mva-standard-item{position:relative;display:flex;align-items:center;gap:8px;min-height:40px}
.mva-standard-view-link{flex:1;min-width:0;padding:8px 0;border:0;background:transparent;color:var(--brand-ink);text-align:left;font:inherit;font-size:13px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.mva-standard-view-link:hover{text-decoration:underline}
.mva-standard-action-wrap{position:relative;flex:0 0 auto}
.mva-standard-action-menu{right:calc(100% + 6px);top:50%;transform:translateY(-50%);z-index:110;min-width:148px}
.mva-standard-action-menu button{color:var(--text)}
.mva-detail-tabs button.is-active:after{background:var(--brand-ink)!important}
.mva-detail-record-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--brand-ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mva-view-detail>header h2{display:flex;align-items:center;gap:8px;min-width:0}
.mva-view-detail>header h2 span{overflow-wrap:anywhere}
.mva-row-actions>button[data-row-action="share"]{display:inline-flex;align-items:center;gap:4px}

/* Reference-matched All Views action dialogs: delete, clone, sharing and export. */
.mva-dialog--delete{width:min(590px,calc(100vw - 28px));border-radius:20px}
.mva-dialog--delete h2{font-size:20px;font-weight:600;line-height:1.18}
.mva-dialog--delete .mva-dialog-body{font-size:16px}
.mva-delete-copy p{margin:0;font-size:16px;font-weight:600}
.mva-info-callout{margin-top:10px;padding:22px 24px;border:1px solid #1670e8;border-radius:22px;background:#dceffc;color:var(--text);font-size:16px;font-weight:400;line-height:1.55}
.mva-dialog--delete>footer{justify-content:flex-end;border-top:0}
.mva-dialog--delete>footer .mva-delete-confirm{order:0;background:#b00020;border-color:#b00020;color:#fff}
.mva-dialog--delete>footer button[data-dialog-close]{order:1}
.mva-dialog--clone{width:min(785px,calc(100vw - 28px));max-height:calc(100dvh - 54px);border-radius:22px}
.mva-dialog--clone h2,.mva-dialog--export h2{font-size:20px;font-weight:700}
.mva-dialog--clone .mva-dialog-body{overflow-y:auto}
.mva-clone-form .mva-dialog-label{font-size:16px;margin-bottom:8px}
.mva-name-valid{display:flex;align-items:center;gap:12px}
.mva-name-valid input{flex: 1;
    min-width: 0;
    height: 52px !important;
    font-size: 14px !important;
    font-weight: 400;}
.mva-name-valid svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:var(--text);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mva-views-limit{margin:8px 0 22px!important;color:var(--text-muted);font-size:12px;font-weight:600}
.mva-clone-form hr,.mva-export-form hr{border:0;border-top:1px solid var(--border-strong);margin:22px 0}
.mva-clone-form h3,.mva-export-form h3{margin:0 0 16px;font-size:20px;font-weight:700}
.mva-search-with-icon{position:relative}
.mva-search-with-icon input{width: 100%;
    height: 46px;
    padding: 0 48px 0 18px;
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;}
.mva-search-with-icon input:focus{outline:2px solid #1670e8;outline-offset:0}
.mva-search-with-icon svg{position:absolute;right:18px;top:13px;width:20px;height:20px;fill:none;stroke:var(--text-muted);stroke-width:1.8;pointer-events:none}
.mva-user-results{position:relative;z-index:3;max-height:250px;overflow:auto;margin:-2px 0 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 8px 20px rgba(16,24,40,.14)}
.mva-user-results[hidden]{display:none!important}
.mva-user-result{display:flex;align-items:center;gap:14px;width:100%;min-height:68px;padding:10px 14px;border:0;background:var(--surface);color:var(--text);text-align:left;cursor:pointer}
.mva-user-result:hover{background:var(--surface-hover)}
.mva-user-result-check{width:20px;height:20px;flex:0 0 20px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface-2)}
.mva-avatar{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--surface-3);color:var(--text);font-size:16px;font-weight:600}
.mva-user-meta{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:16px}
.mva-user-meta strong{font-weight:600;overflow-wrap:anywhere}
.mva-user-meta small{color:var(--text-muted);font-size:15px;overflow-wrap:anywhere}
.mva-shared-users{display:flex;flex-direction:column;gap:12px;margin:8px 0 20px}
.mva-shared-user{display:flex;align-items:center;gap:14px;min-height:52px}
.mva-role{padding:5px 12px;border-radius:20px;background:var(--text);color:var(--surface);font-size:13px;white-space:nowrap}
.mva-remove-user{width:24px;height:24px;border:0;background:transparent;color:var(--text-muted);font-size:20px;cursor:pointer}
.mva-anyone-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 4px;border-top:1px solid var(--border-strong);font-size:15px;font-weight:600}
.mva-select-button{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:38px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.mva-select-button:hover{background:var(--surface-hover)}

.mva-access-options[hidden],.mva-export-options[hidden]{display:none!important}
.mva-access-options button{display:flex;flex-direction:column;gap:5px;width:100%;padding:13px 16px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
.mva-access-options button:hover,.mva-export-options button:hover{background:var(--surface-hover)}
.mva-access-options small{color:var(--text-muted);font-size:14px;font-weight:400;line-height:1.4}
.mva-dialog--clone>footer,.mva-dialog--export>footer{justify-content:flex-start;padding:20px 30px;border-top:1px solid var(--border)}
.mva-dialog--clone>footer button,.mva-dialog--export>footer button{min-width:112px;height:48px;border-radius:8px;font-size:15px}
.mva-dialog--clone>footer .mva-primary,.mva-dialog--export>footer .mva-primary{background:#004b4b;border-color:#004b4b}
.mva-dialog--export{width:min(850px,calc(100vw - 28px));max-height:calc(100dvh - 32px);border-radius:22px}
.mva-dialog--export .mva-dialog-body{overflow-y:auto;font-size:16px}
.mva-export-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.mva-export-top a,.mva-export-form p a{color:#005b5b;text-decoration:none;font-weight:600}
.mva-export-form p{margin:0 0 18px;font-size:16px;line-height:1.6}
.mva-export-form h3{margin:24px 0 10px;font-size:18px}
.mva-export-form .mva-dialog-label{position:relative;margin:10px 0 14px;font-size:15px}
.mva-export-form .mva-dialog-label>input{height:48px;margin-top:8px;border-radius:7px;font-size:16px}
.mva-export-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.mva-export-grid .mva-select-button{width:100%;height:48px;margin-top:8px;padding:0 16px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface);font-size:16px}
.mva-export-grid .mva-export-options{top:calc(100% + 2px);width:100%;max-height:320px;overflow:auto;border-radius:12px}
.mva-export-options button{display:block;width:100%;padding:12px 16px;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;cursor:pointer}
#mvaExportLanguageOptions>input{width:calc(100% - 20px);height:40px;margin:10px;padding:0 12px;border:1px solid var(--border-strong);border-radius:22px;background:var(--surface);color:var(--text);font:inherit}
.mva-language-list{max-height:210px;overflow:auto}
.mva-export-form ul{padding-left:22px;margin:10px 0 18px;line-height:1.7;list-style: disc;}
.mva-export-customize-toggle{display:flex;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;color:var(--text);text-align:left;font:inherit;font-size:19px;font-weight:700;cursor:pointer}
.mva-export-customize-toggle span{font-size:24px;font-weight:400}
#mvaExportCustomizeBody{padding:18px 8px 4px}
#mvaExportCustomizeBody[hidden]{display:none!important}
.mva-export-check,.mva-export-radio{display:flex;align-items:flex-start;gap:12px;margin:14px 0;color:var(--text);font-size:16px;line-height:1.45}
.mva-export-check input,.mva-export-radio input{width:20px;height:20px;flex:0 0 20px;margin:1px 0 0;accent-color:var(--brand-ink)}
#mvaExportCustomizeBody h4{margin:22px 0 10px;font-size:16px}
.mva-export-radio small{display:block;color:var(--text-muted)}
@media(max-width:640px){.mva-dialog--delete .mva-dialog-body{padding:24px 22px 14px}.mva-dialog--delete>footer{padding:12px 22px 24px}.mva-dialog--clone .mva-dialog-body,.mva-dialog--export .mva-dialog-body{padding:20px}.mva-dialog--clone>header,.mva-dialog--export>header{padding:18px 20px;min-height:68px}.mva-dialog--clone>footer,.mva-dialog--export>footer{padding:14px 20px}.mva-export-grid{grid-template-columns:1fr;gap:0}.mva-anyone-row{align-items:flex-start;flex-direction:column;gap:6px}.mva-access-options{left:0;right:auto}.mva-export-top{align-items:flex-start;flex-direction:column;gap:8px}}


/* Final popup polish: use the CRM theme tokens and keep each overlay independent. */
.mva-dialog-backdrop{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);background:rgba(16,24,40,.42)}
.mva-dialog{isolation:isolate;z-index:10030}
.mva-dialog-backdrop{z-index:10029}
.mva-dialog--delete .mva-info-callout{border-color: #b00020;background: var(--surface);}
.mva-dialog--delete>footer .mva-delete-confirm{background:#b00020;border-color:#b00020;color:var(--brand-contrast,#fff)}
.mva-dialog--clone>footer .mva-primary,.mva-dialog--export>footer .mva-primary{background:var(--brand-ink);border-color:var(--brand-ink);color:var(--brand-contrast,#fff)}
.mva-info-callout,.mva-search-with-icon input:focus{outline-color:var(--brand-ink)}
.mva-export-top a,.mva-export-form p a{color:var(--brand-ink)}
.mva-user-result-check{position:relative}
.mva-user-result[aria-selected="true"] .mva-user-result-check{background:var(--brand-ink);border-color:var(--brand-ink)}
.mva-user-result[aria-selected="true"] .mva-user-result-check:after{content:"";position:absolute;left:5px;top:2px;width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.mva-no-users{padding:16px;color:var(--text-muted);font-size:14px}
.mva-role-visitor{background:var(--surface-3);color:var(--text)}
.mva-clone-form .mva-shared-user{position:relative}
.mva-clone-form .mva-remove-user{margin-left:0}
.mva-export-options button[hidden]{display:none!important}
.mva-dialog--clone .mva-anyone-row{padding-bottom:8px}
.mva-dialog--clone .mva-dialog-body,.mva-dialog--export .mva-dialog-body{overscroll-behavior:contain}
.mva-dialog--clone>header button,.mva-dialog--export>header button{font-size:28px;font-weight:300}
@media(max-width:640px){.mva-tab{padding: 0 10px;justify-content: flex-start;min-width: auto;}.mva-dropdown{width:200px;}.mva-dialog--clone,.mva-dialog--export{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.mva-dialog--delete .mva-info-callout{padding:16px;border-radius:16px}}

/* Portal the sharing visibility menu above the modal scroll layer. */
#mvaAccessOptions.mva-access-options{
  position:fixed!important;
  z-index:10080!important;
  right:auto!important;
  top:0;
  left:0;
  width:min(420px,calc(100vw - 24px))!important;
  max-height:min(260px,calc(100dvh - 24px));
  overflow-y:auto;
  border-radius:16px;
}
#mvaAccessOptions[hidden]{display:none!important}

/* CRM (B12): the design header supplies .sr-only; the CRM has none, so it is scoped to these pages. */
.mva-page .sr-only,.dv-page .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* CRM (B12): a refusal keeps the dialog open, so the page's toast sits above its backdrop (10029). */
.mva-page .mva-toast{z-index:10060}
