#j8-notice-stack{
    box-sizing:border-box;
    position:fixed;
    inset:80px 16px auto;
    z-index:1000;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:start;
    gap:16px;
    width:auto;
    max-height:calc(100dvh - 100px);
    overflow:auto;
    padding:4px;
    pointer-events:none;
}
#j8-notice-stack > .j8-notice-panel{
    box-sizing:border-box;
    position:relative;
    inset:auto;
    transform:none;
    min-width:0;
    width:100%;
    margin:0;
    max-height:calc(100dvh - 120px);
    overflow:auto;
    padding:20px;
    background:#172033;
    color:#e2e8f0;
    border:1px solid #64748b;
    border-radius:14px;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    font:16px system-ui,sans-serif;
    pointer-events:auto;
}
.j8-notice-panel h2{
    margin:0 0 12px;
    font-size:22px;
    overflow-wrap:anywhere;
}
.j8-notice-message{
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    line-height:1.6;
}
.j8-notice-panel button{
    width:auto;
    min-height:44px;
    margin-top:12px;
    padding:11px 16px;
    border:1px solid #64748b;
    border-radius:9px;
    background:#0369a1;
    color:white;
    font:inherit;
    cursor:pointer;
}
.j8-notice-panel button:focus-visible{
    outline:3px solid #facc15;
    outline-offset:3px;
}
@media(max-width:900px){
    #j8-notice-stack{
        grid-template-columns:minmax(0,1fr);
        inset:100px 12px auto;
        max-height:calc(100dvh - 120px);
        pointer-events:auto;
    }
    #j8-notice-stack > .j8-notice-panel{
        max-height:none;
    }
}
