.npuu-widget {
    --npuu-ink: #eef8fb;
    --npuu-muted: rgba(232, 247, 250, .72);
    --npuu-line: rgba(124, 224, 226, .28);
    position: relative;
    overflow: hidden;
    color: var(--npuu-ink);
    background:
        radial-gradient(circle at 88% 8%, rgba(67, 205, 207, .18), transparent 32%),
        linear-gradient(135deg, rgba(10, 35, 48, .96), rgba(12, 55, 65, .92));
    border: 1px solid rgba(126, 224, 225, .24);
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(2, 18, 28, .24), inset 0 1px rgba(255,255,255,.08);
    font-family: inherit;
}

.npuu-widget::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.npuu-glare {
    position: absolute;
    z-index: 4;
    top: -80%;
    left: -45%;
    width: 18%;
    height: 260%;
    pointer-events: none;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    filter: blur(1px);
    animation: npuuGlare 13s ease-in-out infinite;
}

@keyframes npuuGlare {
    0%, 65% { left: -45%; opacity: 0; }
    69% { opacity: .35; }
    84% { left: 130%; opacity: .7; }
    88%, 100% { left: 130%; opacity: 0; }
}

.npuu-header,
.npuu-source,
.npuu-item,
.npuu-empty {
    position: relative;
    z-index: 2;
}

.npuu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 13px;
    border-bottom: 1px solid var(--npuu-line);
}

.npuu-kicker {
    display: block;
    margin-bottom: 3px;
    color: #82e0df;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.npuu-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.npuu-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--npuu-muted);
    font-size: 12px;
}

.npuu-controls button {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.07);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.npuu-controls button:hover,
.npuu-controls button:focus-visible {
    background: rgba(68, 205, 207, .23);
    border-color: rgba(125, 230, 231, .55);
}

.npuu-items { position: relative; }

.npuu-widget--slider .npuu-items {
    min-height: 225px;
}

.npuu-widget--slider .npuu-item {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateX(32px);
    transition: opacity .55s ease, transform .55s ease, visibility .55s;
}

.npuu-widget--slider .npuu-item.is-active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.npuu-item {
    padding: 18px 20px 20px;
}

.npuu-item__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.npuu-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(74, 214, 214, .18);
    color: #a8f2ef;
    border: 1px solid rgba(107, 229, 228, .27);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.npuu-item--closure .npuu-badge,
.npuu-item--alert .npuu-badge {
    background: rgba(248, 172, 57, .17);
    border-color: rgba(250, 187, 88, .35);
    color: #ffd58c;
}

.npuu-item--incident .npuu-badge {
    background: rgba(239, 105, 96, .16);
    border-color: rgba(244, 128, 119, .32);
    color: #ffc0ba;
}

.npuu-item--condition .npuu-badge {
    background: rgba(74, 214, 214, .14);
    border-color: rgba(107, 229, 228, .24);
    color: #b6f4f1;
}

.npuu-item--condition-warning .npuu-badge {
    background: rgba(248, 172, 57, .18);
    border-color: rgba(250, 187, 88, .38);
    color: #ffd58c;
}

.npuu-updated {
    color: var(--npuu-muted);
    font-size: 11px;
}

.npuu-item__title {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.22;
}

.npuu-item__meta {
    margin-bottom: 10px;
    color: #86d9dc;
    font-size: 12px;
    font-weight: 650;
}

.npuu-item__description {
    margin: 0;
    color: var(--npuu-muted);
    font-size: 14px;
    line-height: 1.55;
}

.npuu-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    color: var(--npuu-muted);
    font-size: 12px;
}

.npuu-item__footer a {
    margin-left: auto;
    color: #a2eeee;
    font-weight: 750;
    text-decoration: none;
}

.npuu-item__footer a:hover { text-decoration: underline; }

.npuu-source {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-top: 1px solid var(--npuu-line);
    color: rgba(230, 247, 249, .53);
    font-size: 10px;
    line-height: 1.35;
}

.npuu-empty {
    display: grid;
    gap: 7px;
    padding: 24px 20px 28px;
    color: var(--npuu-muted);
}

.npuu-empty strong { color: #fff; }
.npuu-empty small { color: #ffc0ba; }

.npuu-widget--grid .npuu-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.npuu-widget--grid .npuu-item {
    border-bottom: 1px solid var(--npuu-line);
}

.npuu-widget--grid .npuu-item:nth-child(odd) {
    border-right: 1px solid var(--npuu-line);
}

.npuu-widget--list .npuu-item + .npuu-item {
    border-top: 1px solid var(--npuu-line);
}

@media (max-width: 700px) {
    .npuu-header,
    .npuu-item,
    .npuu-source { padding-left: 15px; padding-right: 15px; }
    .npuu-widget--grid .npuu-items { grid-template-columns: 1fr; }
    .npuu-widget--grid .npuu-item:nth-child(odd) { border-right: 0; }
    .npuu-source { flex-direction: column; }
    .npuu-item__topline,
    .npuu-item__footer { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .npuu-glare { display: none; }
    .npuu-widget--slider .npuu-item { transition: none; }
}
