/* Всплывающие меню шапки по наведению (shared/js/header-menus.js) */
.sf-hpop {
  position: fixed; z-index: 300; width: 340px; max-width: calc(100vw - 16px); max-height: 70vh; overflow-y: auto;
  padding: 6px; background: var(--card); color: var(--text); border: 1px solid var(--border-strong, var(--border)); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.sf-hpop[hidden] { display: none; }
.sf-hpop .hp-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px; font-size: 13px; }
.sf-hpop .hp-badge { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 650; }
.sf-hpop .hp-event { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.sf-hpop .hp-event:hover { background: var(--hover); }
.sf-hpop .hp-event.unread { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.sf-hpop .hp-event b { font-size: 12.5px; }
.sf-hpop .hp-event span { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sf-hpop .hp-event small { font-size: 11px; color: var(--muted); }
.sf-hpop .hp-empty { padding: 14px 10px; font-size: 12.5px; color: var(--muted); }
.sf-hpop .hp-all { display: block; margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--accent); text-align: center; text-decoration: none; }
.sf-hpop .hp-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.sf-hpop .hp-user b { display: block; font-size: 13px; }
.sf-hpop .hp-user small { display: block; font-size: 11.5px; color: var(--muted); }
.sf-hpop .hp-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 7px; font-size: 13px; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; }
.sf-hpop .hp-link:hover { background: var(--hover); color: var(--accent); }
.sf-hpop .hp-link svg { width: 16px; height: 16px; color: var(--muted); }
.sf-hpop .hp-sep { height: 1px; margin: 4px 0; background: var(--border); }

.sf-hpop .hp-head { display: flex; align-items: center; gap: 8px; }
.sf-hpop .hp-read { margin-left: auto; border: 0; background: none; color: var(--accent, #2f6bff); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.sf-hpop .hp-read:hover { text-decoration: underline; }

.sf-hpop .hp-event-title { color: inherit; text-decoration: none; }
.sf-hpop .hp-event a.ev-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sf-hpop .hp-go { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.sf-hpop .hp-go:hover { text-decoration: underline; }
