/* TECNO UNIVERSITY — v6 redesign (light aurora + clean glass) */
:root{
  --top-h:56px;
  --top-h-mobile:48px;

  --bg0:#f7fbff;
  --bg1:#eef6ff;
  --bg2:#f6f0ff;
  --card:rgba(255,255,255,0.72);
  --card2:rgba(255,255,255,0.86);
  --stroke:rgba(15,40,70,0.10);
  --shadow: 0 18px 55px rgba(10,30,60,0.14);
  --text:#0b1220;
  --muted:rgba(11,18,32,0.62);
  --accent:#00b8ff;      /* TECNO-ish cyan */
  --accent2:#6b5cff;     /* violet */
  --danger:#ff3d6b;
}

*{box-sizing:border-box;}
html,body{height:100%;max-width:100%;overflow-x:hidden;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:#eef2f7;
  overflow-x:hidden;
}

/* Unified neutral background */
.bg{display:none!important;}
@keyframes floaty{
  from{transform: translate3d(-10px,-6px,0) scale(1);}
  to{transform: translate3d(10px,8px,0) scale(1.02);}
}

.wrap, .shell{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 16px;
}
.shell.wide{padding:86px 16px 44px;width:100%;max-width:100%;overflow-x:hidden;}

.card{
  width:min(980px, 100%);
  border-radius:26px;
  background:linear-gradient(180deg, var(--card), rgba(255,255,255,0.55));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding:22px;
}

h1{margin:0 0 8px;font-size:28px;letter-spacing:0.2px;}
.sub{margin:0 0 16px;color:var(--muted);line-height:1.35;}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}
.brand img.logo{
  height:96px;
  width:auto;
  max-width:min(92vw, 420px);
  object-fit:contain;
  filter: drop-shadow(0 14px 26px rgba(10,30,60,0.16));
}

/* Inputs */
label.lbl, label{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin:10px 0 6px;
}
input.inp, input, select.select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,40,70,0.14);
  background:rgba(255,255,255,0.85);
  color:var(--text);
  outline:none;
}
input:focus, input.inp:focus, select.select:focus{
  border-color: rgba(0,184,255,0.55);
  box-shadow: 0 0 0 4px rgba(0,184,255,0.14);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,40,70,0.12);
  background:
    linear-gradient(135deg, rgba(0,184,255,0.95), rgba(107,92,255,0.92));
  color:#fff;
  font-weight:800;
  cursor:pointer;
  user-select:none;
  text-decoration:none;
  box-shadow: 0 10px 26px rgba(0,90,150,0.18);
  transition: transform .14s ease, filter .14s ease, background .14s ease, box-shadow .14s ease, border-color .14s ease, color .14s ease;
}
.btn:hover{transform: translateY(-1px);filter:brightness(0.94);}
.btn:active{transform: translateY(0px);}
.btn.secondary{
  background: rgba(255,255,255,0.85);
  color: var(--text);
  border-color: rgba(15,40,70,0.12);
  box-shadow: 0 10px 26px rgba(10,30,60,0.10);
}
.btn.ghost{
  background: rgba(255,255,255,0.55);
  color: var(--text);
  border-color: rgba(15,40,70,0.10);
  box-shadow: none;
}
.btn.danger{
  background: rgba(255,61,107,0.92);
  border-color: rgba(255,61,107,0.30);
}
.btn.small{padding:9px 10px;border-radius:12px;font-weight:800;}

.muted{color:var(--muted);}
.err, .error{color:var(--danger);margin-top:10px;white-space:pre-wrap;display:none;}

.row{display:flex;gap:12px;}
.row > div{flex:1;}
.row > input{flex:1;min-width:0;}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap;}
.link{color:rgba(0,110,200,0.95);text-decoration:none;font-weight:800;}
.link:hover{text-decoration:underline;}

/* ===== Fixed header (Hub/Admin) ===== */
.top{
  position:fixed; top:0; left:0; right:0;
  z-index:120;
  height: var(--top-h);
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.60));
  border-bottom:1px solid rgba(15,40,70,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top .brand{
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.top .brand img{display:block;}
.logo.small{
  height:34px;
  width:auto;
  max-width: 240px;
  object-fit:contain;
  filter: drop-shadow(0 8px 18px rgba(10,30,60,0.12));
}
.top-title{
  font-weight:900;
  color:var(--text);
  font-size:14px;
  letter-spacing:0.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.icon-btn{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(15,40,70,0.12);
  background: rgba(255,255,255,0.70);
  box-shadow: 0 10px 24px rgba(10,30,60,0.10);
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
}
.icon-btn:active{transform: translateY(1px);}
.icon-dots{
  width:4px;height:4px;border-radius:999px;
  background: rgba(15,40,70,0.75);
  position:relative;
}
.icon-dots::before,.icon-dots::after{
  content:"";
  width:4px;height:4px;border-radius:999px;
  background: rgba(15,40,70,0.75);
  position:absolute; left:0;
}
.icon-dots::before{ top:-7px; }
.icon-dots::after{ top:7px; }

.menu{
  position:absolute;
  z-index:220;
  top:54px;
  right:10px;
  min-width: 220px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(15,40,70,0.12);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 20px 50px rgba(10,30,60,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.menu-user{
  padding:10px 10px 8px;
  font-size:12px;
  color:var(--muted);
  line-height:1.25;
}
.menu-sep{
  height:1px;
  background: rgba(15,40,70,0.10);
  margin:6px 8px;
}
.menu-item{
  width:100%;
  text-align:left;
  padding:10px 10px;
  border-radius:12px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-weight:900;
  color: var(--text);
}
.menu-item:hover{background: rgba(120,170,230,0.16);}
.menu-item.danger{color: rgba(200,30,60,0.92);}
.menu-item.danger:hover{background: rgba(220,40,70,0.10);}

.menu-sub{
  margin:6px 0 2px;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(15,40,70,0.10);
  background: rgba(255,255,255,0.78);
}
.menu-sub .menu-item{
  font-weight:800;
  padding:9px 10px;
}


/* Header menu button: no rounded square, just divider + lines */
body[data-page="webinars_ff"] .top #menuBtn,
body[data-page="seller_webinars"] .top #menuBtn,
body[data-page="partners"] .top #menuBtn,
body[data-page="admin"] .top #menuBtn,
body[data-page="hub"] .top #menuBtn,
body[data-page="staff"] .top #menuBtn,
body[data-page="seller_home"] .top #menuBtn,
body[data-page="glossary"] .top #menuBtn,
body[data-page="glossary_editor"] .top #menuBtn{
  width:34px;
  height:34px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding-left:14px;
  position:relative;
}
body[data-page="webinars_ff"] .top #menuBtn::before,
body[data-page="seller_webinars"] .top #menuBtn::before,
body[data-page="partners"] .top #menuBtn::before,
body[data-page="admin"] .top #menuBtn::before,
body[data-page="hub"] .top #menuBtn::before,
body[data-page="staff"] .top #menuBtn::before,
body[data-page="seller_home"] .top #menuBtn::before,
body[data-page="glossary"] .top #menuBtn::before,
body[data-page="glossary_editor"] .top #menuBtn::before{
  content:"";
  position:absolute;
  left:2px;
  top:4px;
  bottom:4px;
  width:1px;
  background:rgba(15,40,70,0.14);
}
@media (max-width:520px){
  body[data-page="webinars_ff"] .top #menuBtn,
  body[data-page="seller_webinars"] .top #menuBtn,
  body[data-page="partners"] .top #menuBtn,
  body[data-page="admin"] .top #menuBtn,
  body[data-page="hub"] .top #menuBtn,
  body[data-page="staff"] .top #menuBtn,
  body[data-page="seller_home"] .top #menuBtn,
body[data-page="glossary"] .top #menuBtn,
body[data-page="glossary_editor"] .top #menuBtn{ width:30px; height:30px; padding-left:12px; }
}

.menu-nav-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.menu-nav-toggle::after{
  content:"▸";
  font-size:12px;
  color:var(--muted);
}
.menu-nav-toggle.is-open::after{ content:"▾"; }
.menu-tree{ margin-top:6px; }
.menu-tree .menu-item{ font-weight:800; }
.menu-subdeep{
  display:none;
  margin:4px 0 6px 10px;
  padding:6px;
  border-left:1px solid rgba(15,40,70,0.10);
}
.menu-subdeep.open{ display:block; }
.menu-card-link{
  display:block;
  width:100%;
  text-align:left;
  padding:9px 10px;
  border:0;
  border-radius:12px;
  background:rgba(246,248,252,0.95);
  font-weight:700;
  color:var(--text);
  margin:4px 0;
  cursor:pointer;
}
.menu-card-link:hover{ background:rgba(120,170,230,0.16); }

/* Desktop collapsible filters (staff specific panels) */
.bb-filter-panel .bb-filter-body{display:block;}
.bb-filter-panel.is-collapsed .bb-filter-body{display:none;}

/* Mobile header: ultra-compact */
@media (max-width: 520px){
  /* Force fixed, small header height */
  .top{height: var(--top-h-mobile); padding:0 8px;}
  .logo.small{height:20px; max-width: 60vw; filter:none;}
  .icon-btn{width:24px; height:24px; border-radius:10px;}
  /* Keep content below the fixed header */
  .shell.wide{padding-top: calc(var(--top-h-mobile) + 18px);} 
  .menu{top: calc(var(--top-h-mobile) + 6px); right:8px; min-width: 200px;}
  .top-title{display:none;}
}

@media (max-width: 380px){
  .top{height: 44px; padding:0 8px;}
  .logo.small{height:18px; max-width: 64vw;}
  .icon-btn{width:24px; height:24px; border-radius:10px;}
  .shell.wide{padding-top: 62px;}
  .menu{top: 50px;}
}

/* ===== Projects (Hub) ===== */
.projects{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}
.proj{
  border-radius:22px;
  border:1px solid rgba(15,40,70,0.10);
  background:linear-gradient(180deg, var(--card2), rgba(255,255,255,0.62));
  padding:18px;
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow: 0 10px 28px rgba(10,30,60,0.10);
}
.proj-title{font-size:18px;font-weight:900;margin-bottom:6px;}
.proj-sub{color:var(--muted);font-size:13px;line-height:1.35;}

.proj-test-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(0,110,200,0.18);
  background:rgba(0,110,200,0.08);
  color:rgba(11,18,32,0.85);
  font-size:12px;
  font-weight:900;
  letter-spacing:0.06em;
  text-transform:uppercase;
}

/* ===== Admin Tables / Panels ===== */
.panel{
  background:linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.58));
  border:1px solid rgba(15,40,70,0.10);
  border-radius:20px;
  padding:16px;
}
.table-wrap{overflow:auto;border-radius:16px;border:1px solid rgba(15,40,70,0.10);background:rgba(255,255,255,0.55);}
table{width:100%;border-collapse:collapse;}
th,td{padding:10px 8px;border-bottom:1px solid rgba(15,40,70,0.08);text-align:left;font-size:13px;}
th{color:rgba(11,18,32,0.84);font-weight:900;}

.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.footerLinks{margin-top:14px;display:flex;gap:12px;flex-wrap:wrap;}
.footerLinks a{color:rgba(0,110,200,0.95);text-decoration:none;font-weight:800;}
.footerLinks a:hover{text-decoration:underline;}

.table-wrap tbody tr td{transition: background .14s ease;}
.table-wrap tbody tr:hover td{background: rgba(15,40,70,0.05);}
.table-client-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap;}
.table-client-pager .tcp-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.table-client-pager[hidden]{display:none !important;}
.cols-modal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:10px;}
.cols-modal-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(15,40,70,0.10);border-radius:12px;background:rgba(255,255,255,0.7);}

/* ===== Tabs ===== */
.tabs{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap;}
.tabbtn{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(15,40,70,0.10);
  background:rgba(255,255,255,0.60);
  color:var(--muted);
  cursor:pointer;
  font-weight:900;
}
.tabbtn.active{
  color: var(--text);
  border-color: rgba(0,184,255,0.30);
  background: rgba(0,184,255,0.16);
}

/* ===== Modal ===== */
.modal{position:fixed;inset:0;z-index:320;display:flex;align-items:center;justify-content:center;padding:18px;}
.modal-backdrop{position:absolute;inset:0;background:rgba(10,20,40,0.68);}
.modal-card{
  position:relative;
  width:min(520px, 100%);
  border-radius:22px;
  background:linear-gradient(180deg, var(--card2), rgba(255,255,255,0.62));
  border:1px solid rgba(15,40,70,0.10);
  box-shadow: 0 18px 60px rgba(10,30,60,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding:18px;
}
.modal-title{font-size:18px;font-weight:950;margin-bottom:6px;}
.modal-sub{color:var(--muted);font-size:13px;line-height:1.35;margin-bottom:10px;}

/* Scrollable / responsive modal (used for large modals like User Card) */
.modal-card-scroll{
  max-height: calc(100vh - 36px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.modal-card-scroll .modal-head{
  position:sticky;
  top:0;
  z-index:2;
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(15,40,70,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.54));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-body{ /* generic helper */ }
.modal-card-scroll .modal-body{
  overflow:auto;
  padding-right:4px;
}

@media (max-width: 560px){
  .modal{ padding:10px; }
  .modal-card{ padding:14px; border-radius:18px; }
  .modal-card-scroll{ max-height: calc(100vh - 20px); }
}

/* Multi-select */
.ms{ border:1px solid rgba(255,255,255,0.12); border-radius:12px; padding:10px; background:rgba(0,0,0,0.12); }
.ms-head{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:10px; }
.ms-search{ flex:1; min-width:160px; padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.12); background:rgba(0,0,0,0.18); color:inherit; }
.ms-actions{ display:flex; gap:8px; }
.ms-list{ max-height:240px; overflow:auto; display:flex; flex-direction:column; gap:6px; padding-right:6px; }
.ms-item{ display:flex; gap:8px; align-items:center; padding:6px 8px; border-radius:10px; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.03); cursor:pointer; }
.ms-item input{ transform: translateY(1px); }
.ms-id{ margin-left:auto; opacity:0.55; font-size:12px; }


/* Debug log box (admin settings) */
.logbox{
  margin:0;
  padding:12px 14px;
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(11,18,32,0.03);
  color:rgba(11,18,32,0.86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  line-height:1.35;
  white-space:pre-wrap;
  word-break:break-word;
  max-height:320px;
  overflow:auto;
}

/* ===== Address suggestions (DaData) ===== */
.suggest-wrap{ position:relative; }
.suggest-list{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 6px);
  z-index: 80;
  display:none;
  max-height: 240px;
  overflow:auto;
  border-radius: 14px;
  border:1px solid rgba(15,40,70,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 60px rgba(10,30,60,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.suggest-item{
  padding:10px 12px;
  cursor:pointer;
  font-size:13px;
  line-height:1.25;
  color: rgba(11,18,32,0.92);
  border-top: 1px solid rgba(15,40,70,0.06);
}
.suggest-item:first-child{ border-top: none; }
.suggest-item:hover,
.suggest-item.active{ background: rgba(0,184,255,0.14); }
.suggest-muted{ color: rgba(11,18,32,0.55); font-size:12px; margin-top:4px; }

/* User Card modal tweaks */
.modal-top{ align-items:flex-start; }
.modal-top .modal-card{ margin-top:12px; }

@media (max-width: 560px){
  #userCardModal .row{ flex-direction:column; }
  #userCardModal .row > div{ width:100%; }
}

/* ===== Role access (Admin) ===== */
.ra-role{ padding:0; overflow:visible; }
.ra-role-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  user-select:none;
}
.ra-role-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.ra-arrow{
  display:inline-flex;
  width:26px;
  height:26px;
  border-radius:10px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(15,40,70,0.12);
  background: rgba(11,18,32,0.03);
  transition: transform .15s ease;
}
.ra-role[data-open="1"] .ra-arrow{ transform: rotate(90deg); }
.ra-role-body{ padding:0 14px 14px; display:none; }
.ra-role[data-open="1"] .ra-role-body{ display:block; }
.ra-sections{ display:flex; flex-direction:column; gap:10px; }

.ra-dd{ position:relative; }
.ra-dd-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.ra-dd-btn .ra-dd-title{ font-weight:600; }
.ra-dd-btn .ra-dd-meta{ display:flex; align-items:center; gap:8px; }
.ra-dd-btn .ra-dd-count{ opacity:0.7; font-weight:500; }
.ra-dd-menu{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 8px);
  z-index: 60;
  border-radius: 16px;
  border:1px solid rgba(15,40,70,0.12);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 60px rgba(10,30,60,0.18);
  padding:10px;
  display:none;
  max-height: 320px;
  overflow:auto;
}
.ra-dd[data-open="1"] .ra-dd-menu{ display:block; }
.ra-dd-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
  border:1px solid rgba(15,40,70,0.06);
  background: rgba(11,18,32,0.02);
  margin-bottom:8px;
}
.ra-dd-item:last-child{ margin-bottom:0; }
.ra-dd-item:hover{ background: rgba(0,184,255,0.10); }
.ra-dd-item input{ margin-top:2px; }
.ra-dd-hint{ font-size:12px; opacity:0.65; margin-top:2px; }

@media (max-width: 560px){
  .ra-role-header{ padding:12px; }
  .ra-role-body{ padding:0 12px 12px; }
}



/* =========================
   New hub/seller layout (BitBanker-inspired)
   ========================= */

.icon-btn--flat{
  background: transparent !important;
  border: 1px solid rgba(15, 40, 70, 0.18);
  box-shadow: none;
}
.icon-btn--flat:hover{
  background: rgba(15,40,70,0.06) !important;
}

.icon-hamburger{
  display:block;
  width:18px;
  height:12px;
  position:relative;
}
.icon-hamburger::before,
.icon-hamburger::after,
.icon-hamburger span{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius:2px;
  background: rgba(15,40,70,0.75);
}
.icon-hamburger::before{ top:0; }
.icon-hamburger span{ top:5px; }
.icon-hamburger::after{ bottom:0; }

.icon-qr{
  display:block;
  width:18px;
  height:18px;
  border-radius:4px;
  border:2px solid rgba(15,40,70,0.75);
  position:relative;
  box-sizing:border-box;
}
.icon-qr::before,
.icon-qr::after{
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  border:2px solid rgba(15,40,70,0.75);
  border-radius:2px;
  box-sizing:border-box;
}
.icon-qr::before{ left:1px; top:1px; }
.icon-qr::after{ right:1px; bottom:1px; }

/* Splash (logo on white, then fade to page) */
.splash{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#fff;
  display:grid;
  place-items:center;
  opacity:1;
  transition: opacity 1.2s ease;
}
.splash.hide{
  opacity:0;
  pointer-events:none;
}
.splash-logo{
  width:min(220px, 60vw);
  height:auto;
}

/* Softer background for hubs */
body[data-page="hub"],
body[data-page="seller_home"],
body[data-page="seller_webinars"],
body[data-page="webinars_ff"],
body[data-page="admin"],
body[data-page="staff"]{
  background:#eef2f7;
}
body[data-page="hub"] .bg,
body[data-page="seller_home"] .bg,
body[data-page="seller_webinars"] .bg,
body[data-page="webinars_ff"] .bg,
body[data-page="admin"] .bg,
body[data-page="staff"] .bg{
  display:none;
}

.hub-layout{
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.news-strip{
  position: relative;
  display:flex;
  max-width:100%;
  overflow:auto;
  padding-bottom:6px;
  margin: 6px 0 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.news-strip::-webkit-scrollbar{ display:none; }
.news-strip .news-track{
  display:flex;
  gap:12px;
  width:max-content;
  padding-bottom:6px;
}
.news-strip.is-slider .news-track{
  width:100%;
}
.news-strip.is-slider .news-card{
  min-width:100%;
}

.news-controls{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin:-2px 0 14px;
}
.news-nav{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(15,40,70,0.12);
  background:#fff;
  color:#0f2c4a;
  font-size:20px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.news-nav:hover{
  background:rgba(11,61,145,0.05);
}

.news-card{
  min-width: min(520px, 92vw);
  background: #fff;
  border: 1px solid rgba(15,40,70,0.10);
  border-left: 4px solid rgba(11,61,145,0.35);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: none;
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.news-card.is-active{
  border-color: rgba(11,61,145,0.18);
  box-shadow: 0 8px 24px rgba(15,40,70,0.06);
}
.news-body{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.news-media{
  flex:0 0 auto;
  max-width: 34%;
}
.news-content{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.news-img{
  display:block;
  width:auto;
  max-width:170px;
  max-height:112px;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  border:1px solid rgba(15,40,70,0.08);
  background:#f8fafc;
}
.news-link{
  margin-top: 2px;
  display:inline-flex;
  align-self:flex-start;
  gap:8px;
  font-weight: 800;
  text-decoration:none;
  color: #0b3d91;
  border: 1px solid rgba(11,61,145,0.20);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(11,61,145,0.03);
}
.news-link:hover{ background: rgba(11,61,145,0.06); }
.news-title{
  font-weight: 800;
  color: #0f2c4a;
  letter-spacing: .2px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.news-sub{
  color: rgba(15,40,70,0.7);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media (max-width: 680px){
  .news-card{ min-width: 92vw; }
  .news-body{ gap:10px; }
  .news-media{ max-width:40%; }
  .news-img{ max-width:120px; max-height:88px; }
}

.hub-section{
  margin: 0 0 18px;
}
.hub-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
}
.hub-section-title{
  font-size: 18px;
  font-weight: 900;
  color: #0f2c4a;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.hub-section-sub{
  font-size: 13px;
  color: rgba(15,40,70,0.65);
  overflow-wrap:anywhere;
  word-break:break-word;
}

.svc-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.svc-card{
  width:100%;
  max-width:100%;
  text-align:left;
  /* Flatter BitBanker-like service cards */
  background: #fff;
  border: 1px solid rgba(15,40,70,0.10);
  border-radius: 16px;
  padding: 14px 14px;
  /* almost-flat shadow like BitBanker */
  box-shadow: none;
  display:flex;
  align-items:center;
  gap: 12px;
  cursor:pointer;
  transition: background .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.svc-card:hover{
  background: rgba(15,40,70,0.01);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-color: rgba(15,40,70,0.16);
}
.svc-card:active{
  box-shadow: none;
}
.svc-card[disabled]{
  opacity:.55;
  cursor:not-allowed;
  transform:none !important;
}
.svc-ico{
  width:40px;
  height:40px;
  border-radius: 14px;
  background: var(--ico-bg, rgba(15,40,70,0.04));
  color: var(--ico-fg, #0b3d91);
  border:1px solid rgba(15,40,70,0.08);
  display:grid;
  place-items:center;
}
.svc-ico svg{
  width:22px;
  height:22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-icon-theme="blue"] .svc-ico{
  --ico-bg: rgba(30,136,229,0.10);
  --ico-fg: #1e88e5;
}
body[data-icon-theme="color"] .svc-ico{
  --ico-bg: rgba(15,40,70,0.06);
  --ico-fg: #0b3d91;
}
body[data-icon-theme="color"] .svc-ico[data-ico="admin"]{ --ico-bg:#fee2e2; --ico-fg:#dc2626; }
body[data-icon-theme="color"] .svc-ico[data-ico="staff"]{ --ico-bg:#ede9fe; --ico-fg:#6d28d9; }
body[data-icon-theme="color"] .svc-ico[data-ico="lms"]{ --ico-bg:#e0f2fe; --ico-fg:#0284c7; }
body[data-icon-theme="color"] .svc-ico[data-ico="webinar"]{ --ico-bg:#dcfce7; --ico-fg:#16a34a; }
body[data-icon-theme="color"] .svc-ico[data-ico="quiz"]{ --ico-bg:#ffedd5; --ico-fg:#ea580c; }
body[data-icon-theme="color"] .svc-ico[data-ico="ksp"]{ --ico-bg:#cffafe; --ico-fg:#0891b2; }
body[data-icon-theme="color"] .svc-ico[data-ico="forms"]{ --ico-bg:#fce7f3; --ico-fg:#db2777; }
body[data-icon-theme="color"] .svc-ico[data-ico="clips"]{ --ico-bg:#ede9fe; --ico-fg:#7c3aed; }
body[data-icon-theme="color"] .svc-ico[data-ico="chat"]{ --ico-bg:#e2e8f0; --ico-fg:#334155; }
body[data-icon-theme="color"] .svc-ico[data-ico="trophy"]{ --ico-bg:#fef9c3; --ico-fg:#ca8a04; }
body[data-icon-theme="color"] .svc-ico[data-ico="gamepad"]{ --ico-bg:#e0e7ff; --ico-fg:#4f46e5; }
body[data-icon-theme="color"] .svc-ico[data-ico="dice"]{ --ico-bg:#fde68a; --ico-fg:#b45309; }
body[data-icon-theme="color"] .svc-ico[data-ico="robot"]{ --ico-bg:#dbeafe; --ico-fg:#2563eb; }
body[data-icon-theme="color"] .svc-ico[data-ico="partners"]{ --ico-bg:#ecfccb; --ico-fg:#4d7c0f; }
body[data-icon-theme="color"] .svc-ico[data-ico="link"]{ --ico-bg:#f1f5f9; --ico-fg:#0f172a; }

.svc-main{
  flex:1;
  min-width: 0;
}
.svc-title{
  font-weight: 900;
  color: #0f2c4a;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-sub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15,40,70,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-go{
  width:34px;
  height:34px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(15,40,70,0.10);
  display:grid;
  place-items:center;
  color: rgba(15,40,70,0.8);
  font-weight: 900;
}

/* Cards are fully clickable; hide the arrow-in-square */
.svc-go{ display:none; }

/* Better mobile */
@media (max-width: 900px){
  .svc-grid{ grid-template-columns: 1fr; }
  .hub-section-head{ flex-direction:column; align-items:flex-start; }
  .hub-section-sub{ margin-top:2px; }
  .news-card{ min-width: 88vw; }
}

/* Mobile polish for hub/seller pages */
@media (max-width: 560px){
  .shell.wide{ padding:72px 12px 34px; justify-content:flex-start; }
  .page-title{ font-size:20px; margin: 4px 0 6px; }
  .page-lead{ margin:10px 0 14px; font-size:13px; }
  .hub-section{ margin: 0 0 14px; }
  .hub-section-title{ font-size:16px; }
  .hub-section-sub{ font-size:12.5px; }
  .svc-card{ padding:12px 12px; gap:10px; border-radius:16px; }
  .svc-ico{ width:36px; height:36px; border-radius:13px; }
  .svc-title{ white-space:normal; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .svc-sub{ white-space:normal; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; font-size:12.5px; }
  .news-card{ min-width: 86vw; padding:12px 14px; }
  .news-img{ height: 96px; }
}

/* Wide tables: horizontal scroll */
.table-wrap{
  width:100%;
  overflow:auto;
  border-radius: 14px;
  border:1px solid rgba(15,40,70,0.08);
}
.table-wrap .table{
  min-width: 780px;
  border:0;
}


.svc-ico svg{ width:22px; height:22px; stroke:#0f2c4a; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.svc-ico svg path{ vector-effect: non-scaling-stroke; }




/* Sticky table headers + desktop bounded list area for main list pages */
body[data-page="staff"] .shell .table-wrap,
body[data-page="admin"] .shell .table-wrap,
body[data-page="webinars_ff"] .shell .table-wrap,
body[data-page="partners"] .shell .table-wrap,
body[data-page="seller_webinars"] .shell .table-wrap{
  position:relative;
  scrollbar-gutter: stable both-edges;
}

body[data-page="staff"] .shell .table-wrap thead th,
body[data-page="admin"] .shell .table-wrap thead th,
body[data-page="webinars_ff"] .shell .table-wrap thead th,
body[data-page="partners"] .shell .table-wrap thead th,
body[data-page="seller_webinars"] .shell .table-wrap thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(244,247,252,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 rgba(15,40,70,0.10);
}

@media (min-width: 961px){
  body[data-page="staff"] .shell .table-wrap,
  body[data-page="admin"] .shell .table-wrap,
  body[data-page="webinars_ff"] .shell .table-wrap,
  body[data-page="partners"] .shell .table-wrap,
  body[data-page="seller_webinars"] .shell .table-wrap{
    max-height: calc(100vh - 230px);
    overflow: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 960px){
  body[data-page="staff"] .shell .table-wrap,
  body[data-page="admin"] .shell .table-wrap,
  body[data-page="webinars_ff"] .shell .table-wrap,
  body[data-page="partners"] .shell .table-wrap,
  body[data-page="seller_webinars"] .shell .table-wrap{
    max-height:none !important;
    overflow-x:auto;
    overflow-y:visible !important;
    overscroll-behavior:auto;
    -webkit-overflow-scrolling:touch;
  }

  body[data-page="staff"] .bb-center-card,
  body[data-page="admin"] .bb-center-card,
  body[data-page="webinars_ff"] .card,
  body[data-page="partners"] .card,
  body[data-page="seller_webinars"] .card{
    overflow:visible;
  }

  body[data-page="staff"] .shell .table-wrap thead th,
  body[data-page="admin"] .shell .table-wrap thead th,
  body[data-page="webinars_ff"] .shell .table-wrap thead th,
  body[data-page="partners"] .shell .table-wrap thead th,
  body[data-page="seller_webinars"] .shell .table-wrap thead th{
    position:static;
    top:auto;
  }

  body[data-page="staff"] .shell .table-wrap.mobile-sticky-active thead,
  body[data-page="admin"] .shell .table-wrap.mobile-sticky-active thead,
  body[data-page="webinars_ff"] .shell .table-wrap.mobile-sticky-active thead,
  body[data-page="partners"] .shell .table-wrap.mobile-sticky-active thead,
  body[data-page="seller_webinars"] .shell .table-wrap.mobile-sticky-active thead{
    visibility:hidden;
  }
}

/* Lead line under news strip */
.page-lead{margin:12px 0 18px;color:#6b7280;font-size:14px;overflow-wrap:anywhere;word-break:break-word;}

/* Main welcome title */
.page-title{
  margin: 6px 0 6px;
  color:#0d223f;
  font-size:24px;
  font-weight:800;
  letter-spacing:-0.2px;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}


/* PNG icon pack support */
.svc-ico img{width:100%;height:100%;display:block;object-fit:contain;}
.svc-ico .emoji-ico{font-size:26px; line-height:1; display:block; filter: saturate(1.05);} 



/* BitBanker-like layout (Admin + Staff) */
body[data-page="admin"], body[data-page="staff"]{
  background:#eef2f7;
}
body[data-page="admin"] .bg,
body[data-page="staff"] .bg{
  display:none;
}
.bb-shell{
  /* a bit wider so central card can be wider while keeping "Разделы" strictly on the right */
  max-width:1320px;
  margin:0 auto;
  padding:18px 14px 90px; /* leave space for bottom bar on mobile */
}
.bb-layout{
  display:flex;
  gap:16px; /* small offset between center and aside */
  align-items:flex-start;
  flex-wrap:nowrap;
}
.bb-main{ flex:1; min-width:0; }
.bb-aside{ width:320px; position:sticky; top:16px; }

/* Stable centered two-column layout (admin/staff): keep center card width stable and center it */
body[data-page="admin"] .bb-layout,
body[data-page="staff"] .bb-layout{
  justify-content:center;
}
body[data-page="admin"] .bb-main,
body[data-page="staff"] .bb-main{
  /* wider + stable center column (like Staff → Список) */
  flex:0 1 1040px;
  max-width:1040px;
  min-width:0;
}
body[data-page="admin"] .bb-aside,
body[data-page="staff"] .bb-aside{
  flex:0 0 320px;
  margin-left:4px;
}

body[data-page="admin"] .bb-center-card,
body[data-page="staff"] .bb-center-card{width:100%;}
body[data-page="admin"] .bb-main{ justify-self:center; }
body[data-page="admin"] .bb-center-card{ margin:0 auto; }

/* Staff: ensure every subview stretches to the same stable width */
body[data-page="staff"] .tab,
body[data-page="staff"] #usersListView,
body[data-page="staff"] #usersCreateView,
body[data-page="staff"] #usersEmployeeRegsView,
body[data-page="staff"] #invClicksView,
body[data-page="staff"] #invSellerRegsView,
body[data-page="staff"] #logs{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
body[data-page="staff"] .bb-center-card .panel,
body[data-page="staff"] .bb-center-card .filters,
body[data-page="staff"] .bb-center-card .table-wrap{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
body[data-page="staff"] .bb-center-card .table-wrap table{ width:100%; }
@media (max-width: 1400px){
  body[data-page="admin"] .bb-main,
  body[data-page="staff"] .bb-main{
    flex:1 1 auto;
    max-width:none;
  }
  body[data-page="admin"] .bb-aside,
  body[data-page="staff"] .bb-aside{
    width:320px;
  }
}

/* Safety: never let the right "Разделы" panel fall under the center on desktop */
@media (min-width: 981px){
  /* Use grid to make the two-column layout unbreakable on desktop */
  body[data-page="admin"] .bb-layout,
  body[data-page="staff"] .bb-layout{
    display:grid !important;
    grid-template-columns: minmax(0, 1120px) 340px;
    column-gap:18px;
    justify-content:center;
    align-items:start;
  }
  body[data-page="admin"] .bb-main,
  body[data-page="staff"] .bb-main{ grid-column:1; }
  body[data-page="admin"] .bb-aside,
  body[data-page="staff"] .bb-aside{ grid-column:2; }
  body[data-page="admin"] .bb-main,
  body[data-page="staff"] .bb-main{
    min-width:0 !important;
  }
  body[data-page="admin"] .bb-aside,
  body[data-page="staff"] .bb-aside{
    width:340px !important;
  }
}

.bb-aside-card{ padding:16px; border-radius:18px; }
.bb-sections{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.bb-sections .tabbtn{
  width:100%;
  text-align:left;
  border-radius:14px;
  padding:12px 12px;
  background:#f6f8fc;
  border:1px solid rgba(0,0,0,.06);
  color:#0b1220;
  font-weight:600;
}
.bb-sections .tabbtn.active{
  background:#ffffff;
  border-color:rgba(45,95,180,.30);
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}

/* Hide the original top-level tabs (we use the right "Разделы" panel instead) */
body[data-page="admin"] .bb-main-tabs,
body[data-page="staff"] .bb-main-tabs{
  display:none;
}

/* Make cards look closer to BitBanker */
body[data-page="admin"] .card,
body[data-page="staff"] .card{
  border-radius:18px;
  box-shadow:0 10px 30px rgba(15,23,42,.08);
  border:1px solid rgba(0,0,0,.06);
}

/* Subtabs: pill-like */
body[data-page="staff"] #usersSubTabs.tabs,
body[data-page="staff"] #invSubTabs.tabs{
  background:#f1f5fb;
  padding:6px;
  border-radius:16px;
  gap:6px;
}
body[data-page="staff"] #usersSubTabs .tabbtn,
body[data-page="staff"] #invSubTabs .tabbtn{
  border-radius:14px;
  background:transparent;
  border:0;
}
body[data-page="staff"] #usersSubTabs .tabbtn.active,
body[data-page="staff"] #invSubTabs .tabbtn.active{
  background:#ffffff;
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}

/* Mobile bottom bar */
.bb-bottombar{
  position:fixed;
  left:0; right:0; bottom:0;
  display:none;
  z-index:50;
  height:56px;
  background:#ffffff;
  border-top:1px solid rgba(0,0,0,.08);
  align-items:center;
}
.bb-bottom-left{
  width:64px;
  border:0;
  background:transparent;
  font-size:18px;
  font-weight:700;
  color:#0b1220;
  border-right:1px solid rgba(0,0,0,.08);
}
.bb-bottom-right{
  flex:1;
  border:0;
  background:transparent;
  font-weight:700;
  color:#0b1220;
  font-size:15px;
}

.bb-sheet{
  position:fixed;
  inset:0;
  display:block;
  z-index:90;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .24s ease, visibility .24s ease;
}
.bb-sheet.open{ opacity:1; visibility:visible; pointer-events:auto; }
.bb-sheet-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  opacity:0;
  transition:opacity .24s ease;
}
.bb-sheet.open .bb-sheet-backdrop{ opacity:1; }
.bb-sheet-card{
  position:absolute;
  left:10px; right:10px; bottom:72px;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 16px 40px rgba(15,23,42,.18);
  max-height:70vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transform:translateY(26px);
  transition:transform .28s ease;
}
.bb-sheet.open .bb-sheet-card{ transform:translateY(0); }
.bb-sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.bb-sheet-title{ font-weight:800; }
.bb-sheet-close{
  border:0;
  background:#f1f5fb;
  width:34px; height:34px;
  border-radius:12px;
  font-size:20px;
  line-height:1;
}
.bb-sheet-list{
  padding:10px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.bb-section-item{
  width:100%;
  text-align:left;
  border-radius:14px;
  padding:12px 12px;
  background:#f6f8fc;
  border:1px solid rgba(0,0,0,.06);
  color:#0b1220;
  font-weight:700;
}
.bb-section-item.active{
  background:#ffffff;
  border-color:rgba(45,95,180,.30);
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}


/* Top back button in header (Admin + Staff) */
.bb-top-back{
  border:0;
  background:transparent;
  color:#0b1220;
  font-size:20px;
  font-weight:900;
  width:34px;
  height:34px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px;
}
.bb-top-back:hover{ background:rgba(15,23,42,.06); }
@media (max-width: 980px){
  .bb-top-back{ margin-left:2px; }
}

/* Tabs: smoother + scroll on mobile */
body[data-page="admin"] .tabbtn,
body[data-page="staff"] .tabbtn{
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}
@media (max-width: 980px){
  body[data-page="staff"] #usersSubTabs,
  body[data-page="staff"] #invSubTabs{
    overflow-x:auto;
    flex-wrap:nowrap;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
  }
  body[data-page="staff"] #usersSubTabs .tabbtn,
  body[data-page="staff"] #invSubTabs .tabbtn{
    flex:0 0 auto;
  }
}

/* Mobile filters: in-page accordion */
.bb-filter-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  background:#f6f8fc;
  padding:12px 12px;
  font-weight:800;
  color:#0b1220;
}
.bb-filter-btn .bb-filter-ico{
  width:28px;
  height:28px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}
.bb-filter-btn .bb-filter-meta{
  font-weight:700;
  color:#64748b;
  margin-left:auto;
  font-size:13px;
}


.bb-filter-btn--accordion.is-open .bb-filter-ico{ transform:rotate(0deg); }
.bb-mobile-filter-open{ margin-top:10px; }
@media (max-width: 980px){
  .bb-filter-btn--accordion{ margin:0 0 10px; }
  .bb-filter-btn--accordion + .bb-mobile-filter-open{ animation:bbFilterDrop .16s ease-out; }
}
@keyframes bbFilterDrop{ from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:none} }

/* Filter sheet layout (full height) */
.bb-sheet-card--filter{
  left:10px; right:10px;
  top:10px; bottom:10px;
  max-height:none;
}
.bb-sheet-foot{
  padding:12px 12px 14px;
  border-top:1px solid rgba(0,0,0,.08);
}
.bb-filter-apply{
  width:100%;
  border-radius:16px;
  padding:14px 14px;
  font-weight:900;
}


/* Better wrapping for dense filter rows on mobile */
@media (max-width: 980px){
  body[data-page="admin"] .bb-main .row > div,
  body[data-page="staff"] .bb-main .row > div,
  body[data-page="admin"] .bb-main .row > .field,
  body[data-page="staff"] .bb-main .row > .field{
    min-width:0 !important;
    flex: 1 1 100% !important;
  }
  body[data-page="admin"] .bb-main .row button.btn,
  body[data-page="staff"] .bb-main .row button.btn{
    width:100% !important;
  }
}


/* Responsive */
@media (max-width: 980px){
  .bb-aside{ display:none; }
  .bb-shell{ padding-bottom:110px; }
  .bb-bottombar{ display:flex; }
}

/* Hub cards: color palette + upload */
.bb-color-picker{
  display:flex;
  gap:10px;
  align-items:center;
}
.bb-color-picker input[type="color"]{
  width:44px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:0;
}
.bb-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.bb-swatch{
  width:22px;
  height:22px;
  border-radius:9px;
  border:1px solid rgba(0,0,0,.10);
  cursor:pointer;
}
.bb-upload-row{
  margin-top:8px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.bb-upload-row input[type="file"]{
  max-width:240px;
}

/* Back arrow in top header: show on desktop only (mobile uses bottom bar) */
.bb-top-back{ display:inline-flex; }
@media (max-width: 980px){
  .bb-top-back{ display:none; }
}

/* Admin/Staff central card layout: keep central width stable and allow inner horizontal scroll */
.bb-layout{ align-items:flex-start; }
.bb-center-card{ overflow:hidden; }
.bb-center-card .table-wrap{ overflow-x:auto; }
.bb-center-card table{ max-width:100%; }
@media (min-width: 900px){
  .bb-layout{ grid-template-columns: minmax(680px, 1fr) 340px; }
  .bb-aside{ align-self:flex-start; }
}

/* Buttons inside admin/staff central blocks: flat, no bounce, hover like hub cards */
body[data-page="admin"] .bb-center-card .btn,
body[data-page="staff"] .bb-center-card .btn{
  box-shadow:none !important;
  transform:none !important;
  transition: background .14s ease, box-shadow .14s ease, border-color .14s ease, color .14s ease;
}
body[data-page="admin"] .bb-center-card .btn:hover,
body[data-page="staff"] .bb-center-card .btn:hover{
  filter: brightness(0.94);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
  border-color: rgba(15,40,70,0.16) !important;
}
body[data-page="admin"] .bb-center-card .btn:active,
body[data-page="staff"] .bb-center-card .btn:active{
  box-shadow:none !important;
}

/* Hub admin card icon nudge for alignment */
.svc-ico[data-ico="admin"] svg{ transform: translateY(1px); }


#usersListView,#usersCreateView,#usersEmployeeRegsView{width:100%;}

/* Keep central tab content width consistent across all subtabs */
.bb-main .tab,
.bb-center-card .tab{width:100%;max-width:100%;box-sizing:border-box;}
.bb-main .tab .panel,
.bb-main .tab .table-wrap,
.bb-main .tab .filters,
.bb-main .tab .row-between{max-width:100%;box-sizing:border-box;}
.bb-main .tab .table-wrap table{width:100%;}


/* --- Portal layout fixes (admin/staff) --- */
@media (min-width: 981px){
  body[data-page="admin"] .bb-layout,
  body[data-page="staff"] .bb-layout{
    justify-content:center;
    align-items:flex-start;
    flex-wrap:nowrap !important;
    gap:18px;
  }
  body[data-page="admin"] .bb-aside,
  body[data-page="staff"] .bb-aside{
    flex:0 0 340px;
    width:340px;
  }
  body[data-page="admin"] .bb-main,
  body[data-page="staff"] .bb-main{
    /* one consistent wide width for ALL tabs/subtabs */
    width:min(1120px, calc(100vw - 340px - 64px));
    flex:0 0 auto;
    min-width:680px;
  }
  body[data-page="admin"] .bb-center-card,
  body[data-page="staff"] .bb-center-card{
    width:100%;
  }
  body[data-page="staff"] .tab,
  body[data-page="staff"] .panel,
  body[data-page="staff"] .filters,
  body[data-page="staff"] .table-wrap{
    width:100%;
    box-sizing:border-box;
  }
}



@media (max-width: 900px){
  body[data-page="staff"] #cu_tg_wrap.cu-tg-wrap{
    min-width:100%;
    flex:0 0 100%;
  }
}

/* Mobile webinar tables + simple bottom back bar */
.bb-bottombar--simple{ justify-content:flex-start; }
.bb-bottom-left--wide{ width:100%; border-right:0; }
.web-mobile-action{ display:none; margin-top:8px; }
.webinar-url{ margin-top:4px; word-break:break-all; }
@media (max-width: 980px) and (orientation: portrait){
  body[data-page="webinars_ff"] .shell.wide,
  body[data-page="seller_webinars"] .shell.wide,
  body[data-page="partners"] .shell.wide{ padding-bottom:110px; }
  body[data-page="webinars_ff"] .bb-bottombar--simple,
  body[data-page="seller_webinars"] .bb-bottombar--simple,
  body[data-page="partners"] .bb-bottombar--simple{ display:flex; }

  body[data-page="webinars_ff"] .table-wrap .table,
  body[data-page="seller_webinars"] .table-wrap .table{
    min-width:0 !important;
    width:100% !important;
    table-layout:fixed;
  }

  body[data-page="webinars_ff"] .web-col-date,
  body[data-page="seller_webinars"] .web-col-date,
  body[data-page="webinars_ff"] td.web-date-cell,
  body[data-page="seller_webinars"] td.web-date-cell{
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    white-space:normal;
  }

  body[data-page="webinars_ff"] .table-wrap .table th:nth-child(2),
  body[data-page="seller_webinars"] .table-wrap .table th:nth-child(2),
  body[data-page="webinars_ff"] .table-wrap .table td:nth-child(2),
  body[data-page="seller_webinars"] .table-wrap .table td:nth-child(2){
    width:46vw;
    max-width:46vw;
    white-space:normal;
    word-break:normal;
    overflow-wrap:anywhere;
  }

  body[data-page="webinars_ff"] .web-col-action,
  body[data-page="seller_webinars"] .web-col-action,
  body[data-page="webinars_ff"] td.web-action-cell,
  body[data-page="seller_webinars"] td.web-action-cell{ display:none; }
  body[data-page="webinars_ff"] .web-mobile-action,
  body[data-page="seller_webinars"] .web-mobile-action{ display:block; }
  body[data-page="webinars_ff"] .webinar-url,
  body[data-page="seller_webinars"] .webinar-url{ display:none; }
  body[data-page="webinars_ff"] td.web-date-cell .btn,
  body[data-page="seller_webinars"] td.web-date-cell .btn{ width:100%; }
}

/* Stronger mobile fit for admin/staff central cards */
body[data-page="admin"] .bb-center-card .table-wrap > table,
body[data-page="staff"] .bb-center-card .table-wrap > table,
body[data-page="admin"] .bb-center-card .table-wrap > .table,
body[data-page="staff"] .bb-center-card .table-wrap > .table{
  min-width:720px;
  width:max-content;
}
@media (max-width: 980px){
  body[data-page="admin"] .bb-shell,
  body[data-page="staff"] .bb-shell{
    padding:60px 8px 110px;
  }
  body[data-page="admin"] .bb-layout,
  body[data-page="staff"] .bb-layout,
  body[data-page="admin"] .bb-main,
  body[data-page="staff"] .bb-main{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  body[data-page="admin"] .bb-center-card,
  body[data-page="staff"] .bb-center-card{
    width:100%;
    max-width:100%;
    padding:14px;
    border-radius:16px;
  }
  body[data-page="admin"] .bb-center-card > .tab,
  body[data-page="staff"] .bb-center-card > .tab,
  body[data-page="admin"] .bb-center-card .panel,
  body[data-page="staff"] .bb-center-card .panel,
  body[data-page="admin"] .bb-center-card .filters,
  body[data-page="staff"] .bb-center-card .filters{
    min-width:0;
    max-width:100%;
  }
  body[data-page="admin"] .bb-center-card .table-wrap,
  body[data-page="staff"] .bb-center-card .table-wrap{
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}


/* Invite modal mobile stacking */
.invite-link-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
@media (max-width: 980px) and (orientation: portrait){
  body[data-page="hub"] .invite-link-row{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  body[data-page="hub"] .invite-link-row input{ width:100%; }
  body[data-page="hub"] .invite-link-actions{
    width:100%;
    justify-content:stretch;
  }
  body[data-page="hub"] .invite-link-actions .btn{
    flex:1 1 0;
    width:100%;
  }
}

/* Admin departments mobile/table alignment */
.dep-tree-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
@media (max-width: 980px){
  body[data-page="admin"] .dep-toolbar{
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:2px;
    flex-wrap:nowrap !important;
    justify-content:flex-start;
  }
  body[data-page="admin"] .dep-toolbar .btn{ flex:0 0 auto; }
  body[data-page="admin"] #departments .row-between{
    align-items:flex-start;
    gap:10px;
    flex-wrap:wrap;
  }
  body[data-page="admin"] #departments .card{
    min-width:0;
    overflow-x:hidden;
  }
}


.bb-bottom-label{margin-left:8px;font-weight:800;}
.bb-bottom-left--wide{display:flex;align-items:center;justify-content:flex-start;padding:0 14px;}


/* v60 UI refinements */
.cols-modal-grid{display:flex;flex-direction:column;gap:10px;margin-top:10px;}
.cols-modal-item{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;gap:10px;padding:8px 12px;border:1px solid rgba(15,40,70,0.10);border-radius:12px;background:rgba(255,255,255,0.7);}
.cols-modal-item span{text-align:left;}
.cols-modal-item input[type="checkbox"]{justify-self:center;align-self:center;margin:0;}

body[data-page="register"] select.select,
body[data-page="seller_register"] select.select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2365798f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px 16px;
}

@media (min-width: 981px){
  body[data-page="partners"] .shell.wide .card{
    width:min(1240px, 100%);
    max-width:1240px;
  }
}


/* v61 form spacing refinements */
body[data-page="register"] #submit,
body[data-page="seller_register"] #submit,
body[data-page="login"] #submit{
  margin-top:12px;
}
body[data-page="staff"] #usersCreateView .row{
  flex-wrap:wrap;
}
@media (max-width: 900px){
  body[data-page="staff"] #cu_tg_wrap.cu-tg-wrap{
    width:100%;
    min-width:100%;
    flex:0 0 100%;
    order:99;
  }
}
body[data-page="admin"] #partnerdept .card,
body[data-page="admin"] #partnerdept .panel{
  width:100%;
  box-sizing:border-box;
}


/* --- 2026-02 fixes --- */
body[data-page="admin"] .bb-center-card{ overflow:visible; }
#roleAccess, #partnerdept{ overflow:visible; }
#roleAccessList, #employeeRegDeptList{ position:relative; z-index:2; }
.ra-dd-menu{ position:static; left:auto; right:auto; top:auto; margin-top:8px; z-index:auto; }
.ra-dd-item{ display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:12px; }
.ra-dd-item > div{ min-width:0; text-align:right; }
.ra-dd-item input{ grid-column:2; justify-self:center; margin:0; }
.reg-dep-list{ display:flex; flex-direction:column; gap:8px; padding:10px; }
.reg-dep-item{ display:grid; grid-template-columns:minmax(0,1fr) 28px; align-items:center; gap:12px; padding:8px 10px; border-radius:12px; border:1px solid rgba(15,40,70,0.06); background:rgba(11,18,32,0.02); }
.reg-dep-item > div{ min-width:0; text-align:left; }
.reg-dep-item input{ grid-column:2; justify-self:center; margin:0; }


/* Strong desktop lock for admin/staff two-column layout */
@media (min-width: 981px){
  body[data-page="admin"] .bb-layout,
  body[data-page="staff"] .bb-layout{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) 340px !important;
    gap:18px !important;
    align-items:start !important;
    justify-content:center !important;
  }
  body[data-page="admin"] .bb-main,
  body[data-page="staff"] .bb-main{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }
  body[data-page="admin"] .bb-aside,
  body[data-page="staff"] .bb-aside{
    width:340px !important;
    min-width:340px !important;
    align-self:start !important;
    position:sticky;
    top:16px;
  }
}


/* Mobile floating table headers */
.mobile-sticky-table-head{
  position:fixed;
  left:0;
  top:0;
  z-index:110;
  display:none;
  overflow:hidden;
  border:1px solid rgba(15,40,70,0.10);
  border-radius:14px 14px 0 0;
  background:rgba(244,247,252,0.98);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 8px 24px rgba(15,40,70,0.10);
  pointer-events:none;
}
.mobile-sticky-table-head table{
  margin:0;
  border-collapse:collapse;
}
.mobile-sticky-table-head th{
  background:rgba(244,247,252,0.98);
  box-shadow:inset 0 -1px 0 rgba(15,40,70,0.10);
}
@media (min-width: 961px){
  .mobile-sticky-table-head{ display:none !important; }
}


/* Glossary page */
.glossary-search-shell{margin:0 0 14px;position:relative;z-index:60;}
.glossary-search-card{padding:14px;border-radius:18px;position:relative;overflow:visible;z-index:60;}
.glossary-search{position:relative;max-width:100%;}
.glossary-search input{
  width:100%;
  height:48px;
  padding:0 46px 0 16px;
  border-radius:16px;
  border:1px solid rgba(15,40,70,.12);
  background:rgba(255,255,255,.92);
  font-size:15px;
  font-weight:600;
}
.glossary-search-icon{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  color:rgba(15,40,70,.5);pointer-events:none;font-size:18px;
}
.glossary-suggest{
  position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:200;
  background:rgba(255,255,255,.98);border:1px solid rgba(15,40,70,.10);
  border-radius:16px;box-shadow:0 16px 36px rgba(15,40,70,.14);
  padding:8px;display:none;max-height:320px;overflow:auto;
}
.glossary-suggest.open{display:block;}
.glossary-suggest-item{
  width:100%;text-align:left;border:0;background:transparent;border-radius:12px;
  padding:10px 12px;cursor:pointer;color:var(--text);
}
.glossary-suggest-item:hover,.glossary-suggest-item.active{background:rgba(120,170,230,.16);}
.glossary-suggest-empty{padding:10px 12px;color:var(--muted);}
.glossary-layout{display:flex;gap:16px;align-items:flex-start;}
.glossary-main{flex:1;min-width:0;}
.glossary-article{padding:22px;border-radius:20px;}
.glossary-breadcrumb{font-size:12px;color:var(--muted);margin-bottom:8px;}
.glossary-title{margin:0 0 10px;font-size:28px;line-height:1.1;}
.glossary-summary{font-size:16px;font-weight:700;margin:0 0 14px;color:#123;}
.glossary-content{font-size:15px;line-height:1.6;color:var(--text);}
.glossary-content h2{margin:18px 0 8px;font-size:18px;}
.glossary-content p{margin:0 0 12px;}
.glossary-content ul{margin:0 0 12px 18px;padding:0;}
.glossary-meta{margin-top:14px;padding-top:12px;border-top:1px solid rgba(15,40,70,.08);font-size:12px;color:var(--muted);}
.glossary-aside{width:340px;position:sticky;top:16px;}
.glossary-term-list{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 190px);overflow:auto;padding-right:2px;}
.glossary-term-btn{
  display:block;box-sizing:border-box;width:100%;text-align:left;border:1px solid rgba(15,40,70,.08);background:#f6f8fc;
  border-radius:14px;padding:11px 12px;font-weight:700;color:var(--text);
}
.glossary-term-btn.active{background:#fff;border-color:rgba(45,95,180,.30);box-shadow:0 8px 18px rgba(15,23,42,.08);}
.glossary-drawer{
  position:fixed;inset:0;z-index:245;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .24s ease, visibility .24s ease;
}
.glossary-drawer.open{
  pointer-events:auto;opacity:1;visibility:visible;
}
.glossary-drawer-backdrop{
  position:absolute;inset:0;background:rgba(15,23,42,.18);opacity:0;transition:opacity .24s ease;
}
.glossary-drawer.open .glossary-drawer-backdrop{opacity:1;}
.glossary-drawer-panel{
  position:absolute;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:0;
  height:min(78dvh, 700px);padding:16px 14px calc(16px + env(safe-area-inset-bottom,0px));
  border-radius:24px 24px 0 0;border-top:1px solid rgba(15,40,70,.10);
  background:#eef3fb;box-shadow:inset 0 18px 28px rgba(15,23,42,.14), 0 -18px 36px rgba(15,23,42,.18);
  transform:translateY(100%);transition:transform .3s ease;overflow:hidden;
}
.glossary-drawer.open .glossary-drawer-panel{transform:translateY(0);}
.glossary-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;flex:0 0 auto;}
.glossary-drawer-close{border:0;background:#f1f5fb;width:36px;height:36px;border-radius:12px;font-size:22px;line-height:1;flex:0 0 auto;}
.glossary-drawer-section{margin:14px 0 8px;font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.02em;text-transform:uppercase;flex:0 0 auto;}
.glossary-drawer-nav{flex:0 0 auto;}
.glossary-drawer .menu-tree--drawer{display:flex;flex-direction:column;gap:8px;}
.glossary-drawer .menu-tree--drawer .menu-item{background:rgba(255,255,255,.7);}
.glossary-drawer .menu-tree--drawer .menu-subdeep{margin-top:-2px;margin-bottom:2px;}
.glossary-drawer .btn,
.glossary-drawer .muted,
.glossary-drawer .sub{position:relative;z-index:1;}
.glossary-drawer .glossary-term-list{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;padding-right:2px;}
body[data-page="glossary"] #mobileGlossaryMenuBtn.menu-btn-attention{
  animation:glossaryMenuPulse 1.2s ease-in-out infinite;
}
body[data-page="glossary"] #mobileGlossaryMenuBtn.menu-btn-attention::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:18px;
  border:2px solid rgba(37,99,235,.35);
  animation:glossaryMenuRing 1.2s ease-out infinite;
  pointer-events:none;
}
@keyframes glossaryMenuPulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.08);}
  100%{transform:scale(1);}
}
@keyframes glossaryMenuRing{
  0%{opacity:.9;transform:scale(.92);}
  100%{opacity:0;transform:scale(1.28);}
}
.glossary-empty-state{padding:28px 20px;text-align:center;color:var(--muted);}

.table-row-selected,
.table-wrap table tbody tr.table-row-selected,
#usersTable tbody tr.table-row-selected{background:rgba(37,99,235,.10) !important;outline:1px solid rgba(37,99,235,.24);}

.table-wrap thead th{position:relative;vertical-align:middle;padding-right:38px;}
.table-wrap thead th .th-label{display:block;min-width:0;padding-right:0;white-space:normal;word-break:normal;overflow-wrap:break-word;hyphens:none;line-height:1.25;}
.table-wrap thead th .th-tools{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;}
.table-wrap thead th .th-tool-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:transparent;border-radius:8px;color:rgba(15,40,70,.42);cursor:pointer;opacity:0;transition:opacity .16s ease, background .16s ease, color .16s ease;}
.table-wrap thead th:hover .th-tool-btn,
.table-wrap thead th .th-tool-btn.active,
.table-wrap thead th.is-filtered .th-tool-btn,
.table-wrap thead th.is-sorted .th-tool-btn{opacity:1;color:#2563eb;}
.table-wrap thead th .th-tool-btn:hover{background:rgba(37,99,235,.10);color:#2563eb;}
.table-wrap thead th .th-filter-icon{position:relative;display:block;width:12px;height:12px;}
.table-wrap thead th .th-filter-icon::before{content:'';position:absolute;left:1px;right:1px;top:1px;height:3px;border-radius:999px;background:currentColor;}
.table-wrap thead th .th-filter-icon::after{content:'';position:absolute;left:3px;right:3px;top:5px;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:6px solid currentColor;}
.table-wrap thead th .th-sort-btn{gap:1px;font-size:11px;font-weight:800;}
.table-wrap thead th .th-sort-btn .sort-up,
.table-wrap thead th .th-sort-btn .sort-down{opacity:.38;line-height:1;}
.table-wrap thead th .th-sort-btn .sort-up.active,
.table-wrap thead th .th-sort-btn .sort-down.active{opacity:1;}
.th-filter-menu{position:fixed;z-index:350;min-width:260px;max-width:min(320px,calc(100vw - 16px));max-height:min(70vh,420px);overflow:hidden;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:20px;background:#fff;border:1px solid rgba(15,40,70,.08);box-shadow:0 18px 40px rgba(15,40,70,.16);}
.th-filter-menu[hidden]{display:none !important;}
.th-filter-menu-head{font-weight:800;color:var(--text);}
.th-filter-search{width:100%;border:1px solid rgba(15,40,70,.12);background:#f8fbff;border-radius:12px;padding:10px 12px;font:inherit;outline:none;}
.th-filter-search:focus{border-color:rgba(37,99,235,.28);box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.th-filter-options{display:flex;flex-direction:column;gap:8px;overflow:auto;padding-right:2px;}
.th-filter-option{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;column-gap:10px;padding:8px 10px;border-radius:12px;background:#f8fbff;cursor:pointer;color:var(--text);}
.th-filter-option input{margin:2px 0 0;accent-color:#2563eb;justify-self:center;}
.th-filter-option span{display:block;text-align:left;justify-self:start;min-width:0;word-break:break-word;}
.th-filter-option:hover{background:#eef5ff;}
.th-filter-actions{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;}

.emp-invite-roles-grid{display:grid;grid-template-columns:1fr;gap:8px;}
.emp-invite-role-item{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:#f8fbff;color:var(--text);}
.emp-invite-role-item span{text-align:left;}
.emp-invite-role-item input{justify-self:center;accent-color:#2563eb;}
.emp-role-picker{position:relative;margin-top:0;}
.emp-role-picker-btn{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 42px 12px 14px;border:1px solid rgba(15,40,70,.12);border-radius:14px;background:#f8fbff;color:var(--text);cursor:pointer;position:relative;text-align:left;font:inherit;}
.emp-role-picker-btn::after{content:'▾';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:14px;color:rgba(15,40,70,.54);}
.emp-role-picker-btn-main{font-weight:700;}
.emp-role-picker-btn-sub{font-size:12px;line-height:1.3;color:var(--muted);}
.emp-role-picker-menu{position:fixed;left:0;right:auto;top:0;z-index:360;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:18px;background:#fff;border:1px solid rgba(15,40,70,.08);box-shadow:0 18px 40px rgba(15,40,70,.16);max-height:min(70vh,460px);overflow:auto;min-width:340px;max-width:min(420px,calc(100vw - 16px));}
.emp-role-picker-menu[hidden]{display:none !important;}
.emp-role-menu-item{width:100%;border:none;background:#f8fbff;border-radius:12px;padding:10px 12px;text-align:left;font:inherit;color:var(--text);cursor:pointer;}
.emp-role-menu-item.active{background:rgba(37,99,235,.12);color:#2563eb;font-weight:700;}
.emp-role-menu-divider{height:1px;background:rgba(15,40,70,.08);margin:2px 0;}
.emp-role-menu-subtitle{font-size:12px;font-weight:700;color:var(--muted);padding:0 2px;}
.emp-role-menu-checks{display:flex;flex-direction:column;gap:8px;}
.emp-role-menu-checks.is-disabled{opacity:.55;pointer-events:none;}
.emp-role-menu-check{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;column-gap:10px;padding:8px 10px;border-radius:12px;background:#f8fbff;color:var(--text);}
.emp-role-menu-check input{margin:2px 0 0;justify-self:center;accent-color:#2563eb;}
.emp-role-menu-check span{text-align:left;min-width:0;word-break:break-word;}
@media (max-width: 960px){
  .table-wrap thead th .th-tool-btn{opacity:0 !important;pointer-events:none;}
  .table-wrap thead th{padding-right:16px;}
  .table-wrap thead th .th-label{padding-right:0;}
  .th-filter-menu{position:fixed;left:8px !important;right:8px;top:auto !important;bottom:8px;max-width:none;width:auto;max-height:65vh;border-radius:22px;}
  .emp-role-picker-menu{left:8px !important;right:8px !important;top:auto !important;bottom:8px !important;width:auto !important;max-height:65vh;border-radius:22px;}
}


.glossary-top-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto;}
.glossary-editor-link{
  display:inline-flex;align-items:center;justify-content:center;
  color:#2563eb;font-weight:800;text-decoration:none;white-space:nowrap;
  line-height:1;padding-right:14px;margin-right:2px;
  border-right:1px solid rgba(15,40,70,.12);
}
.glossary-editor-link:hover{text-decoration:underline;color:#1d4ed8;}

body[data-page="glossary"] .bb-shell{max-width:1380px;}
body[data-page="glossary"] .top .brand{gap:8px;justify-content:flex-start;margin-bottom:0;min-width:0;}
body[data-page="glossary"] .top-title{display:block;}
body[data-page="glossary"] .menu{right:10px;z-index:260;}
body[data-page="glossary"] .bb-main{min-width:0;}
body[data-page="glossary"] .bb-bottom-left--wide{justify-content:flex-start;padding:0 0 0 2px;}
body[data-page="glossary"] .bb-bottom-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin-left:0;flex:1;text-align:center;padding:0 14px;}
body[data-page="glossary"] .bb-bottom-left--wide .bb-arrow{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-right:1px solid rgba(0,0,0,.08);flex:0 0 56px;}
body[data-page="glossary"] .glossary-main .glossary-search-shell--desktop{display:block;}
body[data-page="glossary"] .glossary-mobile-search-shell{display:none;}
@media (max-width: 960px){
  body[data-page="glossary"] .top{position:fixed;left:0;right:0;top:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:0;padding-bottom:0;}
  body[data-page="glossary"] .top > *{align-self:center;}
  body[data-page="glossary"] .top .brand{display:flex !important;min-width:0;position:relative;z-index:2;height:100%;align-items:center;}
  body[data-page="glossary"] .top .brand img{display:block;height:20px;max-width:60vw;}
  body[data-page="glossary"] .top-title{display:none;}
  body[data-page="glossary"] .glossary-mobile-search-shell{display:block;min-width:0;margin:0;position:relative;z-index:2;transition:all .22s ease;align-self:center;}
  body[data-page="glossary"] .glossary-mobile-search-shell .glossary-search-card{padding:0;background:transparent;border:0;box-shadow:none;}
  body[data-page="glossary"] .glossary-mobile-search-shell .glossary-search input{height:40px;border-radius:14px;padding-right:40px;}
  body[data-page="glossary"] #menuBtn{align-self:center;margin:0;}
  body[data-page="glossary"] .glossary-top-actions{display:flex;justify-content:flex-end;}
  body[data-page="glossary"] .glossary-editor-link{display:none !important;}
  body[data-page="glossary"] .glossary-layout{display:block;}
  body[data-page="glossary"] .glossary-aside{display:none;}
  body[data-page="glossary"] .glossary-search-shell--desktop{display:none !important;}
  body[data-page="glossary"] .bb-bottombar{display:flex;}
  body[data-page="glossary"].glossary-mobile-search-expanded .glossary-mobile-search-shell{position:absolute;left:8px;right:44px;top:50%;transform:translateY(-50%);z-index:8;}
}
@media (min-width: 961px){
  body[data-page="glossary"] .top{justify-content:space-between;}
  body[data-page="glossary"] .bb-bottombar{display:none !important;}
  body[data-page="glossary"] .top .brand{flex:0 0 auto;}
  body[data-page="glossary"] .top-title{display:block;}
  body[data-page="glossary"] .glossary-top-actions{display:flex;}
  body[data-page="glossary"] #menuBtn{display:grid;}
}

.glossary-admin-layout{display:flex;gap:16px;align-items:flex-start;}
.glossary-admin-main{flex:1;min-width:0;}
.glossary-admin-aside{width:340px;position:sticky;top:16px;}
.glossary-admin-form{padding:22px;border-radius:20px;}
.glossary-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.glossary-admin-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.glossary-admin-field label{font-size:13px;font-weight:800;color:var(--text);}
.glossary-admin-field input,.glossary-admin-field textarea{
  width:100%;border:1px solid rgba(15,40,70,.12);border-radius:14px;background:#fff;padding:12px 14px;font:inherit;color:var(--text);
}
.glossary-admin-field textarea{min-height:160px;resize:vertical;}
.glossary-admin-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.glossary-admin-status{min-height:22px;font-size:13px;color:var(--muted);margin-top:10px;}
.glossary-admin-status.success{color:#0f7a3a;}
.glossary-admin-status.error{color:#b42318;}
.glossary-admin-note{margin-top:8px;font-size:12px;color:var(--muted);line-height:1.45;}
body[data-page="glossary_editor"] .bb-shell{max-width:1380px;}
body[data-page="glossary_editor"] .top .brand{gap:8px;justify-content:flex-start;margin-bottom:0;min-width:0;}
body[data-page="glossary_editor"] .top-title{display:block;}
body[data-page="glossary_editor"] .menu{right:10px;z-index:260;}
body[data-page="glossary_editor"] .bb-bottombar{display:none;}
body[data-page="glossary_editor"] .glossary-mobile-search-shell{display:none;}
@media (max-width: 960px){
  body[data-page="glossary_editor"] .top{position:fixed;left:0;right:0;top:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:0;padding-bottom:0;}
  body[data-page="glossary_editor"] .top > *{align-self:center;}
  body[data-page="glossary_editor"] .top .brand{display:flex !important;min-width:0;position:relative;z-index:2;height:100%;align-items:center;}
  body[data-page="glossary_editor"] .top .brand img{display:block;height:20px;max-width:60vw;}
  body[data-page="glossary_editor"] .top-title{display:none;}
  body[data-page="glossary_editor"] .glossary-mobile-search-shell{display:block;min-width:0;margin:0;position:relative;z-index:2;transition:all .22s ease;align-self:center;}
  body[data-page="glossary_editor"] .glossary-mobile-search-shell .glossary-search-card{padding:0;background:transparent;border:0;box-shadow:none;}
  body[data-page="glossary_editor"] .glossary-mobile-search-shell .glossary-search input{height:40px;border-radius:14px;padding-right:40px;}
  body[data-page="glossary_editor"] #menuBtn{align-self:center;margin:0;}
  .glossary-admin-layout{display:block;}
  .glossary-admin-aside{display:none;}
  .glossary-admin-grid{grid-template-columns:1fr;}
  body[data-page="glossary_editor"] .bb-bottombar{display:flex;}
}
@media (min-width: 961px){
  body[data-page="glossary_editor"] .top{justify-content:space-between;}
  body[data-page="glossary_editor"] .top .brand{flex:0 0 auto;}
  body[data-page="glossary_editor"] #menuBtn{display:none;}
  body[data-page="glossary_editor"] .glossary-mobile-search-shell{display:none !important;}
}


/* v37 glossary mobile/editor/back behavior */
body[data-page="glossary"] .glossary-bottombar,
body[data-page="glossary_editor"] .glossary-bottombar{
  justify-content:flex-start;
}
body[data-page="glossary"] .glossary-bottombar .bb-bottom-left,
body[data-page="glossary_editor"] .glossary-bottombar .bb-bottom-left{
  width:56px;
  flex:0 0 56px;
  height:56px;
}
body[data-page="glossary"] .glossary-bottombar .bb-bottom-label,
body[data-page="glossary_editor"] .glossary-bottombar .bb-bottom-label{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:56px;
  padding:0 10px;
  margin:0;
  font-weight:800;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  pointer-events:none;
}
body[data-page="glossary"] .glossary-bottombar .bb-bottom-right{
  width:56px;
  flex:0 0 56px;
  height:56px;
  border-left:1px solid rgba(0,0,0,.08);
}
.glossary-bottom-menu-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.glossary-bottom-menu-icon{
  width:26px;
  height:26px;
  object-fit:contain;
  display:block;
  opacity:.9;
}

body.glossary-sheet-open[data-page="glossary"] .top,
body.glossary-sheet-open[data-page="glossary"] .bb-shell,
body.glossary-sheet-open[data-page="glossary"] .bb-bottombar{
  transform:translateY(calc(-1 * min(52dvh, 420px)));
}
body.glossary-sheet-open[data-page="glossary"] .bb-bottombar{
  box-shadow:0 -18px 30px rgba(15,23,42,.16);
}
body[data-page="glossary"] .top .brand img,
body[data-page="glossary_editor"] .top .brand img{
  display:block;
}

body[data-page="glossary_editor"] .glossary-editor-mobile-search-shell{display:none;}
@media (max-width: 960px){
  body[data-page="glossary_editor"] .glossary-editor-mobile-search-shell{
    display:flex;
    align-items:center;
    min-width:0;
    width:min(46vw, 210px);
    max-width:min(46vw, 210px);
    justify-self:center;
    align-self:center;
  }
  body[data-page="glossary_editor"] .glossary-editor-mobile-search-shell .glossary-search-card{width:100%;}
  body[data-page="glossary_editor"] .glossary-editor-mobile-search-shell .glossary-search input{height:38px;}
}
@media (max-width: 960px){
  body[data-page="glossary"] .top{
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    padding:0 8px;
  }
  body[data-page="glossary"] .top .brand{
    height:100%;
    display:flex !important;
    align-items:center;
    gap:0;
  }
  body[data-page="glossary"] .top .brand img{
    height:34px;
    max-width:none;
  }
  body[data-page="glossary"] .glossary-mobile-search-shell{
    display:flex;
    align-items:center;
    min-width:0;
    width:min(46vw, 210px);
    max-width:min(46vw, 210px);
    justify-self:center;
    align-self:center;
  }
  body[data-page="glossary"] .glossary-mobile-search-shell .glossary-search-card{
    width:100%;
  }
  body[data-page="glossary"] .glossary-mobile-search-shell .glossary-search input{
    height:38px;
  }
  body[data-page="glossary"] #menuBtn{
    align-self:center;
    height:38px;
    margin:0;
  }
  body[data-page="glossary"].glossary-mobile-search-expanded .glossary-mobile-search-shell{
    width:auto;
    max-width:none;
    left:8px;
    right:46px;
  }

  body[data-page="glossary_editor"] .top{
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    padding:0 8px;
  }
  body[data-page="glossary_editor"] .top .brand{
    height:100%;
    display:flex !important;
    align-items:center;
    gap:0;
  }
  body[data-page="glossary_editor"] .top .brand img{
    height:34px;
    max-width:none;
  }
  body[data-page="glossary_editor"] .glossary-mobile-search-shell{
    display:flex;
    align-items:center;
    min-width:0;
    width:min(46vw, 210px);
    max-width:min(46vw, 210px);
    justify-self:center;
    align-self:center;
  }
  body[data-page="glossary_editor"] .glossary-mobile-search-shell .glossary-search-card{
    width:100%;
  }
  body[data-page="glossary_editor"] .glossary-mobile-search-shell .glossary-search input{
    height:38px;
  }
  body[data-page="glossary_editor"] .top-title{
    display:none;
  }
  body[data-page="glossary_editor"] #menuBtn{
    align-self:center;
    height:38px;
    margin:0;
  }
}


.help-article-card .glossary-content p{margin:0 0 12px;line-height:1.55;}
.help-article-card .glossary-content p:last-child{margin-bottom:0;}
.glossary-term-btn-title{display:block;font-weight:700;}
.glossary-term-btn-summary{display:block;margin-top:4px;font-size:12px;opacity:.82;line-height:1.35;}


.pt-eye-cell{width:58px;text-align:center;}
.pt-eye-btn{min-width:40px;padding:8px 10px;display:inline-flex;align-items:center;justify-content:center;}

@media (max-width: 960px){
  body[data-page="webinars_ff"],
  body[data-page="seller_webinars"],
  body[data-page="partners"],
  body[data-page="admin"],
  body[data-page="hub"],
  body[data-page="staff"],
  body[data-page="seller_home"],
  body[data-page="glossary"],
  body[data-page="glossary_editor"]{overflow-x:hidden;}

  body[data-page="webinars_ff"] .top,
  body[data-page="seller_webinars"] .top,
  body[data-page="partners"] .top,
  body[data-page="admin"] .top,
  body[data-page="hub"] .top,
  body[data-page="staff"] .top,
  body[data-page="seller_home"] .top,
  body[data-page="glossary"] .top,
  body[data-page="glossary_editor"] .top,
  body[data-page="webinars_ff"] .shell,
  body[data-page="seller_webinars"] .shell,
  body[data-page="partners"] .shell,
  body[data-page="admin"] .shell,
  body[data-page="hub"] .shell,
  body[data-page="staff"] .shell,
  body[data-page="seller_home"] .shell,
  body[data-page="glossary"] .bb-shell,
  body[data-page="glossary_editor"] .bb-shell,
  body[data-page="webinars_ff"] .bb-bottombar,
  body[data-page="seller_webinars"] .bb-bottombar,
  body[data-page="partners"] .bb-bottombar,
  body[data-page="admin"] .bb-bottombar,
  body[data-page="hub"] .bb-bottombar,
  body[data-page="staff"] .bb-bottombar,
  body[data-page="seller_home"] .bb-bottombar,
  body[data-page="glossary"] .bb-bottombar,
  body[data-page="glossary_editor"] .bb-bottombar{
    transition:transform .42s cubic-bezier(.22,.82,.22,1), box-shadow .42s cubic-bezier(.22,.82,.22,1);
    will-change:transform;
  }

  body[data-page="webinars_ff"] .menu,
  body[data-page="seller_webinars"] .menu,
  body[data-page="partners"] .menu,
  body[data-page="admin"] .menu,
  body[data-page="hub"] .menu,
  body[data-page="staff"] .menu,
  body[data-page="seller_home"] .menu,
  body[data-page="glossary"] .menu,
  body[data-page="glossary_editor"] .menu{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:auto;
    width:min(86vw,380px);
    min-width:0;
    max-width:86vw;
    height:100dvh;
    border-radius:0;
    padding:calc(var(--top-h-mobile) + 12px) 12px 20px;
    z-index:240;
    box-shadow:inset 18px 0 28px rgba(15,23,42,.10);
    border-left:1px solid rgba(15,40,70,0.10);
    background:#eef3fb;
    overflow:hidden;
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(104%);
    transition:transform .42s cubic-bezier(.22,.82,.22,1), opacity .28s ease, visibility 0s linear .42s;
    will-change:transform, opacity;
  }
  body.menu-open .menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0);
    transition:transform .42s cubic-bezier(.22,.82,.22,1), opacity .28s ease, visibility 0s;
  }

  body[data-page="webinars_ff"] .top,
  body[data-page="seller_webinars"] .top,
  body[data-page="partners"] .top,
  body[data-page="admin"] .top,
  body[data-page="hub"] .top,
  body[data-page="staff"] .top,
  body[data-page="seller_home"] .top,
  body[data-page="glossary"] .top,
  body[data-page="glossary_editor"] .top{
    overflow:visible;
  }
  .menu .menu-user{
    flex:0 0 auto;
  }
  .menu .menu-tree{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    padding-right:2px;
  }
  .menu .menu-sep,
  .menu .menu-item{
    flex:0 0 auto;
  }
  .menu .menu-item,
  .menu .menu-user,
  .menu .menu-sep{
    position:relative;
    z-index:1;
  }
  .menu .menu-item{
    display:block;
  }
  body.menu-open[data-page="webinars_ff"] .shell,
  body.menu-open[data-page="seller_webinars"] .shell,
  body.menu-open[data-page="partners"] .shell,
  body.menu-open[data-page="admin"] .shell,
  body.menu-open[data-page="hub"] .shell,
  body.menu-open[data-page="staff"] .shell,
  body.menu-open[data-page="seller_home"] .shell,
  body.menu-open[data-page="glossary"] .bb-shell,
  body.menu-open[data-page="glossary_editor"] .bb-shell,
  body.menu-open[data-page="webinars_ff"] .bb-bottombar,
  body.menu-open[data-page="seller_webinars"] .bb-bottombar,
  body.menu-open[data-page="partners"] .bb-bottombar,
  body.menu-open[data-page="admin"] .bb-bottombar,
  body.menu-open[data-page="hub"] .bb-bottombar,
  body.menu-open[data-page="staff"] .bb-bottombar,
  body.menu-open[data-page="seller_home"] .bb-bottombar,
  body.menu-open[data-page="glossary"] .bb-bottombar,
  body.menu-open[data-page="glossary_editor"] .bb-bottombar{
    transform:translateX(calc(-1 * min(82vw, 360px)));
    box-shadow:14px 0 28px rgba(15,23,42,.18);
  }
}

@media (min-width: 961px){
  .glossary-drawer-panel{right:0;left:auto;width:min(86vw,380px);height:100dvh;border-radius:0;padding:calc(var(--top-h-mobile) + 12px) 12px 20px;box-shadow:inset 18px 0 28px rgba(15,23,42,.10);transform:translateX(100%);}
  .glossary-drawer.open .glossary-drawer-panel{transform:translateX(0);}
}


/* ===== PWA install prompt ===== */
.pwa-install-prompt{
  position:fixed;
  inset:0;
  z-index:460;
  display:block;
}
.pwa-install-prompt[hidden]{display:none !important;}
.pwa-install-prompt__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,20,40,0.34);
  opacity:0;
  transition:opacity .18s ease;
}
.pwa-install-prompt__sheet{
  position:absolute;
  left:50%;
  bottom:max(12px, env(safe-area-inset-bottom, 0px) + 12px);
  transform:translate(-50%, calc(100% + 20px));
  width:min(560px, calc(100vw - 20px));
  border-radius:24px;
  background:linear-gradient(180deg, var(--card2), rgba(255,255,255,0.90));
  border:1px solid rgba(15,40,70,0.12);
  box-shadow:0 24px 70px rgba(10,30,60,0.24);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  padding:18px 18px 16px;
  transition:transform .2s ease;
}
.pwa-install-prompt.open .pwa-install-prompt__backdrop{opacity:1;}
.pwa-install-prompt.open .pwa-install-prompt__sheet{transform:translate(-50%, 0);}
.pwa-install-prompt__x{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(15,40,70,0.10);
  background:rgba(255,255,255,0.82);
  color:var(--text);
  font-size:24px;
  line-height:1;
}
.pwa-install-prompt__icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:22px;
  font-weight:900;
  background:linear-gradient(135deg, rgba(0,184,255,0.95), rgba(107,92,255,0.92));
  box-shadow:0 10px 26px rgba(0,90,150,0.18);
  margin-bottom:12px;
}
.pwa-install-prompt__eyebrow{
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(0,110,200,0.92);
  margin-bottom:6px;
}
.pwa-install-prompt__title{
  font-size:22px;
  line-height:1.12;
  font-weight:950;
  margin-bottom:8px;
}
.pwa-install-prompt__text{
  color:var(--muted);
  font-size:14px;
  line-height:1.42;
}
.pwa-install-prompt__steps{
  margin:12px 0 0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--text);
  font-size:14px;
  line-height:1.4;
}
.pwa-install-prompt__actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:16px;
}
.pwa-install-prompt__actions .btn.small{min-height:42px;}
@media (min-width: 981px){
  .pwa-install-prompt{display:none !important;}
}
@media (max-width: 640px){
  .pwa-install-prompt__sheet{
    width:calc(100vw - 16px);
    border-radius:22px;
    padding:16px 14px 14px;
  }
  .pwa-install-prompt__title{font-size:20px;padding-right:34px;}
  .pwa-install-prompt__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .pwa-install-prompt__actions .btn:first-child{grid-column:1 / -1;order:3;}
  .pwa-install-prompt__actions .btn.small{width:100%;}
}


/* ===== Onepages ===== */
.onepages-layout .glossary-main{min-width:0;}
.onepage-article-card{min-height:540px;}
.onepage-cover{width:100%;max-height:360px;object-fit:cover;border-radius:22px;margin:18px 0 16px;box-shadow:0 16px 40px rgba(11,61,145,.16);background:#f5f8ff;}
.onepage-content{display:flex;flex-direction:column;gap:14px;font-size:16px;line-height:1.68;color:#16324f;}
.onepage-content h1,.onepage-content h2,.onepage-content h3{margin:10px 0 4px;color:#0b2f69;line-height:1.25;}
.onepage-content p,.onepage-content ul,.onepage-content ol,.onepage-content blockquote{margin:0;}
.onepage-content ul,.onepage-content ol{padding-left:22px;}
.onepage-content img{max-width:100%;height:auto;border-radius:18px;display:block;margin:10px auto;box-shadow:0 12px 30px rgba(11,61,145,.12);}
.onepage-content blockquote{padding:14px 18px;border-left:4px solid #0b3d91;background:rgba(11,61,145,.06);border-radius:14px;}
.onepage-reveal{opacity:0;transform:translateY(18px);transition:opacity .55s ease, transform .55s ease;}
.onepage-reveal.is-visible{opacity:1;transform:none;}
.onepages-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0 12px;}
.onepages-toolbar input[type=color]{width:44px;height:38px;padding:0;border:none;background:transparent;cursor:pointer;}
.onepages-editor-surface{min-height:420px;border:1px solid rgba(15,40,70,.12);border-radius:18px;padding:18px;background:#fff;outline:none;line-height:1.65;box-shadow:inset 0 1px 0 rgba(255,255,255,.6);}
.onepages-editor-surface:focus{border-color:rgba(11,61,145,.35);box-shadow:0 0 0 3px rgba(11,61,145,.08);}
.onepages-editor-surface img{max-width:100%;height:auto;border-radius:16px;}
.onepages-preview-card{margin-top:18px;border:1px solid rgba(15,40,70,.08);border-radius:20px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);padding:18px;}
.onepages-preview-content{font-size:15px;}
.onepages-admin-form{overflow:visible;}
@media (max-width: 960px){
  .onepage-article-card{min-height:auto;padding-bottom:94px;}
  .onepage-cover{max-height:240px;border-radius:18px;}
  .onepage-content{font-size:15px;line-height:1.6;}
  .onepages-toolbar{position:sticky;top:72px;z-index:7;padding:10px;border-radius:16px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(11,61,145,.12);}
  .onepages-editor-surface{min-height:300px;padding:14px;border-radius:16px;}
}


body[data-page="onepages"] .bb-shell,
body[data-page="onepages_editor"] .bb-shell{max-width:1380px;}
body[data-page="onepages"] .top .brand,
body[data-page="onepages_editor"] .top .brand{gap:0;justify-content:flex-start;margin-bottom:0;min-width:0;flex:0 1 auto;}
body[data-page="onepages"] .menu{right:10px;z-index:260;}
body[data-page="onepages"] .top-title,
body[data-page="onepages_editor"] .top-title{display:none;}
body[data-page="onepages"] .glossary-mobile-search-shell,
body[data-page="onepages_editor"] .glossary-mobile-search-shell{display:none !important;}
.onepage-article-card{padding:22px;border-radius:20px;}
.onepages-preview-card, .onepage-article-card{box-shadow:0 18px 40px rgba(15,23,42,.08);}
body[data-page="onepages"] .top .brand .logo.small,
body[data-page="onepages_editor"] .top .brand .logo.small{height:48px;width:auto;max-width:min(82vw,420px);object-fit:contain;object-position:left center;flex:0 0 auto;filter:drop-shadow(0 10px 20px rgba(10,30,60,0.14));}
.onepages-paste-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:380;padding:20px;}
.onepages-paste-modal.open{display:flex;}
.onepages-paste-backdrop{position:absolute;inset:0;background:rgba(7,22,46,.48);backdrop-filter:blur(4px);}
.onepages-paste-dialog{position:relative;z-index:1;width:min(100%, 560px);padding:22px;border-radius:24px;}
.onepages-paste-actions{display:flex;gap:10px;flex-wrap:wrap;}
.onepages-paste-foot{display:flex;justify-content:flex-end;margin-top:12px;}
.onepages-editor-surface ul, .onepages-editor-surface ol{padding-left:1.4em;}
.onepages-editor-surface blockquote{margin:12px 0;padding:12px 16px;border-left:4px solid rgba(11,61,145,.28);background:#f7fbff;border-radius:12px;color:#21406e;}
@media (max-width: 960px){
  body[data-page="onepages"] .top,
  body[data-page="onepages_editor"] .top{padding:0 10px;}
  body[data-page="onepages"] .top .brand,
  body[data-page="onepages_editor"] .top .brand{display:flex !important;align-items:center;min-width:0;max-width:none;overflow:visible;}
  body[data-page="onepages"] .top .brand img,
  body[data-page="onepages_editor"] .top .brand img,
  body[data-page="onepages"] .top .brand .logo.small,
  body[data-page="onepages_editor"] .top .brand .logo.small{height:20px !important;width:auto !important;max-width:62vw !important;display:block;object-fit:contain;object-position:left center;flex:0 0 auto;filter:none;}
  body[data-page="onepages"] .glossary-mobile-search-shell,
  body[data-page="onepages_editor"] .glossary-mobile-search-shell{display:none !important;}
  body[data-page="onepages"] #menuBtn,
  body[data-page="onepages_editor"] #menuBtn{height:32px;width:32px;min-width:32px;margin:0;padding:0;border:0 !important;background:transparent !important;box-shadow:none !important;border-radius:0 !important;}
  body[data-page="onepages"] .glossary-layout,
  body[data-page="onepages_editor"] .glossary-admin-layout{display:block;}
  body[data-page="onepages"] .glossary-aside,
  body[data-page="onepages_editor"] .glossary-admin-aside{display:none;}
  body[data-page="onepages"] .glossary-search-shell--desktop{display:none !important;}
  body[data-page="onepages"] .bb-bottombar,
  body[data-page="onepages_editor"] .bb-bottombar{display:flex;}
  .onepages-paste-dialog{padding:18px;border-radius:20px;}
}
@media (min-width: 961px){
  body[data-page="onepages"] .top,
  body[data-page="onepages_editor"] .top{justify-content:space-between;}
  body[data-page="onepages"] #menuBtn{display:grid;}
  body[data-page="onepages_editor"] #menuBtn{display:none;}
  body[data-page="onepages"] .bb-bottombar,
  body[data-page="onepages_editor"] .bb-bottombar{display:none !important;}
}


/* === Onepages extended editor/view === */
body[data-page="onepages"], body[data-page="onepages_editor"]{font-family:Montserrat, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;}
body[data-page="onepages"] .bg, body[data-page="onepages_editor"] .bg{background:radial-gradient(circle at top left, rgba(77,166,255,.18), transparent 34%), radial-gradient(circle at right center, rgba(11,61,145,.16), transparent 32%), linear-gradient(180deg, #eef5ff 0%, #f8fbff 38%, #f3f8ff 100%);}
.onepages-tool-btn{width:42px;height:42px;border-radius:14px;border:1px solid rgba(11,61,145,.14);display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#21406e;box-shadow:0 8px 18px rgba(11,61,145,.08);transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;cursor:pointer;}
.onepages-tool-btn:hover{transform:translateY(-1px);border-color:rgba(11,61,145,.32);box-shadow:0 12px 22px rgba(11,61,145,.12);}
.onepages-tool-btn svg{width:20px;height:20px;}
.onepages-tool-btn.is-active,.onepages-tool-btn.is-armed{background:linear-gradient(180deg,#0d4aa8 0%,#0b3d91 100%);color:#fff;border-color:transparent;box-shadow:0 16px 32px rgba(11,61,145,.24);}
.onepages-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(245,250,255,.96) 100%);border:1px solid rgba(11,61,145,.09);box-shadow:0 20px 40px rgba(11,61,145,.10);}
.onepages-toolbar-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-right:10px;margin-right:2px;border-right:1px solid rgba(11,61,145,.08);}
.onepages-toolbar-group:last-child{border-right:0;padding-right:0;}
.onepages-toolbar-group--selectors{gap:10px;}
.onepages-select{min-width:152px;height:42px;border-radius:14px;}
.onepages-editor-surface{font-family:Montserrat, Inter, sans-serif;}
.onepages-editor-surface [data-onepage-section="1"], .onepage-content [data-onepage-section="1"]{scroll-margin-top:92px;}
.onepages-editor-surface .onepage-section, .onepage-content .onepage-section{position:relative;padding-left:16px;}
.onepages-editor-surface .onepage-section::before, .onepage-content .onepage-section::before{content:"";position:absolute;left:0;top:.2em;bottom:.18em;width:5px;border-radius:999px;background:linear-gradient(180deg,#1f7dff 0%, #0b3d91 100%);}
.onepage-button-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 18px;border-radius:999px;background:linear-gradient(180deg,#0f69d8 0%, #0b3d91 100%);color:#fff !important;text-decoration:none !important;font-weight:800;box-shadow:0 16px 30px rgba(11,61,145,.22);margin:6px 10px 6px 0;}
.onepage-button-link:hover{filter:brightness(1.04);}
.onepage-article-group{border:1px solid rgba(11,61,145,.08);border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f9fbff 100%);padding:10px 12px;margin-bottom:10px;box-shadow:0 14px 28px rgba(11,61,145,.08);}
.onepage-article-trigger{all:unset;display:block;width:100%;cursor:pointer;}
.onepage-article-trigger .glossary-term-btn{margin-bottom:0;}
.onepage-sections-toggle{margin-top:8px;display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;color:#21406e;font-weight:800;cursor:pointer;padding:6px 4px;border-radius:10px;}
.onepage-sections-toggle:hover{background:rgba(11,61,145,.05);}
.onepage-sections-arrow{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;transition:transform .2s ease;}
.onepage-article-group.is-open .onepage-sections-arrow{transform:rotate(90deg);}
.onepage-sections-list{display:none;padding:8px 0 4px 24px;}
.onepage-article-group.is-open .onepage-sections-list{display:block;}
.onepage-section-link{display:block;border:0;background:transparent;padding:6px 0;color:#3b5378;text-align:left;width:100%;cursor:pointer;font-size:14px;}
.onepage-section-link:hover{color:#0b3d91;}
.onepage-empty-sections{font-size:13px;color:#7590b5;padding:6px 0;}
.onepages-preview-content, .onepage-content{word-break:normal;overflow-wrap:break-word;}
.onepages-preview-content img, .onepage-content img{max-width:100%;height:auto;border-radius:18px;box-shadow:0 16px 32px rgba(15,23,42,.12);}
.onepages-preview-content h2, .onepage-content h2{font-size:clamp(24px, 2vw, 34px);line-height:1.18;margin:28px 0 12px;}
.onepages-preview-content h3, .onepage-content h3{font-size:clamp(18px, 1.4vw, 24px);line-height:1.28;margin:22px 0 10px;color:#294a79;}
.onepages-preview-content p, .onepage-content p{margin:0 0 12px;}
.onepages-preview-card, .onepage-article-card{border-radius:28px;}
@media (max-width:960px){
  .onepages-toolbar{position:sticky;top:72px;z-index:11;padding:12px;border-radius:18px;}
  .onepages-toolbar-group{border-right:0;padding-right:0;width:100%;}
  .onepages-tool-btn{width:40px;height:40px;border-radius:13px;}
  .onepages-select{min-width:calc(50% - 5px);flex:1 1 calc(50% - 5px);}
  .onepage-article-group{border-radius:16px;padding:10px;}
}


.bb-bottom-label--button{border:0;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer;}
@media (max-width:960px){
  body[data-page="onepages"] .glossary-drawer-panel,
  body[data-page="onepages_editor"] .glossary-drawer-panel{padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));}
  body[data-page="onepages"] .glossary-drawer,
  body[data-page="onepages_editor"] .glossary-drawer{z-index:380;}
}



body[data-page="onepages"] .onepages-drawer-search-card,
body[data-page="onepages_editor"] .onepages-drawer-search-card{margin:2px 0 12px;padding:0;background:transparent;border:0;box-shadow:none;}
body[data-page="onepages"] .onepages-drawer-search-card .glossary-search input,
body[data-page="onepages_editor"] .onepages-drawer-search-card .glossary-search input{height:42px;border-radius:14px;}
body[data-page="onepages"] .glossary-drawer-panel .glossary-term-list,
body[data-page="onepages_editor"] .glossary-drawer-panel .glossary-term-list{flex:1 1 auto;min-height:0;overflow-y:auto;}
body[data-page="onepages"] .bb-bottom-right,
body[data-page="onepages_editor"] .bb-bottom-right{display:inline-flex;align-items:center;justify-content:center;}
body[data-page="onepages"] .top .brand,
body[data-page="onepages_editor"] .top .brand{overflow:visible;}

.onepage-inline-sections{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:2px 0 14px;}
.onepage-inline-section-link{display:inline-flex;border:0;background:transparent;padding:0 0 2px;color:#1d4a8c;font-weight:700;text-decoration:none;border-bottom:1px dashed rgba(29,74,140,.6);cursor:pointer;text-align:left;}
.onepage-inline-section-link:hover{color:#0b3d91;border-bottom-color:#0b3d91;}
.onepage-section-block{position:relative;display:flex;flex-direction:column;gap:12px;}
.onepage-section-block + .onepage-section-block{margin-top:6px;}
.onepage-mobile-section-nav{display:none;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;}
.onepage-mobile-nav-btn{width:44px;height:44px;border-radius:999px;border:1px solid rgba(11,61,145,.12);background:linear-gradient(180deg,#ffffff 0%,#eef5ff 100%);box-shadow:0 10px 22px rgba(11,61,145,.10);color:#0b3d91;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.onepage-mobile-nav-btn span{font-size:24px;line-height:1;}
.onepage-mobile-nav-btn:disabled{opacity:.38;cursor:default;box-shadow:none;}
.onepage-mobile-nav-btn--prev{margin-right:auto;}
.onepage-mobile-nav-btn--next{margin-left:auto;}
.onepage-article-group .glossary-term-btn{overflow:hidden;}

.onepages-bottombar .bb-bottom-left,
.onepages-bottombar .bb-bottom-right{width:56px;flex:0 0 56px;height:56px;border-left:0 !important;border-right:0 !important;}
.onepages-bottom-menu-btn{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:inherit;}
.onepages-bottom-menu-btn .icon-hamburger{width:20px;height:14px;}
.onepages-bottom-menu-btn .icon-hamburger::before,
.onepages-bottom-menu-btn .icon-hamburger::after,
.onepages-bottom-menu-btn .icon-hamburger span{background:rgba(15,40,70,.78);}
.onepages-bottom-title-btn{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;height:56px;padding:0 10px;margin:0;font-weight:800;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.onepages-bottom-title-btn::before,
.onepages-bottom-title-btn::after{content:"";display:block;flex:1 1 12px;max-width:20px;height:1px;opacity:0;}


.onepage-content--mobile-paged{position:relative;min-height:220px;}
.onepage-content--mobile-paged .onepage-section-block{animation:onepageSectionSlideIn .28s ease both;}
.onepage-content--mobile-paged .onepage-section-block[hidden]{display:none !important;}
.onepage-content--mobile-paged .onepage-section-block.is-mobile-before,
.onepage-content--mobile-paged .onepage-section-block.is-mobile-after{display:none !important;}
@keyframes onepageSectionSlideIn{from{opacity:0;transform:translateX(18px);}to{opacity:1;transform:translateX(0);}}

@media (max-width: 960px){
  .onepage-inline-sections{margin:4px 0 14px;align-items:stretch;}
  .onepage-inline-section-link{display:flex;width:100%;}
  .onepage-mobile-section-nav{display:flex;}
  .onepage-section-block{padding-bottom:2px;}
  .onepage-content--mobile-paged{overflow:hidden;}
  body[data-page="onepages"] .onepages-bottombar{justify-content:flex-start;}
  body[data-page="onepages"] .onepages-bottombar .bb-bottom-label{pointer-events:auto;}
}


@media (max-width: 960px){
  body[data-page="onepages"] .menu,
  body[data-page="onepages_editor"] .menu{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:auto;
    width:min(86vw,380px);
    max-width:86vw;
    height:100dvh;
    border-radius:0;
    padding:calc(var(--top-h-mobile) + 12px) 12px 20px;
    z-index:360;
    box-shadow:inset 18px 0 28px rgba(15,23,42,.10);
    border-left:1px solid rgba(15,40,70,0.10);
    background:#eef3fb;
    overflow:hidden;
    display:flex !important;
    flex-direction:column;
    align-items:stretch;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:none;
  }
  body.menu-open[data-page="onepages"] .menu,
  body.menu-open[data-page="onepages_editor"] .menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  body[data-page="onepages"] .menu .menu-tree,
  body[data-page="onepages_editor"] .menu .menu-tree{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:2px;}
  body[data-page="onepages"] .menu .menu-item,
  body[data-page="onepages"] .menu .menu-user,
  body[data-page="onepages"] .menu .menu-sep,
  body[data-page="onepages_editor"] .menu .menu-item,
  body[data-page="onepages_editor"] .menu .menu-user,
  body[data-page="onepages_editor"] .menu .menu-sep{position:relative;z-index:1;flex:0 0 auto;}
  body.menu-open[data-page="onepages"] .bb-bottombar,
  body.menu-open[data-page="onepages_editor"] .bb-bottombar{transform:translateY(18px);}
  body[data-page="onepages"] .top #menuBtn,
  body[data-page="onepages_editor"] .top #menuBtn{width:32px;height:32px;padding:0;border:0 !important;background:transparent !important;box-shadow:none !important;border-radius:0 !important;justify-self:end;}
}


/* Onepages mobile header and bottom bar refinements */
body[data-page="onepages"] img,
body[data-page="onepages"] video,
body[data-page="onepages"] canvas{overflow:clip;}

.onepages-bottom-menu-icon{position:relative;display:inline-block;width:18px;height:14px;}
.onepages-bottom-menu-icon::before,
.onepages-bottom-menu-icon::after,
.onepages-bottom-menu-icon span{content:"";position:absolute;left:0;right:0;height:2px;border-radius:999px;background:linear-gradient(90deg, rgba(15,40,70,.92) 0%, rgba(34,88,165,.92) 100%);box-shadow:0 1px 0 rgba(255,255,255,.55);}
.onepages-bottom-menu-icon::before{top:0;}
.onepages-bottom-menu-icon span{top:6px;}
.onepages-bottom-menu-icon::after{bottom:0;}
.onepages-bottom-back-btn{display:inline-flex;align-items:center;justify-content:center;width:56px;flex:0 0 56px;height:56px;border-left:0 !important;border-right:1px solid rgba(15,40,70,.10) !important;background:transparent;}
.onepages-bottombar .bb-bottom-left.onepages-bottom-back-btn .bb-arrow{font-size:24px;line-height:1;}
.onepages-bottombar .onepages-bottom-menu-btn{display:inline-flex;align-items:center;justify-content:center;width:46px;flex:0 0 46px;height:56px;padding:0;border:0;background:transparent;color:inherit;}
.onepages-bottombar .onepages-bottom-menu-btn--left{border-right:1px solid rgba(15,40,70,.08);}
.onepages-bottombar .onepages-bottom-menu-btn--right{border-left:1px solid rgba(15,40,70,.08);}
.onepages-bottombar .onepages-bottom-title-btn{flex:1 1 auto;min-width:0;padding:0 12px;}

@media (max-width: 960px){
  body[data-page="onepages"] .top,
  body[data-page="onepages_editor"] .top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 10px;}
  body[data-page="onepages"] .top .brand,
  body[data-page="onepages_editor"] .top .brand{display:flex !important;align-items:center;gap:10px;min-width:0;flex:1 1 auto;overflow:visible;max-width:none;}
  body[data-page="onepages"] .top .brand .logo.small,
  body[data-page="onepages_editor"] .top .brand .logo.small,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{height:38px !important;width:auto !important;max-width:none !important;min-width:0;flex:0 0 auto;display:block;object-fit:contain;object-position:left center;}
  body[data-page="onepages"] .top #menuBtn,
  body[data-page="onepages_editor"] .top #menuBtn{margin-left:auto;justify-self:auto;flex:0 0 auto;width:30px;height:30px;padding-left:12px;padding-right:0;}
  body[data-page="onepages"] .top #menuBtn::before,
  body[data-page="onepages_editor"] .top #menuBtn::before{left:1px;}
}

.onepages-bottombar .onepages-bottom-back-btn{position:relative;border-right:0 !important;}
.onepages-bottombar .onepages-bottom-back-btn::after{content:"";position:absolute;top:14px;bottom:14px;right:0;width:1px;background:rgba(15,40,70,.14);}
body[data-page="onepages"] img,
body[data-page="onepages"] video,
body[data-page="onepages"] canvas,
body[data-page="onepages_editor"] img,
body[data-page="onepages_editor"] video,
body[data-page="onepages_editor"] canvas{overflow:clip;}

/* onepages header menu / logo refinements */
body[data-page="onepages"] .menu .onepages-home-link,
body[data-page="onepages_editor"] .menu .onepages-home-link{font-size:15px;font-weight:700;text-decoration:none !important;}
body[data-page="onepages"] .menu a.menu-item,
body[data-page="onepages_editor"] .menu a.menu-item{text-decoration:none !important;}
@media (max-width: 960px){
  body[data-page="onepages"] .top,
  body[data-page="onepages_editor"] .top{padding:0 10px;align-items:center;}
  body[data-page="onepages"] .top .brand,
  body[data-page="onepages_editor"] .top .brand{flex:0 1 auto;max-width:none;width:auto;min-width:0;gap:0;}
  body[data-page="onepages"] .top .brand .bb-top-back,
  body[data-page="onepages_editor"] .top .brand .bb-top-back,
  body[data-page="onepages"] .top .brand .top-title,
  body[data-page="onepages_editor"] .top .brand .top-title{display:none !important;}
  body[data-page="onepages"] .top .brand .logo.small,
  body[data-page="onepages_editor"] .top .brand .logo.small,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{height:28px !important;max-height:28px !important;width:auto !important;max-width:160px !important;display:block;flex:0 0 auto;object-fit:contain;object-position:left center;}
  body[data-page="onepages"] .top #menuBtn,
  body[data-page="onepages_editor"] .top #menuBtn{margin-left:auto;width:24px;height:24px;padding:0;border:0 !important;background:transparent !important;box-shadow:none !important;border-radius:0 !important;}
}
@media (max-width: 380px){
  body[data-page="onepages"] .top .brand .logo.small,
  body[data-page="onepages_editor"] .top .brand .logo.small,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{height:26px !important;max-height:26px !important;max-width:145px !important;}
}


/* Final onepages header fix */
body[data-page="onepages"] .top,
body[data-page="onepages_editor"] .top{display:grid;grid-template-columns:42px auto 1fr 42px;align-items:center;gap:10px;}
body[data-page="onepages"] .top .brand,
body[data-page="onepages_editor"] .top .brand{display:flex !important;align-items:center;justify-content:flex-start;min-width:0;max-width:none;width:auto;overflow:visible;gap:0;flex:none;}
body[data-page="onepages"] .top .brand img.logo,
body[data-page="onepages_editor"] .top .brand img.logo{height:34px !important;width:auto !important;max-width:240px !important;display:block;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(10,30,60,0.12));}
body[data-page="onepages"] .onepages-top-title,
body[data-page="onepages_editor"] .onepages-top-title{justify-self:start;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:760px){
  body[data-page="onepages"] .top,
  body[data-page="onepages_editor"] .top{grid-template-columns:42px auto 1fr 42px;gap:8px;}
  body[data-page="onepages"] .top .brand img.logo,
  body[data-page="onepages_editor"] .top .brand img.logo{height:20px !important;max-width:60vw !important;}
}


/* onepages header logo sizing fix */
body[data-page="onepages"] .top .brand img.logo,
body[data-page="onepages_editor"] .top .brand img.logo,
body[data-page="onepages"] .top .brand img.logo.small,
body[data-page="onepages_editor"] .top .brand img.logo.small{
  height:42px !important;
  width:auto !important;
  max-width:min(82vw, 280px) !important;
  display:block;
  object-fit:contain;
  object-position:left center;
}
@media (max-width: 960px){
  body[data-page="onepages"] .top .brand img.logo,
  body[data-page="onepages_editor"] .top .brand img.logo,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{
    height:34px !important;
    max-width:68vw !important;
  }
}
@media (max-width: 380px){
  body[data-page="onepages"] .top .brand img.logo,
  body[data-page="onepages_editor"] .top .brand img.logo,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{
    height:30px !important;
    max-width:70vw !important;
  }
}


/* Final onepages header logo overflow fix */
body[data-page="onepages"] .top,
body[data-page="onepages_editor"] .top{
  overflow:visible !important;
}
body[data-page="onepages"] .top .brand,
body[data-page="onepages_editor"] .top .brand{
  position:relative;
  overflow:visible !important;
  align-self:flex-start;
}
body[data-page="onepages"] .top .brand img.logo,
body[data-page="onepages_editor"] .top .brand img.logo,
body[data-page="onepages"] .top .brand img.logo.small,
body[data-page="onepages_editor"] .top .brand img.logo.small{
  height:96px !important;
  max-height:none !important;
  width:auto !important;
  max-width:none !important;
  display:block;
  object-fit:contain;
  object-position:left top;
  position:relative;
  top:6px;
  z-index:2;
  filter:none !important;
}
@media (max-width: 960px){
  body[data-page="onepages"] .top .brand img.logo,
  body[data-page="onepages_editor"] .top .brand img.logo,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{
    height:96px !important;
    width:auto !important;
    max-width:none !important;
    top:8px;
  }
  body[data-page="onepages"] .top #menuBtn,
  body[data-page="onepages_editor"] .top #menuBtn{
    position:relative;
    z-index:3;
  }
}


/* Final onepages header alignment fix */
body[data-page="onepages"] .top,
body[data-page="onepages_editor"] .top{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:0 10px !important;
}
body[data-page="onepages"] .top .brand,
body[data-page="onepages_editor"] .top .brand{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  margin:0 !important;
}
body[data-page="onepages"] .top .brand img.logo,
body[data-page="onepages_editor"] .top .brand img.logo,
body[data-page="onepages"] .top .brand img.logo.small,
body[data-page="onepages_editor"] .top .brand img.logo.small{
  height:96px !important;
  max-height:none !important;
  width:auto !important;
  max-width:none !important;
  display:block !important;
  object-fit:contain !important;
  object-position:left top !important;
  position:relative !important;
  top:-10px !important;
  left:0 !important;
  margin:0 !important;
  z-index:2 !important;
  filter:none !important;
}
body[data-page="onepages"] .top #menuBtn,
body[data-page="onepages_editor"] .top #menuBtn{
  margin-left:auto !important;
  flex:0 0 auto !important;
  align-self:center !important;
  position:relative !important;
  right:0 !important;
  top:0 !important;
  z-index:3 !important;
  width:32px !important;
  height:32px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
@media (max-width: 960px){
  body[data-page="onepages"] .top .brand img.logo,
  body[data-page="onepages_editor"] .top .brand img.logo,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{
    top:-12px !important;
  }
}


/* onepages header final polish v57 */
body[data-page="onepages"] .top .brand img.logo,
body[data-page="onepages_editor"] .top .brand img.logo,
body[data-page="onepages"] .top .brand img.logo.small,
body[data-page="onepages_editor"] .top .brand img.logo.small{
  top:-16px !important;
}
body[data-page="onepages"] .menu .onepages-home-link,
body[data-page="onepages_editor"] .menu .onepages-home-link{
  display:block !important;
  width:100% !important;
  padding:10px 10px !important;
  border-radius:12px !important;
  border:0 !important;
  background:transparent !important;
  color:var(--text) !important;
  font-size:inherit !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:left !important;
  text-decoration:none !important;
  box-sizing:border-box !important;
}
body[data-page="onepages"] .menu .onepages-home-link:hover,
body[data-page="onepages_editor"] .menu .onepages-home-link:hover{
  background: rgba(120,170,230,0.16) !important;
}
@media (max-width: 960px){
  body[data-page="onepages"] .top .brand img.logo,
  body[data-page="onepages_editor"] .top .brand img.logo,
  body[data-page="onepages"] .top .brand img.logo.small,
  body[data-page="onepages_editor"] .top .brand img.logo.small{
    top:-18px !important;
  }
}


#pt_pager.pt-pager{display:block !important;margin-top:14px;min-height:44px;}
#pt_pager.pt-pager[hidden]{display:block !important;}
#pt_pager .pt-pager-inner{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
#pt_pager .pt-pager-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
@media (max-width: 960px){
  #pt_pager.pt-pager{padding-bottom:8px;}
  #pt_pager .pt-pager-inner{align-items:stretch;}
  #pt_pager .pt-pager-actions{width:100%;justify-content:space-between;}
  #pt_pager .pt-pager-actions .btn{flex:1 1 calc(50% - 4px);justify-content:center;}
}

/* Portal custom selects */
.portal-native-select{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.portal-select{position:relative;width:100%;}
.portal-select__button{
  width:100%;min-height:46px;padding:12px 42px 12px 14px;border-radius:14px;
  border:1px solid rgba(15,40,70,0.14);background:rgba(255,255,255,0.88);color:var(--text);
  text-align:left;font-size:14px;line-height:1.25;cursor:pointer;box-shadow:0 8px 22px rgba(20,45,80,.04);
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.portal-select__button:after{content:'⌄';position:absolute;right:14px;top:50%;transform:translateY(-52%);font-size:18px;color:var(--muted);pointer-events:none;}
.portal-select.is-open .portal-select__button,.portal-select__button:focus{border-color:rgba(0,184,255,0.55);box-shadow:0 0 0 4px rgba(0,184,255,0.14);outline:none;background:#fff;}
.portal-select__button.is-placeholder{color:var(--muted);}
.portal-select__button:disabled{opacity:.65;cursor:not-allowed;background:rgba(245,247,250,.9);}
.portal-select__menu{display:none;position:absolute;z-index:1200;left:0;right:0;top:calc(100% + 8px);max-height:280px;overflow:auto;padding:8px;border-radius:16px;border:1px solid rgba(15,40,70,.12);background:#fff;box-shadow:0 18px 50px rgba(11,31,58,.18);}
.portal-select.is-open .portal-select__menu{display:block;}
.portal-select__option{width:100%;display:block;padding:9px 11px;border:0;border-radius:11px;background:transparent;text-align:left;color:var(--text);font-size:14px;line-height:1.25;cursor:pointer;}
.portal-select__option:hover,.portal-select__option.is-selected{background:rgba(0,184,255,.10);}
.portal-select__option.is-selected{font-weight:700;color:#126aa3;}
.portal-select__option:disabled{opacity:.45;cursor:not-allowed;}

/* Compact portal calendar */
.portal-date-input{background:#fff;cursor:pointer;}
.portal-date-input::-webkit-calendar-picker-indicator{opacity:0;display:none;}
.portal-cal{position:absolute;z-index:1400;width:min(760px,calc(100vw - 16px));display:grid;grid-template-columns:190px 1fr;border-radius:18px;border:1px solid rgba(15,40,70,.10);background:#fff;box-shadow:0 22px 70px rgba(11,31,58,.20);overflow:hidden;color:var(--text);}
.portal-cal__presets{padding:12px;border-right:1px solid rgba(15,40,70,.10);display:flex;flex-direction:column;gap:4px;background:rgba(248,250,252,.55);}
.portal-cal__presets button{border:0;background:transparent;border-radius:10px;padding:10px 12px;text-align:left;font:inherit;color:var(--text);cursor:pointer;}
.portal-cal__presets button:hover{background:rgba(15,40,70,.06);}
.portal-cal__main{padding:14px;}
.portal-cal__head{display:flex;justify-content:space-between;margin-bottom:8px;}
.portal-cal__nav{width:34px;height:34px;border:0;border-radius:10px;background:transparent;font-size:25px;line-height:1;color:var(--muted);cursor:pointer;}
.portal-cal__nav:hover{background:rgba(15,40,70,.06);color:var(--text);}
.portal-cal__months{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.portal-cal__month-title{position:relative;display:flex;justify-content:center;align-items:center;gap:10px;text-align:center;font-weight:800;margin:0 0 14px;}
.portal-cal__title-btn{border:0;background:transparent;border-radius:10px;padding:6px 8px;font:inherit;font-weight:800;color:var(--text);cursor:pointer;}
.portal-cal__title-btn:after{content:"⌄";margin-left:6px;color:var(--muted);font-size:14px;}
.portal-cal__title-btn:hover{background:rgba(15,40,70,.06);}
.portal-cal__dropdown{position:absolute;z-index:5100;top:calc(100% + 6px);left:50%;transform:translateX(-50%);width:150px;max-height:250px;overflow:auto;padding:6px;border-radius:14px;border:1px solid rgba(15,40,70,.12);background:#fff;box-shadow:0 18px 50px rgba(11,31,58,.18);}
.portal-cal__dropdown button{width:100%;display:block;border:0;border-radius:10px;background:transparent;padding:8px 10px;text-align:left;font-size:14px;color:var(--text);cursor:pointer;}
.portal-cal__dropdown button:hover,.portal-cal__dropdown button.is-active{background:rgba(0,184,255,.10);color:#126aa3;font-weight:700;}
.portal-cal__week,.portal-cal__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;align-items:center;}
.portal-cal__week span{text-align:center;color:var(--muted);font-size:13px;padding-bottom:8px;}
.portal-cal__day{height:34px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;cursor:pointer;}
.portal-cal__day:hover{background:rgba(0,184,255,.10);}
.portal-cal__day.is-inrange{background:rgba(0,184,255,.14);}
.portal-cal__day.is-start,.portal-cal__day.is-end{background:#00b8ff;color:#fff;font-weight:800;border-radius:999px;}
.portal-cal__foot{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;}
@media (max-width: 760px){
  .portal-select__menu{position:fixed;left:12px;right:12px;top:auto;bottom:12px;max-height:min(55vh,420px);}
  .portal-cal{position:fixed !important;left:8px !important;right:8px !important;top:72px !important;width:auto;max-height:calc(100vh - 88px);grid-template-columns:1fr;overflow:auto;}
  .portal-cal__presets{border-right:0;border-bottom:1px solid rgba(15,40,70,.10);display:grid;grid-template-columns:1fr 1fr;}
  .portal-cal__months{grid-template-columns:1fr;gap:16px;}
}

/* Portal custom select body-layer fix: desktop dropdown follows the field and is not clipped by cards/tables */
.portal-select__menu.is-body-layer{display:block;}
@media (min-width: 761px){
  .portal-select__menu.is-body-layer{font-size:13px;}
  .portal-select__menu.is-body-layer .portal-select__option{font-size:13px;}
}

/* Portal checkbox + multi department picker */
.portal-check-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border:1px solid rgba(15,40,70,.08);border-radius:16px;background:rgba(255,255,255,.82);}
.portal-check{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;color:var(--text);user-select:none;}
.portal-check input{position:absolute;opacity:0;pointer-events:none;}
.portal-check__box{width:22px;height:22px;border-radius:8px;border:1.5px solid rgba(15,40,70,.20);background:#fff;display:inline-grid;place-items:center;box-shadow:0 5px 16px rgba(11,31,58,.06);transition:.16s ease;}
.portal-check__box:after{content:'';width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px);opacity:0;}
.portal-check input:checked + .portal-check__box{border-color:#00a8e8;background:#00a8e8;box-shadow:0 0 0 4px rgba(0,184,255,.12);}
.portal-check input:checked + .portal-check__box:after{opacity:1;}
.portal-multiselect{position:relative;width:100%;}
.portal-multiselect__button{width:100%;min-height:40px;border:1px solid rgba(15,40,70,.12);border-radius:14px;background:#fff;color:var(--text);font:inherit;font-size:13px;text-align:left;padding:10px 42px 10px 12px;cursor:pointer;box-shadow:0 8px 22px rgba(11,31,58,.06);position:relative;}
.portal-multiselect__button:after{content:'⌄';position:absolute;right:14px;top:50%;transform:translateY(-52%);font-size:17px;color:var(--muted);}
.portal-multiselect.is-open .portal-multiselect__button{border-color:rgba(0,184,255,.55);box-shadow:0 0 0 4px rgba(0,184,255,.14);}
.portal-multiselect__button:disabled{opacity:.65;cursor:not-allowed;background:rgba(245,247,250,.9);}
.portal-multiselect__menu{display:none;position:absolute;z-index:1300;left:0;right:0;top:calc(100% + 8px);max-height:260px;overflow:auto;padding:8px;border-radius:16px;border:1px solid rgba(15,40,70,.12);background:#fff;box-shadow:0 18px 50px rgba(11,31,58,.18);}
.portal-multiselect.is-open .portal-multiselect__menu{display:block;}
.portal-multiselect__option{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:11px;font-size:13px;line-height:1.25;cursor:pointer;}
.portal-multiselect__option:hover{background:rgba(0,184,255,.10);}
.portal-multiselect__option input{accent-color:#00a8e8;}
@media (max-width:760px){.portal-check-row{align-items:flex-start}.portal-check{font-size:14px}.portal-multiselect__menu{position:fixed;left:12px;right:12px;top:auto;bottom:12px;max-height:min(55vh,420px)}}

/* User card: additional departments multiselect — text first, clean selected checkmark */
.portal-multiselect__option{
  justify-content:space-between;
  text-align:left;
}
.portal-multiselect__name{
  flex:1 1 auto;
  min-width:0;
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
}
.portal-multiselect__option input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}
.portal-multiselect__check{
  flex:0 0 22px;
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  opacity:0;
  transform:scale(.82);
  color:#fff;
  background:linear-gradient(135deg,#00b8ff,#0077ff);
  box-shadow:0 8px 18px rgba(0,126,255,.22);
  transition:opacity .16s ease, transform .16s ease;
}
.portal-multiselect__check::before{
  content:'✓';
  font-size:14px;
  line-height:1;
  font-weight:800;
}
.portal-multiselect__option input[type="checkbox"]:checked + .portal-multiselect__check{
  opacity:1;
  transform:scale(1);
}
.portal-multiselect__option:has(input[type="checkbox"]:checked){
  background:rgba(0,184,255,.10);
  color:#063b63;
  font-weight:700;
}

/* Searchable portal selects + range/datetime date fields */
.portal-select__button{display:none!important;}
.portal-select__control{position:relative;width:100%;}
.portal-select__input{
  width:100%;height:42px;border:1px solid rgba(15,40,70,.14);border-radius:14px;background:#fff;
  color:var(--text);font-size:13px;line-height:1.25;padding:0 38px 0 13px;outline:none;
  box-shadow:0 8px 24px rgba(11,31,58,.04);transition:border-color .18s,box-shadow .18s,background .18s;
}
.portal-select__input::placeholder{color:var(--muted);}
.portal-select__input:focus,.portal-select.is-open .portal-select__input{border-color:rgba(0,184,255,.55);box-shadow:0 0 0 4px rgba(0,184,255,.14);background:#fff;}
.portal-select__input:disabled{opacity:.65;cursor:not-allowed;background:rgba(245,247,250,.9);}
.portal-select__arrow{position:absolute;right:13px;top:50%;transform:translateY(-55%);font-size:17px;color:var(--muted);pointer-events:none;}
.portal-select__empty{padding:10px 12px;color:var(--muted);font-size:13px;text-align:left;}
.portal-select__option{font-size:13px;}
.portal-select__menu.is-body-layer{font-size:13px;}
.portal-select__menu.is-body-layer .portal-select__option{font-size:13px;}
.portal-range-native-field,.portal-date-hidden{display:none!important;}
.portal-date-range-input,.portal-datetime-input{background:#fff;cursor:pointer;}
.portal-cal__range-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px;}
.portal-cal__range-fields label,.portal-cal__time{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--muted);}
.portal-cal__range-fields input,.portal-cal__time input{height:38px;border:1px solid rgba(15,40,70,.14);border-radius:12px;background:#fff;color:var(--text);padding:0 11px;font-size:13px;outline:none;}
.portal-cal__range-fields input.is-active{border-color:rgba(0,184,255,.6);box-shadow:0 0 0 4px rgba(0,184,255,.13);}
.portal-cal__time{margin-right:auto;min-width:120px;}
.portal-cal--datetime{width:min(500px,calc(100vw - 16px));grid-template-columns:160px 1fr;}
.portal-cal--datetime .portal-cal__months{grid-template-columns:1fr;}
.portal-cal--datetime .portal-cal__presets button:nth-child(n+3){display:none;}
.portal-cal__day.is-start,.portal-cal__day.is-end{background:#00b8ff!important;color:#fff!important;}
.portal-cal__day.is-inrange{background:rgba(0,184,255,.14)!important;}
@media (max-width:760px){
  .portal-select__input{height:44px;font-size:13px;}
  .portal-cal__range-fields{grid-template-columns:1fr 1fr;position:sticky;top:0;background:#fff;z-index:2;padding-bottom:8px;}
  .portal-cal--datetime{grid-template-columns:1fr;width:auto;}
  .portal-cal__foot{align-items:flex-end;flex-wrap:wrap;}
  .portal-cal__time{width:100%;margin-right:0;}
}

/* Fixes: MTS Link compact datetime calendar and anchored mobile select menus */
@media (max-width: 760px){
  .portal-select .portal-select__menu{
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:calc(100% + 8px) !important;
    bottom:auto !important;
    width:auto !important;
    max-height:min(44vh,320px) !important;
  }
}
.portal-cal--datetime{
  width:min(420px,calc(100vw - 16px));
  grid-template-columns:1fr;
}
.portal-cal--datetime .portal-cal__presets{
  border-right:0;
  border-bottom:1px solid rgba(15,40,70,.10);
  display:flex;
  flex-direction:row;
  gap:6px;
  padding:10px 12px;
  background:rgba(248,250,252,.72);
}
.portal-cal--datetime .portal-cal__presets button{
  width:auto;
  padding:8px 12px;
  white-space:nowrap;
}
.portal-cal--datetime .portal-cal__main{padding:12px;min-width:0;}
.portal-cal--datetime .portal-cal__months{grid-template-columns:1fr;gap:0;}
.portal-cal--datetime .portal-cal__foot{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:end;
  gap:10px;
}
.portal-cal__timebox{display:flex;flex-direction:column;gap:8px;min-width:0;}
.portal-cal__common-times{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--muted);font-weight:700;}
.portal-cal__common-times button{border:0;border-radius:999px;background:rgba(0,184,255,.10);color:#126aa3;font-weight:800;padding:6px 9px;cursor:pointer;}
.portal-cal__common-times button:hover{background:rgba(0,184,255,.18);}
@media (max-width: 760px){
  .portal-cal--datetime{width:auto;}
  .portal-cal--datetime .portal-cal__foot{grid-template-columns:1fr;align-items:stretch;}
  .portal-cal--datetime .portal-cal__foot .btn{width:100%;}
  .portal-cal__common-times{align-items:flex-start;}
}

.push-prompt-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9999;
  padding: 0 16px;
  pointer-events: none;
}
.push-prompt-card{
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,255,.94));
  border: 1px solid rgba(0,184,255,.26);
  box-shadow: 0 18px 50px rgba(10,30,60,.18);
  border-radius: 22px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}
.push-prompt-card b{
  display:block;
  margin-bottom:4px;
  font-size:15px;
  font-weight:900;
  letter-spacing:.1px;
}
.push-prompt-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.push-prompt-actions button{
  min-height: 38px;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.push-prompt-actions button:hover{ transform: translateY(-1px); }
.push-prompt-actions button.primary{
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 28px rgba(0,184,255,.26);
}
.push-prompt-actions button.secondary{
  color: #126aa3;
  background: rgba(0,184,255,.08);
  border: 1px solid rgba(0,184,255,.20);
}
.push-prompt-actions button.secondary:hover{ background: rgba(0,184,255,.14); }
@media (max-width: 720px){
  .push-prompt-banner{
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 0 10px;
  }
  .push-prompt-card{
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
    padding: 12px;
    gap: 10px;
  }
  .push-prompt-actions{ width: 100%; }
  .push-prompt-actions button{ flex: 1; min-height: 40px; }
}

/* Portal notifications bell + dropdown */
.portal-notify-btn{position:relative;overflow:visible;}
.portal-bell-icon{width:23px;height:23px;display:grid;place-items:center;position:relative;}
.portal-bell-icon svg{width:23px;height:23px;display:block;filter:drop-shadow(0 4px 7px rgba(11,61,145,.16));}
.portal-bell-svg-tilt{transform:rotate(-13deg);transform-origin:14px 14px;}
.portal-bell-svg-body{fill:url(#portalBellGradient);stroke:#073f93;stroke-width:1.55;}
.portal-bell-svg-clapper,.portal-bell-svg-top{fill:none;stroke:#073f93;stroke-width:1.9;stroke-linecap:round;}
.portal-notify-btn:hover .portal-bell-svg-tilt{animation:portalBellRing .72s ease both;}
@keyframes portalBellRing{0%,100%{transform:rotate(-13deg)}25%{transform:rotate(7deg)}50%{transform:rotate(-19deg)}75%{transform:rotate(1deg)}}
.portal-notify-badge{position:absolute;right:1px;top:1px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ef2b4a;color:#fff;font-size:10px;font-weight:900;line-height:16px;text-align:center;box-shadow:0 0 0 2px rgba(255,255,255,.96);}
.portal-notifications-dropdown{position:fixed;z-index:420;display:none;max-height:min(620px,calc(100vh - 76px));overflow:hidden;border:1px solid rgba(11,61,145,.13);border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 22px 70px rgba(12,34,74,.22);backdrop-filter:blur(16px);}
.portal-notifications-dropdown.open{display:flex;flex-direction:column;}
.portal-notifications-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 12px;border-bottom:1px solid rgba(11,61,145,.09);}
.portal-notifications-head b{font-size:17px;color:#10234a;}
.portal-notifications-sub{margin-top:3px;font-size:12px;color:#69809d;}
.portal-notifications-close{width:32px;height:32px;border:0;border-radius:999px;background:rgba(11,61,145,.08);color:#17396c;font-size:22px;line-height:1;cursor:pointer;}
.portal-push-inline{margin:12px 12px 0;padding:12px;border:1px solid rgba(0,115,255,.18);border-radius:18px;background:linear-gradient(135deg,rgba(0,115,255,.10),rgba(255,255,255,.94));display:flex;align-items:center;justify-content:space-between;gap:10px;}
.portal-push-inline b{display:block;margin-bottom:3px;color:#12386f;font-size:13px;}
.portal-push-inline div div{font-size:12px;line-height:1.35;color:#607896;}
.portal-notifications-list{overflow:auto;padding:10px 8px;}
.portal-notification-item{display:block;text-decoration:none;color:inherit;padding:12px;border-radius:18px;border:1px solid transparent;transition:background .15s ease,border-color .15s ease,transform .15s ease;}
.portal-notification-item:hover{background:rgba(11,61,145,.07);border-color:rgba(11,61,145,.10);transform:translateY(-1px);}
.portal-notification-item.is-unread{background:rgba(0,115,255,.08);border-color:rgba(0,115,255,.16);}
.portal-notification-title{font-weight:900;color:#14284f;font-size:14px;line-height:1.25;}
.portal-notification-body{margin-top:4px;color:#536b88;font-size:13px;line-height:1.35;}
.portal-notification-meta{margin-top:7px;color:#8a9ab0;font-size:11px;font-weight:700;}
.portal-notifications-empty{padding:22px 14px;text-align:center;color:#7a8da5;font-size:13px;line-height:1.4;}
.portal-notifications-foot{display:flex;gap:8px;justify-content:space-between;padding:12px;border-top:1px solid rgba(11,61,145,.09);background:rgba(246,249,255,.92);}
.portal-notifications-foot .btn{white-space:nowrap;}
@media (max-width: 700px){
  .portal-notifications-dropdown{left:8px!important;right:8px!important;width:auto!important;top:calc(var(--top-h-mobile,56px) + 8px)!important;max-height:calc(100vh - var(--top-h-mobile,56px) - 18px);border-radius:22px;}
  .portal-notifications-head{padding:14px 14px 10px;}
  .portal-push-inline{align-items:stretch;flex-direction:column;}
  .portal-push-inline .btn{width:100%;}
  .portal-notifications-foot{flex-direction:column;}
  .portal-notifications-foot .btn{width:100%;}
}

/* Bell placement/final polish: right side, no square outline */
body[data-page="hub"] .top .portal-notify-btn{
  margin-left:auto;
}
body[data-page="hub"] .top #portalNotifyBtn,
body[data-page="seller_home"] .top #portalNotifyBtn{
  width:34px;
  height:34px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  flex:0 0 auto;
}
body[data-page="hub"] .top #portalNotifyBtn:hover,
body[data-page="seller_home"] .top #portalNotifyBtn:hover{
  background:transparent !important;
}
body[data-page="hub"] .top #portalNotifyBtn:focus,
body[data-page="seller_home"] .top #portalNotifyBtn:focus,
body[data-page="hub"] .top #portalNotifyBtn:focus-visible,
body[data-page="seller_home"] .top #portalNotifyBtn:focus-visible{
  outline:0 !important;
  box-shadow:none !important;
}
@media (max-width:520px){
  body[data-page="hub"] .top #portalNotifyBtn,
  body[data-page="seller_home"] .top #portalNotifyBtn{
    width:30px;
    height:30px;
  }
  body[data-page="hub"] .top .portal-bell-icon,
  body[data-page="seller_home"] .top .portal-bell-icon{
    width:22px;
    height:22px;
  }
  body[data-page="hub"] .top .portal-bell-icon svg,
  body[data-page="seller_home"] .top .portal-bell-icon svg{
    width:22px;
    height:22px;
  }
}

/* === Notifications bell: universal header placement/final polish v37 === */
.top > #portalNotifyBtn,
.top .portal-notify-btn{
  margin-left:auto !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  flex:0 0 auto !important;
  justify-self:end;
  align-self:center;
  outline:0 !important;
  -webkit-tap-highlight-color:transparent;
}
.top > #portalNotifyBtn:hover,
.top .portal-notify-btn:hover,
.top > #portalNotifyBtn:focus,
.top .portal-notify-btn:focus,
.top > #portalNotifyBtn:focus-visible,
.top .portal-notify-btn:focus-visible{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
}
.top #portalNotifyBtn + #menuBtn,
.top .portal-notify-btn + #menuBtn{ margin-left:2px !important; }
@media (max-width:520px){
  .top > #portalNotifyBtn,
  .top .portal-notify-btn{ width:30px !important; height:30px !important; min-width:30px !important; }
  .top .portal-bell-icon,
  .top .portal-bell-icon svg{ width:22px !important; height:22px !important; }
}
.portal-menu-backdrop{
  display:none;
  position:fixed;
  inset:0 min(86vw,380px) 0 0;
  z-index:235;
  background:rgba(255,255,255,0.01);
  pointer-events:none;
  touch-action:pan-y;
}
@media (max-width:960px){
  body.menu-open .portal-menu-backdrop{ display:block; pointer-events:auto; }
}


/* Notification dropdown buttons compact layout */
.portal-notifications-foot{flex-wrap:wrap;justify-content:center;}
.portal-notifications-foot .btn{font-size:12px;padding:9px 10px;line-height:1.15;}
#portalMarkNotificationsRead,#portalNotificationSettingsBtn{flex:0 1 auto;}
#portalTestPushBtn{flex:0 0 auto;min-width:150px;margin-left:auto;margin-right:auto;}
@media(max-width:700px){.portal-notifications-foot{flex-direction:column}.portal-notifications-foot .btn{width:100%;font-size:13px}#portalTestPushBtn{min-width:0;margin-left:0;margin-right:0}}
/* Crystal Lab card and Portal support/policies */
body[data-icon-theme="color"] .svc-ico[data-ico="crystallab"]{ --ico-bg:#e0f7ff; --ico-fg:#0284c7; }
.portal-support-shell{padding-top:96px}.portal-support-panel h1{margin:0 0 4px}.support-head-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.support-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px}.support-sidebar,.support-chat{background:#fff;border:1px solid rgba(15,44,74,.08);border-radius:22px;padding:14px;box-shadow:0 12px 30px rgba(15,44,74,.06)}.support-filter{display:flex;gap:8px;margin-bottom:12px}.support-filter .active{background:#0b7cff;color:#fff;border-color:#0b7cff}.support-thread-list{display:grid;gap:10px;max-height:62vh;overflow:auto}.support-thread{border:1px solid rgba(15,44,74,.10);border-radius:16px;background:#f8fafc;text-align:left;padding:12px;display:grid;gap:4px;cursor:pointer}.support-thread.active{background:#eaf5ff;border-color:#7cc7ff}.support-thread span,.support-thread small{color:#64748b}.support-chat-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #eef2f7;padding-bottom:10px;margin-bottom:12px}.support-messages{display:grid;gap:10px;max-height:50vh;overflow:auto;padding:4px}.support-msg{max-width:78%;border-radius:18px;padding:10px 12px;background:#f1f5f9}.support-msg.user{margin-left:auto;background:#dff3ff}.support-msg.admin{margin-right:auto;background:#f8fafc}.support-msg-name{font-weight:800;font-size:12px;color:#0b3d91;margin-bottom:4px}.support-msg small{display:block;color:#64748b;margin-top:6px}.support-reply{display:flex;gap:10px;margin-top:12px}.support-reply textarea{min-height:58px;flex:1}.policy-page{max-width:920px;margin:90px auto 40px;line-height:1.65}.policy-page h1{margin-top:0}.policy-page h2{margin-top:24px;color:#0b3d91}.policy-back{color:#00a8e8;text-decoration:underline;font-weight:800}@media(max-width:760px){.portal-support-shell{padding-top:82px}.support-head-row{flex-direction:column}.support-layout{grid-template-columns:1fr}.support-sidebar,.support-chat{padding:12px;border-radius:18px}.support-msg{max-width:92%}.support-reply{flex-direction:column}.policy-page{margin:80px 10px 24px}}

/* Policy pages */
body[data-page="policy"]{background:#eef2f7;}
.policy-page{max-width:980px;margin:0 auto;background:#fff;border:1px solid rgba(15,40,70,.08);box-shadow:0 14px 42px rgba(15,23,42,.08);}
.policy-page h1{font-size:32px;margin-bottom:10px;}
.policy-page h2{font-size:22px;margin:28px 0 10px;color:#0b3d91;}
.policy-page h3{font-size:17px;margin:18px 0 8px;color:#152642;}
.policy-page p,.policy-page li{line-height:1.62;color:#334155;}
.policy-page ul,.policy-page ol{padding-left:22px;}
.policy-page .policy-meta{color:#64748b;margin-bottom:20px;}
.policy-page .policy-back{display:inline-flex;margin-top:22px;color:#00a8e8;font-weight:800;text-decoration:underline;text-underline-offset:4px;}
.policy-page .policy-note{background:#f8fbff;border:1px solid rgba(0,168,232,.16);border-radius:16px;padding:14px 16px;}
@media(max-width:720px){.policy-page{border-radius:20px;padding:18px!important}.policy-page h1{font-size:25px}.policy-page h2{font-size:19px}}

/* Portal support refresh */
.portal-support-shell{max-width:1180px}.portal-support-panel{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,252,255,.94));border:1px solid rgba(0,168,232,.16);border-radius:28px;box-shadow:0 24px 70px rgba(8,42,92,.12)}.portal-support-panel .primary,.portal-support-panel .secondary{border-radius:14px;font-weight:800;min-height:42px}.portal-support-panel .primary{background:linear-gradient(135deg,#00a8e8,#0b7cff);border:0;color:#fff;box-shadow:0 12px 28px rgba(0,130,255,.22)}.portal-support-panel .secondary{background:#fff;border:1px solid rgba(0,168,232,.22);color:#0b3d91}.support-sidebar,.support-chat{border-color:rgba(0,168,232,.14);box-shadow:0 16px 42px rgba(12,64,120,.08)}.support-filter{background:#eef8ff;border:1px solid rgba(0,168,232,.12);border-radius:18px;padding:6px}.support-filter .secondary{flex:1}.support-thread{background:#fff;border-color:rgba(0,168,232,.14);box-shadow:0 8px 22px rgba(12,64,120,.05)}.support-thread.active{background:#eaf7ff;border-color:#00a8e8}.support-thread b{color:#0b3d91}.support-msg{box-shadow:0 8px 18px rgba(12,64,120,.06)}.support-msg.user{background:#daf3ff}.support-msg.admin{background:#fff;border:1px solid rgba(0,168,232,.12)}.support-user-dropdown{position:absolute;z-index:1200;left:0;right:0;top:100%;max-height:280px;overflow:auto;background:#fff;border:1px solid rgba(0,168,232,.18);border-radius:16px;box-shadow:0 18px 45px rgba(12,64,120,.16);padding:8px}.support-user-option{width:100%;display:flex;justify-content:space-between;gap:12px;text-align:left;border:0;background:transparent;padding:10px;border-radius:12px;cursor:pointer}.support-user-option:hover{background:#eef8ff}.support-user-option span{font-weight:800;color:#0b3d91}.support-user-option small{color:#64748b}.field{position:relative}@media(max-width:760px){.portal-support-panel{border-radius:22px}.support-head-row .row{width:100%;display:grid;grid-template-columns:1fr;gap:8px}.support-filter{display:grid;grid-template-columns:1fr 1fr}.support-chat-title{align-items:flex-start}.support-reply textarea{width:100%}}


/* Support page layout polish */
body[data-page="support"] .support-top{height:var(--top-h);}
body[data-page="support"] .support-home-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:14px;padding:9px 14px;font-weight:800;background:#fff;border:1px solid rgba(0,168,232,.22);color:#0b3d91;box-shadow:0 8px 20px rgba(12,64,120,.08);}
body[data-page="support"] .portal-support-shell{display:block;min-height:auto;padding:calc(var(--top-h) + 24px) 16px 44px;max-width:1220px;margin:0 auto;}
body[data-page="support"] .portal-support-panel{width:100%;padding:22px;}
body[data-page="support"] .support-head-row .row{display:flex;flex-wrap:wrap;justify-content:flex-end;}
body[data-page="support"] .support-layout{display:grid!important;grid-template-columns:minmax(280px,340px) minmax(0,1fr)!important;align-items:stretch;}
body[data-page="support"] .support-chat{min-height:520px;display:flex;flex-direction:column;}
body[data-page="support"] .support-chat #supportChat{min-height:100%;display:flex;flex-direction:column;}
body[data-page="support"] .support-chat #supportChat.hidden{display:none!important;}
body[data-page="support"] .support-messages{flex:1;min-height:260px;}
@media(max-width:760px){
  body[data-page="support"] .support-top{height:var(--top-h-mobile);}
  body[data-page="support"] .portal-support-shell{padding:calc(var(--top-h-mobile) + 14px) 10px 28px;}
  body[data-page="support"] .portal-support-panel{padding:14px;border-radius:22px;}
  body[data-page="support"] .support-layout{grid-template-columns:1fr!important;}
  body[data-page="support"] .support-chat{min-height:0;}
}


/* Reports dashboard: keep report cards and charts in horizontal adaptive grids */
body[data-page="staff"] #reportsCards.portal-reports-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  align-items:stretch;
}
body[data-page="staff"] #reportsCards.portal-reports-grid .card{
  min-width:0;
  width:auto;
  margin:0;
}
body[data-page="staff"] #reportsCharts.portal-reports-charts{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:14px;
  align-items:stretch;
}
body[data-page="staff"] #reportsCharts.portal-reports-charts .panel{
  margin:0;
  min-width:0;
}
.portal-report-chart{
  display:flex;
  align-items:flex-end;
  gap:4px;
  height:100px;
  width:100%;
  min-width:0;
}
.portal-report-chart__bar{
  flex:1 1 0;
  min-width:6px;
  background:rgba(0,115,255,.26);
  border-radius:6px 6px 0 0;
}
@media (max-width: 700px){
  body[data-page="staff"] #reportsCards.portal-reports-grid,
  body[data-page="staff"] #reportsCharts.portal-reports-charts{
    grid-template-columns:1fr;
  }
}

/* Staff reports tab must live inside the same center card layout */
body[data-page="staff"] #reports{
  width:100%;
  min-width:0;
}
body[data-page="staff"] #reports .reports-head{
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-start;
  margin:10px 0 14px;
}
body[data-page="staff"] #reports .reports-period-panel{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  min-width:min(100%, 520px);
}
body[data-page="staff"] #reports .reports-period-panel .field{
  min-width:180px;
  flex:1 1 180px;
  margin:0;
}
body[data-page="staff"] #reports .reports-period-panel input[type="date"]{
  width:100%;
}
body[data-page="staff"] #reports .reports-period-panel .btn{
  flex:0 0 auto;
  min-height:42px;
}
body[data-page="staff"] #reports .reports-panel{
  width:100%;
  box-sizing:border-box;
}
@media (max-width: 760px){
  body[data-page="staff"] #reports .reports-period-panel{
    width:100%;
    justify-content:stretch;
  }
  body[data-page="staff"] #reports .reports-period-panel .field,
  body[data-page="staff"] #reports .reports-period-panel .btn{
    width:100%;
    flex-basis:100%;
  }
}

/* Reports interactive charts */
body[data-page="staff"] #reports .reports-chart-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}
body[data-page="staff"] #reports .reports-chart-toolbar .btn.active{
  background:rgba(0,115,255,.12);
  border-color:rgba(0,115,255,.38);
  color:#075bb5;
}
body[data-page="staff"] #reportsCards.portal-reports-grid .portal-report-summary-card{
  text-align:left;
  cursor:pointer;
  border:1px solid rgba(15,23,42,.08);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body[data-page="staff"] #reportsCards.portal-reports-grid .portal-report-summary-card:hover,
body[data-page="staff"] #reportsCards.portal-reports-grid .portal-report-summary-card.is-active{
  transform:translateY(-1px);
  border-color:rgba(0,115,255,.32);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.portal-report-summary-value{
  font-size:28px;
  font-weight:800;
  margin-top:6px;
  color:#111827;
}
body[data-page="staff"] #reportsCharts.portal-reports-charts .portal-report-chart-card{
  cursor:pointer;
  overflow:hidden;
}
body[data-page="staff"] #reportsCharts.portal-reports-charts .portal-report-chart-card.is-expanded{
  grid-column:1 / -1;
  cursor:default;
}
.portal-report-chart-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  font-weight:800;
}
.portal-report-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 0 8px;
  scrollbar-width:thin;
}
.portal-report-chart-card.is-expanded .portal-report-scroll{
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:rgba(248,250,252,.68);
  padding:8px;
}
.portal-report-svg{
  display:block;
  min-width:100%;
  height:auto;
}
.portal-report-svg-axis{
  stroke:rgba(15,23,42,.52);
  stroke-width:1.2;
}
.portal-report-svg-grid{
  stroke:rgba(15,23,42,.08);
  stroke-width:1;
}
.portal-report-svg-bar{
  fill:rgba(0,115,255,.34);
}
.portal-report-svg-line{
  fill:none;
  stroke:rgba(0,115,255,.72);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.portal-report-svg-dot{
  fill:#fff;
  stroke:rgba(0,115,255,.82);
  stroke-width:2;
}
.portal-report-svg-label{
  fill:rgba(15,23,42,.66);
  font-size:12px;
  font-weight:700;
}
.portal-report-svg-tick{
  fill:rgba(15,23,42,.52);
  font-size:11px;
}
.portal-report-zoom{
  display:flex;
  justify-content:flex-end;
  margin:2px 0 8px;
}
.portal-report-zoom label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:12px;
}
.portal-report-zoom input[type="range"]{
  width:180px;
}
@media(max-width:760px){
  body[data-page="staff"] #reports .reports-chart-toolbar{
    justify-content:stretch;
  }
  body[data-page="staff"] #reports .reports-chart-toolbar .btn{
    flex:1 1 auto;
  }
  .portal-report-chart-title{
    align-items:flex-start;
    flex-direction:column;
  }
  .portal-report-zoom{
    justify-content:stretch;
  }
  .portal-report-zoom label,
  .portal-report-zoom input[type="range"]{
    width:100%;
  }
}

/* Reports: precise tooltips, combined legend and changelog */
.portal-report-chart-card .portal-report-point foreignObject{ opacity:0; pointer-events:none; transition:opacity .12s ease; overflow:visible; }
.portal-report-chart-card .portal-report-point:hover foreignObject{ opacity:1; }
.portal-report-tooltip{ box-sizing:border-box; background:rgba(15,23,42,.94); color:#fff; border-radius:12px; padding:8px 10px; font:12px/1.35 system-ui,-apple-system,Segoe UI,Arial,sans-serif; box-shadow:0 14px 30px rgba(15,23,42,.22); }
.portal-report-tooltip-title{ font-weight:800; margin-bottom:4px; }
.portal-report-tooltip span{ display:inline-block; width:9px; height:9px; border-radius:999px; margin-right:6px; vertical-align:middle; }
.portal-report-legend{ display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:10px; color:#475569; font-size:12px; }
.portal-report-legend span{ display:inline-flex; align-items:center; gap:6px; }
.portal-report-legend i{ width:18px; height:4px; border-radius:999px; display:inline-block; }
.portal-report-scroll{ cursor:grab; }
.portal-report-scroll:active{ cursor:grabbing; }
.changelog-history{ max-height:520px; overflow:auto; }
.changelog-history-item{ background:#fff; border:1px solid rgba(15,23,42,.08); border-radius:16px; padding:14px; margin-bottom:10px; }
.changelog-history-html,.changelog-modal-html{ color:#111827; line-height:1.55; }
.changelog-history-html img,.changelog-modal-html img{ max-width:100%; border-radius:12px; }
.changelog-history-html video,.changelog-modal-html video{ max-width:100%; border-radius:12px; }

/* Reports: smoother horizontal zoom control */
.portal-report-zoom label{
  gap:10px;
}
.portal-report-zoom input[type="range"]{
  width:min(360px, 46vw);
  accent-color:#0b3d91;
  cursor:grab;
}
.portal-report-zoom input[type="range"]:active{
  cursor:grabbing;
}
.reportsZoomValue{
  min-width:46px;
  text-align:right;
  font-weight:800;
  color:#0b3d91;
}
.portal-report-chart-card .portal-report-point{
  cursor:default;
}
.portal-report-svg-dot,
.portal-report-svg-bar{
  pointer-events:all;
}


/* Admin global settings: label text first, checkboxes aligned in one column */
.portal-global-settings-grid label.chk{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 22px;
  align-items:start !important;
  gap:12px !important;
  width:100%;
  text-align:left;
}
.portal-global-settings-grid label.chk span{
  grid-column:1;
  grid-row:1;
  text-align:left;
  justify-self:start;
}
.portal-global-settings-grid label.chk input[type="checkbox"]{
  grid-column:2;
  grid-row:1;
  justify-self:center;
  margin:2px 0 0 !important;
}

/* Staff reports loading and expanded details */
.portal-reports-loading{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#64748b;
  font-weight:700;
}
.portal-spinner{
  width:22px;
  height:22px;
  border-radius:999px;
  border:3px solid rgba(0,115,255,.16);
  border-top-color:#0b7cff;
  animation:portalSpin .8s linear infinite;
}
@keyframes portalSpin{to{transform:rotate(360deg)}}
.portal-report-breakdown{
  margin-top:14px;
  display:grid;
  gap:12px;
}
.portal-report-breakdown-group{
  background:rgba(248,250,252,.82);
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  padding:12px;
}
.portal-report-breakdown-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:8px;
  color:#475569;
  font-size:13px;
}
.portal-report-breakdown-list span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#fff;
  border:1px solid rgba(15,23,42,.06);
  border-radius:999px;
  padding:6px 10px;
}
.portal-report-breakdown-list i{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
}
body[data-page="staff"] #reportsCharts.portal-reports-charts .portal-report-chart-card:not(.is-expanded) .portal-report-scroll{
  overflow-x:hidden;
}

.top2fa-help-popover{
  margin-top:8px;
  padding:12px 14px;
  border:1px solid rgba(15,40,70,.12);
  border-radius:14px;
  background:#fff;
  color:#111827;
  box-shadow:0 14px 30px rgba(15,23,42,.12);
  font-size:13px;
  line-height:1.45;
}
.portal-report-svg{ transition: width .18s ease; }
.portal-report-point foreignObject{ pointer-events:none; }
.portal-report-point .portal-report-tooltip{ opacity:0; transform:translateY(4px); transition:opacity .14s ease, transform .14s ease; }
.portal-report-point:hover .portal-report-tooltip{ opacity:1; transform:translateY(0); }
.policy-consent-note{font-size:12px;line-height:1.45;color:#64748b;margin:10px 0 12px;text-align:center}.policy-consent-note a{text-decoration:underline;color:#111827}
.portal-check-line{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left}.portal-check-line span{flex:1}.portal-check-line input{flex:0 0 auto}

/* Mobile filter sheet should not touch the fixed top header */
@media (max-width: 980px){
  .bb-sheet-card--filter{
    top: calc(var(--topbar-h, 64px) + 8px) !important;
    max-height: calc(100vh - var(--topbar-h, 64px) - 18px) !important;
  }
}

/* Loader behavior: full white logo only for hub pages; translucent spinner elsewhere */
.splash{
  background:rgba(17,24,39,.26);
  backdrop-filter:blur(1px);
}
.splash::after{
  content:"";
  width:42px;
  height:42px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.72);
  border-top-color:rgba(17,24,39,.72);
  animation: portalSpin .8s linear infinite;
}
.splash .splash-logo{ display:none; }
body[data-page="hub"] .splash,
body[data-page="seller_home"] .splash{
  background:#fff;
  backdrop-filter:none;
}
body[data-page="hub"] .splash::after,
body[data-page="seller_home"] .splash::after{ display:none; }
body[data-page="hub"] .splash .splash-logo,
body[data-page="seller_home"] .splash .splash-logo{ display:block; }
@keyframes portalSpin{ to{ transform:rotate(360deg); } }

.portal-branding-name-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.portal-branding-name-field{min-width:260px;flex:1}
.portal-logos-list{display:grid;gap:10px}
.portal-logo-item{display:flex;gap:12px;align-items:center;border:1px solid rgba(15,40,70,.12);border-radius:16px;padding:10px;background:rgba(255,255,255,.72)}
.portal-logo-item.active{border-color:rgba(21,110,245,.42);box-shadow:0 8px 22px rgba(21,110,245,.08)}
.portal-logo-item img{width:92px;height:52px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid rgba(15,40,70,.08);padding:6px}
.portal-logo-item__meta{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.portal-logo-item__meta span{font-size:12px;color:#6b7280}
.portal-logo-item__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.mini-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.6);border-top-color:#fff;border-radius:999px;animation:portalSpin .8s linear infinite;vertical-align:-2px;margin-right:6px}
@media (max-width: 640px){
  .portal-logo-item{align-items:flex-start;flex-direction:column}
  .portal-logo-item__actions{justify-content:flex-start}
}

/* Mail template variable helper */
.linkbtn{border:0;background:transparent;color:#0b7cff;text-decoration:underline;font:inherit;font-weight:800;cursor:pointer;padding:0}

.mail-vars-body{min-height:0;max-height:calc(100vh - 220px);overflow:auto;padding-right:4px;-webkit-overflow-scrolling:touch;}
#mailVarsModal .modal-card-scroll{max-height:calc(100vh - 28px);}
@media(max-width:760px){#mailVarsModal{align-items:flex-start;padding-top:calc(var(--topbar-height,64px) + 8px)}#mailVarsModal .modal-card-scroll{max-height:calc(100vh - var(--topbar-height,64px) - 20px)}.mail-vars-body{max-height:calc(100vh - var(--topbar-height,64px) - 190px)}}
.mail-vars-grid{display:grid;gap:10px;margin-top:8px}
.mail-var-row{display:grid;grid-template-columns:minmax(170px,230px) 1fr;gap:12px;align-items:start;padding:10px 12px;border:1px solid rgba(15,40,70,.08);border-radius:14px;background:#f8fbff}
.mail-var-row code{font-weight:800;color:#0b3d91;white-space:nowrap}.mail-var-row span{color:#334155;line-height:1.4}
@media(max-width:760px){.mail-var-row{grid-template-columns:1fr}.mail-var-select{width:100%!important}.bb-sheet-card--filter{top:calc(var(--topbar-height,64px) + 8px)!important;bottom:10px}.portal-cal{top:calc(var(--topbar-height,64px) + 8px)!important;max-height:calc(100vh - var(--topbar-height,64px) - 22px)!important;z-index:5200!important}.portal-cal__presets{grid-template-columns:1fr 1fr}.portal-cal__main{padding-bottom:16px}}

/* Unified menu: page-specific links are grouped above common navigation */
.menu-page-extra{margin:8px 0 10px;padding:8px;border:1px solid rgba(15,40,70,.08);border-radius:16px;background:rgba(248,251,255,.9);display:grid;gap:4px}.menu-page-extra .menu-item{margin:0}.menu-tree{margin-top:8px}

/* Portal branding logo crop modal */
.portal-logo-crop-card{max-width:920px;width:min(920px,calc(100vw - 24px));}
.portal-logo-crop-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start;}
.portal-logo-crop-preview-wrap{background:linear-gradient(135deg,#f8fafc,#eef8ff);border:1px solid rgba(0,168,232,.18);border-radius:22px;padding:14px;display:grid;place-items:center;overflow:auto;}
.portal-logo-crop-canvas{width:100%;max-width:720px;height:auto;border-radius:16px;background:#fff;box-shadow:0 14px 34px rgba(12,64,120,.12);}
.portal-logo-crop-controls{display:grid;gap:9px;}
.portal-logo-crop-controls label{font-weight:800;color:#0b3d91;font-size:13px;}
.portal-logo-crop-controls input[type="range"]{width:100%;}
@media(max-width:760px){.portal-logo-crop-layout{grid-template-columns:1fr}.portal-logo-crop-card{width:calc(100vw - 16px)}.portal-logo-crop-preview-wrap{padding:10px;border-radius:18px}.portal-logo-crop-controls{gap:8px}}

/* Support page header/layout alignment */
body[data-page="support"] .support-top{display:flex;align-items:center;justify-content:space-between;}
body[data-page="support"] .support-top .brand{min-width:0;}
body[data-page="support"] .portal-support-panel{box-sizing:border-box;}
body[data-page="support"] .support-head-row{position:relative;}

/* Support modal overlay fix */
body[data-page="support"] .detail-modal.hidden{display:none!important;}
body[data-page="support"] .detail-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.54);backdrop-filter:blur(8px);}
body[data-page="support"] .detail-modal-card{width:min(680px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid rgba(0,168,232,.18);border-radius:26px;box-shadow:0 28px 90px rgba(8,42,92,.28);padding:20px;}
body[data-page="support"] .detail-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #eef2f7;}
body[data-page="support"] .detail-modal-head h3{margin:0;color:#0b3d91;font-size:22px;}
body[data-page="support"] .entity-modal-body{display:grid;gap:14px;}
body[data-page="support"] .entity-modal-body .field{display:grid;gap:7px;}
body[data-page="support"] .entity-modal-body label{font-weight:800;color:#334155;}
body[data-page="support"] .entity-modal-body textarea{min-height:130px;resize:vertical;}
@media(max-width:760px){body[data-page="support"] .detail-modal{align-items:flex-end;padding:10px;}body[data-page="support"] .detail-modal-card{border-radius:22px;max-height:88vh;padding:16px;}body[data-page="support"] .detail-modal-head{display:grid;}body[data-page="support"] .entity-modal-body .row{display:grid;grid-template-columns:1fr;gap:8px;}}

/* Support modal fixes */
body[data-page="support"] .hidden{display:none!important;}
body[data-page="support"] .detail-modal .primary,
body[data-page="support"] .detail-modal .secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;font-weight:800;min-height:42px;padding:10px 16px;cursor:pointer;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;}
body[data-page="support"] .detail-modal .primary{background:linear-gradient(135deg,#00a8e8,#0b7cff);border:0;color:#fff;box-shadow:0 12px 28px rgba(0,130,255,.22);}
body[data-page="support"] .detail-modal .primary:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(0,130,255,.28);}
body[data-page="support"] .detail-modal .secondary{background:#fff;border:1px solid rgba(0,168,232,.22);color:#0b3d91;box-shadow:0 8px 20px rgba(12,64,120,.08);}
body[data-page="support"] .detail-modal .secondary:hover{background:#eef8ff;transform:translateY(-1px);}
body[data-page="support"] .detail-modal .row{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
body[data-page="support"] .support-user-dropdown.hidden{display:none!important;}

.embedded-reg-banner{margin:-10px -10px 18px;padding:12px 14px;background:#111827;color:#fff;border-radius:0 0 16px 16px;text-align:center;font-size:14px;line-height:1.35}.embedded-reg-banner a{color:#fff;text-decoration:underline;font-weight:800}

/* Role preview banner */
.role-preview-banner{
  position:sticky; top:0; z-index:9000;
  display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap;
  padding:10px 14px; background:#111827; color:#fff; font-size:14px;
  box-shadow:0 12px 28px rgba(15,23,42,.22);
}
.role-preview-banner button{
  border:0; background:#fff; color:#111827; border-radius:999px; padding:6px 12px; font-weight:800; cursor:pointer;
}
.role-preview-banner button:hover{ opacity:.9; }
.custom-nav-admin-section .table-wrap{ max-height:none; }

body.role-preview-active .top{top:44px;}
body.role-preview-active .shell.wide{padding-top:130px;}
@media (max-width:760px){body.role-preview-active .top{top:52px;}body.role-preview-active .shell.wide{padding-top:118px;}}

/* Final tweaks: new role modal, custom card order UI, support header menu */
#newRoleModal{align-items:flex-start;padding-top:calc(var(--top-h,64px) + 12px);}
#newRoleModal .modal-card{max-height:calc(100vh - var(--top-h,64px) - 28px)!important;}
#newRoleAccessList .ra-dd-menu{position:static;left:auto;right:auto;top:auto;margin-top:8px;z-index:auto;max-height:260px;}
#newRoleAccessList .new-role-dd-item{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:12px;}
#newRoleAccessList .new-role-dd-item input{grid-column:1;justify-self:center;margin:0;}
#newRoleAccessList .new-role-dd-item > div{grid-column:2;text-align:left;min-width:0;}
#newRoleAccessList .new-role-nested-items{margin-left:30px;}
#newRoleAccessList .new-role-scope-line{margin-top:4px;}
body[data-page="support"] .top #menuBtn{width:34px;height:34px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding-left:14px;position:relative;}
body[data-page="support"] .top #menuBtn::before{content:"";position:absolute;left:2px;top:4px;bottom:4px;width:1px;background:rgba(15,40,70,.14);}
@media(max-width:560px){#newRoleModal{padding-top:calc(var(--top-h-mobile,56px) + 10px)}#newRoleModal .modal-card{max-height:calc(100vh - var(--top-h-mobile,56px) - 20px)!important;}body[data-page="support"] .top #menuBtn{width:30px;height:30px;padding-left:12px;}}

/* iSpring admin layout refinements */
.ispring-panel .portal-check-line,
.ispring-check-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  margin:0;
}
.ispring-settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
  align-items:end;
}
.ispring-settings-grid .portal-check-line{
  align-self:center;
}
.ispring-position-field{
  position:relative;
  z-index:5;
}
.ispring-position-picker{
  position:relative;
}
.ispring-position-picker .portal-multiselect__menu{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:calc(100% + 8px) !important;
  bottom:auto !important;
  max-height:min(360px,55vh);
  z-index:5000;
}
.ispring-extra-toggle{
  width:100%;
  border:0;
  background:rgba(0,184,255,.08);
  color:var(--text);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.ispring-extra-panel{
  margin-top:10px;
  padding:12px;
  border:1px solid rgba(15,40,70,.10);
  border-radius:16px;
  background:rgba(255,255,255,.7);
}
.ispring-role-checks{
  display:grid;
  gap:8px;
  align-items:start;
}
.ispring-role-checks .portal-check{
  margin:0 !important;
}
@media (max-width:760px){
  .ispring-settings-grid{grid-template-columns:1fr;}
  .ispring-position-picker .portal-multiselect__menu{max-height:min(320px,50vh);}
  .ispring-panel .portal-check-line,
  .ispring-check-line{grid-template-columns:1fr auto;}
}
