/* ChessDB.cz – nový vzhled v2 · panel Oznámení mimo search.php (profil, články) – samostatně, bez stylů search.php.
   Vzhled podle návrhu „ChessDB Oznameni" (stejně jako ve vyhledávání): panel 380 px pod zvonkem, stránka pod lištou ztmavená. */
html.cdb-v2 .cdb-notification-backdrop { position: fixed; inset: 72px 0 0 0; z-index: 65; background: rgba(2,6,23,.4); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
html.cdb-v2 .cdb-notification-panel { position: fixed; top: 80px; right: max(24px, calc((100vw - 1248px) / 2 + 24px)); z-index: 80; width: min(380px, calc(100vw - 24px)); max-height: min(580px, calc(100vh - 96px)); display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; background: var(--v2-bg); border: 1px solid var(--v2-b); border-radius: 18px; box-shadow: 0 24px 60px rgba(2,6,23,.55); font-family: var(--v2-man); color: var(--v2-t); text-align: left; }
html.cdb-v2 .cdb-notification-panel.hidden, html.cdb-v2 .cdb-notification-backdrop.hidden { display: none !important; }
html.cdb-v2 .cdb-notification-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 18px; }
html.cdb-v2 .cdb-notification-panel__title { font: 600 18px var(--v2-pop); letter-spacing: -.01em; color: var(--v2-t); }
html.cdb-v2 .cdb-notification-panel__sub { margin-top: 2px; font: 600 12.5px var(--v2-man); color: var(--v2-m); }
html.cdb-v2 .cdb-notification-panel__close { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: rgba(30,41,59,.55); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); color: var(--v2-t); font-size: 16px; cursor: pointer; transition: color .14s ease, border-color .14s ease; }
html.cdb-v2 .cdb-notification-panel__close:hover { color: var(--v2-acc); border-color: rgba(242,210,60,.45); }
html.cdb-v2 .cdb-notification-panel__meta { padding: 0 18px 12px; display: flex; align-items: center; gap: 10px; font: 600 12.5px var(--v2-man); color: var(--v2-m); border-bottom: 1px solid var(--v2-b); }
html.cdb-v2 .cdb-notification-panel__mark-all { margin-left: auto; border: 0; background: none; padding: 0; color: var(--v2-acc); font: 700 12.5px var(--v2-man); cursor: pointer; }
html.cdb-v2 .cdb-notification-panel__mark-all:hover { color: var(--v2-acc-h); }
html.cdb-v2 .cdb-notification-panel__mark-all[disabled] { display: none; }
html.cdb-v2 .cdb-notification-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
html.cdb-v2 .cdb-notification-card { position: relative; overflow: hidden; flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px 14px 14px; border-radius: 16px; background: transparent; border: 1px solid rgba(255,255,255,.05); }
html.cdb-v2 .cdb-notification-card:hover { border-color: rgba(255,255,255,.1); }
html.cdb-v2 .cdb-notification-card.is-unread { background: var(--v2-card); }
html.cdb-v2 .cdb-notification-card.is-unread::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--v2-acc); }
html.cdb-v2 .cdb-notification-card__icon { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: rgba(242,210,60,.14); color: var(--v2-acc); font-size: 16px; }
html.cdb-v2 .cdb-notification-card__body { flex: 1; min-width: 0; display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "cat pill time" "title title title" "msg msg msg" "date date date" "act act act"; align-items: center; column-gap: 6px; row-gap: 0; }
html.cdb-v2 .cdb-notification-card__eyebrow, html.cdb-v2 .cdb-notification-card__top, html.cdb-v2 .cdb-notification-card__footer { display: contents; }
html.cdb-v2 .cdb-notification-card__category { grid-area: cat; justify-self: start; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(242,210,60,.12); color: var(--v2-acc); font: 800 11px var(--v2-man); display: inline-flex; align-items: center; white-space: nowrap; }
html.cdb-v2 .cdb-notification-card__pill { grid-area: pill; justify-self: start; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--v2-acc); color: var(--v2-on); font: 800 11px var(--v2-man); display: inline-flex; align-items: center; }
html.cdb-v2 .cdb-notification-card__time { grid-area: time; justify-self: end; font: 600 11.5px var(--v2-man); color: var(--v2-m2); white-space: nowrap; }
html.cdb-v2 .cdb-notification-card__title { grid-area: title; margin-top: 8px; font: 700 15px/1.35 var(--v2-man); color: var(--v2-t); }
html.cdb-v2 .cdb-notification-card__message { grid-area: msg; margin-top: 4px; font: 500 13.5px/1.5 var(--v2-man); color: var(--v2-t2); text-wrap: pretty; overflow-wrap: anywhere; }
html.cdb-v2 .cdb-notification-card__footer > span { grid-area: date; margin-top: 8px; font: 600 11.5px var(--v2-man); color: var(--v2-m2); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.cdb-v2 .cdb-notification-card__footer > span:empty { display: none; }
html.cdb-v2 .cdb-notification-card__actions { grid-area: act; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.cdb-v2 .cdb-notification-card__actions:empty { display: none; }
html.cdb-v2 .cdb-notification-action { height: 30px; padding: 0 12px; border-radius: 999px; background: transparent; border: 1px solid var(--v2-b2); color: var(--v2-t2); font: 700 12px var(--v2-man); cursor: pointer; white-space: nowrap; }
html.cdb-v2 .cdb-notification-action:hover { border-color: rgba(255,255,255,.2); color: var(--v2-t); }
html.cdb-v2 .cdb-notification-action--primary { background: var(--v2-acc); border: 0; color: var(--v2-on); font-weight: 800; }
html.cdb-v2 .cdb-notification-action--primary:hover { background: var(--v2-acc-h); color: var(--v2-on); }
html.cdb-v2 .cdb-notification-state { padding: 18px; font: 600 13px var(--v2-man); color: var(--v2-m); text-align: center; }
html.cdb-v2 .cdb-notification-state--error { color: #FCA5A5; }
html.cdb-v2 .v2-bell[aria-expanded="true"] { background: rgba(242,210,60,.14); border-color: rgba(242,210,60,.5); color: var(--v2-acc); }
