.notice-widget {
  --notice-paper: var(--bs-body-bg, var(--card, Canvas));
  --notice-ink: var(--bs-body-color, var(--text, CanvasText));
  --notice-edge: var(--bs-border-color, var(--line, #80808055));
  --notice-accent: #b54017;
  position: relative;
  color: var(--notice-ink);
}
.notice-widget.notice-corner { position: absolute; top: .65rem; right: .8rem; z-index: 12; }
.notice-widget [hidden], .notice-central [hidden] { display: none !important; }
.notice-bell, .notice-dismiss, .notice-read {
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.notice-bell {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--notice-edge);
  border-radius: .65rem;
  background: var(--notice-paper);
}
.notice-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notice-count {
  position: absolute;
  top: -.35rem;
  right: -.35rem;
  padding: .12rem .32rem;
  font-size: .68rem;
  line-height: 1rem;
  border-radius: 1rem;
  background: var(--notice-accent);
  color: white;
}
.notice-panel, .notice-toast {
  background: var(--notice-paper);
  color: var(--notice-ink);
  border: 1px solid var(--notice-edge);
  border-radius: .75rem;
  box-shadow: 0 8px 28px #0004;
}
.notice-panel {
  position: absolute;
  z-index: 25;
  top: calc(100% + .45rem);
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(72vh, 38rem);
  overflow: auto;
  padding: .9rem;
}
.notice-panel header, .notice-row-heading, .notice-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
}
.notice-panel header { flex-wrap: wrap; padding-bottom: .45rem; }
.notice-row {
  border: 1px solid var(--notice-edge, #80808055);
  border-radius: .5rem;
  padding: .65rem .75rem;
  margin-block: .5rem;
  overflow-wrap: anywhere;
}
.notice-row small { white-space: nowrap; opacity: .85; }
.notice-row p { white-space: pre-wrap; margin: .45rem 0; }
.notice-unread { border-inline-start: 3px solid #e76a36; }
.notice-read { border: 1px solid var(--notice-edge, #80808055); border-radius: .35rem; margin: .3rem 0 0 .5rem; padding: .15rem .4rem; }
.notice-toasts { position: fixed; z-index: 1100; right: 1rem; bottom: 1rem; width: min(24rem, calc(100vw - 2rem)); }
.notice-toast { padding: .9rem 2.5rem .9rem .9rem; position: relative; overflow-wrap: anywhere; border-inline-start: 4px solid #e76a36; }
.notice-toast a { display: block; margin-top: .25rem; }
.notice-dismiss { position: absolute; right: .55rem; top: .42rem; border: 0; font-size: 1.4rem; }
.notice-central, .notice-form { max-width: 55rem; padding: .7rem .25rem; }
.notice-form { display: grid; gap: .85rem; }
.notice-form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.notice-form input, .notice-form select, .notice-form textarea { display: block; width: 100%; }
.notice-form button { justify-self: start; }
.notice-pages { margin-top: .9rem; justify-content: flex-start; }
.notice-operations { border-top: 1px solid var(--notice-edge); padding-top: .55rem; margin-top: .55rem; }
@media (max-width: 480px) {
  .notice-panel.notice-panel-mobile { position: fixed; left: .75rem; right: .75rem; width: auto; top: 4.25rem; }
  .notice-row-heading { align-items: flex-start; flex-direction: column; gap: .1rem; }
}
@media print {
  .notice-widget { display: none !important; }
}
