.nc-anchor { position: relative; }
.nc-panel { --nc-surface: #fff; --nc-ink: #1a1a1a; --nc-muted: #77717b; --nc-line: #e8e3df; --nc-accent: #896321; position: absolute; z-index: 80; inset-inline-end: 0; top: calc(100% + 14px); width: min(420px, calc(100vw - 28px)); padding: 0; overflow: hidden; border: 1px solid var(--nc-line); border-radius: 20px; background: var(--nc-surface); color: var(--nc-ink); box-shadow: 0 18px 50px #0003; animation: nc-reveal .2s ease-out; }
.nc-panel[hidden], [data-notification-count][hidden] { display: none !important; }
.account-body { --nc-surface: #161616; --nc-ink: #f5eadd; --nc-muted: #b8ad9e; --nc-line: #333333; --nc-accent: #dfb46c; }
.account-body .nc-panel { --nc-surface: #161616; --nc-ink: #f5eadd; --nc-muted: #b8ad9e; --nc-line: #333333; --nc-accent: #dfb46c; }
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--nc-line, #e8e3df); }
.nc-head h2 { display: flex; gap: 8px; align-items: center; font-size: 16px; margin: 0; }
.nc-count, .nc-bell-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; border-radius: 20px; background: #896321; color: #fff; font-variant-numeric: tabular-nums; }
.nc-bell-count { position: absolute; top: -3px; inset-inline-end: -4px; }
.nc-list { list-style: none; padding: 0; margin: 0; }
.nc-panel .nc-list { max-height: min(54vh, 470px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nc-item { display: flex; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--nc-line, #e8e3df); }
.nc-item.is-unread { background: #89632110; }
.nc-dot { flex: 0 0 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: transparent; }
.nc-item.is-unread .nc-dot { background: var(--nc-accent, #896321); box-shadow: 0 0 0 4px #89632118; }
.nc-content { flex: 1; min-width: 0; }
.nc-open { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.nc-open strong { display: block; font-size: 14px; line-height: 1.6; }
.nc-open > span { display: block; margin-top: 4px; color: var(--nc-muted, #77717b); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--nc-muted, #77717b); }
.nc-state { padding: 1px 6px; border: 1px solid var(--nc-line, #e8e3df); border-radius: 6px; }
.nc-item.is-unread .nc-state { color: var(--nc-accent, #896321); }
.nc-state-button { background: none; border: 0; color: var(--nc-accent, #896321); padding: 4px 0; cursor: pointer; font: inherit; font-size: 11px; }
.nc-open:focus-visible, .nc-state-button:focus-visible, .nc-more:focus-visible, .nc-action:focus-visible { outline: 2px solid var(--nc-accent, #896321); outline-offset: 3px; border-radius: 4px; }
.nc-more { display: block; text-align: center; color: var(--nc-accent, #896321); padding: 14px 20px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--nc-line, #e8e3df); text-decoration: none; }
.nc-empty { text-align: center; padding: 36px 20px; color: var(--nc-muted, #77717b); font-size: 13px; }
.nc-full-list { background: var(--nc-surface, #fff); color: var(--nc-ink, #1a1a1a); border: 1px solid var(--nc-line, #e8e3df); border-radius: 20px; overflow: hidden; }
.nc-table-list .nc-item { padding: 4px 0; border: 0; }
.nc-table-list .nc-dot { display: none; }
.nc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.nc-tabs a { color: var(--nc-muted, #77717b); text-decoration: none; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--nc-line, #e8e3df); font-size: 13px; }
.nc-tabs a[aria-current] { color: var(--nc-accent, #896321); background: #89632116; border-color: var(--nc-accent, #896321); }
.nc-push { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px; margin-bottom: 22px; border: 1px solid var(--nc-line, #e8e3df); border-radius: 18px; background: var(--nc-surface, #fff); color: var(--nc-ink, #1a1a1a); }
.nc-push strong { font-size: 14px; }
.nc-push p { font-size: 12px; color: var(--nc-muted, #77717b); margin: 7px 0 0; }
.nc-push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-action { border: 1px solid var(--nc-line, #e8e3df); background: #89632112; color: var(--nc-accent, #896321); border-radius: 9px; padding: 9px 14px; cursor: pointer; font: inherit; font-size: 12px; white-space: nowrap; }
.nc-action:disabled { opacity: .5; cursor: default; }
.nc-error { color: #b6473e; font-size: 12px; }
@keyframes nc-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .nc-panel { position: fixed; inset-inline: 14px; top: 106px; width: auto; } .nc-push { align-items: flex-start; flex-direction: column; } .nc-head { padding: 14px; } .nc-item { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .nc-panel { animation: none; } }

.app-header .nc-panel { inset-inline-end: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
@media (max-width: 600px) { .app-header .nc-panel { inset-inline: 14px; } }

.nc-table-list .nc-meta time, .nc-table-list .nc-state { display: none; }
.cell-notification { min-width: 260px; }
@media (max-width: 760px) {
  table.dataTable.responsive-table > tbody > tr > td.cell-notification { flex-basis: 100%; min-width: 0; }
  table.dataTable.nc-table > colgroup { display: none; }
}

/* Time and the read toggle share one line. */
.nc-meta form { margin-inline-start: auto; }
.nc-meta .nc-state-button { padding: 2px 0; }
