.notice-rail{margin:0 .65rem;padding:.45rem 0 .2rem}
.notice-rail.notice-floating{position:fixed;z-index:4;top:var(--rail-top);right:var(--rail-right);width:var(--rail-width);margin:0;background:var(--panel)}
.notice-head,.notice-line{display:flex;align-items:center;gap:.45rem}
.notice-head{justify-content:space-between;min-height:26px}.notice-head h3{font-size:.78rem;margin:0;color:var(--muted)}
.notice-sound{font-size:.72rem;white-space:nowrap;padding:.15rem .2rem}
.notice-stack{display:grid;gap:.35rem}
.notice-card{border:1px solid var(--edge);border-left:4px solid var(--accent);border-radius:6px;display:flex;align-items:stretch;min-width:0}
.notice-card.grade-1{--accent:#ff796d;--edge:#9f5348;background:#342322}
.notice-card.grade-2{--accent:#ffa047;--edge:#955d33;background:#32261d}
.notice-card.grade-3{--accent:#f8dc64;--edge:#81773e;background:#302e20}
.alarm-card.list-grade-1{border-left:3px solid #ff796d}.alarm-card.list-grade-2{border-left:3px solid #ffa047}
.alarm-card.list-grade-3{border-left:3px solid #f8dc64}.alarm-card.list-grade-4{border-left:3px solid #78b8ff}
.alarm-card.list-grade-4 strong{color:#98caff}
.notice-open{display:flex;align-items:center;text-align:left;gap:.55rem;flex:1;min-width:0;background:transparent;color:var(--text);border:0;padding:.44rem}
.notice-open:hover,.notice-dismiss:hover{background:#ffffff0d}
.notice-open img{width:46px;height:44px;object-fit:cover;border-radius:3px;background:#131c17}
.notice-copy{min-width:0;display:grid;gap:.17rem}
.notice-copy small,.notice-duration,.notice-overflow,.notice-light{font-size:.7rem;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.notice-line b,.notice-duration{color:var(--accent)}.notice-line b{white-space:nowrap;font-size:.69rem}
.notice-line strong{font-size:.84rem}.notice-dismiss{align-self:flex-start;font-size:1rem;line-height:1.1;background:none;color:var(--muted);border:0;padding:.35rem}
.notice-overflow,.notice-light{margin:.35rem 0}.notice-light{padding:.4rem;border-left:3px solid #78b8ff;background:#1b2b41;color:#b6d7ff}
#history-notices:not(:empty){margin:0 0 .7rem auto;max-width:390px;background:var(--panel);border:1px solid var(--line);border-radius:6px}
.alerts>.notice-rail,.alerts>#live-notices{flex:none}
@media(min-width:821px){.alerts:has(.notice-card){max-height:max(80vh,460px)}}
@media(max-width:820px){.alerts:has(.notice-card){max-height:none}.alerts #alerts{max-height:330px;overflow:auto}#history-notices:not(:empty){max-width:none}}
