html.futuron-app-html,
html:has(body.futuron-app-body){
  margin:0;
  padding:0;
}
body.futuron-app-body{
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden;
  background:#e6f1f7;
  -webkit-text-size-adjust:100%;
}
body.futuron-app-body #wpadminbar,
body.futuron-app-body .futuron-app-root > *:not(.futuron-sig-shell):not(.futuron-app-shell){
  display:none !important;
}
.futuron-app-root{
  margin:0;
  padding:0;
  min-height:100dvh;
}

/* Also wins over .futuron-sig-shell legacy padding when both classes are on the shell. */
.futuron-app-shell,
.futuron-sig-shell.futuron-app-shell{
  --ink:#0f1b38;
  --ink-2:#1f4d73;
  --teal:#2f7a8a;
  --teal-2:#58aaba;
  --muted:#556170;
  --border:#d3e3ed;
  --panel:#f6fbff;
  --bg:#eef3f7;
  --radius:16px;
  --shadow:0 18px 38px rgba(10,35,64,0.12);
  --hub-accent:#2f7a8a;
  --hub-ink:#0f1b38;
  --hub-ink-2:#1f4d73;
  --hub-teal:#2f7a8a;
  --hub-teal-soft:#56a9b5;
  --hub-card-radius:16px;
  --hub-row-radius:16px;
  margin:0 !important;
  width:100% !important;
  max-width:100% !important;
  min-height:100dvh;
  /* No side padding: topbar stays full-bleed; content pads itself. */
  padding:0 0 calc(118px + env(safe-area-inset-bottom)) !important;
  font-family:"Inter","Segoe UI",-apple-system,system-ui,sans-serif;
  color:var(--hub-ink);
  line-height:1.6;
  box-sizing:border-box;
  overflow-x:hidden;
  background:
    radial-gradient(1200px 900px at 16% 12%, rgba(46,168,194,0.22), transparent 55%),
    radial-gradient(1600px 1100px at 82% 10%, rgba(15,27,56,0.16), transparent 60%),
    linear-gradient(180deg, #f1f7fa 0%, #e6f1f7 52%, #dcebf3 100%);
}
.futuron-app-shell *{box-sizing:border-box;}
.futuron-app-shell a{color:inherit;}
/* Logout keeps independent styles (set below on .futuron-hub-logout). */
.futuron-app-shell a.futuron-hub-logout{
  text-decoration:none;
  flex-shrink:0;
  pointer-events:auto;
  position:relative;
  z-index:50;
}

.futuron-app-main{
  max-width:480px;
  margin:0 auto;
  width:100%;
  min-width:0;
  overflow-x:clip;
  padding:0 12px;
  box-sizing:border-box;
}
.futuron-app-shell--wide .futuron-app-main{
  max-width:1080px;
  padding-left:20px;
  padding-right:20px;
}
/* Shared primary content card (Workspace / AI / Tour / etc.)
   Exclude hub employee profile — it has its own navy gradient. */
.futuron-app-main > .card:not(.futuron-hub-profile){
  display:grid;
  gap:16px;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:18px clamp(14px, 2.5vw, 24px) 22px;
  background:#fff;
  border:1px solid rgba(15,27,56,0.06);
  border-radius:14px;
  box-shadow:0 18px 38px rgba(10,35,64,0.1);
  box-sizing:border-box;
}
@media (max-width:720px){
  .futuron-app-shell--wide .futuron-app-main{
    max-width:100%;
    padding-left:12px;
    padding-right:12px;
  }
  .futuron-app-main > .card:not(.futuron-hub-profile){
    padding:14px 12px 18px;
    border-radius:14px;
  }
}

.futuron-app-page-head{
  display:grid;
  gap:8px;
}
.futuron-app-page-head h1{
  margin:0;
}
.futuron-app-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  border-bottom:1px solid #d7e2ea;
  margin:4px 0 0;
}
.futuron-app-tab{
  display:inline-flex;
  align-items:center;
  padding:10px 16px 8px;
  margin-bottom:-1px;
  border:none;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:#6b7a8b;
  font-size:14px;
  font-weight:700;
  font-family:inherit;
  line-height:1.3;
  text-decoration:none;
  cursor:pointer;
  transition:color .15s ease,border-color .15s ease;
}
.futuron-app-tab:hover{
  color:#1f4d73;
}
.futuron-app-tab.is-active{
  color:#0f1b38;
  border-bottom-color:#2f7a8a;
}
.futuron-app-tab-desc{
  margin:0;
  font-size:12px;
  line-height:1.45;
  color:#6b7a8b;
}

/* Slim navy top bar — always full shell width (no negative-margin hacks). */
.futuron-hub-topbar{
  position:relative;
  z-index:50;
  display:block;
  width:100%;
  max-width:none;
  margin:0 0 14px;
  padding:env(safe-area-inset-top, 0px) 0 0;
  box-sizing:border-box;
  background:linear-gradient(180deg, #0f1b38 0%, #152447 100%);
  border-bottom:1px solid rgba(86,169,181,0.22);
  box-shadow:0 8px 20px rgba(10,35,64,0.12);
}
.futuron-hub-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  max-width:none;
  margin:0;
  padding:10px 14px;
  min-width:0;
  box-sizing:border-box;
}
/* Keep brand + logout aligned with content column on larger screens */
@media (min-width:481px){
  .futuron-hub-topbar-inner{
    max-width:480px;
    margin-left:auto;
    margin-right:auto;
    padding-left:12px;
    padding-right:12px;
  }
  .futuron-app-shell--wide .futuron-hub-topbar-inner{
    max-width:1080px;
    padding-left:20px;
    padding-right:20px;
  }
}
.futuron-hub-topbar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
}
a.futuron-hub-topbar-brand:hover{
  opacity:0.95;
}
.futuron-hub-topbar-titles{
  min-width:0;
  overflow:hidden;
}
.futuron-hub-topbar-logo{
  width:36px;
  height:36px;
  max-width:36px;
  max-height:36px;
  border-radius:9px;
  object-fit:contain;
  /* Navy header: transparent PNG — white/teal dots read on dark */
  background:transparent;
  flex-shrink:0;
  display:block;
}
.futuron-hub-topbar-mark{
  width:36px;
  height:36px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:13px;
  font-weight:800;
  color:#0f1b38;
  background:linear-gradient(145deg,#56a9b5,#e8f6f8);
}
.futuron-hub-topbar-titles{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.futuron-hub-topbar-name{
  font-size:14px;
  font-weight:800;
  color:#fff;
  line-height:1.2;
  letter-spacing:0.01em;
}
.futuron-hub-topbar-slogan{
  font-size:10px;
  color:rgba(232,246,248,0.72);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* —— Facebook-style topbar actions (FUTURON colors) —— */
.futuron-topbar-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
  position:relative;
  z-index:60;
}
.futuron-topbar-dd{
  position:relative;
}
.futuron-topbar-icon-btn,
.futuron-topbar-avatar-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  color:#fff;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s ease;
}
.futuron-topbar-avatar-btn{
  overflow:visible;
  line-height:0;
  /* Match feed post avatar disc size (40) so initials look identical */
  width:40px;
  height:40px;
  background:transparent;
}
.futuron-topbar-icon-btn:hover,
.futuron-topbar-icon-btn:focus,
.futuron-topbar-avatar-btn:hover,
.futuron-topbar-avatar-btn:focus{
  background:rgba(255,255,255,0.2);
  outline:none;
}
.futuron-topbar-avatar-btn:hover,
.futuron-topbar-avatar-btn:focus{
  background:transparent;
}
.futuron-topbar-avatar-btn:hover .futuron-topbar-avatar-fallback,
.futuron-topbar-avatar-btn:focus .futuron-topbar-avatar-fallback{
  filter:brightness(1.05);
}
.futuron-topbar-dd.is-open .futuron-topbar-icon-btn,
.futuron-topbar-dd.is-open .futuron-topbar-avatar-btn{
  background:rgba(86,169,181,0.35);
  box-shadow:0 0 0 2px rgba(86,169,181,0.45);
}
.futuron-topbar-dd.is-open .futuron-topbar-avatar-btn{
  background:transparent;
  box-shadow:0 0 0 2px rgba(86,169,181,0.55);
}
.futuron-topbar-badge{
  position:absolute;
  top:-2px;
  right:-2px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:#e11d48;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:16px;
  text-align:center;
  box-shadow:0 0 0 2px #152447;
}
.futuron-hub-topbar .futuron-topbar-avatar-img{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  box-sizing:border-box;
  flex-shrink:0;
  border:1px solid rgba(255,255,255,0.35);
}
/*
 * Bulletproof initials centering (survives theme button/span overrides + RTL):
 * - outer disc is a fixed square + position:relative
 * - inner text is position:absolute; inset:0 with flex center
 * High specificity under .futuron-hub-topbar so theme CSS cannot un-center it.
 */
.futuron-hub-topbar .futuron-topbar-avatar-fallback,
.futuron-hub-topbar .futuron-topbar-menu-user .futuron-topbar-avatar-fallback{
  position:relative !important;
  display:block !important;
  box-sizing:border-box !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  flex-shrink:0 !important;
  overflow:hidden !important;
  background:linear-gradient(145deg,#56a9b5,#e8f6f8) !important;
  color:#0f1b38 !important;
  line-height:0 !important;
  font-size:0 !important; /* kill whitespace text nodes */
  text-align:left !important;
  direction:ltr !important;
  unicode-bidi:isolate !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  transform:none !important;
}
.futuron-hub-topbar .futuron-topbar-avatar-initials,
.futuron-hub-topbar .futuron-topbar-menu-user .futuron-topbar-avatar-initials{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  font-family:"Inter","Segoe UI",system-ui,sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  font-style:normal !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-indent:0 !important;
  text-align:center !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  color:#0f1b38 !important;
  background:transparent !important;
  transform:none !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  pointer-events:none;
}
.futuron-hub-topbar .futuron-topbar-avatar-fallback.is-lg,
.futuron-hub-topbar .futuron-topbar-menu-user .futuron-topbar-avatar-fallback.is-lg{
  width:40px !important;
  height:40px !important;
}
.futuron-hub-topbar .futuron-topbar-avatar-fallback.is-lg .futuron-topbar-avatar-initials{
  font-size:13px !important;
}
.futuron-topbar-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:auto;
  width:min(320px, calc(100vw - 24px));
  max-width:calc(100vw - 16px);
  max-height:min(70vh, 420px);
  overflow:auto;
  background:#fff;
  color:#0f1b38;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(10,35,64,0.22);
  border:1px solid #d3e3ed;
  z-index:80;
  /* Prevent clip on small screens: keep panel inside viewport */
  transform:none;
}
/* Must win over display:flex on activity panel — otherwise close never hides it */
.futuron-topbar-panel[hidden]{
  display:none !important;
}
.futuron-topbar-panel--menu{
  width:min(280px, calc(100vw - 24px));
}
.futuron-topbar-panel--activity{
  /* Anchor from right icon; if near left edge use fixed-safe inset */
  right:0;
  left:auto;
  width:min(360px, calc(100vw - 24px));
  padding:0;
  display:flex;
  flex-direction:column;
  max-height:min(72vh, 440px);
  overflow:hidden;
}
/* Mobile outside-tap layer (JS toggles .is-visible).
   IMPORTANT: backdrop must sit BELOW the topbar stacking context,
   otherwise the fixed panel (child of topbar z-index:50) is greyed out. */
.futuron-topbar-backdrop{
  position:fixed;
  inset:0;
  z-index:40; /* below .futuron-hub-topbar (50) */
  margin:0;
  padding:0;
  border:0;
  background:rgba(10, 20, 40, 0.28);
  opacity:0;
  pointer-events:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:opacity 0.18s ease;
}
.futuron-topbar-backdrop.is-visible{
  opacity:1;
  pointer-events:auto;
}
.futuron-topbar-backdrop[hidden]{
  display:none !important;
}
html.futuron-topbar-menu-open{
  overflow:hidden;
}
/* Raise topbar (+ its panels) above the dim layer while open */
html.futuron-topbar-menu-open .futuron-hub-topbar{
  z-index:60;
}
html.futuron-topbar-menu-open .futuron-topbar-panel,
html.futuron-topbar-menu-open .futuron-topbar-panel.is-fixed-mobile{
  z-index:70 !important;
}
.futuron-topbar-job-title{
  display:block;
  font-size:12px;
  color:#6b7a8b;
  font-weight:600;
  line-height:1.3;
  margin-top:2px;
  word-break:break-word;
}
.futuron-topbar-job-title.is-empty{
  font-weight:500;
  font-style:italic;
  color:#8a96a3;
}
/* Mobile / narrow: fixed full-width under topbar so left is never clipped by overflow-x */
@media (max-width:720px){
  .futuron-topbar-actions{
    position:static;
  }
  .futuron-hub-topbar{
    overflow:visible;
  }
  .futuron-hub-topbar-inner{
    position:relative;
    overflow:visible;
  }
  .futuron-topbar-panel--activity,
  .futuron-topbar-panel--menu,
  .futuron-topbar-panel.is-fixed-mobile{
    position:fixed !important;
    top:calc(env(safe-area-inset-top, 0px) + 56px);
    right:8px !important;
    left:8px !important;
    width:auto !important;
    max-width:none !important;
    margin-top:0;
    z-index:200;
  }
}
.futuron-topbar-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 18px 10px;
  border-bottom:1px solid #e8eef3;
  flex-shrink:0;
}
.futuron-topbar-panel-head strong{
  font-size:13px;
  font-weight:800;
  letter-spacing:0.01em;
}
.futuron-topbar-panel-head-count{
  font-size:11px;
  font-weight:700;
  color:#2f7a8a;
  background:#e8f6f8;
  border-radius:999px;
  padding:3px 9px;
  white-space:nowrap;
}
.futuron-topbar-empty{
  margin:0;
  padding:18px 18px 20px;
  font-size:12px;
  font-weight:500;
  color:#556170;
  line-height:1.5;
}
.futuron-topbar-activity-scroll{
  overflow:auto;
  flex:1 1 auto;
  min-height:0;
  -webkit-overflow-scrolling:touch;
}
.futuron-topbar-day-label{
  padding:10px 18px 4px;
  font-size:10px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#7a8896;
  background:#fafbfc;
  position:sticky;
  top:0;
  z-index:1;
}
.futuron-topbar-activity-list{
  list-style:none;
  margin:0;
  padding:0 0 4px;
}
.futuron-topbar-activity-list li{
  display:block;
  margin:0;
  padding:0;
  border-bottom:1px solid #f0f4f8;
}
.futuron-topbar-activity-list li:last-child{
  border-bottom:0;
}
/* Title only bold; detail + time regular/muted */
.futuron-topbar-activity-title{
  display:block;
  font-size:12.5px;
  font-weight:700;
  line-height:1.35;
  color:#0f1b38;
  word-break:break-word;
}
.futuron-topbar-activity-detail{
  display:block;
  margin-top:3px;
  font-size:11.5px;
  font-weight:500;
  line-height:1.4;
  color:#4b5c6b;
  word-break:break-word;
}
.futuron-topbar-activity-time{
  display:block;
  margin-top:5px;
  font-size:10.5px;
  font-weight:500;
  color:#8a96a3;
  line-height:1.2;
}
/* legacy class if still present */
.futuron-topbar-activity-label{
  font-size:12.5px;
  font-weight:700;
  line-height:1.35;
  color:#0f1b38;
}
.futuron-topbar-panel-actions{
  flex-shrink:0;
  border-top:1px solid #e8eef3;
  display:flex;
  flex-direction:column;
  background:#fff;
}
.futuron-topbar-panel-foot{
  display:block;
  padding:11px 18px;
  text-align:center;
  font-size:12px;
  font-weight:700;
  color:#2f7a8a !important;
  text-decoration:none !important;
  border-top:1px solid #e8eef3;
}
.futuron-topbar-panel-actions .futuron-topbar-panel-foot:first-child{
  border-top:0;
}
.futuron-topbar-panel-foot:hover{
  background:#f4fafb;
}
button.futuron-topbar-panel-foot,
.futuron-topbar-mark-read{
  width:100%;
  border:0;
  background:#fff;
  cursor:pointer;
  font:inherit;
}
.futuron-topbar-activity-list li.is-unread .futuron-topbar-notif-link,
.futuron-topbar-activity-list li.is-unread .futuron-topbar-notif-static{
  background:#f3fafb;
}
.futuron-topbar-activity-list li.is-unread .futuron-topbar-activity-title{
  font-weight:800;
}
a.futuron-topbar-icon-btn{
  text-decoration:none;
  color:#fff !important;
}
a.futuron-topbar-icon-btn svg{
  fill:currentColor;
  color:#fff;
}
a.futuron-topbar-icon-btn .futuron-topbar-badge{
  color:#fff;
}
.futuron-topbar-notif-link,
.futuron-topbar-notif-static{
  display:block;
  padding:11px 18px 12px;
  text-decoration:none !important;
  color:inherit;
}
.futuron-topbar-notif-link:hover{
  background:#e8f6f8;
}
.futuron-topbar-notif-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.futuron-topbar-unread-dot{
  flex-shrink:0;
  width:7px;
  height:7px;
  margin-top:6px;
  border-radius:50%;
  background:#2f7a8a;
  box-shadow:0 0 0 3px rgba(47,122,138,0.15);
}
.futuron-topbar-notif-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:0;
}
.futuron-topbar-type-chip{
  display:inline-block;
  align-self:flex-start;
  margin-bottom:4px;
  padding:2px 7px;
  border-radius:999px;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#2f7a8a;
  background:#e8f6f8;
  line-height:1.3;
}
.futuron-topbar-menu-user{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px;
  border-bottom:1px solid #e8eef3;
}
.futuron-topbar-menu-user img{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
  box-sizing:border-box;
}
.futuron-topbar-menu-user .futuron-topbar-avatar-fallback{
  flex-shrink:0;
}
.futuron-topbar-menu-user strong{
  display:block;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}
.futuron-topbar-menu-user span,
.futuron-topbar-menu-user .futuron-topbar-job-title{
  font-size:12px;
  display:block;
  line-height:1.3;
  color:#6b7a8b;
  font-weight:600;
}
.futuron-topbar-menu-user span.is-empty,
.futuron-topbar-menu-user .futuron-topbar-job-title.is-empty{
  font-weight:500;
  font-style:italic;
  color:#8a96a3;
}
.futuron-topbar-menu-user > div > span{
  /* keep job title under name — legacy selector */
  color:#6b7a8b;
}
.futuron-topbar-menu-label{
  padding:10px 14px 4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#6b7a8b;
}
.futuron-topbar-menu-apps{
  list-style:none;
  margin:0;
  padding:0 0 4px;
}
.futuron-topbar-menu-apps a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 14px;
  font-size:13px;
  font-weight:600;
  color:#0f1b38 !important;
  text-decoration:none !important;
}
/* Mobile: tighter rows in the top avatar apps dropdown */
@media (max-width:720px){
  .futuron-topbar-menu-label{
    padding:8px 14px 2px;
  }
  .futuron-topbar-menu-apps{
    padding:0 0 2px;
  }
  .futuron-topbar-menu-apps a{
    gap:8px;
    padding:6px 14px;
    font-size:12.5px;
  }
  .futuron-topbar-menu-app-icon{
    width:24px;
    height:24px;
    border-radius:7px;
  }
  .futuron-topbar-menu-app-icon svg{
    width:14px;
    height:14px;
  }
  .futuron-topbar-menu-sep{
    margin:2px 0;
  }
  .futuron-topbar-logout,
  a.futuron-topbar-logout{
    padding:10px 14px 12px;
  }
}
.futuron-topbar-menu-apps a:hover{
  background:#e8f6f8;
}
.futuron-topbar-menu-app-icon{
  width:28px;
  height:28px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#e8f0f5;
  color:#2f7a8a;
  flex-shrink:0;
}
.futuron-topbar-menu-app-icon svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
.futuron-topbar-menu-sep{
  height:1px;
  background:#e8eef3;
  margin:4px 0;
}
.futuron-topbar-logout,
a.futuron-topbar-logout{
  display:block;
  padding:12px 14px 14px;
  font-size:13px;
  font-weight:700;
  color:#b91c1c !important;
  text-decoration:none !important;
}
.futuron-topbar-logout:hover{
  background:#fef2f2;
}
/* Legacy logout class kept for any stray links */
.futuron-hub-logout,
a.futuron-hub-logout{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  color:#fff !important;
  background:rgba(255,255,255,0.1) !important;
  border:1px solid rgba(255,255,255,0.28);
  text-decoration:none !important;
}
@media (max-width:380px){
  .futuron-hub-topbar-inner{
    gap:8px;
    padding:9px 12px;
  }
  .futuron-hub-topbar-slogan{
    display:none;
  }
  .futuron-topbar-icon-btn{
    width:34px;
    height:34px;
  }
  /* Keep avatar disc 40px (same as feed) so initials stay centered */
  .futuron-topbar-avatar-btn{
    width:40px;
    height:40px;
  }
}

.futuron-app-shell .futuron-emp-nav--bottom{
  display:block;
}
/* Avoid transform on the nav root — it traps position:fixed More sheet. */
@media (min-width:721px){
  .futuron-app-shell .futuron-emp-nav-scroll{
    max-width:480px;
  }
  .futuron-app-shell--wide .futuron-emp-nav-scroll{
    max-width:720px;
  }
}

body.futuron-app-body .site,
body.futuron-app-body .site-content,
body.futuron-app-body .content-area,
body.futuron-app-body .entry-content,
body.futuron-app-body .page-content,
body.futuron-app-body .hentry,
body.futuron-app-body #content,
body.futuron-app-body #primary,
body.futuron-app-body #main,
body.futuron-app-body main.site-main{
  margin:0 !important;
  padding:0 !important;
  max-width:none !important;
  width:100% !important;
}

.futuron-app-shell .futuron-sig-gate{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:calc(100dvh - 120px);
  padding:8px 0 16px;
}
.futuron-app-shell .lock-card{
  width:100%;
  max-width:360px;
  margin:0 auto;
  padding:22px 18px 24px;
  text-align:center;
  background:#fff;
  border-radius:20px;
  box-shadow:var(--shadow);
  border:1px solid rgba(15,27,56,0.06);
}
/* Light cards: light-surface logo (navy/teal mark) — no plate needed */
.futuron-app-shell .lock-logo{
  width:96px;
  height:96px;
  max-width:96px;
  max-height:96px;
  margin:0 auto 12px;
  display:block;
  object-fit:contain;
  border-radius:18px;
  background:transparent;
  padding:4px;
  box-sizing:border-box;
  border:0;
  box-shadow:none;
}
.futuron-app-shell .lock-title{
  font-size:20px;
  font-weight:800;
  color:#0f1b38;
  margin:4px 0;
  line-height:1.25;
}
.futuron-app-shell .lock-sub{
  color:#1f7f9b;
  font-weight:700;
  font-size:13px;
  margin:0 0 6px;
}
.futuron-app-shell .lock-desc{
  color:#2a556e;
  font-size:13px;
  line-height:1.45;
  margin:0 0 12px;
}
.futuron-hub-gate-card{
  max-width:380px;
}
.futuron-hub-gate-notice{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  line-height:1.45;
  text-align:left;
}
.futuron-hub-gate-notice--success{
  background:#e8fff0;
  color:#1d6b34;
  border:1px solid #bfe8cb;
}
.futuron-hub-gate-notice--error{
  background:#fff1f1;
  color:#9b1c1c;
  border:1px solid #f2c7c7;
}
.futuron-hub-gate-alt{
  margin:14px 0 0;
  font-size:13px;
  color:#556170;
}
.futuron-hub-gate-alt a{
  color:#1f4d73;
  font-weight:700;
  text-decoration:none;
}
.futuron-hub-request-form{
  display:grid;
  gap:10px;
  margin-top:12px;
  text-align:left;
}
.futuron-hub-request-form label{
  display:grid;
  gap:4px;
  font-size:12px;
  font-weight:700;
  color:#2a556e;
}
.futuron-hub-request-form .futuron-hub-readonly-field{
  background:#f1f5f9 !important;
  color:#334155 !important;
  cursor:default;
}
.futuron-hub-request-form .futuron-hub-field-hint{
  display:block;
  margin-top:4px;
  font-size:11px;
  font-weight:500;
  color:#64748b;
  line-height:1.35;
}
.futuron-hub-request-form input{
  width:100%;
  border:1px solid #d3e3ed;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
}
.futuron-hub-request-form .lock-button{
  width:100%;
  margin-top:4px;
  border:none;
  cursor:pointer;
}
.futuron-app-shell .lock-button{
  display:inline-block;
  margin-top:8px;
  border:none;
  border-radius:12px;
  padding:11px 20px;
  background:linear-gradient(180deg,#0f1b38,#1f4d73);
  color:#fff !important;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  box-shadow:0 10px 20px rgba(15,27,56,0.22);
}
/* ===== Desktop shell: apps rail + hide bottom nav ===== */
.futuron-apps-rail{
  display:none;
}
.futuron-app-body{
  width:100%;
  min-width:0;
}
.futuron-app-body--with-rail{
  display:block;
}

@media (min-width:1024px){
  .futuron-app-shell.futuron-app-shell--has-rail{
    padding-bottom:24px !important;
  }
  .futuron-app-shell .futuron-emp-nav--bottom{
    display:none !important;
  }
  .futuron-app-body--with-rail{
    display:flex;
    align-items:flex-start;
    gap:0;
    max-width:1440px;
    margin:0 auto;
    width:100%;
    padding:12px 16px 24px;
    box-sizing:border-box;
  }
  .futuron-apps-rail{
    display:block;
    flex:0 0 252px;
    width:252px;
    position:sticky;
    top:calc(env(safe-area-inset-top, 0px) + 72px);
    /* No inner scroll — page scrolls; rail stays compact */
    max-height:none;
    overflow:visible;
    align-self:flex-start;
    z-index:5;
  }
  .futuron-apps-rail-inner{
    background:rgba(255,255,255,0.72);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border:1px solid rgba(15,27,56,0.08);
    border-radius:18px;
    padding:10px 8px 12px;
    box-shadow:0 10px 28px rgba(10,35,64,0.06);
  }
  .futuron-apps-rail-user{
    display:flex;
    align-items:center;
    gap:10px;
    padding:6px 8px 10px;
    margin:0 0 6px;
    border-bottom:1px solid rgba(15,27,56,0.06);
    text-decoration:none;
    color:inherit;
    border-radius:12px;
  }
  a.futuron-apps-rail-user:hover{
    background:rgba(47,122,138,0.08);
  }
  .futuron-apps-rail-avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
    background:#0e1c3b;
  }
  .futuron-apps-rail-avatar--initials{
    display:grid;
    place-items:center;
    box-sizing:border-box;
    line-height:1;
    letter-spacing:0;
    text-indent:0;
    text-align:center;
    color:#fff;
    font-size:14px;
    font-weight:800;
    padding:0;
    margin:0;
    direction:ltr;
    unicode-bidi:isolate;
  }
  .futuron-apps-rail-user-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:1px;
  }
  .futuron-apps-rail-user-name{
    font-size:13px;
    font-weight:800;
    color:#0f1b38;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .futuron-apps-rail-user-role{
    font-size:11px;
    font-weight:600;
    color:#556170;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .futuron-apps-rail-label{
    margin:2px 8px 4px;
    font-size:10px;
    font-weight:800;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:#7a8899;
  }
  .futuron-apps-rail-nav{
    display:flex;
    flex-direction:column;
    gap:1px;
  }
  .futuron-apps-rail-link{
    display:flex;
    align-items:center;
    gap:9px;
    padding:7px 8px;
    border-radius:11px;
    text-decoration:none;
    color:#0f1b38;
    font-size:12.5px;
    font-weight:700;
    transition:background .12s ease, color .12s ease;
  }
  .futuron-apps-rail-link:hover{
    background:rgba(47,122,138,0.1);
  }
  .futuron-apps-rail-link.is-active{
    background:linear-gradient(180deg, rgba(14,28,59,0.96), rgba(21,42,77,0.96));
    color:#fff;
  }
  .futuron-apps-rail-link.is-locked{
    opacity:0.55;
    cursor:not-allowed;
  }
  .futuron-apps-rail-icon{
    position:relative;
    width:26px;
    height:26px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    background:rgba(47,122,138,0.12);
    color:#1f4d73;
  }
  .futuron-apps-rail-link.is-active .futuron-apps-rail-icon{
    background:rgba(255,255,255,0.16);
    color:#fff;
  }
  .futuron-apps-rail-icon svg{
    width:16px;
    height:16px;
    fill:currentColor;
  }
  .futuron-apps-rail-badge{
    position:absolute;
    top:-5px;
    right:-6px;
    min-width:16px;
    height:16px;
    padding:0 4px;
    border-radius:999px;
    background:#c62828;
    color:#fff;
    font-size:10px;
    font-weight:800;
    line-height:16px;
    text-align:center;
    box-shadow:0 0 0 2px #fff;
  }
  .futuron-apps-rail-link.is-active .futuron-apps-rail-badge{
    box-shadow:0 0 0 2px #152a4d;
  }
  .futuron-apps-rail-link-label{
    min-width:0;
    flex:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .futuron-apps-rail-lock{
    font-size:10px;
    font-weight:700;
    color:#8896a6;
  }
  .futuron-app-body--with-rail > .futuron-app-main{
    flex:1 1 auto;
    min-width:0;
    max-width:none;
    margin:0;
    padding:0 6px 0 10px;
  }
  .futuron-app-shell--workspace .futuron-app-body--with-rail > .futuron-app-main{
    max-width:920px;
  }
  .futuron-app-shell--wide:not(.futuron-app-shell--workspace) .futuron-app-body--with-rail > .futuron-app-main{
    max-width:1100px;
  }
  /* Workspace social layout: fill the main column */
  .futuron-app-shell--workspace .futuron-workspace-social{
    max-width:100%;
  }
}

@media (min-width:1280px){
  .futuron-apps-rail{
    flex-basis:260px;
    width:260px;
  }
  .futuron-app-shell--workspace .futuron-app-body--with-rail > .futuron-app-main{
    max-width:980px;
  }
  /* 3-column desktop: apps | feed | company media — centered as a group */
  .futuron-app-shell--has-media-rail .futuron-app-body--with-rail{
    max-width:1280px;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    padding:12px 24px 28px;
    gap:18px;
    justify-content:center;
  }
  .futuron-app-shell--has-media-rail .futuron-apps-rail{
    flex:0 0 248px;
    width:248px;
  }
  .futuron-app-shell--has-media-rail .futuron-app-body--with-rail > .futuron-app-main{
    flex:0 1 640px;
    width:100%;
    max-width:640px;
    margin:0;
    padding:0;
  }
  .futuron-app-shell--has-media-rail .futuron-media-rail{
    flex:0 0 280px;
    width:280px;
  }
  .futuron-app-shell--has-media-rail.futuron-app-shell--workspace .futuron-workspace-social{
    max-width:100%;
  }
}

@media (min-width:1440px){
  .futuron-app-shell--has-media-rail .futuron-app-body--with-rail{
    max-width:1320px;
    padding:14px 32px 28px;
    gap:22px;
  }
  .futuron-app-shell--has-media-rail .futuron-app-body--with-rail > .futuron-app-main{
    flex-basis:660px;
    max-width:660px;
  }
}

@media (min-width:1600px){
  .futuron-app-shell--has-media-rail .futuron-app-body--with-rail{
    max-width:1360px;
    padding:16px 40px 32px;
    gap:24px;
  }
  .futuron-app-shell--has-media-rail .futuron-app-body--with-rail > .futuron-app-main{
    flex-basis:680px;
    max-width:680px;
  }
}

/* Desktop rail — Admin section */
.futuron-apps-rail-label--admin{
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid rgba(15,27,56,0.08);
}
.futuron-apps-rail-link--admin{
  background:rgba(15,27,56,0.04);
}
.futuron-apps-rail-link--admin:hover{
  background:rgba(15,27,56,0.1);
}
.futuron-apps-rail-link--admin .futuron-apps-rail-icon{
  background:linear-gradient(160deg,#0e1c3b 0%,#1f4d73 100%);
  color:#fff;
}
.futuron-apps-rail-ext{
  margin-inline-start:auto;
  font-size:12px;
  opacity:0.55;
  font-weight:700;
}

/* ===== Desktop right: Company Media promo rail (Hub/Workspace) ===== */
.futuron-media-rail{display:none;}
@media (min-width:1280px){
  .futuron-app-shell--has-media-rail .futuron-media-rail{
    display:block;
    flex:0 0 280px;
    width:280px;
    position:sticky;
    top:calc(env(safe-area-inset-top, 0px) + 72px);
    align-self:flex-start;
    z-index:4;
    /* No inner scroll — page scrolls with the feed */
    max-height:none;
    overflow:visible;
    padding:0;
    box-sizing:border-box;
  }
  .futuron-media-rail-inner{display:flex;flex-direction:column;gap:8px;}
  .futuron-media-rail-head{
    display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 2px;
  }
  .futuron-media-rail-kicker{
    font-size:12px;font-weight:800;letter-spacing:0.04em;text-transform:uppercase;color:#6b7a8b;
  }
  .futuron-media-rail-all{font-size:12px;font-weight:700;color:#1f4d73;text-decoration:none;}
  .futuron-media-rail-all:hover{text-decoration:underline;}
  .futuron-media-rail-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
  .futuron-media-rail-card{
    background:#fff;border:1px solid rgba(15,27,56,0.08);border-radius:14px;overflow:hidden;
    box-shadow:0 8px 22px rgba(10,35,64,0.07);
  }
  .futuron-media-rail-card.is-important{
    border-color:rgba(201,139,46,0.4);box-shadow:0 10px 26px rgba(201,139,46,0.14);
  }
  .futuron-media-rail-card-link{display:block;text-decoration:none;color:inherit;}
  .futuron-media-rail-thumb{
    display:block;position:relative;aspect-ratio:16/9;background:#0f1b38;overflow:hidden;
  }
  .futuron-media-rail-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
  .futuron-media-rail-thumb-fallback{
    position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;
  }
  .futuron-media-rail-play{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:36px;height:36px;border-radius:999px;background:rgba(0,0,0,0.55);color:#fff;
    display:inline-flex;align-items:center;justify-content:center;font-size:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
  }
  .futuron-media-rail-body{display:flex;flex-direction:column;gap:4px;padding:10px 12px 8px;}
  .futuron-media-rail-badge{
    align-self:flex-start;padding:2px 7px;border-radius:999px;
    background:linear-gradient(180deg,#c98b2e,#a66f12);color:#fff;
    font-size:9px;font-weight:800;letter-spacing:0.05em;text-transform:uppercase;
  }
  .futuron-media-rail-title{
    font-size:13px;font-weight:800;line-height:1.35;color:#0f1b38;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .futuron-media-rail-desc{
    font-size:12px;line-height:1.4;color:#556170;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .futuron-media-rail-actions{display:flex;gap:6px;padding:0 10px 10px;}
  .futuron-media-rail-act{
    flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;
    min-height:30px;padding:4px 8px;border-radius:9px;border:1px solid rgba(15,27,56,0.1);
    background:#f6f9fc;color:#1f4d73;font-size:11px;font-weight:800;text-decoration:none;
  }
  .futuron-media-rail-act:hover{background:#eef5fb;}
  .futuron-media-rail-act--wa{
    background:linear-gradient(180deg,#e8fff0,#d4f7df);border-color:rgba(37,160,70,0.22);color:#1d6b34;
  }
}
