.npaa-widget,
.npaa-widget * {
    box-sizing: border-box;
}

.npaa-widget {
    --npaa-accent: #45d1d2;
    --npaa-warning: #f4b64f;
    --npaa-severe: #ef6b62;
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 15px;
    background:
        radial-gradient(circle at 95% 0%, rgba(69,209,210,.16), transparent 38%),
        linear-gradient(135deg, rgba(7,31,45,.96), rgba(15,54,70,.94));
    color: #fff;
    box-shadow: 0 12px 28px rgba(3,20,31,.24);
    font-family: inherit;
}

.npaa-widget--compact {
    min-height: 188px;
}

.npaa-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.npaa-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--npaa-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.npaa-header h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(18px, 1.25vw, 23px) !important;
    font-weight: 700;
    line-height: 1.16;
}

.npaa-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.npaa-controls button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.npaa-controls button:hover,
.npaa-controls button:focus-visible {
    border-color: var(--npaa-accent);
    background: rgba(69,209,210,.18);
    outline: none;
    transform: translateY(-1px);
}

.npaa-controls span {
    min-width: 38px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    text-align: center;
}

.npaa-items {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 103px;
}

.npaa-item {
    grid-area: 1 / 1;
    align-self: stretch;
    min-width: 0;
    padding: 12px 18px 13px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(26px);
    transition: opacity .5s ease, transform .55s cubic-bezier(.22,.61,.36,1), visibility .5s step-end;
}

.npaa-item[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity .5s ease, transform .55s cubic-bezier(.22,.61,.36,1), visibility 0s step-start;
}

.npaa-widget--list .npaa-items {
    display: block;
}

.npaa-widget--list .npaa-item {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.npaa-widget--list .npaa-item:last-child {
    border-bottom: 0;
}

.npaa-item__topline {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 5px;
}

.npaa-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--npaa-warning) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--npaa-warning) 18%, transparent);
    color: #fff4d9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.npaa-item--severe .npaa-badge,
.npaa-item--extreme .npaa-badge {
    border-color: color-mix(in srgb, var(--npaa-severe) 75%, transparent);
    background: color-mix(in srgb, var(--npaa-severe) 22%, transparent);
    color: #ffe4e1;
}

.npaa-source-name {
    overflow: hidden;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npaa-item__title {
    margin: 0 0 3px !important;
    color: #fff !important;
    font-size: clamp(16px, 1.05vw, 20px) !important;
    font-weight: 750;
    line-height: 1.2;
}

.npaa-item__area {
    overflow: hidden;
    margin-bottom: 5px;
    color: var(--npaa-accent);
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.npaa-item__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 12px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.npaa-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
}

.npaa-item__footer a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.npaa-item__footer a:hover,
.npaa-item__footer a:focus-visible {
    color: var(--npaa-accent) !important;
}

.npaa-footer {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 18px 8px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.45);
    font-size: 9px;
    line-height: 1.35;
}

.npaa-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 103px;
    padding: 15px 18px;
}

.npaa-empty strong {
    color: #fff;
    font-size: 18px;
}

.npaa-empty span {
    margin-top: 4px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    line-height: 1.45;
}

.npaa-glare {
    position: absolute;
    z-index: 5;
    top: -45%;
    left: -45%;
    width: 24%;
    height: 190%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    filter: blur(1px);
    opacity: 0;
    transform: skewX(-18deg);
    animation: npaa-glare-sweep 13s ease-in-out 2s infinite;
}

@keyframes npaa-glare-sweep {
    0%, 72% { left: -45%; opacity: 0; }
    75% { opacity: .15; }
    84% { opacity: .65; }
    92% { left: 125%; opacity: 0; }
    100% { left: 125%; opacity: 0; }
}

@media (max-width: 640px) {
    .npaa-header {
        padding: 13px 14px 9px;
    }
    .npaa-item {
        padding: 11px 14px 12px;
    }
    .npaa-footer {
        padding: 7px 14px;
    }
    .npaa-source-name {
        display: none;
    }
    .npaa-item__description {
        -webkit-line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .npaa-item,
    .npaa-controls button {
        transition: none !important;
    }
    .npaa-glare {
        display: none !important;
        animation: none !important;
    }
}
