.notification-wrap { position: relative; flex: 0 0 auto; }
.notification-button { position: relative; }
.notification-badge {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid #08080b;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 7px;
  font-weight: 850;
  line-height: 1;
}
.notification-panel {
  position: absolute;
  z-index: 2300;
  top: calc(100% + 13px);
  right: -58px;
  width: min(410px, calc(100vw - 24px));
  max-height: min(690px, calc(100vh - var(--header-height) - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(11,11,15,.92);
  box-shadow: 0 32px 90px rgba(0,0,0,.68);
  backdrop-filter: blur(28px) saturate(145%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: .2s ease;
}
.notification-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.notification-head { position: sticky; z-index: 2; top: -10px; display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; background: linear-gradient(180deg, rgba(11,11,15,.98) 76%, transparent); }
.notification-head div { display: grid; gap: 3px; }
.notification-head span { color: var(--accent); font-size: 7px; font-weight: 850; letter-spacing: .18em; }
.notification-head strong { font-size: 15px; }
.notification-close { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: rgba(255,255,255,.05); font: inherit; font-size: 18px; cursor: pointer; }
.notification-list { display: grid; gap: 7px; }
.notification-empty { margin: 0; padding: 28px 14px; color: var(--muted); font-size: 10px; text-align: center; }
.notification-item { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); }
.notification-item.read { opacity: .66; }
.notification-item-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #6ca8ff; box-shadow: 0 0 12px currentColor; }
.notification-item.type-new .notification-item-dot { background: var(--accent); }
.notification-item.type-maintenance .notification-item-dot { background: #ffbd48; }
.notification-item div { min-width: 0; }
.notification-item strong { display: block; font-size: 10px; line-height: 1.35; }
.notification-item p { margin: 4px 0 6px; color: var(--muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-item small { color: var(--muted-2); font-size: 7px; }
.notification-open-action { align-self: center; padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #fff; background: rgba(255,255,255,.055); font: inherit; font-size: 7px; font-weight: 760; cursor: pointer; }
.notification-read-all { width: 100%; margin-top: 8px; padding: 10px; border: 0; border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.05); font: inherit; font-size: 8px; cursor: pointer; }
.notification-composer { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid rgba(255,199,66,.21); border-radius: 16px; background: linear-gradient(145deg, rgba(92,58,0,.18), rgba(255,255,255,.025)); }
.notification-composer-title { display: grid; gap: 2px; }
.notification-composer-title strong { color: #ffe6a0; font-size: 11px; }
.notification-composer-title span { color: var(--muted); font-size: 8px; }
.notification-composer label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }
.notification-composer input, .notification-composer textarea, .notification-composer select { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 9px 10px; outline: 0; color: #fff; background: rgba(0,0,0,.28); font: inherit; font-size: 9px; }
.notification-composer textarea { min-height: 70px; resize: vertical; }
.notification-composer input:focus, .notification-composer textarea:focus, .notification-composer select:focus { border-color: rgba(255,210,88,.56); box-shadow: 0 0 0 3px rgba(255,190,50,.1); }
.notification-compose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notification-compose-status { min-height: 14px; margin: 0; color: #d8be78; font-size: 8px; line-height: 1.4; }
.notification-send { padding: 10px 12px; border: 0; border-radius: 10px; color: #1c1200; background: linear-gradient(135deg, #fff0a6, #eebc3d); font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; }


@media (max-width: 760px) {
  .notification-panel { position: fixed; top: 72px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 84px); }
  .notification-compose-grid { grid-template-columns: 1fr; }
}
body.reduced-transparency .notification-panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: #111116; }
body.high-contrast .notification-panel { border-color: rgba(255,255,255,.45); }
body.reduced-motion .notification-panel { transition: none !important; }
