/* Bildirimler: the bell in the header, its panel and the #/bildirimler list. */
.bell { position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-raised); color: var(--ink); display: grid; place-items: center; }
.bell:hover, .bell[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--gray-400); }
.bell-count { position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--danger); color: #ffffff; font: 800 11px/20px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--surface); }

.notify { position: absolute; right: 40px; top: 68px; z-index: 10; width: 400px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100vh - 96px)); display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface-raised); box-shadow: 0 12px 32px rgba(40, 40, 40, 0.16); overflow: hidden; }
.notify[hidden] { display: none; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.nt-head strong { font: 500 18px/24px var(--font); }
.notify .nt-list { flex: 1; overflow-y: auto; padding: 0 8px; }
.notify .nt-status { padding: 0 20px 8px; }
.nt-foot { padding: 12px 16px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

.nt-list { display: flex; flex-direction: column; gap: 2px; }
.nt-list > .empty, .nt-list > .error { padding: 16px 12px; }
.nt-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: var(--r-md); background: none; text-align: left; text-decoration: none; color: var(--ink-muted); font: inherit; cursor: pointer; }
.nt-row:hover { background: var(--surface); }
.nt-row.is-unread { color: var(--ink); }
.nt-pic { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; overflow: hidden; color: var(--ink-muted); }
.nt-row:hover .nt-pic { background: var(--surface-sunken); }
.nt-pic img { width: 100%; height: 100%; object-fit: cover; }
.nt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nt-title { font: 500 14px/20px var(--font); }
.nt-body { font: 400 14px/20px var(--font); overflow-wrap: anywhere; }
.nt-when { font: 400 12px/18px var(--font); color: var(--ink-muted); }
.nt-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--danger); }
.nt-dot[hidden] { display: block; visibility: hidden; }
.nt-more { align-self: center; margin: 12px 0; }
.nt-all:disabled { opacity: 0.5; cursor: default; }
.nt-card { padding: 12px; }

@media (max-width: 900px) {
  .notify { right: 16px; top: 64px; }
}
@media (max-width: 480px) { /* logo, bell, level and avatar on one row of a phone */
  .bell, .avatar { width: 40px; height: 40px; }
  .level-badge { padding: 8px 10px; }
  .top .logo img { height: 30px; width: auto; }
}
/* the bell is one more thing in the header: tighter gaps keep it on one row on a laptop screen */
@media (min-width: 901px) and (max-width: 1340px) {
  .top { gap: 8px; }
  .top-nav { margin-left: 0; }
}
