.zlldhub-notice-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:flex-start;
  background:var(--zlldhub-surface-bg,#fff);
  border:1px solid var(--zlldhub-card-border,#e8edf3);
  border-radius:var(--zlldhub-card-radius,18px);
  padding:18px;
  box-shadow:var(--zlldhub-card-shadow,0 10px 28px rgba(15,23,42,.045));
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  overflow:hidden;
}
.zlldhub-notice-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#d9e3ef;
}
.zlldhub-notice-card:hover{
  border-color:var(--zlldhub-card-border,#d9e5f1);
  box-shadow:var(--zlldhub-hover-shadow,0 16px 38px rgba(15,23,42,.07));
  transform:translateY(-1px);
}
.zlldhub-notice-card.is-unread{
  border-color:var(--zlldhub-accent,#003b73);
  box-shadow:var(--zlldhub-active-accent-shadow,0 0 0 4px rgba(244,191,42,.12));
}
.zlldhub-notice-card.is-normal:before{background:var(--zlldhub-accent,#003b73);}
.zlldhub-notice-card.is-important:before{background:var(--zlldhub-warning,#f4bf2a);}
.zlldhub-notice-card.is-urgent:before{background:#d63638;}
.zlldhub-notice-card__main{min-width:0;}
.zlldhub-notice-card__meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--zlldhub-muted,#667085);
  font-size:12px;
  margin:0 0 9px;
}
.zlldhub-notice-card__meta span:not(.zlldhub-notice-badge):not(.zlldhub-notice-new):not(.zlldhub-notice-read-status){font-weight:600;}
.zlldhub-notice-card h3{margin:0 0 9px;font-size:19px;line-height:1.25;color:var(--zlldhub-text,#0b1f3a);}
.zlldhub-notice-card__content{color:var(--zlldhub-muted,#667085);font-size:14px;line-height:1.58;}
.zlldhub-notice-card__content p:first-child{margin-top:0;}
.zlldhub-notice-card__content p:last-child{margin-bottom:0;}
.zlldhub-notice-card.is-compact .zlldhub-notice-card__content{max-width:760px;}
.zlldhub-notice-card__actions{
  display:flex;
  gap:8px;
  align-items:flex-start;
  flex-wrap:wrap;
  justify-content:flex-end;
  min-width:260px;
}
.zlldhub-notice-badge,.zlldhub-notice-new,.zlldhub-notice-read-status,.zlldhub-notice-pinned,.zlldhub-notice-expires{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  border-radius:999px;
  padding:4px 9px;
  font-size:11px;
  font-weight:850;
  line-height:1;
  background:#edf3fb;
  color:var(--zlldhub-accent,#003b73);
}
.zlldhub-notice-card.is-important .zlldhub-notice-badge,
.zlldhub-focus-notice.is-important .zlldhub-notice-badge{background:#fff7db;color:#936400;}
.zlldhub-notice-card.is-urgent .zlldhub-notice-badge,
.zlldhub-focus-notice.is-urgent .zlldhub-notice-badge{background:#fee2e2;color:#991b1b;}
.zlldhub-notice-new{background:#d63638;color:#fff;}
.zlldhub-notice-read-status{background:#e8f5ed;color:#166534;}
.zlldhub-notice-pinned{background:#fef3c7;color:#92400e;}
.zlldhub-notice-expires{background:#f8fafc;color:#475569;border:1px solid #e2e8f0;}
.zlldhub-notices-panel{margin-top:22px;}
.zlldhub-notices-mini-list{display:flex;flex-direction:column;gap:12px;}
.zlldhub-notice-action.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:10px 16px;
  border-radius:var(--zlldhub-button-radius,11px);
  font-size:12.5px;
  font-weight:850;
  letter-spacing:.015em;
  line-height:1;
  text-align:center;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:none;
  cursor:pointer;
}
.zlldhub-notice-action.button.zlldhub-notice-action--primary{background:var(--zlldhub-button-bg,var(--zlldhub-accent,#003b73));color:var(--zlldhub-button-text,#fff);border-color:var(--zlldhub-button-bg,var(--zlldhub-accent,#003b73));box-shadow:0 10px 22px rgba(0,59,115,.14);}
.zlldhub-notice-action.button.zlldhub-notice-action--primary:hover{color:var(--zlldhub-button-text-hover,#fff);background:var(--zlldhub-button-bg-hover,#002f5c);border-color:var(--zlldhub-button-bg-hover,#002f5c);}
.zlldhub-notice-action.button.zlldhub-notice-action--secondary{background:var(--zlldhub-surface-bg,#fff);color:var(--zlldhub-accent,#003b73);border:1px solid var(--zlldhub-card-border,#d9e3ef);}
.zlldhub-notice-action.button.zlldhub-notice-action--secondary:hover{background:#f7f9fc;color:var(--zlldhub-button-bg-hover,#002f5c);border-color:var(--zlldhub-card-border,#c9d7e6);}
.zlldhub-notice-action.button.zlldhub-notice-action--ghost{background:transparent;color:#667085;border:1px solid transparent;}
.zlldhub-notice-action.button.zlldhub-notice-action--ghost:hover{background:#f7f9fc;color:#334155;border-color:#e2e8f0;}
.zlldhub-notice-action[disabled]{opacity:.55;cursor:wait;}

.zlldhub-focus-notices{position:relative;display:inline-flex;align-items:center;margin-left:8px;z-index:1000;}
.zlldhub-focus-notices__button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;min-height:38px;padding:0!important;border:1px solid #e5e7eb!important;border-radius:0!important;background:#ffffff!important;color:#111827!important;-webkit-text-fill-color:#111827!important;cursor:pointer;box-shadow:none!important;transition:background .18s ease,color .18s ease,border-color .18s ease;}
.zlldhub-focus-notices__button:hover{background:#f3f4f6!important;color:#111827!important;-webkit-text-fill-color:#111827!important;}
.zlldhub-focus-notices__count{position:absolute;top:1px;right:1px;min-width:18px;height:18px;border-radius:999px;background:#d63638;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;}
.zlldhub-focus-notices__panel{position:absolute;top:calc(100% + 10px);right:0;width:min(410px,calc(100vw - 24px));background:#fff;color:#0b1f3a;border:1px solid #e8edf3;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.18);overflow:hidden;}
.zlldhub-focus-notices__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:15px 16px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,#fff,#f8fbff);}
.zlldhub-focus-notices__head strong{display:block;font-size:15px;line-height:1.2;}
.zlldhub-focus-notices__head span{display:block;margin-top:3px;color:#667085;font-size:12px;}
.zlldhub-focus-notices__title{min-width:0;}
.zlldhub-focus-notices__account-link{display:inline-flex;align-items:center;gap:5px;margin-top:8px;color:var(--zlldhub-accent,#003b73);font-size:12.5px;font-weight:850;line-height:1;text-decoration:none;}
.zlldhub-focus-notices__account-link:hover{color:var(--zlldhub-button-bg-hover,#002f5c);text-decoration:none;}
.zlldhub-focus-notices__account-link span{display:inline;margin:0;color:inherit;font-size:14px;line-height:1;}
.zlldhub-focus-notices__head button{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#667085;}
.zlldhub-focus-notices__filters{display:flex;gap:7px;padding:10px 10px 0;background:#fff;overflow:auto;-webkit-overflow-scrolling:touch;}
.zlldhub-focus-notices__filters button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:7px 10px;border:1px solid #e8edf3;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;font-weight:850;line-height:1;white-space:nowrap;cursor:pointer;}
.zlldhub-focus-notices__filters button:hover{background:#f1f5f9;color:var(--zlldhub-accent,#003b73);}
.zlldhub-focus-notices__filters button.is-active{background:var(--zlldhub-button-bg,var(--zlldhub-accent,#003b73));border-color:var(--zlldhub-button-bg,var(--zlldhub-accent,#003b73));color:var(--zlldhub-button-text,#fff);box-shadow:0 8px 18px rgba(0,59,115,.13);}
.zlldhub-focus-notices__filters span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#e9eef5;color:#40516a;font-size:11px;font-weight:850;}
.zlldhub-focus-notices__filters button.is-active span{background:rgba(255,255,255,.2);color:inherit;}
.zlldhub-focus-notice[hidden],.zlldhub-focus-notices__filter-empty[hidden]{display:none!important;}
.zlldhub-focus-notices__list{max-height:430px;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:10px;}
.zlldhub-focus-notice{position:relative;border:1px solid #e8edf3;border-radius:14px;padding:13px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.035);}
.zlldhub-focus-notice.is-unread{border-color:var(--zlldhub-accent,#003b73);background:#f8fbff;}
.zlldhub-focus-notice__meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;}
.zlldhub-focus-notice h4{margin:9px 0 6px;font-size:15px;line-height:1.3;color:#0b1f3a;}
.zlldhub-focus-notice__expires{display:inline-flex;margin:-1px 0 8px;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;line-height:1;}
.zlldhub-focus-notice p{margin:0 0 11px;color:#667085;font-size:13px;line-height:1.45;}
.zlldhub-focus-notice__actions{display:flex;gap:8px;flex-wrap:wrap;}
.zlldhub-focus-notice .zlldhub-notice-action.button{min-height:34px;padding:8px 11px;font-size:11.5px;}
.zlldhub-focus-notices__empty{padding:14px 16px;border:1px dashed #d9e3ef;border-radius:13px;background:#f8fbff;color:#667085;font-size:13px;line-height:1.5;}
.zlldhub-focus-notices__empty strong{display:block;color:#0b1f3a;margin-bottom:4px;}

.zlldhub-notice-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.56);}
.zlldhub-notice-modal[hidden]{display:none!important;}
.zlldhub-notice-modal__dialog{width:min(720px,100%);max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;background:#fff;color:#0b1f3a;border-radius:22px;box-shadow:0 30px 90px rgba(15,23,42,.28);overflow:hidden;}
.zlldhub-notice-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #edf2f7;background:linear-gradient(180deg,#fff,#f8fbff);}
.zlldhub-notice-modal__head h3{margin:7px 0 0;font-size:22px;line-height:1.25;color:#0b1f3a;}
.zlldhub-notice-modal__close{border:0;background:#f1f5f9;color:#475569;border-radius:999px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer;}
.zlldhub-notice-modal__body{padding:22px;overflow:auto;color:#475569;font-size:15px;line-height:1.65;}
.zlldhub-notice-modal__body p:first-child{margin-top:0;}
.zlldhub-notice-modal__body p:last-child{margin-bottom:0;}
.zlldhub-notice-modal__foot{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #edf2f7;background:#fff;}
.zlldhub-notice-modal__foot .button{margin:0;}
body.zlldhub-notice-modal-open{overflow:hidden;}

@media(max-width:782px){
  .zlldhub-notice-card{grid-template-columns:1fr;}
  .zlldhub-notice-card__actions{justify-content:flex-start;margin-top:2px;min-width:0;}
  .zlldhub-notice-action.button{width:100%;}
  .zlldhub-focus-notices__panel{right:-44px;}
  .zlldhub-notice-modal{padding:14px;align-items:flex-end;}
  .zlldhub-notice-modal__dialog{max-height:calc(100vh - 28px);border-radius:18px;}
  .zlldhub-notice-modal__head h3{font-size:19px;}
  .zlldhub-notice-modal__foot{display:flex;flex-direction:column;}
  .zlldhub-notice-modal__foot .button{width:100%;}
}

/* Focus Mode dark toolbar hardening — keeps Avisos icon aligned with Full Screen/Dark Mode. */
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button,
html.zlldhub-focus-dark .zlldhub-focus-notices__button,
body.zlldhub-focus-dark .zlldhub-focus-notices__button{
  background:#111111!important;
  color:#ffffff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:none!important;
}
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button:hover,
html.zlldhub-focus-dark .zlldhub-focus-notices__button:hover,
body.zlldhub-focus-dark .zlldhub-focus-notices__button:hover{
  background:#000000!important;
  color:#ffffff!important;
}
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button .dashicons,
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button .dashicons:before,
html.zlldhub-focus-dark .zlldhub-focus-notices__button .dashicons,
html.zlldhub-focus-dark .zlldhub-focus-notices__button .dashicons:before,
body.zlldhub-focus-dark .zlldhub-focus-notices__button .dashicons,
body.zlldhub-focus-dark .zlldhub-focus-notices__button .dashicons:before{
  color:#ffffff!important;
}


/* Toolbar active state — use LearnDash primary color consistently in light and dark modes. */
.zlldhub-focus-notices__button[aria-expanded="true"],
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button[aria-expanded="true"],
html.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"],
body.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"],
body.ldfmp-focus-mode-theme-dark .zlldhub-focus-notices__button[aria-expanded="true"]{
  background:var(--zlldhub-learndash-active,#00a2e8)!important;
  background-color:var(--zlldhub-learndash-active,#00a2e8)!important;
  border-color:var(--zlldhub-learndash-active,#00a2e8)!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  box-shadow:none!important;
}
.zlldhub-focus-notices__button[aria-expanded="true"] *,
.zlldhub-focus-notices__button[aria-expanded="true"] .dashicons:before,
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button[aria-expanded="true"] *,
html.zlldhub-focus-dark-pending .zlldhub-focus-notices__button[aria-expanded="true"] .dashicons:before,
html.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"] *,
html.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"] .dashicons:before,
body.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"] *,
body.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"] .dashicons:before,
body.ldfmp-focus-mode-theme-dark .zlldhub-focus-notices__button[aria-expanded="true"] *,
body.ldfmp-focus-mode-theme-dark .zlldhub-focus-notices__button[aria-expanded="true"] .dashicons:before{
  background:transparent!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  fill:#ffffff!important;
  stroke:#ffffff!important;
}

/* v0.5.27 — the unread count must stay a red bubble with white number whether Avisos is active or not. */
.zlldhub-focus-notices__button .zlldhub-focus-notices__count,
.zlldhub-focus-notices__button[aria-expanded="true"] .zlldhub-focus-notices__count,
body.ldfmp-focus-mode-theme-dark .zlldhub-focus-notices__button .zlldhub-focus-notices__count,
body.ldfmp-focus-mode-theme-dark .zlldhub-focus-notices__button[aria-expanded="true"] .zlldhub-focus-notices__count,
body.zlldhub-focus-dark .zlldhub-focus-notices__button .zlldhub-focus-notices__count,
body.zlldhub-focus-dark .zlldhub-focus-notices__button[aria-expanded="true"] .zlldhub-focus-notices__count{
  background:#d63638!important;
  background-color:#d63638!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border:0!important;
  box-shadow:none!important;
}

/* v0.5.38 — align Avisos button with the other Focus Mode controls and keep distance from the user area. */
.zlldhub-focus-notices{
  margin-left:8px!important;
  margin-right:12px!important;
  flex:0 0 auto!important;
}
.zlldhub-focus-notices__button{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  max-width:38px!important;
  max-height:38px!important;
  flex:0 0 38px!important;
  box-sizing:border-box!important;
  padding:0!important;
  line-height:1!important;
  overflow:visible!important;
}
.zlldhub-focus-notices__button .dashicons,
.zlldhub-focus-notices__button .dashicons:before{
  width:20px!important;
  height:20px!important;
  font-size:20px!important;
  line-height:20px!important;
}
.zlldhub-focus-notices__count{
  top:-6px!important;
  right:-6px!important;
  min-width:18px!important;
  width:auto!important;
  height:18px!important;
  line-height:18px!important;
  box-sizing:border-box!important;
  z-index:2!important;
}

/* v0.5.43 — Focus Mode: centralize Avisos panel on mobile/compact layout only. */
@media (max-width: 782px){
  .zlldhub-focus-notices__panel{
    position:fixed!important;
    top:50%!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translate(-50%,-50%)!important;
    width:min(520px, calc(100vw - 32px))!important;
    max-width:calc(100vw - 32px)!important;
    max-height:calc(100dvh - 48px)!important;
    flex-direction:column!important;
    border-radius:18px!important;
    z-index:999999!important;
    overflow:hidden!important;
  }

  .zlldhub-focus-notices__panel:not([hidden]){
    display:flex!important;
  }

  .zlldhub-focus-notices__list{
    flex:1 1 auto!important;
    max-height:calc(100dvh - 210px)!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  .zlldhub-focus-notices__head,
  .zlldhub-focus-notices__filters{
    flex:0 0 auto!important;
  }
}


/* v0.5.96 — Hide tool on tablet/mobile when disabled in admin. */
@media (max-width:782px){
  .zlldhub-hide-mobile{
    display:none!important;
  }
}
