.lssn-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10020;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: flex-end;
    pointer-events: none;
}

.lssn-card {
    width: min(360px, calc(100vw - 36px));
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: var(--ls-radius-lg, var(--ls-border-radius, 16px));
    box-shadow: var(--ls-shadow-lg, 0 24px 80px rgba(0, 0, 0, .18));
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.lssn-card.daily { background: rgba(79, 70, 229, .8); color: #fff; }
.lssn-card.urgent { background: rgba(220, 38, 38, .8); color: #fff; }
.lssn-card.activity { background: rgba(217, 119, 6, .8); color: #fff; }
.lssn-card.system { background: rgba(8, 145, 178, .8); color: #fff; }

.lssn-card.is-sliding {
    pointer-events: none;
    animation: lssn-slide-out .48s cubic-bezier(.22, .61, .36, 1) forwards;
}

.lssn-brief-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: none;
}

.lssn-brief-text {
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lssn-detail-mask {
    position: fixed;
    inset: 0;
    z-index: 10030;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.lssn-detail {
    width: min(520px, 100%);
    background: var(--ls-card-bg, #fff);
    border-radius: var(--ls-radius-lg, var(--ls-border-radius, 16px));
    box-shadow: var(--ls-shadow-lg, 0 24px 80px rgba(0, 0, 0, .18));
    animation: lssn-detail-in .2s ease both;
    overflow: hidden;
}

.lssn-detail-art {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    padding: 0 24px;
}

.lssn-detail-art.daily { background: linear-gradient(135deg, rgba(79, 70, 229, .9), rgba(99, 102, 241, .62)); }
.lssn-detail-art.urgent { background: linear-gradient(135deg, rgba(220, 38, 38, .9), rgba(248, 113, 113, .62)); }
.lssn-detail-art.activity { background: linear-gradient(135deg, rgba(217, 119, 6, .9), rgba(251, 191, 36, .62)); }
.lssn-detail-art.system { background: linear-gradient(135deg, rgba(8, 145, 178, .9), rgba(34, 211, 238, .62)); }

.lssn-detail-art::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -38px;
    top: -72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.lssn-detail-art::after {
    content: "";
    position: absolute;
    width: 72px;
    height: 72px;
    left: 44%;
    bottom: -52px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    transform: rotate(18deg);
}

.lssn-detail-art-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.lssn-detail-art-type {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
    opacity: .96;
}

.lssn-detail-content {
    padding: 24px 24px 18px;
    color: var(--ls-text-primary, #334155);
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
    max-height: 52vh;
    overflow-y: auto;
}

.lssn-detail-content p { margin: 0 0 12px; }
.lssn-detail-content p:last-child { margin-bottom: 0; }
.lssn-detail-content a { color: var(--ls-primary, #4f46e5); text-decoration: none; }
.lssn-detail-content img { max-width: 100%; border-radius: var(--ls-radius-md, var(--ls-border-radius-sm, 10px)); }

.lssn-detail-foot { display: flex; justify-content: flex-end; padding: 0 24px 22px; background: var(--ls-card-bg, #fff); }

.lssn-ok {
    border: 0;
    border-radius: var(--ls-radius-md, var(--ls-border-radius-sm, 10px));
    padding: 9px 20px;
    background: var(--ls-primary, #4f46e5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--ls-shadow-sm, 0 6px 16px rgba(79, 70, 229, .18));
}

.lssn-ok:hover { filter: brightness(1.04); }

@media (max-width: 640px) {
    .lssn-stack {
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        left: 12px;
    }

    .lssn-card {
        width: min(300px, calc(100vw - 24px));
        height: 55px;
        box-sizing: border-box;
        padding: 10px 12px;
    }

    .lssn-brief-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 16px;
    }

    .lssn-brief-text {
        font-size: 13px;
    }

    .lssn-detail-art { height: 50px; padding: 0 20px; }
    .lssn-detail-art-icon { width: 32px; height: 32px; border-radius: 11px; font-size: 17px; }
}

@keyframes lssn-slide-out {
    0% { opacity: 1; transform: translateX(0) scale(1); }
    70% { opacity: .35; }
    100% { opacity: 0; transform: translateX(120%) scale(.98); }
}

@keyframes lssn-detail-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: none; }
}
