/* ELIZNA ADMIN R13 R7.4 — GLOBAL USER HEADER + NOTIFICATION POLISH
   Additive visual layer only. Does not mutate React-owned header DOM. */

#elizna-r13-global-account{
  position:fixed;
  top:17px;
  right:24px;
  z-index:2147482400;
  min-width:330px;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;
  font-family:inherit;
}
#elizna-r13-global-account *{box-sizing:border-box}
#elizna-r13-global-account .r13-global-account-shell{
  pointer-events:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-height:50px;
  padding:5px 5px 5px 12px;
  border:1px solid rgba(109,87,46,.13);
  border-radius:16px;
  background:rgba(255,255,255,.975);
  box-shadow:0 8px 28px rgba(55,42,24,.06);
  backdrop-filter:blur(14px);
}
.r13-global-bell-wrap,.r13-global-profile-wrap{position:relative}
.r13-global-bell,
.r13-global-profile-button{
  appearance:none;
  border:0;
  background:transparent;
  color:#372e27;
  cursor:pointer;
}
.r13-global-bell{
  position:relative;
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#5c5145;
}
.r13-global-bell svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .16s ease,color .16s ease;
}
.r13-global-bell:hover svg{
  color:#8b6a2e;
  transform:translateY(-1px);
}
.r13-global-bell[aria-expanded="true"]{
  background:#f7f0df;
  color:#8b6a2e;
}
.r13-global-bell:hover,.r13-global-profile-button:hover{background:#faf6eb}
.r13-global-bell b{
  position:absolute;
  top:-1px;
  right:-2px;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:#8f4f44;
  color:white;
  font:700 10px/1 inherit;
  border:2px solid white;
  box-shadow:0 2px 7px rgba(83,42,34,.18);
}
.r13-global-bell b[hidden]{display:none}
.r13-global-profile-button{
  height:42px;
  min-width:226px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 8px 4px 5px;
  border-radius:13px;
  text-align:left;
}
.r13-global-avatar{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#f4efe2;
  border:1px solid rgba(111,86,41,.18);
  color:#755a2c;
}
.r13-global-avatar.large{width:52px;height:52px;flex-basis:52px}
.r13-global-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.r13-global-avatar i{font-style:normal;font-weight:700;font-size:14px}
.r13-global-avatar.large i{font-size:18px}
.r13-global-identity{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.r13-global-identity strong{
  max-width:155px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:13px;
  font-weight:700;
  color:#302921;
}
.r13-global-identity small{
  margin-top:3px;
  max-width:155px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:10px;
  letter-spacing:.055em;
  text-transform:uppercase;
  color:#8a8177;
}
.r13-global-chevron{font-size:15px;color:#968876}
.r13-global-popover{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:370px;
  max-height:min(560px,calc(100vh - 92px));
  overflow:auto;
  border:1px solid rgba(109,87,46,.14);
  border-radius:18px;
  background:rgba(255,255,255,.99);
  box-shadow:0 24px 70px rgba(48,38,26,.18);
  color:#302921;
}
.r13-global-popover[hidden]{display:none}
.r13-global-popover header{
  position:sticky;
  top:0;
  z-index:2;
  min-height:68px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid rgba(109,87,46,.10);
  background:rgba(255,255,255,.98);
}
.r13-global-popover header div{display:flex;flex-direction:column}
.r13-global-popover header span{
  font-size:9px;
  font-weight:700;
  letter-spacing:.11em;
  color:#a17b39;
}
.r13-global-popover header strong{margin-top:3px;font-size:16px}
.r13-global-popover header a{
  color:#6a5740;
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}
.r13-global-notification-list{padding:7px}
.r13-global-notification{
  width:100%;
  appearance:none;
  border:0;
  border-bottom:1px solid rgba(109,87,46,.08);
  background:transparent;
  padding:12px 10px;
  display:grid;
  grid-template-columns:8px 1fr;
  gap:10px;
  text-align:left;
  cursor:pointer;
  color:inherit;
}
.r13-global-notification:last-child{border-bottom:0}
.r13-global-notification:hover{background:#fbf8f0;border-radius:12px}
.r13-global-notification.unread{background:#fffaf0}
.r13-global-notification .sev{
  width:7px;height:7px;border-radius:50%;margin-top:5px;background:#9a948a
}
.r13-global-notification .sev.info{background:#7398bc}
.r13-global-notification .sev.attention,.r13-global-notification .sev.warning{background:#c39743}
.r13-global-notification .sev.critical,.r13-global-notification .sev.error{background:#a75248}
.r13-global-notification span{display:flex;flex-direction:column;min-width:0}
.r13-global-notification strong{font-size:12px;line-height:1.35}
.r13-global-notification small{margin-top:4px;font-size:11px;line-height:1.4;color:#766e65}
.r13-global-notification em{margin-top:7px;font-size:9px;font-style:normal;color:#aaa197}
.r13-global-empty{padding:28px 18px;text-align:center;color:#9a9186;font-size:12px}
.r13-global-profile-pop{width:320px;padding:16px}
.r13-global-profile-head{display:flex;align-items:center;gap:12px;padding:3px 2px 14px;border-bottom:1px solid rgba(109,87,46,.10)}
.r13-global-profile-head div{display:flex;flex-direction:column;min-width:0}
.r13-global-profile-head strong{font-size:14px}
.r13-global-profile-head small{margin-top:4px;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#8c8277}
.r13-global-profile-pop dl{margin:14px 0;padding:0;display:grid;gap:10px}
.r13-global-profile-pop dl div{display:flex;justify-content:space-between;gap:20px}
.r13-global-profile-pop dt{font-size:10px;color:#998f84}
.r13-global-profile-pop dd{margin:0;text-align:right;font-size:10px;font-weight:600;color:#5a5047}
.r13-global-profile-actions{display:grid;grid-template-columns:1fr auto;gap:8px;padding-top:12px;border-top:1px solid rgba(109,87,46,.10)}
.r13-global-profile-actions a,
.r13-global-profile-actions button{
  min-height:36px;
  border-radius:10px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(109,87,46,.15);
  background:#faf7ef;
  color:#4c4033;
  font:700 11px/1 inherit;
  text-decoration:none;
  cursor:pointer;
}
.r13-global-profile-actions button{background:white}
@media (max-width:900px){
  #elizna-r13-global-account{right:12px;min-width:0}
  #elizna-r13-global-account .r13-global-account-shell{padding-left:5px}
  .r13-global-profile-button{min-width:42px;width:42px;padding:4px}
  .r13-global-identity,.r13-global-chevron{display:none}
  .r13-global-popover{position:fixed;top:74px;right:10px;width:min(370px,calc(100vw - 20px))}
}

.r13-global-notifications{
  overscroll-behavior:contain;
}
.r13-global-notifications .r13-global-notification.unread strong::after{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  margin-left:7px;
  vertical-align:middle;
  border-radius:50%;
  background:#a8762f;
}
.r13-global-notifications .r13-global-notification:focus-visible,
.r13-global-bell:focus-visible,
.r13-global-profile-button:focus-visible{
  outline:2px solid rgba(168,118,47,.55);
  outline-offset:2px;
}
