/* BISP Marketing Hub — application chrome */
:root {
  --ink: #15212F; --ink-2: #4A5868; --ink-3: #7A8696;
  --paper: #F3F5F8; --panel: #FFFFFF; --line: #DCE1E8; --line-2: #EBEEF2;
  --navy: #14365D; --navy-2: #0F2A4A; --amber: #F2A516; --amber-ink: #8A5B00;
  --ok: #1F7A4D; --bad: #B42318;
  --r-sm: 5px; --r: 8px; --r-lg: 12px;
  --ui: 'Archivo', system-ui, sans-serif;
  --side: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--ui); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.boot { padding: 40px; color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); padding: 7px 13px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: #b9c2ce; background: #fafbfc; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #e9edf2; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
label.f { display: block; margin-bottom: 12px; }
label.f > span, .flabel { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 7px 9px; min-height: 34px; }
textarea.in { resize: vertical; min-height: 70px; line-height: 1.4; }
.in:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(20,54,93,.12); }
.check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; cursor: pointer; font-size: 13.5px; }
.check input { margin-top: 3px; accent-color: var(--navy); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--ink-3); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(340px, 460px); background: var(--sidebg, var(--navy)); }
.login .brandside { position: relative; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; overflow: hidden; }
.login .brandside::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 44px;
  background-image: repeating-linear-gradient(to bottom, var(--amber) 0 2px, transparent 2px 60px), repeating-linear-gradient(to bottom, rgba(242,165,22,.7) 0 1px, transparent 1px 12px);
  background-size: 100% 100%, 50% 100%; background-repeat: no-repeat;
}
.login .brandside h1 { font-family: var(--hfont, 'Barlow Condensed'), sans-serif; font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .9; margin: auto 0 18px; letter-spacing: -.01em; }
.login .brandside p { margin: 0; max-width: 40ch; font-size: 16px; color: rgba(255,255,255,.78); }
.login .brandside .build { margin-top: 40px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.login .card { background: var(--panel); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.login .card h2 { margin: 0 0 6px; font-size: 22px; }
.login .card .lead { margin: 0 0 26px; color: var(--ink-2); }
.login .card .btn.primary { width: 100%; justify-content: center; padding: 10px; margin-top: 6px; }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; } .login .brandside { padding: 40px 32px 32px 64px; min-height: 260px; } .login .card { padding: 36px 28px; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--sidebg, var(--navy)); color: #dfe6ef; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .mark { padding: 22px 20px 18px; color: #fff; }
.side .mark b { display: block; font-family: var(--hfont, 'Barlow Condensed'), sans-serif; font-weight: 800; font-size: 26px; line-height: .95; letter-spacing: .005em; }
.side .mark small { display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }
.side nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.side .grp { font-size: 12px; color: rgba(255,255,255,.55); padding: 12px 10px 4px; }
.side a { display: flex; align-items: center; gap: 10px; color: #dfe6ef; text-decoration: none; padding: 6px 10px; border-radius: var(--r-sm); position: relative; }
.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.side a.on::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; background: var(--amber); border-radius: 0 2px 2px 0; }
.side a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
.side .me { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 16px 14px; font-size: 13px; }
.side .me .nm { color: #fff; font-weight: 600; }
.side .me .row { margin-top: 6px; gap: 4px; }
.side .me button { background: none; border: 0; color: rgba(255,255,255,.7); padding: 3px 0; cursor: pointer; font-size: 12.5px; margin-right: 10px; }
.side .me button:hover { color: #fff; text-decoration: underline; }
.side .ver { font-size: 11.5px; color: rgba(255,255,255,.42); margin-top: 8px; }
.main { min-width: 0; }
.page { padding: 28px 36px 60px; max-width: 1320px; }
.ph1 { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph1 h1 { margin: 0; font-family: var(--hfont, 'Barlow Condensed'), var(--ui); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0; }
.ph1 p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- home ---------- */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 36px; }
.kind { display: block; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; overflow: hidden; transition: border-color .15s; }
.kind:hover { border-color: var(--navy); }
.kind .art { height: 150px; background: #e7ebf0; display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 18px 14px 0; overflow: hidden; }
.kind .art .mini { flex: none; overflow: hidden; border-radius: 3px 3px 0 0; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 18px rgba(16,33,55,.12); background: #fff; position: relative; }
.kind .art .mini .pg { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.kind .txt { padding: 12px 14px 14px; }
.kind .txt b { display: block; font-size: 15px; }
.kind .txt span { font-size: 12.5px; color: var(--ink-3); }
h2.sec { font-size: 16px; margin: 0 0 12px; }

/* ---------- design grid ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; background: #e6eaf0; padding: 3px; border-radius: var(--r); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.dcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.dcard .th { aspect-ratio: 1; background: #e7ebf0 center/contain no-repeat; display: block; border-bottom: 1px solid var(--line-2); }
.dcard .meta { padding: 9px 11px 10px; }
.dcard .meta b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard .meta span { font-size: 12px; color: var(--ink-3); }
.dcard .acts { display: flex; gap: 2px; padding: 0 6px 8px; }
.empty { border: 1px dashed #c4ccd6; border-radius: var(--r-lg); padding: 40px; text-align: center; color: var(--ink-2); background: rgba(255,255,255,.5); }
.empty p { margin: 0 0 14px; }

/* ---------- template picker ---------- */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; }
.tcard:hover, .tcard:focus-visible { border-color: var(--navy); }
.tcard .pv { background: #e7ebf0; height: 270px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tcard .pv .box { position: relative; overflow: hidden; box-shadow: 0 6px 20px rgba(16,33,55,.15); }
.tcard .pv .pg { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tcard .tx { padding: 11px 14px 13px; }
.tcard .tx b { display: block; font-size: 14.5px; }
.tcard .tx span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- editor ---------- */
.ed { display: grid; grid-template-columns: 380px 1fr; height: 100vh; }
.ed .left { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ed .left .hd { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.ed .left .hd input { font-weight: 600; }
.ed .left .bd { overflow-y: auto; padding: 14px 16px 40px; flex: 1; }
.ed details { border-bottom: 1px solid var(--line-2); padding: 4px 0 8px; margin-bottom: 8px; }
.ed details > summary { cursor: pointer; font-weight: 600; padding: 6px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.ed details > summary::-webkit-details-marker { display: none; }
.ed details > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.ed details[open] > summary::after { transform: rotate(-135deg); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 3px 10px 3px 4px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; }
.swatches button i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.swatches button.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(20,54,93,.15); font-weight: 600; }
.imgf { display: flex; gap: 10px; align-items: center; }
.imgf .th { width: 64px; height: 64px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #eef1f5 center/cover no-repeat; flex: none; }
.rep { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; margin-bottom: 8px; background: #fbfcfd; }
.rep .rh { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.rep label.f { margin-bottom: 8px; }
.ed .right { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #DDE2E8; }
.ed .bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed .bar .status { font-size: 12.5px; color: var(--ink-3); margin-right: auto; }
.ed .canvas { flex: 1; overflow: auto; padding: 28px; }
.ed .stage { margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ed .stage .slot { position: relative; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 32px rgba(16,33,55,.18); background: #fff; }
.ed .stage .slot .pg { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ed .stage .slot .bleedline { position: absolute; border: 1px dashed rgba(255,0,90,.7); pointer-events: none; z-index: 2; }
.ed .stage .pno { font-size: 12px; color: var(--ink-2); margin-bottom: -16px; align-self: flex-start; }
.zoom { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.menu { position: relative; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(16,33,55,.18); padding: 6px; min-width: 260px; z-index: 30; display: none; }
.menu.open .pop { display: block; }
.menu .pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu .pop button:hover { background: var(--paper); }
.menu .pop button small { display: block; color: var(--ink-3); font-size: 12px; }
.progress { position: fixed; inset: 0; background: rgba(15,30,50,.35); display: flex; align-items: center; justify-content: center; z-index: 80; }
.progress div { background: #fff; padding: 22px 28px; border-radius: var(--r-lg); font-weight: 600; min-width: 260px; text-align: center; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: #f7f8fa; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f7f9fb; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #eef1f5; color: var(--ink-2); }
.pill.on { background: #e5f3ec; color: var(--ok); }
.pill.off { background: #fbeaea; color: var(--bad); }

/* ---------- media ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mitem { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; padding: 0; text-align: left; }
.mitem.sel { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(20,54,93,.25); }
.mitem .im { aspect-ratio: 1; background: #eef1f5 center/contain no-repeat; background-image: none; border-bottom: 1px solid var(--line-2); }
.mitem .im.ck { background-color: #fff; background-image: linear-gradient(45deg,#eef1f5 25%,transparent 25%,transparent 75%,#eef1f5 75%), linear-gradient(45deg,#eef1f5 25%,transparent 25%,transparent 75%,#eef1f5 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; position: relative; }
.mitem .im.ck i { position: absolute; inset: 6px; background: center/contain no-repeat; }
.mitem .nm { padding: 6px 8px 7px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop { border: 1.5px dashed #b8c2ce; border-radius: var(--r-lg); padding: 20px; text-align: center; color: var(--ink-2); background: rgba(255,255,255,.6); margin-bottom: 18px; }
.drop.over { border-color: var(--navy); background: #eef3f9; }

/* ---------- forms / settings ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 18px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.card > p.d { margin: 0 0 16px; color: var(--ink-3); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.colors label { display: block; }
.colors .cw { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.colors input[type=color] { width: 44px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; }
.colors input[type=text] { border: 0; width: 100%; padding: 0 8px; font-family: ui-monospace, monospace; font-size: 12.5px; }
.logos { display: flex; gap: 10px; flex-wrap: wrap; }
.logos .lg { width: 120px; height: 80px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff center/contain no-repeat; position: relative; }
.logos .lg.dark { background-color: var(--navy); }
.logos .lg button { position: absolute; top: 3px; right: 3px; }
.fontprev { font-size: 22px; margin-top: 4px; color: var(--ink); }

/* ---------- drawer & modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,30,50,.4); z-index: 50; display: flex; justify-content: flex-end; }
.drawer { width: min(640px, 100%); background: var(--panel); height: 100%; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer .hd, .modal .hd { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer .hd h2, .modal .hd h2 { margin: 0; font-size: 17px; }
.drawer .bd { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer .ft, .modal .ft { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.scrim.center { justify-content: center; align-items: center; padding: 20px; }
.modal { background: var(--panel); border-radius: var(--r-lg); width: min(860px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.sm { width: min(440px, 100%); }
.modal .bd { padding: 18px 20px; overflow-y: auto; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--bad); }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .side .grp { display: none; }
  .ed { grid-template-columns: 1fr; height: auto; }
  .ed .left .bd { max-height: none; }
  .ed .right { min-height: 70vh; }
  .grid2, .grid3, .colors { grid-template-columns: 1fr 1fr; }
  .page { padding: 20px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.box.mini { position: relative; overflow: hidden; flex: none; }
.box.mini > .pg { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#bprev .box.mini { box-shadow: 0 6px 20px rgba(16,33,55,.15); }

/* ---------- v1.1: brand chrome ---------- */
.side .slogo, .login .lglogo { display: block; max-height: 44px; max-width: 180px; width: auto; margin-bottom: 12px; }
.login .lglogo { max-height: 64px; max-width: 260px; margin-bottom: auto; position: relative; }
.login .brandside h1 { margin-top: 40px; }
.chip { background: #fff; padding: 6px 10px; border-radius: 6px; box-sizing: content-box; }
.side a.on::before, .tabs button.on { box-shadow: none; }
.tabs button.on { box-shadow: inset 0 -2px 0 var(--amber), 0 1px 2px rgba(0,0,0,.08); }
.kind:hover, .tcard:hover, .tcard:focus-visible { border-color: var(--amber); }
.page.wide { max-width: 1500px; }
.narrowpage { max-width: 900px; }
.note { background: #FFF6E3; border: 1px solid #F3DCA6; border-radius: var(--r); padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px; }
.note.subtle { background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.pill.warn { background: #FFF1D6; color: var(--amber-ink); }
select.in.sm { min-height: 28px; padding: 2px 6px; font-size: 13px; width: auto; }
.tbl.leads td { vertical-align: top; }
.tbl.leads .hint { margin-top: 3px; max-width: 360px; }

/* landing & campaign editors */
.ltabs { margin: 10px 14px 0; }
.ltabs button { flex: 1; }
.ed .canvas .frame { margin: 0 auto; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 12px 32px rgba(16,33,55,.18); border-radius: 6px; }
.ed .canvas .frame iframe { border: 0; display: block; transform-origin: 0 0; background: #fff; }
.ed .canvas .mailframe { background: transparent; box-shadow: none; overflow: visible; display: flex; justify-content: center; }
.ed .canvas .mailframe iframe { height: 1400px; max-width: 100%; border-radius: 8px; box-shadow: 0 12px 32px rgba(16,33,55,.18); }
.seccard { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; background: #fff; padding: 0 12px; }
.seccard[open] { padding-bottom: 6px; }
.seccard > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-weight: 600; gap: 8px; }
.seccard > summary::-webkit-details-marker { display: none; }
.seccard .sn small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.seccard.off .sn { color: var(--ink-3); text-decoration: line-through; }
.sw { position: relative; display: inline-block; width: 34px; height: 20px; margin-right: 4px; cursor: pointer; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: #c8d0da; border-radius: 20px; transition: background .15s; }
.sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .15s; }
.sw input:checked + span { background: var(--navy); }
.sw input:checked + span::after { transform: translateX(14px); }
.sw input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.ftbl { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.ftbl td { padding: 4px 0; }
.ftbl td:last-child { width: 130px; }
.lists .check { margin-bottom: 6px; }

/* campaign report */
.report { max-width: 980px; margin: 0 auto 24px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tiles div { border-left: 3px solid var(--amber); padding: 2px 0 2px 12px; }
.tiles b { display: block; font-family: var(--hfont, 'Barlow Condensed'), var(--ui); font-size: 30px; line-height: 1.05; }
.tiles span { font-size: 12.5px; color: var(--ink-3); }
.bar2 { height: 6px; background: var(--line); border-radius: 4px; margin: 16px 0 8px; overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--navy); transition: width .4s; }

/* contacts */
.cgrid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.lists-side { padding: 14px; position: sticky; top: 16px; }
.lists-side .li { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 9px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.lists-side .li:hover { background: var(--paper); }
.lists-side .li.on { background: var(--paper); font-weight: 600; box-shadow: inset 3px 0 0 var(--amber); }
#ls { margin-top: 10px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.role .perms { margin: 14px 0 10px; display: grid; gap: 0; }
.role .perms .check { margin-bottom: 6px; font-size: 13.5px; }
.role .rname { font-weight: 700; }
@media (max-width: 980px) { .cgrid { grid-template-columns: 1fr; } .lists-side { position: static; } .tiles { grid-template-columns: repeat(2, 1fr); } }
.ed details.seccard { border: 1px solid var(--line); padding: 0 6px 0 12px; margin-bottom: 8px; }
.ed details.seccard[open] { padding-bottom: 8px; }
.ed details.seccard > summary { padding: 7px 0; gap: 6px; }
.ed details.seccard > summary .sn { flex: 1; min-width: 0; }
.ed details.seccard > summary::after { margin-left: 2px; }
.ed details.seccard .sf { padding-right: 6px; }
