/* Inbox Bell + Posteingang */
.np-inbox-bell {
    position: relative;
    display: inline-flex;
}

.np-inbox-bell__trigger {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1.5px solid var(--np-ink);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--np-ink);
    position: relative;
    line-height: 1;
}

.np-inbox-bell__trigger:hover,
.np-inbox-bell__trigger:focus-visible {
    background: var(--np-paper-warm, #f4eee2);
    outline: none;
}

.np-inbox-bell__icon {
    display: inline-flex;
}

.np-inbox-bell__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--np-orange, #d04a02);
    color: white;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    box-shadow: 0 0 0 1.5px var(--np-paper, #fff);
}

.np-inbox-bell__badge--hidden {
    display: none;
}

.np-inbox-bell__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--np-paper, #fff);
    border: 1.5px solid var(--np-ink);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: min(92vw, 380px);
    z-index: 50;
    overflow: hidden;
}

.np-inbox-bell__panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--np-graphite, #cfcfcf);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-inbox-bell__panel-all {
    color: var(--np-orange, #d04a02);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.np-inbox-bell__panel-all:hover {
    text-decoration: underline;
}

.np-inbox-bell__empty {
    padding: 18px 14px;
    color: var(--np-graphite, #777);
    font-size: 13px;
    text-align: center;
}

.np-inbox-bell__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--np-ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
}

.np-inbox-bell__item:last-child {
    border-bottom: none;
}

.np-inbox-bell__item:hover,
.np-inbox-bell__item:focus-visible {
    background: var(--np-paper-warm, #f4eee2);
    outline: none;
}

.np-inbox-bell__item--unread {
    background: rgba(208, 74, 2, 0.06);
}

.np-inbox-bell__item-text {
    flex: 1;
    min-width: 0;
}

.np-inbox-bell__item-meta {
    color: var(--np-graphite, #777);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .np-inbox-bell__panel {
        right: 0;
        left: auto;
        min-width: 280px;
        max-width: 88vw;
    }
}

/* Full /posteingang page */
.np-inbox-page {
    max-width: 760px;
    margin: 32px auto;
    padding: 0 16px;
}

.np-inbox-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.np-inbox-page__title {
    margin: 0;
    font-size: 28px;
}

.np-inbox-page__tabs {
    display: inline-flex;
    gap: 4px;
    border: 1.5px solid var(--np-ink);
    border-radius: 999px;
    padding: 2px;
}

.np-inbox-page__tab {
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--np-ink);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.np-inbox-page__tab[aria-current="page"] {
    background: var(--np-ink);
    color: var(--np-paper, #fff);
}

.np-inbox-page__mark-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.np-inbox-page__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--np-ink);
    border-radius: 8px;
    overflow: hidden;
}

.np-inbox-page__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--np-ink);
}

.np-inbox-page__row:last-child {
    border-bottom: none;
}

.np-inbox-page__row--unread {
    background: rgba(208, 74, 2, 0.06);
}

.np-inbox-page__row:hover {
    background: var(--np-paper-warm, #f4eee2);
}

.np-inbox-page__row-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.np-inbox-page__row-meta {
    color: var(--np-graphite, #777);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    white-space: nowrap;
}

.np-inbox-page__empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--np-graphite, #777);
    border: 1.5px dashed var(--np-graphite, #cfcfcf);
    border-radius: 8px;
}

.np-inbox-page__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 12px;
}

.np-inbox-page__pagination a,
.np-inbox-page__pagination span {
    padding: 4px 10px;
    border: 1px solid var(--np-graphite, #cfcfcf);
    border-radius: 4px;
    text-decoration: none;
    color: var(--np-ink);
}

.np-inbox-page__pagination span[aria-current="page"] {
    background: var(--np-ink);
    color: var(--np-paper, #fff);
    border-color: var(--np-ink);
}

[x-cloak] { display: none !important; }
