/* ── Admin notices: top bar bell, panel and dashboard card ─────────────── */
.topbar .tb-notices { position: relative; }

.tb-notice-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--error);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.notices-panel { width: min(560px, calc(100vw - 32px)); }

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--p2);
}

.notice-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--p2);
    align-items: center;
    padding: var(--p2) var(--p3);
    border: 1px solid var(--border);
}

.notice-row.is-warning { border-left: 3px solid var(--warning); }
.notice-row.is-info    { border-left: 3px solid var(--accent); }
.notice-row.is-warning .notice-icon { color: var(--warning-dark); }
.notice-row.is-hidden  { grid-template-columns: 1fr auto; opacity: .8; }

.notice-text { display: grid; gap: 2px; }
.notice-detail { font-size: var(--font-s); color: var(--text-2); }
.notice-actions { display: inline-flex; gap: var(--p2); align-items: center; flex-wrap: wrap; }
.notice-form { display: inline; margin: 0; }

.notice-hide {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text-2);
    font-size: var(--font-s);
    text-decoration: underline;
    cursor: pointer;
}

.notice-empty { margin: 0; color: var(--text-2); }
.notice-more  { display: inline-block; margin-top: var(--p3); }
.notice-hidden { margin-top: var(--p3); }
.notice-hidden summary { cursor: pointer; color: var(--text-2); }

@media (max-width: 640px) {
    .notice-row { grid-template-columns: auto 1fr; }
    .notice-actions { grid-column: 1 / -1; }
}
