.nf-page {
    gap: 20px;
}

.nf-hero.tat-hero {
    gap: 18px;
    padding: 22px 26px;
}

.nf-hero-top {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nf-hero-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

    .nf-hero-icon .mud-icon-root {
        color: #fff;
        font-size: 1.75rem;
    }

.nf-hero-heading {
    flex: 1 1 260px;
    min-width: 0;
}

.nf-hero-title {
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.nf-hero-subtitle {
    margin: 6px 0 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.nf-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nf-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 104px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.nf-hero-stat--new {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
}

.nf-hero-stat-value {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.nf-hero-stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nf-waiting {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: var(--tenant-colour-primary);
    color: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: nfDropIn 0.3s ease-out;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .nf-waiting:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
    }

    .nf-waiting .mud-icon-root {
        color: inherit;
    }

.nf-waiting-action {
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dark-mode .nf-waiting {
    background: var(--tertiary-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

@keyframes nfDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nf-card.tat-card {
    padding: 0;
}

.nf-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dark-mode .nf-toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nf-search {
    flex: 1 1 280px;
    max-width: 440px;
    min-width: 0;
}

.nf-type {
    flex: 0 0 240px;
    min-width: 0;
}

.nf-toolbar .mud-select,
.nf-toolbar .mud-input-control {
    width: 100%;
    margin: 0;
}

.nf-toolbar .mud-input.mud-input-outlined {
    background: var(--primary-bg-color);
    border-radius: 10px;
    font-size: 14px;
}

    .nf-toolbar .mud-input.mud-input-outlined .mud-input-outlined-border {
        border-color: var(--border-color);
        border-radius: 10px;
    }

    .nf-toolbar .mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border {
        border-width: 1px;
        border-color: var(--tenant-colour-primary);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--tenant-colour-primary) 18%, transparent);
    }

.dark-mode .nf-toolbar .mud-input.mud-input-outlined {
    background: rgba(255, 255, 255, 0.03);
}

.nf-toolbar-end {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nf-showing {
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nf-type-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .nf-type-option .mud-icon-root {
        color: var(--nf-tone-ink);
    }

.nf-progress.mud-progress-linear {
    margin: 0;
}

.nf-feed {
    padding: 4px 20px 20px 20px;
}

.nf-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px 2px;
    color: var(--secondary-text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nf-group-count {
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--primary-bg-color);
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.dark-mode .nf-group-count {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.nf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nf-tone--action {
    --nf-tone: var(--tenant-colour-primary);
    --nf-tone-ink: var(--tenant-colour-primary);
}

.nf-tone--success {
    --nf-tone: #22c55e;
    --nf-tone-ink: #15803d;
}

.nf-tone--warning {
    --nf-tone: #eab308;
    --nf-tone-ink: #a16207;
}

.nf-tone--danger {
    --nf-tone: #ef4444;
    --nf-tone-ink: #b91c1c;
}

.nf-tone--neutral {
    --nf-tone: #64748b;
    --nf-tone-ink: #475569;
}

.dark-mode .nf-tone--action {
    --nf-tone: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
    --nf-tone-ink: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
}

.dark-mode .nf-tone--success {
    --nf-tone-ink: #4ade80;
}

.dark-mode .nf-tone--warning {
    --nf-tone-ink: #facc15;
}

.dark-mode .nf-tone--danger {
    --nf-tone-ink: #f87171;
}

.dark-mode .nf-tone--neutral {
    --nf-tone: #94a3b8;
    --nf-tone-ink: #cbd5e1;
}

.nf-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-bg-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dark-mode .nf-item {
    border-color: rgba(255, 255, 255, 0.08);
}

.nf-item--link:hover {
    border-color: color-mix(in srgb, var(--nf-tone) 45%, var(--border-color));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.dark-mode .nf-item--link:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nf-item:focus-within {
    outline: 2px solid var(--tenant-colour-primary);
    outline-offset: 2px;
}

.nf-item--new {
    background: color-mix(in srgb, var(--tenant-colour-primary) 5%, var(--secondary-bg-color));
    border-color: color-mix(in srgb, var(--tenant-colour-primary) 28%, var(--border-color));
}

    .nf-item--new::before {
        content: '';
        position: absolute;
        left: -1px;
        top: 12px;
        bottom: 12px;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--tenant-colour-primary);
    }

.dark-mode .nf-item--new {
    background: color-mix(in srgb, var(--cdna-band-light, #ffffff) 7%, var(--secondary-bg-color));
    border-color: color-mix(in srgb, var(--cdna-band-light, #ffffff) 22%, transparent);
}

    .dark-mode .nf-item--new::before {
        background: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
    }

.nf-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--nf-tone) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--nf-tone) 22%, transparent);
}

    .nf-item-icon .mud-icon-root {
        color: var(--nf-tone-ink);
        font-size: 1.35rem;
    }

.nf-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nf-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 22px;
}

.nf-item-title {
    color: var(--primary-text-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.nf-item-title:hover {
    color: var(--primary-text-color);
}

.nf-item-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.nf-item-link:focus-visible {
    outline: none;
}

.nf-new {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--tenant-colour-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 16px;
    text-transform: uppercase;
}

.dark-mode .nf-new {
    background: color-mix(in srgb, var(--cdna-band-light, #ffffff) 35%, transparent);
}

.nf-item-time {
    margin-left: auto;
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nf-item-message {
    color: var(--secondary-text-color);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .nf-item-message a {
        position: relative;
        z-index: 1;
        color: var(--tenant-colour-primary);
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

.dark-mode .nf-item-message a {
    color: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
}

.nf-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.nf-kind {
    display: inline-flex;
    align-items: center;
    padding: 1px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nf-tone) 12%, transparent);
    color: var(--nf-tone-ink);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
}

.nf-item-secondary {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tenant-colour-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

    .nf-item-secondary:hover {
        text-decoration: underline;
    }

    .nf-item-secondary .mud-icon-root {
        font-size: 0.95rem;
    }

.dark-mode .nf-item-secondary {
    color: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
}

.nf-item-go.mud-icon-root {
    align-self: center;
    flex-shrink: 0;
    color: var(--secondary-text-color);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nf-item--link:hover .nf-item-go.mud-icon-root {
    color: var(--nf-tone-ink);
    transform: translateX(3px);
}

.nf-more {
    display: flex;
    justify-content: center;
    padding: 0 20px 24px 20px;
}

.nf-end {
    margin: 0;
    padding: 0 20px 24px 20px;
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    text-align: center;
}

.nf-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.nf-skeleton-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.dark-mode .nf-skeleton-row {
    border-color: rgba(255, 255, 255, 0.08);
}

.nf-skeleton-icon.mud-skeleton {
    border-radius: 12px;
    flex-shrink: 0;
}

.nf-skeleton-lines {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 20px;
    text-align: center;
}

.nf-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--tenant-colour-primary) 10%, transparent);
}

    .nf-empty-icon .mud-icon-root {
        color: var(--tenant-colour-primary);
        font-size: 2rem;
    }

.dark-mode .nf-empty-icon {
    background: rgba(255, 255, 255, 0.06);
}

    .dark-mode .nf-empty-icon .mud-icon-root {
        color: color-mix(in srgb, var(--cdna-band-light, #ffffff) 60%, #ffffff);
    }

.nf-empty--error .nf-empty-icon {
    background: rgba(239, 68, 68, 0.1);
}

    .nf-empty--error .nf-empty-icon .mud-icon-root {
        color: #ef4444;
    }

.nf-empty-title {
    margin: 0;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-weight: 600;
}

.nf-empty-text {
    margin: 0;
    max-width: 420px;
    color: var(--secondary-text-color);
    font-size: 0.875rem;
}

@media (max-width: 700px) {
    .nf-hero.tat-hero {
        padding: 18px;
    }

    .nf-hero-stats {
        width: 100%;
    }

    .nf-hero-stat {
        flex: 1 1 0;
        align-items: flex-start;
    }

    .nf-toolbar {
        padding: 14px;
    }

    .nf-search,
    .nf-type {
        flex: 1 1 100%;
        max-width: none;
    }

    .nf-toolbar-end {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .nf-feed {
        padding: 0 12px 12px 12px;
    }

    .nf-item {
        gap: 12px;
        padding: 12px;
    }

    .nf-item-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .nf-item-time {
        flex-basis: 100%;
        margin-left: 0;
    }

    .nf-item-go.mud-icon-root {
        display: none;
    }
}
