body{font-family:system-ui,Arial;margin:0;background:#f6f7f9;color:#1a1a1a}
header{background:#0b5cad;color:#fff;padding:12px 20px;font-size:18px;display:flex;align-items:baseline}
header{white-space:nowrap}header nav{white-space:normal}nav a{white-space:nowrap;display:inline-block}
header>span:last-child{margin-left:auto;padding-left:16px;text-transform:capitalize}
nav a{color:#fff;margin-right:16px;text-decoration:none;font-size:14px}
main{padding:20px;max-width:1100px}
.card{background:#fff;border:1px solid #e3e6ea;border-radius:8px;padding:16px;margin-bottom:16px}
table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:6px 10px;border-bottom:1px solid #eee;font-size:14px}
a{color:#0b5cad;text-decoration:none}
input,textarea,select{padding:7px;border:1px solid #ccd;border-radius:6px;box-sizing:border-box;margin:4px 0}
input[type=checkbox],input[type=radio]{width:auto;padding:0;margin:0 6px 0 0;border:0;border-radius:0;vertical-align:middle}
label{font-size:13px;color:#555}button{background:#0b5cad;color:#fff;border:0;padding:9px 16px;border-radius:6px;cursor:pointer}
.k{font-size:26px;font-weight:700}.muted{color:#888;font-size:12px}
code{background:#f0f3f7;padding:1px 4px;border-radius:4px;font-size:13px}
/* ---- Messages list (Ongage-style) ---- */
.toolbar{display:flex;align-items:center;gap:16px;margin-top:20px;margin-bottom:12px}
.toolbar .push{margin-left:auto}
.searchbar{display:flex;gap:8px;align-items:center;margin:0}
.searchbar input{width:300px;margin:0}
.count{color:#555;font-size:14px}
table.list th{font-size:13px;color:#333;border-bottom:1px solid #d6dae0;padding:10px}
table.list td{padding:9px 10px;border-bottom:1px solid #eef0f3}
table.list tr:hover td{background:#f7faff}
#msgs tr:first-child th{position:sticky;top:0;background:#fff;z-index:1}
table.list th{white-space:nowrap}
main:has(#msgs){max-width:none}
#msgs{margin-top:0}
#msgs td:nth-child(10){width:1%;white-space:nowrap}
#msgs td:nth-child(2),#msgs td:nth-child(6),#msgs td:nth-child(7),#msgs td:nth-child(8){white-space:nowrap}
#msgs td.favcell{text-align:center;color:#e0245e}
#msgs.hide-m1 tr>:nth-child(1),#msgs.hide-m2 tr>:nth-child(2),#msgs.hide-m3 tr>:nth-child(3),#msgs.hide-m4 tr>:nth-child(4),#msgs.hide-m5 tr>:nth-child(5),#msgs.hide-m6 tr>:nth-child(6),#msgs.hide-m7 tr>:nth-child(7),#msgs.hide-m8 tr>:nth-child(8),#msgs.hide-m9 tr>:nth-child(9){display:none}
/* Messages: pagination above the table, refresh + columns/export menu on the right */
.msg-pager{margin:35px 0 20px}
.msg-pager .pg-size{margin-left:auto}
.msg-tools{display:flex;align-items:center;gap:10px}
.msg-colpop{min-width:230px}
.colpick-item{display:block;width:100%;margin:0;padding:9px 10px;border-radius:6px;background:none;color:#101828;font-size:14px;font-weight:400;text-align:left;height:auto;cursor:pointer}
.colpick-item:hover{background:#f9fafb;font-weight:600}
.colpick-sep{border-bottom:1px solid #eef0f3;border-radius:6px 6px 0 0;margin-bottom:4px}
.msg-colpop label{padding:7px 10px}
.msg-colpop input[type=checkbox]{accent-color:#0b5cad}
#msgs td:first-child{color:#555;font-variant-numeric:tabular-nums}
td.actions{width:1%;white-space:nowrap;text-align:right}th.actions-h{text-align:right}
.btn-sm{display:inline-block;padding:3px 9px;margin-left:4px;font-size:12px;line-height:18px;border:1px solid #cfd8e3;border-radius:5px;color:#0b5cad;background:#fff}
.btn-sm:hover{background:#eef4fb;border-color:#0b5cad}
.btn-test{color:#8a4b00;border-color:#ecd3b0}.btn-test:hover{background:#fff6ea;border-color:#c77a12}
/* column dividers + resizing */
table.list th{position:relative;box-sizing:border-box}
#msgs tr:first-child th{position:sticky}
table.list th::after{content:"";position:absolute;right:0;top:22%;height:56%;width:1px;background:#cfd5dd}
table.list th:last-child::after{display:none}
table.list th.col-edge{cursor:col-resize !important}
table.list th.col-edge::after{top:0;height:100%;width:3px;right:-1px;background:#0b5cad}
table.list.resized{table-layout:fixed}
table.list.resized td,table.list.resized th{overflow:hidden;text-overflow:ellipsis}
body.col-resizing,body.col-resizing *{cursor:col-resize !important;user-select:none}
/* favorite heart */
.fav{width:26px;height:26px;padding:0;margin:0 2px 0 0;vertical-align:middle;border:0;border-radius:5px;cursor:pointer;
 background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3ad' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.2C1.4 8 3.6 4.5 7 4.5c2 0 3.6 1.1 5 2.9 1.4-1.8 3-2.9 5-2.9 3.4 0 5.6 3.5 4.3 6.8-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E") center/17px no-repeat}
.fav:hover{background-color:#fdeef0}
.fav[aria-pressed=true]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0245e' stroke='%23e0245e' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.2C1.4 8 3.6 4.5 7 4.5c2 0 3.6 1.1 5 2.9 1.4-1.8 3-2.9 5-2.9 3.4 0 5.6 3.5 4.3 6.8-1.8 4.6-9.3 9.2-9.3 9.2z'/%3E%3C/svg%3E")}
/* filter panel (Ongage-style) */
.filter-pop{position:relative}
.filter-pop>summary{list-style:none}.filter-pop>summary::-webkit-details-marker{display:none}
.icon-btn{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:36px;height:33px;border:1px solid #ccd;border-radius:6px;color:#333;background:#fff;cursor:pointer}
.icon-btn:hover,.filter-pop[open]>.icon-btn{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.f-badge{position:absolute;top:-7px;right:-7px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:#0b5cad;color:#fff;font-size:11px;line-height:16px;text-align:center}
.f-badge[hidden]{display:none}
.filter-panel{position:absolute;left:0;top:44px;z-index:20;width:640px;background:#eef5fd;border:1px solid #d3e3f5;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.15)}
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;padding:18px 20px}
.f-grid label{display:block;font-size:16px;font-weight:600;color:#222}
.f-grid label input:not([type=checkbox]),.f-grid label select{display:block;width:100%;margin-top:6px;background:#fff;font-size:15px;font-weight:400}
.f-grid label.check{display:flex;align-items:center;font-weight:600}
.info{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;border:1px solid #555;border-radius:50%;font-size:11px;font-weight:700;font-style:italic;color:#555;cursor:help}
.f-foot{display:flex;justify-content:flex-end;gap:10px;padding:12px 20px;border-top:1px solid #d3e3f5}
.btn-light{background:#d6e8f8;color:#0b5cad}
.f-foot button{font-size:15px}
/* ---- Reports + A/B tests tables: sortable, resizable, frozen # + Campaign, sideways scroll ---- */
main:has(#rep,#abtests) .card{overflow:visible}
/* Reports Columns button: same icon button as Contacts */
details.colmenu>summary.icon-btn{padding:0;border:1px solid #ccd;border-radius:6px;color:#333;font-size:inherit}
details.colmenu[open]>summary.icon-btn,details.colmenu>summary.icon-btn:hover{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
main:has(#rep,#abtests) .colmenu-pop{left:auto;right:0}
main:has(#rep,#abtests) .table-tools{display:flex;align-items:center;gap:16px;margin-top:30px}
.pg-size-top{margin-left:auto}
.table-frame{position:relative;margin-top:10px}
.hbar{position:absolute;z-index:5;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#b4b4b4 transparent;background:#fff}
.hbar>div{height:1px}
.table-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.table-scroll::-webkit-scrollbar{display:none}
.hbar-foot{background:transparent}
.hbar-foot .hbar{position:static}
:is(#rep,#abtests){width:auto;min-width:100%;border-collapse:separate;border-spacing:0}
:is(#rep,#abtests).resized{table-layout:auto}
:is(#rep,#abtests) th,:is(#rep,#abtests) td{padding:12px 20px;font-size:13px}
:is(#rep,#abtests) th{white-space:nowrap;vertical-align:middle;font-size:12px;font-weight:600;color:#475467}
:is(#rep,#abtests) td{white-space:nowrap;border-bottom:1px solid #eef0f3}
#rep td:nth-child(2){white-space:normal;min-width:200px;overflow-wrap:anywhere}
:is(#rep,#abtests) tr:first-child th{border-bottom:var(--strip,18px) solid #fff;position:sticky;top:0;z-index:2;background:#f9fafb;box-shadow:inset 0 -1px 0 #e3e6ea,0 1px 0 #e3e6ea;transform:translateY(var(--hy,0px))}
:is(#rep,#abtests) tr:last-child td{border-bottom:0}
/* small numbers (3 digits or fewer) centered */
#rep :is(th,td):is(:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8),:nth-child(12),:nth-child(14),:nth-child(15),:nth-child(16),:nth-child(17),:nth-child(18)){text-align:center}
/* # and Campaign (A/B tests: # and Ticket) stay put while the rest scrolls sideways */
:is(#rep,#abtests) :is(th,td):nth-child(1){position:sticky;left:0;z-index:1;background:#fff}
:is(#rep,#abtests) :is(th,td):nth-child(2){position:sticky;left:var(--c1w,60px);z-index:1;background:#fff}
:is(#rep,#abtests) tr:first-child :is(th:nth-child(1),th:nth-child(2)){z-index:3;background:#f9fafb}
:is(#rep,#abtests) tr:hover td{background:#f7faff}
/* one continuous shadow along the frozen edge: shown when the table is scrolled sideways or down the page, hidden at the start position */
.freeze-shadow{position:absolute;top:0;width:10px;pointer-events:none;z-index:6;background:linear-gradient(to right,rgba(16,24,40,.13),rgba(16,24,40,0));opacity:0;transition:opacity .15s}
.table-frame.has-overflow.moved .freeze-shadow{opacity:1}
.csv-link{margin-left:auto;white-space:nowrap;font-size:14px}
/* pagination */
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:20px 0}
.pg-nav{display:flex;flex-wrap:wrap;gap:8px}.pg-pages{display:contents}
.pg{margin:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:36px;height:36px;box-sizing:border-box;padding:0 12px;border:1px solid #e3e6ea;border-radius:6px;background:#fff;color:#1a1a1a;font-size:14px}
a.pg:hover{border-color:#0b5cad;color:#0b5cad}
.pg.on{background:#0b5cad;border-color:#0b5cad;color:#fff;font-weight:700}
a.pg.on:hover{color:#fff}
.pg.off{color:#b5bac1;border-color:#eef0f3;pointer-events:none}
.pg-gap{border-color:#eef0f3;color:#555}
.pg-size{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:14px;line-height:36px;color:#1a1a1a;white-space:nowrap}
.pg-size select{margin:0;box-sizing:border-box;height:36px;line-height:normal;padding:0 10px;min-width:72px;background:#fff;vertical-align:middle}
.pg-break{flex-basis:100%;height:0;margin-top:-10px}
.pg-info{font-size:14px;color:#444}
.csv-link{margin-left:auto;white-space:nowrap;font-size:14px}
/* ---- Contacts (Ongage Contacts Manager style) ---- */
main:has(.ct){max-width:none}
.ct{padding:0 24px 20px}
.subtabs{display:flex;gap:4px;border-bottom:1px solid #e3e6ea;margin:0 -24px 8px;padding:8px 24px 0}
.subtabs a{padding:12px 8px;margin-right:12px;color:#555;font-size:14px;font-weight:600;border-bottom:2px solid transparent;margin-bottom:-1px}
.subtabs a:hover{color:#0b5cad}
.subtabs a.on{color:#0b5cad;border-bottom-color:#0b5cad}
.ct-sec{padding-top:16px}
.ct-sec+.ct-sec{margin-top:16px}
.ct-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ct-head h3{margin:0;font-size:18px;display:flex;align-items:center;gap:10px}
.ct-tools{display:flex;align-items:center;gap:10px}
.btn-solid{display:inline-flex;align-items:center;height:38px;padding:0 18px;border-radius:6px;background:#0b5cad;color:#fff;font-size:14px;font-weight:600}
.btn-solid:hover{background:#094c8f}
.btn-outline{background:#fff;color:#0b5cad;border:1px solid #cfd8e3;height:38px;padding:0 16px;font-size:14px;font-weight:600}
.btn-outline:hover{border-color:#0b5cad;background:#eef4fb}
.ct-single>label{display:block;font-size:14px;color:#333;margin-bottom:6px}
.ct-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ct-row input[type=search]{width:min(360px,100%);height:40px;margin:0;font-size:14px}
.ct-row button{height:40px;padding:0 20px;font-size:14px;font-weight:600}
.ct-check{display:flex;align-items:center;font-size:14px;color:#333}
.chip{display:inline-flex;align-items:center;height:22px;padding:0 10px;border:1px solid #c9dcf2;border-radius:11px;background:#eef4fb;color:#0b5cad;font-size:12px;font-weight:600}
.ct-table{border:1px solid #e3e6ea;border-radius:8px}
#searches th,#searches td{padding:14px 20px;font-size:14px}
#searches tr:first-child th{background:#f9fafb;font-size:12px;font-weight:600;color:#475467;border-bottom:1px solid #e3e6ea}
#searches tr:first-child th:first-child{border-top-left-radius:8px}#searches tr:first-child th:last-child{border-top-right-radius:8px}
#searches tr:last-child td{border-bottom:0}
#searches td:nth-child(1),#searches td:nth-child(3),#searches td:nth-child(4),#searches td:nth-child(6){white-space:nowrap}
#searches.hide-c1 tr>:nth-child(1),#searches.hide-c2 tr>:nth-child(2),#searches.hide-c3 tr>:nth-child(3),#searches.hide-c4 tr>:nth-child(4),#searches.hide-c5 tr>:nth-child(5),#searches.hide-c6 tr>:nth-child(6){display:none}
.colpick{position:relative}
.colpick>summary{list-style:none}.colpick>summary::-webkit-details-marker{display:none}
.colpick[open]>.icon-btn{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.colpick-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:210px;padding:6px;background:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 12px 16px -4px rgba(16,24,40,.08),0 4px 6px -2px rgba(16,24,40,.03)}
.colpick-pop label,.colpick-act{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:9px 10px;border-radius:6px;font-size:14px;color:#101828;cursor:pointer;text-align:left;box-sizing:border-box}
.colpick-pop label:hover,.colpick-act:hover{background:#f9fafb}
.colpick-act{background:none;font-weight:600;color:#0b5cad;height:auto}
.colpick-act[data-act=all]{border-bottom:1px solid #eef0f3;border-radius:6px 6px 0 0;margin-bottom:4px}
.colpick-pop input{margin:0;width:16px;height:16px;accent-color:#0b5cad}
.ct-act,.ct-act-h{text-align:center !important}
#searches th.ct-act-h{width:96px;min-width:96px;max-width:96px}
#searches.resized td.ct-act{overflow:visible}
#searches.resized td{text-overflow:ellipsis}
.pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 10px;border-radius:11px;font-size:12px;font-weight:600;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.ok{background:#ecfdf3;color:#067647;border:1px solid #abefc6}
.pill.run{background:#eef4fb;color:#0b5cad;border:1px solid #c9dcf2}
.pill.bad{background:#fef3f2;color:#b42318;border:1px solid #fecdca}
.kebab{position:relative;display:inline-block}
.kebab-btn{width:32px;height:32px;padding:0;border-radius:6px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667085'%3E%3Ccircle cx='12' cy='5' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='19' r='1.8'/%3E%3C/svg%3E") center/18px no-repeat}
.kebab-btn:hover,.kebab:focus-within .kebab-btn{background-color:#f2f4f7}
.kebab-list{display:none;position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:170px;padding:4px;background:#fff;border:1px solid #e3e6ea;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.15);text-align:left}
.kebab:focus-within .kebab-list{display:block}
.kebab-list a{display:block;padding:8px 12px;border-radius:5px;color:#1a1a1a;font-size:14px;white-space:nowrap}
.kebab-list a:hover{background:#eef4fb;color:#0b5cad}
.kebab-list a.danger{color:#b42318}.kebab-list a.danger:hover{background:#fef3f2}
.mini-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;font-size:14px;color:#444}
.pg-arrow{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;color:#333}
.pg-arrow:hover{background:#f2f4f7}
.pg-arrow.off{color:#c3c8cf;pointer-events:none}
.ct-import{padding:20px 24px}
.ct-import h3{margin:0 0 12px;font-size:18px}
.ct-import form{margin-bottom:6px}
.ct-dlg{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:0;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.ct-dlg::backdrop{background:rgba(15,23,42,.5)}
.add-form{display:flex;flex-direction:column;max-height:calc(100vh - 48px)}
.dlg-head{display:flex;align-items:center;gap:14px;padding:20px 24px 8px}
.dlg-head h3{margin:0;font-size:18px;font-weight:600}
.dlg-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#f2f4f7;box-shadow:0 0 0 6px #f9fafb;color:#475467}
.dlg-x{margin-left:auto;width:36px;height:36px;padding:0;border-radius:6px;background:transparent;color:#667085;font-size:26px;line-height:1}
.dlg-x:hover{background:#f2f4f7;color:#1a1a1a}
.dlg-body{overflow:auto;padding:8px 24px 16px}
.dlg-sub{display:flex;align-items:center;gap:10px;margin:4px 0 12px}
.dlg-sub .muted{margin-right:auto}
.field-find{width:200px;height:34px;margin:0;font-size:13px}
.btn-ghost-sm{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;background:#fff;color:#344054;border:1px solid #d0d5dd;font-size:13px;font-weight:600}
.btn-ghost-sm:hover{background:#f9fafb}
.btn-ghost-sm[aria-pressed=true]{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.add-form .f{display:block;font-size:14px;color:#344054;font-weight:500}
.add-form .f input,.add-form .f select,.add-form .f textarea{display:block;width:100%;height:42px;margin-top:6px;font-size:14px;border-color:#d0d5dd;background:#fff;font-family:inherit}
.add-form .f textarea{height:auto;min-height:64px;resize:vertical}
.add-form .f{overflow-wrap:anywhere}
.add-form .f.full{margin-bottom:14px}
.f-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
.f-grid2 .f[hidden]{display:none}
.req{color:#b42318}
.dlg-foot{display:flex;align-items:center;gap:10px;padding:14px 24px;border-top:1px solid #eef0f3;background:#fff;border-radius:0 0 12px 12px}
.dlg-foot .muted{margin-right:auto}
.dlg-foot button{height:40px;padding:0 18px;font-size:14px;font-weight:600;white-space:nowrap;flex-shrink:0}
@media (max-width:640px){.f-grid2{grid-template-columns:1fr}.dlg-foot{flex-wrap:wrap}}
/* ---- New Contacts Search (shown in place of the Contacts page; works without script) ---- */
.ns{display:none;padding:20px 24px 24px}
.ns:target{display:block}
main:has(#new-search:target) #ct-main{display:none}
.ns-back{display:inline-block;font-size:14px;margin-bottom:8px}
.ns-title{margin:0 0 6px;font-size:22px;font-weight:600;padding-bottom:16px;border-bottom:1px solid #e3e6ea}
.ns-form h4{margin:22px 0 12px;font-size:17px;font-weight:600}
.ns-form select,.ns-form input:not([type=checkbox]){height:44px;margin:0;font-size:15px;border-color:#d0d5dd;background:#fff}
.ns-type{width:min(600px,100%);margin-bottom:12px !important}
.dd:has(> .ns-type){width:min(600px,100%);margin-bottom:12px}
.ns-two .dd{margin-top:6px}
.ns-sort .dd{flex:1}
/* spinner shown while counting */
.spin{display:inline-block;width:14px;height:14px;border:2px solid #d0d5dd;border-top-color:#667085;border-radius:50%;animation:spin .8s linear infinite;flex:none}
.spin[hidden]{display:none}
.ns-chips .spin{margin-left:-8px}
.ns-go .spin{width:13px;height:13px;margin-left:8px;vertical-align:-2px;border-color:#fff;border-right-color:transparent}
.ns-go[data-busy]{background:#d0d5dd;color:#fff;cursor:progress}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}
/* Contact Count pop-up */
.count-dlg{width:min(480px,calc(100vw - 32px));padding:20px 24px;border:0;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.count-dlg::backdrop{background:rgba(15,23,42,.5)}
.count-head{display:flex;align-items:center;justify-content:space-between}
.count-head h3{margin:0;font-size:18px;font-weight:600}
.count-total{margin:24px 0 10px;font-size:18px;font-weight:600;color:#101828}
.count-list{list-style:none;margin:0;padding:0;color:#475467;font-size:15px}
.count-list li{padding:4px 0}
.count-foot{display:flex;justify-content:flex-end;margin-top:12px}
.count-foot button{height:40px;padding:0 18px;font-size:14px;font-weight:600;color:#344054;border-color:#d0d5dd}
/* confirmation message after generating a report */
.toast{position:fixed;right:24px;bottom:24px;z-index:80;max-width:min(420px,calc(100vw - 48px));padding:12px 16px;border-radius:8px;background:#101828;color:#fff;font-size:14px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.toast[hidden]{display:none}
#searches tr.just-added td{background:#eef4fb;transition:background 1s}
/* Ongage-style dropdowns (New Contacts Search) */
.dd{position:relative;min-width:0}
.dd-native{position:absolute !important;opacity:0;pointer-events:none;width:1px !important;height:1px !important;left:0;top:0}
.ns-form .dd-trigger{display:flex;align-items:center;width:100%;height:44px;margin:0;padding:0 40px 0 14px;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#101828;font-size:15px;font-weight:400;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.ns-form .dd-trigger:hover{border-color:#b2bccc}
.ns-form .dd-trigger:focus,.dd.open .dd-trigger{outline:none;border-color:#7aa7d9;box-shadow:0 0 0 4px rgba(11,92,173,.12)}
.ns-form input.dd-trigger{cursor:text}
.dd.is-empty button.dd-trigger{color:#667085;font-weight:600}
.dd-chev{position:absolute;right:14px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:1.6px solid #667085;border-bottom:1.6px solid #667085;transform:rotate(45deg);pointer-events:none;transition:transform .15s}
.dd.open .dd-chev{transform:rotate(225deg);margin-top:-2px}
.dd-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;max-height:300px;overflow:auto;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #eaecf0;border-radius:8px;box-shadow:0 12px 16px -4px rgba(16,24,40,.08),0 4px 6px -2px rgba(16,24,40,.03);scrollbar-width:thin;scrollbar-color:#d0d5dd transparent}
.dd-list[hidden]{display:none}
.dd-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:6px;color:#101828;font-size:15px;cursor:pointer}
.dd-opt[hidden]{display:none}
.dd-opt.act{background:#f9fafb}
.dd-opt.sel::after{content:"";flex:none;width:12px;height:6px;margin-top:-4px;border-left:2px solid #0b5cad;border-bottom:2px solid #0b5cad;transform:rotate(-45deg)}
.dd-none{padding:10px 12px;color:#98a2b3;font-size:14px}
/* placeholders in bold: empty text boxes, and dropdowns still showing their "Select ..." prompt */
.ns-form input::placeholder{font-weight:600;color:#667085}
.ns-form select:has(option[value=""]:checked){font-weight:600;color:#667085}
.ns-form select option{font-weight:400;color:#1a1a1a}
.ns-form input.ns-val::placeholder{font-weight:400;color:#b4b9c2}
.ns-switch{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:14px;color:#344054;cursor:pointer;width:max-content}
.ns-switch[hidden]{display:none}
.ns-switch input{position:absolute;opacity:0;width:1px;height:1px}
.ns-switch .sw{position:relative;width:40px;height:22px;border-radius:11px;background:#d0d5dd;transition:background .15s}
.ns-switch .sw::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.ns-switch input:checked+.sw{background:#0b5cad}.ns-switch input:checked+.sw::after{left:20px}
.ns-switch input:focus-visible+.sw{outline:2px solid #0b5cad;outline-offset:2px}
.ns-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(160px,1fr) auto;gap:12px;align-items:center;max-width:1100px}
.ns-row[hidden]{display:none}
.ns-row .ns-wide{grid-column:1 / 4}
.ns-vals{display:flex;gap:8px;min-width:0}
.ns-vals input{flex:1;min-width:0}
.ns-vals input[hidden]{display:none}
.ns-form input.ns-val:disabled{background:#f9fafb;cursor:not-allowed}
.ns-form input.ns-val2::placeholder{font-weight:400;color:#b4b9c2}
.ns-add{height:44px;padding:0 22px;font-size:15px;font-weight:600}
.ns-add:disabled,.ns-go:disabled{background:#d0d5dd;color:#fff;cursor:not-allowed}
.ns-crit{margin-top:22px}
.ns-crit[hidden]{display:none}
.ns-chips{list-style:none;margin:0;padding:0}
.ns-chips li{display:flex;align-items:center;gap:14px;padding:6px 0;font-size:14px;color:#344054}
.ns-chips li strong{color:#101828;font-weight:600}
.ns-chips .crit-val{color:#101828}
.ns-chips button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:6px;background:transparent}
.crit-count{color:#667085;margin-left:12px}
.crit-count:hover{background:#f2f4f7;color:#0b5cad}
.crit-count:disabled{opacity:.6;cursor:progress}
.crit-del{color:#d92d20}
.crit-del:hover{background:#fef3f2}
.ns-two{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;max-width:740px;margin-top:16px}
.ns-two label{display:block;font-size:14px;color:#344054}
.ns-two select{display:block;width:100%;margin-top:6px}
.ns-out{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.ns-colhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:14px;color:#344054}
.linkish{display:inline-flex;align-items:center;height:20px;line-height:20px;margin:0;background:none;color:#667085;padding:0;font-size:14px;font-family:inherit}
.ns-colhead span{line-height:20px}
.linkish:hover{color:#0b5cad;text-decoration:underline}
.ns-search{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border:1px solid #d0d5dd;border-radius:6px;color:#98a2b3;margin-bottom:8px}
.ns-search input{flex:1;border:0 !important;height:40px !important;padding:0}
.ns-search input:focus{outline:none}
.ns-search:focus-within{border-color:#0b5cad}
.ns-sort{display:flex;align-items:center;gap:10px;font-size:15px;color:#344054;margin-bottom:8px}
.ns-sort select{flex:1}
.ns-list{list-style:none;margin:0;padding:8px;height:300px;overflow:auto;border:1px solid #e3e6ea;border-radius:8px;background:#fcfcfd}
.ns-list li[hidden]{display:none}
.ns-list .of{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:6px;padding:10px 12px;background:#fff;color:#344054;border:1px solid #eef0f3;border-radius:6px;font-size:14px;text-align:left}
.ns-list .of::after{content:"\203A";font-size:18px;color:#667085;margin-left:8px}
.ns-list .of:hover{border-color:#c9dcf2;background:#f7faff}
.ns-chosen .of{flex-direction:row-reverse;justify-content:flex-end;gap:10px;background:#f2f4f7}
.ns-chosen .of::after{content:"\2039";margin:0}
.ns-chosen .of[data-fixed]{cursor:default}.ns-chosen .of[data-fixed]::after{visibility:hidden}
.ns-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px}
.ns-actions button{height:44px;padding:0 18px;font-size:15px;font-weight:600}
@media (max-width:900px){.ns-row{grid-template-columns:1fr 1fr}.ns-row .ns-wide{grid-column:1 / 2}.ns-out{grid-template-columns:1fr}}
/* Messages: the row actions are always a three-dot menu (the heart stays beside it) */
.act-menu{display:inline-block;position:relative;vertical-align:middle}
.act-btn{display:inline-flex;width:32px;height:32px;padding:0;border:0;border-radius:6px;font-size:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667085'%3E%3Ccircle cx='12' cy='5' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='19' r='1.8'/%3E%3C/svg%3E") center/18px no-repeat}
.act-btn::after{content:none !important}
.act-btn:hover,.act-menu:focus-within .act-btn{background-color:#f2f4f7;border:0}
.act-list{display:none;position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:180px;padding:4px;background:#fff;border:1px solid #e3e6ea;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.15);text-align:left}
.act-menu:focus-within .act-list{display:block}
.act-list .btn-sm{display:block;margin:0;padding:8px 12px;border:0;border-radius:5px;font-size:14px;line-height:1.4;color:#1a1a1a;background:none;white-space:nowrap}
.act-list .btn-sm:hover{background:#eef4fb;color:#0b5cad}
.act-list .btn-test{color:#1a1a1a}
#msgs td.actions,table.list.resized td.actions{overflow:visible}
/* smaller windows: give the space to the content, keep 20px on the right */
@media (max-width:1280px){
 main:has(#msgs),main:has(#rep),main:has(#abtests){padding:8px 20px 12px 0}
 main:has(#rep,#abtests) h2{margin:4px 0 8px 12px;font-size:20px}
 main:has(#rep,#abtests) .card{padding:8px 10px 8px 12px;border-left:0;border-radius:0 8px 8px 0}
 main:has(#rep) .rtab:first-child{margin-left:12px}
 main:has(#rep,#abtests) .card form{gap:6px !important}
 main:has(#rep,#abtests) .card form input[name=q]{width:clamp(100px,12vw,220px) !important}
 main:has(#rep,#abtests) .card form select{max-width:150px}
 main:has(#msgs) h2{margin:4px 0 8px 12px;font-size:20px}
 main:has(#msgs) .card{padding:8px 10px 8px 12px;border-left:0;border-radius:0 8px 8px 0}
 main:has(#msgs) .toolbar{margin-top:4px;gap:10px;flex-wrap:wrap}
 main:has(#msgs) .searchbar input{width:clamp(140px,24vw,300px)}
 #msgs{margin-top:0}
 .msg-pager{margin:12px 0 20px}
 table.list th,table.list td{padding-left:6px;padding-right:6px}
 #msgs td{overflow-wrap:anywhere}
 #msgs td.actions{overflow-wrap:normal}
 table.list.resized{table-layout:auto}
 .btn-sm{margin-left:2px;padding:3px 7px}
}
/* navigation + row actions: dropdowns at 1000px and below */
.nav-wrap{display:contents}
.nav-toggle{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nav-btn{display:none}
@media (max-width:1000px){
 header{position:relative;align-items:center}
 .nav-wrap{display:block;position:relative;margin-left:16px}
 .nav-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid rgba(255,255,255,.55);border-radius:6px;font-size:14px;color:#fff;cursor:pointer;user-select:none}
 .nav-btn::after{content:"";width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor}
 .nav-btn:hover,.nav-toggle:checked+.nav-btn{background:rgba(255,255,255,.15)}
 .nav-toggle:focus-visible+.nav-btn{outline:2px solid #fff;outline-offset:2px}
 header nav{display:none !important;position:absolute;top:calc(100% + 8px);left:0;z-index:60;min-width:200px;margin:0 !important;padding:6px;background:#fff;border:1px solid #e3e6ea;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
 .nav-toggle:checked~nav{display:block !important}
 header nav a{display:block;margin:0;padding:8px 12px;border-radius:5px;color:#1a1a1a;font-size:14px}
 header nav a:hover{background:#eef4fb;color:#0b5cad}
 table.list.resized td.actions,#msgs td.actions{overflow:visible}
}
/* ---- Modals (open with .open, or :target without script) ---- */
.modal{display:none;position:fixed;inset:0;z-index:50;background:rgba(15,23,42,.45);align-items:flex-start;justify-content:center;padding:48px 16px;overflow:auto}
.modal:target,.modal.open{display:flex}
.modal-box{background:#fff;border-radius:10px;width:100%;max-width:480px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.modal-box.wide{max-width:760px}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px;border-bottom:1px solid #eef0f3}
.modal-head h3{margin:0 0 2px;font-size:17px}
.modal-x{font-size:24px;line-height:20px;color:#666}
.modal-sub{padding:10px 20px;border-bottom:1px solid #eef0f3;font-size:14px}
.modal-body{padding:16px 20px}
.modal-body label{display:block;margin-top:10px;font-weight:600;color:#333}
.modal-foot{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:12px 20px;border-top:1px solid #eef0f3}
.btn-ghost{padding:8px 14px;border-radius:6px;color:#333}
.btn-primary{background:#0b5cad;color:#fff;padding:9px 16px;border-radius:6px}
input.full{width:100%}
.sent-as{margin:10px 0 4px;padding:8px 10px;background:#f6f8fb;border-radius:6px;font-size:14px;color:#333}
.prefixed{display:flex;align-items:stretch;margin:4px 0}
.prefixed .prefix{display:flex;align-items:center;padding:0 10px;background:#f0f3f7;border:1px solid #ccd;border-right:0;border-radius:6px 0 0 6px;font-weight:600;color:#333;font-size:14px}
.prefixed input{flex:1;margin:0;border-radius:0 6px 6px 0}
.email-frame{background:#eef0f3;padding:16px;border-radius:6px;max-height:60vh;overflow:auto}
.email-mock{background:#fff;max-width:600px;margin:0 auto;padding:24px;font-size:14px}
.email-mock h2{margin:4px 0 8px;font-size:20px}
.test-banner{max-width:600px;margin:0 auto;box-sizing:border-box;padding:8px 12px;background:#fff6ea;border:1px dashed #c77a12;color:#5a3300;font-size:12px;font-family:Arial,sans-serif}
.em-unsub{color:#999;font-size:11px;text-align:center;margin:0 0 12px}
.em-logo{color:#0b5cad;font-weight:700;margin:0}
.em-job{border:1px solid #e3e6ea;border-radius:6px;padding:10px 12px;margin:8px 0}.em-job span{display:block;color:#777;font-size:13px}
.em-foot{color:#999;font-size:12px;margin-top:16px}

/* ---- A/B tests list: same table as Reports (rules above), plus its own bits ---- */
main:has(#abtests){max-width:none}
details.colmenu{display:inline-block;position:relative}
details.colmenu>summary{cursor:pointer;list-style:none}
details.colmenu>summary::-webkit-details-marker{display:none}
.colmenu-pop{position:absolute;z-index:30;left:0;margin-top:4px;background:#fff;border:1px solid #ccd;border-radius:8px;padding:8px;box-shadow:0 6px 18px rgba(0,0,0,.14);max-height:340px;overflow:auto;min-width:180px}
#abtests td:nth-child(3){white-space:normal;min-width:240px;overflow-wrap:anywhere}
#abtests :is(th,td):is(:nth-child(7),:nth-child(8)){text-align:center}
/* Campaigns list: small label on A/B test rows (they count as test sends) */
.tag-ab{display:inline-block;margin-left:6px;padding:0 6px;border-radius:9px;background:#eef4fb;color:#0b5cad;font-size:11px;font-weight:600;line-height:18px;white-space:nowrap;vertical-align:1px}
/* A/B test page: Manual / Auto label next to Created */
.origin{display:inline-block;padding:0 8px;border-radius:9px;font-size:12px;font-weight:600;line-height:20px;white-space:nowrap}
.origin.auto{background:#f2f4f7;color:#475467}
.origin.manual{background:#fff4e5;color:#8a4b00}
#abtests td.actions{text-align:right}
/* ---- New A/B test (step pages): pages/abtests_new.html ---- */
main:has(.abn){max-width:1240px}
main:has(.abn){position:relative;display:flex;flex-direction:column}
main:has(.abn)>h2{margin:4px 0 16px}
main:has(.abn)>form.abn{display:contents}
.abn-top{order:-1;display:flex;align-items:center;gap:16px;margin-top:20px;font-size:13px;min-height:18px}
.abn-top-btns{position:absolute;top:50px;right:20px;display:flex;gap:10px}
.abn-btn-outline{display:inline-flex;align-items:center;padding:9px 16px;border:1px solid #ccd;border-radius:6px;background:#fff;color:#1a1a1a;font-size:14px;font-weight:600;cursor:pointer}
.abn-btn-outline:hover{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.abn-steps{display:flex;gap:16px;margin:0;padding:0;list-style:none}
.abn-steps li{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
.abn-stepnum{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1.5px solid #98a2b3;color:#344054;font-weight:600;font-size:14px;background:#fff}
.abn-steps li.on .abn-stepnum{background:#0b5cad;border-color:#0b5cad;color:#fff}
.abn-steps b{display:block;font-size:14px;font-weight:600;color:#344054}.abn-steps li.on b{color:#101828}
.abn-steps small{display:block;font-size:12px;color:#667085}
.abn-stepcard{padding:16px 24px !important}
.abn-search{display:flex;gap:10px;align-items:stretch}
.abn-searchbox{flex:1;display:flex;align-items:center;gap:10px;margin:0;padding:0 14px;border:1.5px solid #0b5cad;border-radius:6px;background:#fff;color:#667085}
.abn-searchbox input{flex:1;margin:0;padding:11px 0;border:0;outline:0;font-family:ui-monospace,Consolas,monospace;font-size:14px;color:#1a1a1a;background:transparent}
.abn-search>button{padding:0 20px;font-weight:600;font-size:14px}
.abn-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 14px}
.abn-chips-lbl{font-size:13px;color:#555}
.abn-chip{padding:3px 10px;border-radius:12px;background:#f2f4f7;font-size:12px;font-weight:600;color:#344054}
.abn-matches{margin:0 0 10px;font-size:14px;font-weight:700}
.abn-camp{margin-bottom:12px;padding:16px 20px;border:1px solid #d6dae0;border-radius:8px;background:#fff}
.abn-camp.on{border:2px solid #0b5cad;padding:15px 19px;background:#f6f9fd}
.abn-camp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.abn-camp-head b{font-size:17px}
.abn-rec{padding:2px 9px;border-radius:5px;background:#e3eefb;color:#0b5cad;font-size:12px;font-weight:600}
.abn-camp-act{margin-left:auto;display:flex;align-items:center;gap:12px}
.abn-using{display:none;padding:3px 10px;border-radius:12px;background:#dcfae6;color:#067647;font-size:12px;font-weight:600}
.abn-camp.on .abn-using,.abn-camp.on .abn-change{display:inline-block}
.abn-change{display:none}
.abn-camp-act .abn-change{font-size:14px}
.abn-camp.on .abn-use{display:none}
.abn-camp-meta{margin:6px 0 14px;font-size:13px;color:#555}
.abn-camp-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 24px;font-size:14px;color:#1a1a1a;line-height:1.5}
.abn-camp-facts small{display:block;font-size:12px;color:#667085}
.abn-link{padding:0;border:0;background:none;color:#0b5cad;font-size:inherit;cursor:pointer}
.abn-link:hover{text-decoration:underline}
.abn-more,.abn-scratch-note{margin:4px 0 0;font-size:13px;color:#555}
.abn-scratch-note{padding:10px 12px;border-radius:6px;background:#f6f7f9}
.abn-none{margin:0;padding:12px 14px;border-radius:6px;background:#fffaeb;color:#7a2e0e;font-size:14px}
/* first visit: only "Start from a recurring campaign"; the rest appears once a campaign is chosen */
.abn:not(.has-campaign) .abn-later{display:none !important}
.abn-camp[hidden],#abn-results [hidden],.abn-chips[hidden]{display:none !important}
@media (max-width:1100px){.abn-camp-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.abn-steps{flex-wrap:wrap}.abn-steps li{flex:1 1 40%}}
.abn-stepname{color:#333}.abn-stepname b{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin:0 4px 0 2px;border-radius:50%;background:#0b5cad;color:#fff;font-size:12px}
.abn-saved{margin-left:4px;padding:2px 10px;border-radius:6px;background:#ecfdf3;color:#067647;font-size:13px;opacity:0;transition:opacity .2s}
.abn-saved.on{opacity:1}
.abn .card{padding:20px 24px}
.abn-h{margin:0 0 4px;font-size:18px}
.abn-sub{margin:0 0 14px;font-size:14px;color:#555}
.abn-lbl{display:block;font-size:14px;font-weight:600;color:#333}
.abn-lbl input{display:block;width:100%;margin-top:6px;font-weight:400;font-size:14px;padding:9px 12px;color:#1a1a1a}
.abn-hint{display:block;margin-top:6px;font-size:13px;font-weight:400;color:#666}
.abn-req{font-weight:400;color:#888}
.abn-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin-top:12px}
.abn-types{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.abn-types-3{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}
.abn-type{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #d6dae0;border-radius:8px;background:#fff;cursor:pointer;font-size:14px;color:#1a1a1a}
.abn-type input{margin:3px 0 0;accent-color:#0b5cad;width:16px;height:16px;flex:none}
.abn-type b{display:block;margin-bottom:4px;font-size:15px}
.abn-type small{display:block;font-size:13px;line-height:1.4;color:#555}
.abn-type:hover{border-color:#9db8d8}
.abn-type:has(input:checked){border:2px solid #0b5cad;padding:13px;background:#f3f8fe}
.abn-count{margin-left:6px;font-size:14px;font-weight:400;color:#555}
.abn-add{display:inline-flex;align-items:center;gap:8px;margin:0;padding:9px 16px;border:1px solid #ccd;border-radius:6px;background:#fff;color:#1a1a1a;font-size:14px;font-weight:600}
.abn-add:hover{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.abn-add:disabled{opacity:.5;cursor:default}
.abn-vars{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;align-items:start}
.abn-var{border:1px solid #e3e6ea;border-radius:8px;padding:16px;background:#fff}
.abn-var-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.abn-var-head b{font-size:16px}
.abn-letter{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;background:#0b5cad;color:#fff;font-weight:700;font-size:14px}
.abn-var:nth-child(2) .abn-letter{background:#f79009}.abn-var:nth-child(3) .abn-letter{background:#d9d6fe;color:#3e1c96}
.abn-var:nth-child(4) .abn-letter{background:#12b76a}.abn-var:nth-child(5) .abn-letter{background:#ee46bc}.abn-var:nth-child(n+6) .abn-letter{background:#667085}
.abn-tag{padding:1px 9px;border-radius:9px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:600;line-height:20px}
.abn-tag.edited{background:#fff4e5;color:#b54708}
.abn-icons{display:flex;gap:6px;margin:2px 0 10px}
.abn-icons-inline{margin:0 0 0 auto}
.abn-ico{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#475467}
.abn-ico:hover{background:#f2f4f7;color:#0b5cad}
.abn-del:hover{color:#b42318;background:#fef3f2}
.abn-var .abn-lbl{margin-top:8px}
.abn-ro{margin:6px 0 0;padding:10px 12px;border-radius:6px;background:#f6f7f9;font-size:14px;color:#333}
.abn-thumb{margin:12px 0 10px;height:190px;overflow:hidden;border-radius:6px;background:#eef0f3;padding:14px 0 0}
.abn-mail{width:66%;margin:0 auto;background:#fff;border-radius:3px 3px 0 0;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.abn-mail-top{height:16px;background:#0b5cad;border-radius:3px 3px 0 0;margin-bottom:6px}
.abn-mail i{display:block;padding:5px 8px;border-bottom:1px solid #eef0f3}
.abn-mail i b{display:block;height:4px;border-radius:2px;background:#667085;width:70%}
.abn-mail i b+b{margin-top:4px;background:#cfd5dd;width:45%}
.abn-mail.dense i{display:flex;gap:8px;padding:3px 8px}
.abn-mail.dense i b{flex:1;margin:0;width:auto}.abn-mail.dense i b+b{margin:0;background:#cfd5dd}
.abn-mail.near i{position:relative;padding-right:44px}
.abn-mail.near em{position:absolute;right:8px;top:6px;font-size:9px;font-style:normal;font-weight:700;color:#6941c6}
.abn-msgrow{display:flex;align-items:center;justify-content:space-between;gap:8px}
.abn-msgline{margin:0;font-size:14px;color:#555}
.abn-btns{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.abn-btn{padding:7px 12px;border:1px solid #ccd;border-radius:6px;background:#fff;color:#1a1a1a;font-size:13px;font-weight:600}
.abn-btn:hover{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.abn-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 12px;margin:12px 0 4px;padding:10px 12px;border:1px dashed #cfd5dd;border-radius:6px;font-size:14px;color:#333}
.abn-facts small{display:block;font-size:12px;color:#777}
.abn-same{grid-column:1/-1;display:flex;align-items:center;gap:6px;margin:0 0 2px;font-size:13px;font-weight:600;color:#475467}
.abn-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.abn-split{background:#f2f4f7;color:#555}
.abn-foot{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 24px;background:#fff;border:1px solid #e3e6ea;border-radius:8px;box-shadow:0 -4px 14px rgba(16,24,40,.06)}
.abn-foot-note{font-size:13px;color:#777}
.abn-cancel{font-size:14px}
.abn-btn-secondary{margin-left:auto;background:#fff;color:#0b5cad;border:1px solid #0b5cad}
.abn-btn-secondary:hover{background:#eef4fb}
@media (max-width:1100px){.abn-types:not(.abn-types-3){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.abn-grid2,.abn-2col{grid-template-columns:1fr}.abn-types,.abn-types-3{grid-template-columns:1fr}.abn-foot-note{display:none}}
/* New A/B test: View HTML window, copy highlight */
.abn-code{margin:0;max-height:58vh;overflow:auto;padding:14px 16px;border-radius:6px;background:#0f172a;color:#e2e8f0;font:12px/1.55 ui-monospace,Consolas,monospace;white-space:pre}
.abn-hm-k{display:inline-block;min-width:64px;color:#667085;font-size:12px}
.abn-x{padding:0 4px;background:none;color:#666;font-size:24px;line-height:20px}
.abn-x:hover{color:#1a1a1a;background:none}
.abn-var{transition:box-shadow .3s}
.abn-var.flash{box-shadow:0 0 0 3px #b9d4f3}
.abn-msgrow .abn-btns{margin:0;flex:none}
a.abn-btn{display:inline-block}
/* New A/B test: caption under the control's Edit, "Add an existing message" search */
.abn-btns{align-items:flex-start}
.abn-editcol{display:inline-flex;flex-direction:column;align-items:stretch;gap:4px}
.abn-edit-copy{text-align:center}
.abn-editcol .abn-cap{text-align:center}
.abn-cap{font-size:12px;font-weight:400;color:#667085;white-space:nowrap}
.abn-addrow{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px}
.abn-pick{position:relative;flex:0 1 460px;min-width:260px}
.abn-pick-box{display:flex;align-items:center;gap:8px;box-sizing:border-box;height:38px;margin:0;padding:0 16px;border:1px solid #ccd;border-radius:6px;background:#fff;color:#1a1a1a}
.abn-pick-box:focus-within{border-color:#0b5cad;box-shadow:0 0 0 3px #dbe8f7}
.abn-pick-box input{flex:1;margin:0;padding:0;border:0;outline:0;font-size:14px;background:transparent;color:#1a1a1a}
.abn-pick-box input::placeholder{color:#1a1a1a;font-weight:600;opacity:1}
.abn-pick-box:hover{border-color:#0b5cad}
.abn-add{box-sizing:border-box;height:38px}
.abn-pick-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:40;max-height:320px;overflow:auto;margin:0;padding:4px;list-style:none;background:#fff;border:1px solid #e3e6ea;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.15)}
.abn-pick-list[hidden]{display:none}
.abn-pick-list li{padding:8px 10px;border-radius:5px;cursor:pointer;font-size:14px}
.abn-pick-list li b{display:block;font-weight:600;color:#101828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.abn-pick-list li small{display:block;font-size:12px;color:#667085}
.abn-pick-list li.on,.abn-pick-list li[data-i]:hover{background:#eef4fb}
.abn-pick-list mark{background:#fff3c4;color:inherit;padding:0}
.abn-pick-list .abn-pick-none{cursor:default;color:#667085}
.abn-tag.existing{background:#e3eefb;color:#0b5cad}
/* New A/B test: Segments (pick list | include / exclude | chosen lists) */
.abn-seg-grid{display:grid;grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr);gap:20px;align-items:start;margin-top:4px}
.abn-seg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;margin-bottom:8px;font-size:14px;color:#1a1a1a}
.abn-seg-head2{margin-top:18px}
.abn-sort{display:inline-flex;border:1px solid #ccd;border-radius:6px;overflow:hidden}
.abn-sort button{padding:6px 10px;border:0;border-radius:0;background:#fff;color:#344054;font-size:12px;font-weight:600}
.abn-sort button+button{border-left:1px solid #ccd}
.abn-sort button:hover{background:#eef4fb;color:#0b5cad}
.abn-sort button.on{background:#0b5cad;color:#fff}
.abn-seg-search{display:flex;align-items:center;gap:8px;box-sizing:border-box;height:38px;margin:0 0 8px;padding:0 12px;border:1px solid #ccd;border-radius:6px;background:#fff;color:#667085}
.abn-seg-search:focus-within{border-color:#0b5cad;box-shadow:0 0 0 3px #dbe8f7}
.abn-seg-search input{flex:1;margin:0;padding:0;border:0;outline:0;font-size:14px;background:transparent}
.abn-seglist{height:340px;overflow:auto;margin:0;padding:4px;list-style:none;border:1px solid #d6dae0;border-radius:8px;background:#fff}
.abn-seglist-sm{height:150px}
.abn-seglist li{padding:8px 10px;border-radius:5px;font-size:14px;line-height:1.35;color:#1a1a1a;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:3px solid transparent}
.abn-seglist li:hover{background:#f6f9fd}
.abn-seglist li.on{background:#e3eefb;border-left-color:#0b5cad}
.abn-seglist li.abn-seg-empty{cursor:default;color:#667085;font-style:italic;background:none}
.abn-seg-id{color:#667085}.abn-seg-n{color:#667085}
.abn-seg-foot{margin:6px 0 0;font-size:12px;color:#667085}
.abn-seg-mid{display:flex;flex-direction:column;gap:40px;padding-top:110px}
.abn-seg-act{display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:center;font-size:14px}
.abn-mover{display:flex;align-items:stretch;height:38px;border:1px solid #0b5cad;border-radius:6px;overflow:hidden;background:#fff}
.abn-mover span{flex:1;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#0b5cad;border-left:1px solid #0b5cad;border-right:1px solid #0b5cad}
.abn-mv{width:40px;padding:0;border:0;border-radius:0;background:#fff;color:#0b5cad;display:flex;align-items:center;justify-content:center}
.abn-mv:hover{background:#0b5cad;color:#fff}
.abn-seg-note{margin:0;font-size:12px;font-style:italic;color:#667085;text-align:left}
.abn-ord{display:inline-flex;gap:2px}
.abn-seg-check{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;font-size:13px;color:#333;cursor:pointer}
.abn-seg-check input{margin:2px 0 0;accent-color:#0b5cad}
.abn-seg-total{margin:6px 0 0;font-size:14px;color:#333}
@media (max-width:1000px){.abn-seg-grid{grid-template-columns:1fr}.abn-seg-mid{padding-top:0;flex-direction:row;gap:16px}.abn-seg-act{flex:1}}
/* New A/B test: Distribution + Sending options */
.abn-radio{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:0;font-size:14px;color:#1a1a1a;cursor:pointer}
.abn-radio>input[type=radio]{margin:0;width:16px;height:16px;accent-color:#0b5cad}
.abn-dist-by{display:flex;align-items:center;gap:24px;margin:8px 0 14px;font-size:14px}
.abn-dist-table{border:1px solid #e3e6ea;border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden}
.abn-dist-table th{padding:10px 16px;background:#f9fafb;font-size:13px;font-weight:600;color:#475467;border-bottom:1px solid #e3e6ea}
.abn-dist-table th+th,.abn-dist-table td+td{border-left:1px solid #e3e6ea;text-align:center;width:50%}
.abn-dist-table td{padding:10px 16px;border-bottom:0;font-size:14px}
.abn-dist-all td:first-child{font-weight:600;color:#0b5cad}
.abn-dist-all td{background:#f3f8fe}
.abn-unit-input{display:inline-flex;align-items:center;gap:6px;margin:0;padding:0 10px;height:36px;box-sizing:border-box;border:1px solid #ccd;border-radius:6px;background:#fff;font-size:14px;color:#333}
.abn-unit-input:focus-within{border-color:#0b5cad;box-shadow:0 0 0 3px #dbe8f7}
.abn-unit-input input{width:90px;margin:0;padding:0;border:0;outline:0;text-align:right;font-size:14px;background:transparent}
.abn-send>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
.abn-send>summary::-webkit-details-marker{display:none}
.abn-send>summary::before{content:"";width:8px;height:8px;margin:0 2px 0 4px;border-right:2px solid #344054;border-bottom:2px solid #344054;transform:rotate(45deg);transition:transform .15s}
.abn-send[open]>summary::before{transform:rotate(-135deg);margin-top:4px}
.abn-send>summary .abn-h{margin:0}
.abn-send-body{display:flex;flex-direction:column;gap:16px;margin-top:16px;padding-left:4px}
.abn-throttle{display:flex;flex-direction:column;gap:14px;padding-left:28px}
.abn-throttle.off{opacity:.55}
.abn-num{width:80px;margin:0;padding:7px 10px;font-size:14px}
.abn-throttle select{margin:0;padding:7px 8px;font-size:14px}
.abn-num:disabled,.abn-throttle select:disabled{background:#f6f7f9;color:#98a2b3}
.abn-info{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1.5px solid #475467;border-radius:50%;font-size:11px;font-weight:700;font-style:normal;color:#475467;cursor:help}
/* New A/B test: Advanced configuration + launch date & time */
.abn-check{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;color:#1a1a1a;cursor:pointer}
.abn-check input{margin:0;width:16px;height:16px;accent-color:#0b5cad}
.abn-reveal{margin:12px 0 0 24px;padding:12px 14px;border-radius:6px;background:#f6f7f9}
.abn-reveal[hidden]{display:none}
.abn-ratio-rows{display:flex;flex-wrap:wrap;gap:10px 24px}
.abn-ratio-name{min-width:72px;font-weight:600}
.abn-ratio-total{margin:10px 0 0;font-size:13px;color:#475467}
.abn-ratio-total.bad{color:#b42318}.abn-ratio-total.bad::after{content:" \2014 the shares must add up to 100%"}
.abn-launch-modes{display:flex;flex-direction:column;gap:14px;margin:4px 0 16px}
.abn-cal{width:380px;max-width:100%}
.abn-cal.off{opacity:.45;pointer-events:none}
.abn-cal-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.abn-cal-head select{margin:0;padding:7px 8px;font-size:14px}
.abn-cal-nav{margin-left:auto;display:flex;gap:2px}
.abn-cal-grid{width:100%;border-collapse:collapse;table-layout:fixed}
.abn-cal-grid th{padding:6px 0;border:0;text-align:center;font-size:12px;font-weight:600;color:#667085}
.abn-cal-grid td{padding:2px;border:0;text-align:center}
.abn-cal-grid button{width:100%;height:38px;padding:0;border:0;border-radius:6px;background:none;color:#1a1a1a;font-size:14px}
.abn-cal-grid button:hover{background:#eef4fb;color:#0b5cad}
.abn-cal-grid button.other{color:#98a2b3}
.abn-cal-grid button.past,.abn-cal-grid button:disabled{color:#c3c8cf;background:none;cursor:default}
.abn-cal-grid button.today{box-shadow:inset 0 0 0 1px #9db8d8}
.abn-cal-grid button.on{background:#0b5cad;color:#fff;font-weight:700}
.abn-cal-time{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px}
.abn-cal-time .abn-num{width:70px}
.abn-tz{color:#667085}
.abn-cal-sum{margin:10px 0 0;font-size:13px;color:#475467}
/* New A/B test: mailing notifications */
.abn-notify-to{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 6px;font-size:14px;line-height:20px;color:#1a1a1a}
.abn-notify-to .abn-info{align-self:center}
.abn-email-edit{display:inline-flex;align-items:baseline;gap:4px;margin:0 -4px;padding:0 4px;border:1px solid transparent;border-radius:6px;color:#0b5cad;cursor:text}
.abn-email-edit:hover{border-color:#ccd;background:#fff}
.abn-email-edit:focus-within{border-color:#0b5cad;box-shadow:0 0 0 3px #dbe8f7;background:#fff}
.abn-email-edit input{margin:0;padding:0;border:0;outline:0;background:transparent;color:#0b5cad;font:inherit;font-weight:600;line-height:20px;height:20px;min-width:8ch}
.abn-email-edit svg{align-self:center}
.abn-email-edit input:invalid{color:#b42318}
.abn-toggle{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;color:#1a1a1a;cursor:pointer}
.abn-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.abn-switch{position:relative;flex:none;width:32px;height:18px;border-radius:9px;background:#d0d5dd;transition:background .15s}
.abn-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.2);transition:left .15s}
.abn-toggle input:checked+.abn-switch{background:#0b5cad}
.abn-toggle input:checked+.abn-switch::after{left:16px}
.abn-toggle input:focus-visible+.abn-switch{outline:2px solid #0b5cad;outline-offset:2px}
/* New A/B test: campaign search fields (Mail date, List, OCX search, Include segments) */
.abn-search{flex-wrap:wrap;align-items:flex-end;gap:12px}
.abn-sf{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#475467}
.abn-sf input,.abn-sf select{box-sizing:border-box;height:38px;margin:0;padding:0 12px;font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;color:#1a1a1a;background:#fff}
.abn-sf-wide input{width:220px}
.abn-search>button{height:38px;padding:0 24px}
/* New A/B test: campaign search results (10 per page) and the chosen control */
#abn-from{position:relative}
.abn-sched-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:0 0 10px}
.abn-sched-info{font-size:13px;color:#667085}
.abn-sched-bar .pg{min-width:32px;height:32px;padding:0 10px;font-size:13px}
.abn-sched-hint{margin-left:auto;font-size:12px;color:#667085}
.abn-sched-wrap{border:1px solid #e3e6ea;border-radius:8px;overflow:hidden;margin-bottom:12px}
.abn-sched{width:100%;border-collapse:collapse;table-layout:fixed}
.abn-sched th{padding:10px 12px;background:#f9fafb;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#475467;border-bottom:1px solid #e3e6ea;white-space:nowrap}
.abn-sched th:nth-child(1){width:34%}.abn-sched th:nth-child(2){width:16%}.abn-sched th:nth-child(3){width:15%}.abn-sched th:nth-child(4){width:19%}.abn-sched th:nth-child(5){width:8%}.abn-sched th:nth-child(6){width:8%}
.abn-sched td{padding:8px 12px;font-size:13px;border-bottom:1px solid #eef0f3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;user-select:none}
.abn-sched tr:last-child td{border-bottom:0}
.abn-sched .num{text-align:right}.abn-sched .c{text-align:center}
.abn-sched-name{font-weight:600;color:#101828}
.abn-sched tbody tr:hover td{background:#f6f9fd}
.abn-sched tbody tr:focus{outline:2px solid #0b5cad;outline-offset:-2px}
.abn-sched tbody tr.on td{background:#e3eefb}
.abn-ctl-tag{display:inline-block;margin-left:6px;padding:0 7px;border-radius:9px;background:#0b5cad;color:#fff;font-size:11px;font-weight:600;line-height:18px;vertical-align:1px}
.abn-ocx{width:28px;height:28px}
.abn-ocx-pop{position:absolute;z-index:45;max-width:min(560px,80%);padding:10px 12px;background:#fff;border:1px solid #e3e6ea;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.15);font-size:12px}
.abn-ocx-pop[hidden]{display:none}
.abn-ocx-pop b{display:block;margin-bottom:4px;color:#475467}
.abn-ocx-pop code{display:block;padding:6px 8px;background:#f6f7f9;font-size:12px;word-break:break-all;user-select:all}
#abn-control[hidden],#abn-results[hidden],.abn-sched-wrap[hidden],.abn-sched-bar[hidden]{display:none !important}
#abn-control{margin-top:18px}
/* variant buttons: View HTML (button) and Edit Message (link) look identical */
.abn-btn,a.abn-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;padding:0 12px;font-family:inherit;font-size:13px;font-weight:600;line-height:1;color:#1a1a1a;text-decoration:none}
a.abn-btn:hover{color:#0b5cad;text-decoration:none}
/* New A/B test: step bar = jump links; the circle turns blue on hover */
.abn-steps li a{display:flex;align-items:center;gap:12px;min-width:0;color:inherit;text-decoration:none;border-radius:8px}
.abn-steps li a:hover .abn-stepnum,.abn-steps li a:focus-visible .abn-stepnum{background:#0b5cad;border-color:#0b5cad;color:#fff}
.abn-steps li a:focus-visible{outline:2px solid #0b5cad;outline-offset:4px}
html:has(.abn){scroll-behavior:smooth}
.abn .card{scroll-margin-top:16px}
/* New A/B test opened from the list (a saved test): start with the Control campaign, search hidden until "Change" */
.abn.abn-editing #abn-from>:not(#abn-control):not(.abn-ocx-pop){display:none !important}
.abn.abn-editing #abn-control{margin-top:0}
.abn.abn-editing #abn-control>.abn-matches{margin:0 0 12px;font-size:18px;font-weight:700}
/* Edit message: Copy / Delete at the top right */
.msg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.msg-actions{display:flex;gap:8px}
.msg-actions[hidden],.msg-confirm[hidden]{display:none}
.btn-outline{display:inline-flex;align-items:center;box-sizing:border-box;height:34px;padding:0 14px;border:1px solid #ccd;border-radius:6px;background:#fff;color:#1a1a1a;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}
.btn-outline:hover{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.btn-danger-outline{display:inline-flex;align-items:center;box-sizing:border-box;height:34px;padding:0 14px;border:1px solid #f0b8b2;border-radius:6px;background:#fff;color:#b42318;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.btn-danger-outline:hover{background:#fef3f2;border-color:#b42318}
.btn-danger{background:#b42318;color:#fff}
.btn-danger:hover{background:#912018}
.msg-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid #fecdca;border-radius:6px;background:#fef3f2;font-size:14px;color:#7a271a}
.btn-danger-outline:disabled{border-color:#e3e6ea;color:#98a2b3;background:#f6f7f9;cursor:not-allowed}
.msg-lock{margin:0 0 12px;padding:8px 12px;border-radius:6px;background:#f6f7f9;color:#475467;font-size:13px}
.msg-lock[hidden]{display:none}
/* ---- Alerts (redesign, Joe 2026-10-29): incidents, tabs, categories, Campaign column ---- */
main:has(.al-table){max-width:1280px}
.al-intro{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;margin:-6px 0 14px}
.al-intro p{margin:0;font-size:14px;color:#475467}
.al-showing{margin-left:auto;font-size:13px;color:#667085}
.al-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;padding:14px 16px}
.al-tabs{display:inline-flex;padding:4px;border-radius:8px;background:#eef0f3}
.al-tabs button{padding:7px 14px;border:0;border-radius:6px;background:transparent;color:#344054;font:inherit;font-size:14px;font-weight:600}
.al-tabs button span{font-weight:600}
.al-tabs button:hover{color:#0b5cad}
.al-tabs button.on{background:#fff;color:#101828;box-shadow:0 1px 2px rgba(16,24,40,.1)}
.al-q{flex:1 1 260px;min-width:220px;height:38px;margin:0;padding:0 12px;font-size:14px}
.al-f{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:#475467}
.al-f select{height:38px;margin:0;padding:0 10px;font-size:14px;background:#fff}
.al-card{padding:0;overflow:hidden}
.al-table{width:100%;border-collapse:collapse}
.al-table th{padding:12px 14px;background:#fff;border-bottom:1px solid #e3e6ea;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#475467;text-align:left}
.al-table td{padding:14px;border-bottom:1px solid #eef0f3;font-size:14px;vertical-align:top}
.al-day td{padding:9px 14px;background:#f6f7f9;font-size:13px;font-weight:700;color:#344054}
.al-row{cursor:pointer}
.al-row:hover td{background:#fafbfc}
.al-row:focus{outline:2px solid #0b5cad;outline-offset:-2px}
.al-row[aria-expanded=true] td{background:#f8fafc;border-bottom-color:transparent}
.al-sev{display:inline-block;padding:1px 10px;border-radius:12px;font-size:12px;font-weight:700;line-height:22px}
.al-sev.urgent{background:#fee4e2;color:#b42318}
.al-sev.normal{background:#f2f4f7;color:#344054}
.al-title{display:block;font-size:15px;line-height:1.35;color:#101828}
.al-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.al-tag{padding:1px 8px;border-radius:5px;background:#f2f4f7;font-size:12px;font-weight:600;color:#344054;line-height:20px}
.al-trend{background:#fff4e5;color:#b54708}
.al-trend:not(.up){background:#ecfdf3;color:#067647}
.al-campcol{min-width:200px}
.al-camp{font-family:ui-monospace,Consolas,monospace;font-size:13px;color:#0b5cad;word-break:break-all}
span.al-camp{color:#344054}
.al-none{color:#667085}
.al-campcol small,.al-when small,.al-table td>small{display:block;margin-top:3px;font-size:12px;color:#667085}
.al-morecamps{margin-top:2px;padding:0;border:0;background:none;color:#0b5cad;font:inherit;font-size:12px;font-weight:600}
.al-when{white-space:nowrap}
.al-first{color:#98a2b3 !important}
.al-st{display:inline-block;padding:1px 10px;border-radius:12px;font-size:12px;font-weight:700;line-height:22px;white-space:nowrap}
.st-open{background:#e3eefb;color:#0b5cad}.st-review{background:#fef0c7;color:#93370d}.st-fixing{background:#f4ebff;color:#6941c6}
.st-failed{background:#fee4e2;color:#b42318}.st-resolved{background:#ecfdf3;color:#067647}
.al-owner{white-space:nowrap;color:#344054}
.al-xcol{width:36px;text-align:right}
.al-x{width:30px;height:30px;padding:0;border:0;border-radius:6px;background:none;color:#475467;display:inline-flex;align-items:center;justify-content:center}
.al-x:hover{background:#eef0f3}
.al-x svg{transition:transform .15s}
.al-row[aria-expanded=true] .al-x svg{transform:rotate(180deg)}
.al-more td{background:#f8fafc;padding-top:4px;padding-bottom:20px}
.al-more[hidden]{display:none}
.al-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.al-grid h4{margin:6px 0 10px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#475467}
.al-grid h4:not(:first-child){margin-top:18px}
.al-grid p{margin:0 0 8px;font-size:14px;line-height:1.5;color:#344054}
.al-occ{margin:0;padding:0;list-style:none}
.al-occ li{display:grid;grid-template-columns:200px minmax(0,1fr);gap:12px;padding:6px 0;font-size:14px;line-height:1.45;color:#344054}
.al-ot{color:#475467}.al-ot small{color:#98a2b3}
.al-done{color:#667085}
.al-all summary{margin:6px 0;color:#0b5cad;font-size:13px;font-weight:600;cursor:pointer}
.al-camplist{display:flex;flex-wrap:wrap;gap:4px 14px}
.al-tech{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;margin:0;font-size:13px}
.al-tech dt{color:#667085}
.al-tech dd{margin:0;font-family:ui-monospace,Consolas,monospace;font-size:12px;color:#344054;word-break:break-word}
.al-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.al-btns .btn-primary{display:inline-flex;align-items:center;height:34px;padding:0 14px;font-size:14px;font-weight:600;text-decoration:none}
.al-assign{display:inline-flex;gap:6px}
.al-assign select{height:34px;margin:0}
.al-assign select[hidden]{display:none}
.al-empty{margin:0;padding:24px;text-align:center;color:#667085}
.al-empty[hidden],.al-table tr[hidden]{display:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:1000px){.al-grid{grid-template-columns:1fr}.al-occ li{grid-template-columns:1fr;gap:2px}.al-showing{margin-left:0}}
/* Dashboard: the three top numbers as separate cards with a small icon */
.dash-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.dash-stats .dash-stat{margin:0;padding:18px 20px}
.dash-ico{display:inline-flex;margin-bottom:12px}
.ico-blue{color:#06aed4}.ico-orange{color:#f79009}.ico-green{color:#12b76a}
.dash-label{margin-bottom:10px;font-size:15px;font-weight:600;color:#101828}
.dash-val{font-size:20px;font-weight:700;color:#101828}
.dash-val small{font-size:14px;font-weight:400;color:#475467}
@media (max-width:760px){.dash-stats{grid-template-columns:1fr}}
/* Dashboard tables: same look as the Contacts table (title above a bordered table, gray header, roomy cells) */
.dash-sec{padding:18px 20px}
.dash-sec .ct-head{margin-bottom:14px}
.dash-all{font-size:14px;font-weight:600}
.dash-h-note{font-size:13px;font-weight:400;color:#667085}
.dash-tbl{border-collapse:separate;border-spacing:0}
table.list.dash-tbl th{padding:14px 20px;font-size:12px}
table.list.dash-tbl td{padding:20px 20px;font-size:14px;line-height:20px}
.dash-tbl tr:first-child th{background:#f9fafb;font-size:12px;font-weight:600;color:#475467;border-bottom:1px solid #e3e6ea;text-align:left}
.dash-tbl tr:first-child th:first-child{border-top-left-radius:8px}.dash-tbl tr:first-child th:last-child{border-top-right-radius:8px}
.dash-tbl tr:last-child td{border-bottom:0}
.dash-tbl td{color:#1a1a1a}
.dash-tbl td:not(:first-child){white-space:nowrap}
/* Segments list: same layout as Messages (toolbar, pager above the table, list table); actions stay as text links */
main:has(#segs){max-width:none}
#segs tr:first-child th{position:sticky;top:0;background:#fff;z-index:1}
#segs td:nth-child(2){white-space:nowrap}
table.list#segs td{padding-top:16px;padding-bottom:16px}
#segs.resized td.seg-rule{overflow:hidden}
#segs td.seg-rule code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 6px;font-size:12px;color:#344054;background:#f6f7f9}
#segs td.actions a{font-weight:600}
@media (max-width:1280px){main:has(#segs){padding:8px 20px 12px 0} main:has(#segs) h2{margin:4px 0 8px 12px;font-size:20px} main:has(#segs) .card{padding:8px 10px 8px 12px;border-left:0;border-radius:0 8px 8px 0} main:has(#segs) .toolbar{margin-top:4px;gap:10px;flex-wrap:wrap}}
/* Messages + Segments: Actions column left aligned, so extra width after resizing doesn't open a gap */
#msgs th.actions-h,#msgs td.actions,#segs th.actions-h,#segs td.actions{text-align:left}
/* Segments: copy-rule button next to each rule */
.seg-rule-wrap{display:flex;align-items:center;gap:6px;min-width:0}
.seg-rule-wrap code{flex:1;min-width:0}
.seg-copy{position:relative;flex:none;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E") center/16px no-repeat;cursor:pointer}
.seg-copy:hover,.seg-copy:focus-visible{border-color:#ccd;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E")}
#segs tr:hover .seg-copy{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5cad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E")}
#segs .seg-copy.done,#segs tr:hover .seg-copy.done{border-color:#abefc6;background-color:#ecfdf3;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.seg-copied{position:absolute;right:calc(100% + 6px);top:50%;transform:translateY(-50%);padding:2px 8px;border-radius:5px;background:#101828;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.seg-copy.done .seg-copied{opacity:1}
/* Segments: count result after "Count" - light blue box, darker blue border */
.seg-countbox{display:flex;width:fit-content;max-width:100%;box-sizing:border-box;align-items:center;gap:16px;margin:4px 0 16px;padding:12px 16px;border:1px solid #0b5cad;border-radius:8px;background:#eef4fb;color:#101828;font-size:14px;line-height:1.5}
.seg-countbox[hidden]{display:none}
.seg-countbox b{font-weight:700}
.seg-countbox .seg-n{margin-left:6px}
.seg-countbox.busy{color:#475467}
.seg-countbox-x{padding:0 4px;font-size:20px;line-height:1;color:#0b5cad;text-decoration:none}
.seg-countbox-x:hover{color:#094c8f}

/* Segments: card and table only as wide as their content */
main:has(#segs) .card{width:fit-content;max-width:100%;box-sizing:border-box}
table.list#segs{width:max-content;max-width:100%}
#segs:not(.resized) td.seg-rule code{max-width:460px}
#segs:not(.resized) .seg-rule-wrap{width:500px}
#segs:not(.resized) th:first-child{width:300px}

/* Messages and Contacts: card and table only as wide as their content (same as Segments) */
main:has(#msgs) .card,main:has(#searches) .card.ct{width:fit-content;max-width:100%;box-sizing:border-box}
table.list#msgs,table.list#searches{width:max-content;max-width:100%}
main:has(#searches) .ct-table{width:fit-content;max-width:100%}
#msgs td:nth-child(1){overflow-wrap:anywhere}
#msgs:not(.resized) th:nth-child(1){width:180px}
#msgs:not(.resized) th:nth-child(3){width:380px}
#msgs:not(.resized) th:nth-child(4){width:280px}

/* Campaigns: same layout as Segments (toolbar, pager, list table), only as wide as its content */
main:has(#camps){max-width:none}
main:has(#camps) .card{width:fit-content;max-width:100%;box-sizing:border-box}
table.list#camps{width:max-content;max-width:100%}
table.list#camps td{padding-top:16px;padding-bottom:16px}
#camps tr:first-child th{position:sticky;top:0;background:#fff;z-index:1}
#camps td:first-child{color:#555;font-variant-numeric:tabular-nums}
#camps td:nth-child(5){overflow-wrap:anywhere}
#camps:not(.resized) th:nth-child(2){width:360px}
#camps:not(.resized) th:nth-child(5){width:260px}
#camps:not(.resized) th:nth-child(4){width:200px}
#camps:not(.resized) th:nth-child(6){width:130px}
#camps:not(.resized) th.actions-h{width:180px}
main:has(#camps) .card>p{width:0;min-width:100%;box-sizing:border-box}
#camp-tests{background-color:#fff}
#camps th.actions-h,#camps td.actions{text-align:left;white-space:nowrap}
#camps td.actions a{font-weight:600}
#camps.resized td.actions{overflow:visible}
#camp-tests{width:auto}
main:has(#camps) .toolbar .camp-ro{margin-left:auto;font-size:12px}

/* Campaigns: total above the search, bold; pager icons the same height as Results per page */
.camp-total{margin:2px 0 12px;font-size:16px;font-weight:700;color:#101828}
#camp-pager .msg-tools .icon-btn{width:36px;height:36px;box-sizing:border-box}

/* Campaign report: breadcrumb above the heading, status pill at the top of the card, Dashboard-style table */
main:has(#crep){position:relative;display:flex;flex-direction:column;max-width:1240px}
main:has(#crep)>h2{margin:4px 0 16px}
.crep-top{order:-1;margin-top:20px;font-size:13px;min-height:18px}
.crep{width:fit-content;max-width:100%;box-sizing:border-box;min-width:60%}
.crep-status{margin-bottom:12px}
.crep .ct-head h3{font-size:16px}
.crep .dash-tbl td:not(:first-child),.crep .dash-tbl th:not(:first-child){text-align:right}
.crep .dash-tbl td:first-child{padding-right:48px}

/* Campaign preview: same look as the report (breadcrumb, pill, cards), field grid, audience boxes, framed message */
main:has(#cpv){position:relative;display:flex;flex-direction:column;max-width:1240px}
main:has(#cpv)>h2{margin:4px 0 16px}
.cpv-topbtns{position:absolute;top:50px;right:20px;display:flex;gap:10px}
.cpv .ct-head{margin-bottom:22px}
.cpv .ct-head h3{font-size:18px}
.cpv-dl{display:grid;grid-template-columns:repeat(4,minmax(140px,max-content));gap:18px 40px;margin:0 0 20px}
.cpv-dl div{min-width:0}
.cpv-dl dt{margin-bottom:4px;font-size:13px;font-weight:700;color:#344054}
.cpv-dl dd{margin:0;font-size:14px;color:#1a1a1a;overflow-wrap:anywhere}
.cpv-dl code{padding:2px 6px;border-radius:4px;background:#f6f7f9;color:#344054;font-size:12px}
.cpv-aud{display:grid;width:fit-content;max-width:100%;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px;margin-bottom:14px}
.cpv-audbox{padding:14px 16px;border:1px solid #e3e6ea;border-radius:8px;background:#f9fafb}
.cpv-audbox h4{margin:0 0 8px;font-size:13px;font-weight:600;color:#475467}
.cpv-audbox ul{margin:0;padding-left:18px;font-size:14px}
.cpv-note{margin:0;font-size:13px;width:0;min-width:100%}
.cpv-frame{border:1px solid #e3e6ea;border-radius:8px;overflow:hidden;background:#f1f1f1}
.cpv-frame iframe{display:block;width:100%;height:700px;border:0;background:#fff}
@media (max-width:760px){.cpv-aud{grid-template-columns:1fr}.cpv-topbtns{position:static;order:-1;margin-top:8px}}
main:has(#cpv)>h2:not(.cpv-title){display:none}
main:has(#cpv)>h2.cpv-title{margin:4px 0 16px}
.cpv-wrap{display:grid;width:fit-content;min-width:60%;max-width:100%}
.cpv{min-width:0;box-sizing:border-box}
.cpv-dl dd{max-width:340px}
.cpv-statusrow{display:flex;align-items:center;justify-content:space-between;gap:16px}

/* Imports: same layout as Segments / Campaigns (total above the search, pager, list table), only as wide as its content */
main:has(#imps){max-width:none}
#imp-card{width:fit-content;max-width:100%;box-sizing:border-box}
table.list#imps{width:max-content;max-width:100%}
table.list#imps td{padding-top:14px;padding-bottom:14px}
#imps tr:first-child th{position:sticky;top:0;background:#fff;z-index:1}
#imps th.num,#imps td.num{text-align:right;font-variant-numeric:tabular-nums}
#imps th.actions-h{text-align:left}
#imps td:first-child{white-space:nowrap;color:#555;font-variant-numeric:tabular-nums}
#imps td.imp-file{overflow-wrap:anywhere}
#imps:not(.resized) th:nth-child(2){width:430px}
#imps td.imp-bad{color:#b42318;font-weight:600}
#imp-action,#imp-status{width:auto;background-color:#fff}
#imp-card .toolbar .camp-ro{margin-left:auto;font-size:12px}
.imp-note{width:0;min-width:100%;box-sizing:border-box}

/* Daily summary: day picker, stat cards, one card per list (Dashboard tables), alerts, checks */
main:has(#sm){max-width:none}
.sm-wrap{display:grid;width:fit-content;min-width:60%;max-width:100%}
.sm-wrap>.card{min-width:0;box-sizing:border-box}
.sm-days{padding:16px 20px}
.sm-dayrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sm-k{font-size:13px;font-weight:700;color:#344054}
.sm-daypick{display:inline-flex;align-items:center;gap:10px;margin:0}
.sm-daypick select{width:auto;min-width:200px;height:36px;background-color:#fff;font-size:14px;font-weight:600}
.sm-step{width:36px;height:36px;box-sizing:border-box}
.sm-step.off{opacity:.4;pointer-events:none}
.sm-latest{padding:2px 8px;border-radius:10px;background:#eef4fb;color:#0b5cad;font-size:12px;font-weight:600}
.sm-latest[hidden]{display:none}
.sm-cmp{margin:0 0 14px;font-size:13px;color:#101828}
.sm-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.sm-chip{display:flex;flex-direction:column;align-items:center;min-width:58px;padding:6px 10px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#1a1a1a;text-decoration:none;line-height:1.25}
.sm-chip b{font-size:12px;font-weight:600;color:#475467}
.sm-chip small{font-size:14px;font-weight:600}
.sm-chip:hover{border-color:#0b5cad;background:#eef4fb}
.sm-chip.on{border-color:#0b5cad;background:#0b5cad;color:#fff}
.sm-chip.on b{color:#dbe8f7}
.sm-toast{margin-bottom:12px;padding:10px 14px;border:1px solid #0b5cad;border-radius:8px;background:#eef4fb;font-size:14px}
.sm-toast[hidden]{display:none}
.sm-title{margin:8px 0 16px;font-size:20px}
.sm-stats{margin-bottom:16px}
.sm-sub{margin-top:6px;font-size:12px;color:#667085}
.sm-jump{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:14px 20px}
.sm-jump a{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;text-decoration:none}
.sm-jump a:hover{text-decoration:underline}
.sm-dot{width:7px;height:7px;border-radius:50%;background:#d92d20}
.sm-list{scroll-margin-top:12px}
.sm-list .ct-head h3 .chip{font-size:12px}
.sm-tbl th.num,.sm-tbl td.num{text-align:right;font-variant-numeric:tabular-nums}
table.list.dash-tbl.sm-tbl td{padding:12px 16px}
table.list.dash-tbl.sm-tbl th{padding:12px 16px}
.sm-tbl td:first-child{white-space:nowrap;font-weight:600}
.sm-tbl td.sm-notes{white-space:normal;max-width:320px;color:#475467;font-size:13px}
.sm-tbl tr.sm-check td{background:#fef3f2}
.sm-tbl .pill{height:20px;margin-left:6px;font-size:11px}
.sm-chg.up{color:#067647;font-weight:600}
.sm-chg.down{color:#b42318;font-weight:600}
.sm-h4{margin:18px 0 10px;font-size:14px;font-weight:700;color:#344054}
.sm-prov td:first-child{font-weight:600}
.sm-alerts td:first-child{white-space:nowrap;font-weight:400;color:#475467}
.sm-alerts td:nth-child(2){white-space:normal;min-width:320px;max-width:520px}
.sm-alerts td:nth-child(4){white-space:normal;max-width:260px}
.sm-alerts code{font-size:12px;color:#344054}
.sm-alerts .pill{margin:0 6px 0 0}
.sm-checks{display:grid;gap:12px}
.sm-checkbox{padding:14px 16px;border:1px solid #e3e6ea;border-radius:8px;background:#f9fafb}
.sm-checkhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:14px}
.sm-checkbox ul{margin:0;padding-left:18px;font-size:13px;line-height:1.55;color:#344054}
.sm-checkbox li{overflow-wrap:anywhere}
.sm-notescard p{width:0;min-width:100%;margin:0 0 8px;font-size:13px}
.sm-notescard .sm-h4{margin-top:0}
.sm-jump,.sm-days,.sm-stats,.sm-title{contain:inline-size;box-sizing:border-box}
.sm-tbl tr:first-child th.num{text-align:right}
/* Daily summary tables: left-aligned, only as wide as their content */
.sm-tbl th.num,.sm-tbl td.num,.sm-tbl tr:first-child th.num{text-align:left}
.sm-wrap .ct-table{width:fit-content;max-width:100%}
table.list.sm-tbl{width:max-content;max-width:100%}
.sm-alerts td:nth-child(2){min-width:280px;max-width:400px}
.sm-alerts td:nth-child(4){max-width:200px}

/* Lists: bold total, search, list table only as wide as its content, numbers left-aligned */
main:has(#lsts){max-width:none}
#lst-card{width:fit-content;max-width:100%;box-sizing:border-box}
table.list#lsts{width:max-content;max-width:100%}
table.list#lsts td{padding-top:14px;padding-bottom:14px;vertical-align:top}
#lsts td:first-child{color:#555;font-variant-numeric:tabular-nums}
#lsts td.lst-name{min-width:220px;max-width:340px}
#lsts td.lst-name b{display:block;font-weight:600}
#lsts td.lst-name small{display:block;margin-top:2px;font-size:12px;color:#667085}
#lsts td.lst-num{font-variant-numeric:tabular-nums;white-space:nowrap}
#lsts td.lst-num.zero{color:#98a2b3}
#lst-card .toolbar .camp-ro{margin-left:auto;font-size:12px}
.lst-note{width:0;min-width:100%;box-sizing:border-box}
#lsts td:nth-child(3){overflow-wrap:anywhere}

/* New segment: each label on its own line, with its field directly below (Name, List, Rule) */
.segn-form>label{display:block;margin:16px 0 6px;font-weight:600}
.segn-form>label:first-of-type{margin-top:4px}
.segn-form>select{display:block;width:auto;min-width:280px;background-color:#fff}
.segn-form>textarea{display:block;box-sizing:border-box}

/* Warm-up settings: sub-tabs + buttons, one wide Dashboard-style table (rules x domains) with sticky rule column and domain row */
main:has(#wu){max-width:none}
.wu{width:fit-content;max-width:100%;box-sizing:border-box;padding-top:0}
.wu-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.wu .subtabs{flex:1;margin-bottom:0}
.wu-btns{display:flex;gap:10px;padding-bottom:8px}
.wu-btns .abn-btn-outline{gap:8px;text-decoration:none}
.wu-add{display:inline-flex;align-items:center;padding:9px 16px;border-radius:6px;background:#0b5cad;color:#fff;font-size:14px;font-weight:600;text-decoration:none}
.wu-add:hover{background:#094c8f;color:#fff}
.wu-scroll{max-width:100%;max-height:calc(100vh - 220px);overflow:auto}
table.list.wu-tbl{width:max-content;border-collapse:separate;border-spacing:0}
table.list.dash-tbl.wu-tbl td,table.list.dash-tbl.wu-tbl th{padding:10px 14px;font-size:13px;line-height:18px;text-align:left;vertical-align:top}
.wu-tbl td{white-space:normal;max-width:180px;overflow-wrap:anywhere;border-bottom:1px solid #eef0f3}
.wu-tbl tr:first-child th{position:sticky;top:0;z-index:2;min-width:120px;max-width:170px;white-space:normal;vertical-align:bottom;background:#f9fafb}
.wu-tbl tr:first-child th a{display:block;font-size:13px;font-weight:700;color:#0b5cad;overflow-wrap:anywhere}
.wu-meta{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:12px;font-weight:500;color:#667085}
.wu-meta .pill{height:18px;padding:0 7px;font-size:11px}
.wu-tbl th[scope=row],.wu-tbl .wu-corner{position:sticky;left:0;z-index:1;min-width:240px;max-width:300px;background:#fff;font-weight:600;color:#1a1a1a;white-space:normal;border-right:1px solid #e3e6ea;border-bottom:1px solid #eef0f3}
.wu-tbl tr:first-child .wu-corner{z-index:3;background:#f9fafb;color:#475467;font-size:12px}
.wu-tbl th[scope=row][title]{cursor:help}
.wu-i{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:6px;border-radius:50%;background:#e4e7ec;color:#475467;font-size:10px;font-weight:700;font-style:normal;vertical-align:1px}
.wu-tbl tr.wu-sec th{position:sticky;left:0;padding:12px 14px;background:#eef4fb;color:#0b5cad;font-size:13px;font-weight:700;text-transform:none;border-bottom:1px solid #c9dcf2;border-top:1px solid #c9dcf2;text-align:left}
.wu-tbl tbody tr:not(.wu-sec):hover td,.wu-tbl tbody tr:not(.wu-sec):hover th[scope=row]{background:#f9fafb}
.wu-yn{display:inline-block;padding:1px 8px;border-radius:9px;font-size:12px;font-weight:600}
.wu-yn.y{background:#ecfdf3;color:#067647}
.wu-yn.n{background:#f2f4f7;color:#667085}
.wu-dash{color:#c0c5ce}
.wu-light{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:-1px;box-shadow:0 0 0 2px #fff inset}   /* rev 00148: Gmail-delay light */
.wu-health th{background:#f4f6fa}
.wu-filter{margin:0 0 12px;font-size:13px;line-height:2}   /* rev 00150: list picker; rev 00152: dropdown */
.wu-dd{position:relative;display:inline-block}.wu-dd summary{cursor:pointer;list-style:none;padding:4px 12px;border:1px solid #cdd3dd;border-radius:6px;background:#fff;user-select:none}.wu-dd summary::-webkit-details-marker{display:none}
.wu-dd-menu{position:absolute;left:0;top:100%;z-index:30;min-width:280px;margin-top:4px;padding:8px 12px;background:#fff;border:1px solid #cdd3dd;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.12)}.wu-dd-menu label{display:block;white-space:nowrap}.wu-dd-foot{margin-top:6px;padding-top:6px;border-top:1px solid #e6e9ef}.wu-dd-foot a{margin-left:10px}
.wu-brand{display:block;margin-top:2px;font-size:12px;font-weight:600;color:#1d2939}   /* rev 00149: list name under the domain */
.wu-tbl code{padding:1px 5px;border-radius:4px;background:#f6f7f9;color:#344054;font-size:12px}
.wu-tbl td.wu-warn,.wu-tbl tbody tr:hover td.wu-warn{background:#fff3cd}
.wu-key{margin:12px 0 0;font-size:12px}
.wu-keywarn{padding:1px 6px;border-radius:4px;background:#fff3cd;color:#1a1a1a}
.wu-tbl tr:first-child th:not(.wu-corner){width:150px}
.wu-tbl td{max-width:none}
.wu-tbl th[scope=row],.wu-tbl .wu-corner{width:250px}
.wu-top{border-bottom:1px solid #e3e6ea;margin:0 -24px 16px;padding:0 24px}
.wu .subtabs{border-bottom:0;margin:0;padding-left:0}
.wu-btns{padding:8px 0}
table.list.dash-tbl.wu-tbl td:not(:first-child){white-space:normal}
.wu-tbl tr:first-child th:not(.wu-corner){width:170px}
.wu-tbl tr:first-child th a{overflow-wrap:normal;word-break:normal}
.wu-tbl tr.wu-sec th{position:static}
.wu-tbl tr.wu-sec th>span{position:sticky;left:14px}
/* Warm-up: Reports-style scrolling (frozen Rule column, two sideways scrollbars, headings follow the page), tooltips */
.wu-scroll{max-height:none;overflow:visible}
.wu-frame{margin-top:0;border:1px solid #e3e6ea;border-radius:8px}
.wu-frame .table-scroll{border-radius:8px}
#wut tr:first-child th{position:sticky;top:0;z-index:2;transform:translateY(var(--hy,0px));border-bottom:var(--strip,0px) solid #fff;box-shadow:inset 0 -1px 0 #e3e6ea,0 1px 0 #e3e6ea}
#wut tr:first-child .wu-corner{z-index:4}
#wut th[scope=row]{z-index:1}
button.wu-i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0 0 0 6px;padding:0;border:0;border-radius:50%;background:#e4e7ec;color:#344054;font:italic 700 11px/1 Georgia,"Times New Roman",serif;vertical-align:1px;cursor:help}
button.wu-i:hover,button.wu-i:focus-visible{background:#0b5cad;color:#fff;outline:none}
.wu-key .wu-i{font:italic 700 10px/1 Georgia,"Times New Roman",serif}
.wu-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:help;text-decoration:underline dotted #98a2b3;text-underline-offset:3px}
.wu-tip{position:fixed;z-index:200;max-width:320px;padding:8px 10px;border-radius:6px;background:#101828;color:#fff;font-size:12px;line-height:1.45;box-shadow:0 8px 24px rgba(16,24,40,.2);pointer-events:none}
.wu-tip[hidden]{display:none}
#wut th[scope=row]::after,#wut tr.wu-sec th::after{display:none}
/* Warm-up: thin divider between value cells, with room after it */
table.list.dash-tbl.wu-tbl td{border-left:1px solid #e4e7ec;padding-left:18px}
table.list.dash-tbl.wu-tbl th[scope=row]+td{border-left:0}
table.list.dash-tbl.wu-tbl tr:first-child th:not(.wu-corner){padding-left:18px}
/* Lists: table as narrow as its content allows, never under 60% of the page; cells centred vertically */
#lst-card{min-width:60%}
table.list#lsts{width:min-content;min-width:100%}
table.list#lsts td,table.list#lsts th{vertical-align:middle}
#lsts td:nth-child(3){overflow-wrap:normal;white-space:nowrap}
#lsts td.lst-name{min-width:200px}
#lsts td:first-child,#lsts td:nth-child(4){white-space:nowrap}
@media (max-width:1100px){table.list#lsts{width:auto}#lsts td:nth-child(3){white-space:normal;overflow-wrap:anywhere}}
/* Warm-up: cells centred vertically */
table.list.dash-tbl.wu-tbl td,table.list.dash-tbl.wu-tbl th[scope=row]{vertical-align:middle}

/* rev 00086 (owner chat, 10/30): Go-to-page box on /abtests?new — kept when Joe's 693c558 theme replaced the file */
.pg-jump{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:#555;white-space:nowrap;margin-left:4px}.pg-jump input{margin:0;width:64px;height:36px;box-sizing:border-box;padding:0 8px}

/* rev 00112 11/2 (owner go): Joe's beacon-ui-look 576ffbd additions, verbatim (A/B test page + two-step breadcrumb) */
/* A/B test page: breadcrumb above the heading, status pill + buttons, field grid, Dashboard-style versions table */
main:has(#abtest-body){position:relative;display:flex;flex-direction:column;max-width:none}
main:has(#abtest-body)>h2{margin:4px 0 16px}
#abtest-body{display:contents}
.abt-wrap{display:grid;width:fit-content;min-width:60%;max-width:100%}
.abt-wrap>.card{min-width:0;box-sizing:border-box}
.abt-btns{display:flex;gap:8px;flex-wrap:wrap}
.abt-btn{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#1a1a1a;font-size:13px;font-weight:600;text-decoration:none}
.abt-btn:hover{border-color:#0b5cad;color:#0b5cad;background:#eef4fb}
.abt-dl{grid-template-columns:repeat(4,minmax(150px,max-content))}
.abt-dl .abt-wide{grid-column:1/-1}
.abt-dl .abt-wide dd{max-width:none}
.abt-card .cpv-note,.abt-vnote{width:0;min-width:100%;box-sizing:border-box}
.abt-vnote{margin:12px 0 0;font-size:13px}
.abt-tbl th,.abt-tbl td{text-align:left}
table.list.dash-tbl.abt-tbl td{padding:14px 16px}
table.list.dash-tbl.abt-tbl th{padding:12px 16px}
.abt-tbl td:nth-child(2){white-space:normal;min-width:200px;max-width:280px}
.abt-tbl td.abt-ver{font-weight:700;white-space:nowrap}
.abt-tbl td.abt-ver .chip{margin-left:6px;height:20px;font-size:11px}
.abt-tbl td.actions{white-space:nowrap}
.abt-tbl td.actions a{font-weight:600}
.abt-test{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:16px;padding:14px 16px;border:1px solid #e3e6ea;border-radius:8px;background:#f9fafb;transition:box-shadow .3s}
.abt-test.flash{box-shadow:0 0 0 3px #c9dcf2}
.abt-test-k{align-self:center;margin-right:4px;font-size:14px;font-weight:700;color:#344054}
.abt-test label{display:flex;flex-direction:column;gap:4px;margin:0;font-size:12px;font-weight:600;color:#475467}
.abt-test input{width:240px;margin:0;background:#fff}
.abt-test select{width:auto;margin:0;background-color:#fff}
/* A/B test versions table: responsive like Messages (fits the box, text wraps, actions in a ⋮ menu) */
table.list.abt-tbl{width:100%;table-layout:auto}
.abt-tbl th{white-space:normal}
.abt-tbl td{overflow-wrap:anywhere}
.abt-tbl td:nth-child(n+4):not(.actions){white-space:nowrap;overflow-wrap:normal}
.abt-tbl td:nth-child(2),.abt-tbl td:nth-child(3){white-space:normal;min-width:120px}
.abt-tbl th.actions-h,.abt-tbl td.actions{width:1%;text-align:center}
.abt-tbl td.actions{white-space:nowrap;overflow-wrap:normal}
.abt-card .ct-table{overflow:visible}
@media (max-width:1100px){table.list.dash-tbl.abt-tbl td,table.list.dash-tbl.abt-tbl th{padding:12px 10px}}
@media (max-width:900px){table.list.dash-tbl.abt-tbl td,table.list.dash-tbl.abt-tbl th{padding:10px 6px;font-size:12px}
 .abt-tbl td.abt-ver{white-space:normal}.abt-tbl td.abt-ver .chip{margin:4px 0 0}
 .abt-tbl td:nth-child(2),.abt-tbl td:nth-child(3){min-width:80px}}
.abt-tbl td.abt-ver .chip{white-space:nowrap;overflow-wrap:normal}
/* A/B test: details as tiles, like the Injection boxes on Our server */
.abt-dl{grid-template-columns:repeat(4,minmax(200px,1fr));gap:10px}
.abt-dl>div{padding:12px 14px;border:1px solid #e1e6f0;border-radius:8px;background:#f6f8fc}
.abt-dl dt{margin-bottom:6px;font-size:13px;font-weight:700;color:#344054}
.abt-dl dd{font-size:16px;font-weight:700;line-height:1.35;color:#101828;max-width:none}
.abt-dl .abt-wide dd{font-size:14px;font-weight:600}
.abt-dl dd .muted,.abt-dl dd .origin{font-weight:600}
@media (max-width:1100px){.abt-dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.abt-dl{grid-template-columns:1fr}}
.abt-dl>.abt-wide{justify-self:start;width:fit-content;max-width:100%;box-sizing:border-box}
/* A/B test tiles: labels and small grey lines match the Injection boxes on Our server */
.abt-dl dt{margin-bottom:2px;font-size:12px;font-weight:700;color:#555566}
.abt-created{display:flex;align-items:center;justify-content:space-between;gap:10px}
.abt-created .origin{flex:none}
.abt-sub{display:block;margin-top:2px;font-size:11px;font-weight:400;line-height:1.45;color:#888899}
/* Breadcrumb with two steps (Campaigns > A/B test) */
.crep-top .crumb-sep{margin:0 8px;color:#98a2b3}
/* rev 00127 (11/4, Joe): Clear sits to the right of the Position dropdown, compact, so the header row is one line */
.ns-colhead .ns-colacts{display:flex;align-items:center;gap:12px}
.ns-form .ns-colhead .ns-colacts select{height:32px;padding:0 28px 0 10px;font-size:14px;margin:0}
.ns-form .ns-colacts .dd-trigger{height:34px;padding:0 34px 0 12px;font-size:14px;border-radius:6px}
.ns-colacts .dd-chev{right:12px}
