/* Only collected routine notices leave the page; errors/consent stay inline. */
[data-notice-moved="true"] { display: none !important; }
.message-stack:not(:has(.portal-message:not([data-notice-moved="true"]))) { display: none; }
.sc-notifications { position: relative; margin-left: auto; flex: 0 0 auto; color: #fff; font: .875rem/1.4 var(--ui, sans-serif); }
.sc-notifications + .sc-rail-bottom { margin-left: 0; }
.sc-notifications > summary { display: flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .5rem .65rem; border-radius: .35rem; cursor: pointer; list-style: none; }
.sc-notifications > summary::-webkit-details-marker { display: none; }
.sc-notifications[open] > summary, .sc-notifications > summary:hover { background: #ffffff20; }
.sc-notifications svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sc-notice-count { padding: .1rem .4rem; min-width: 1.25rem; border-radius: 1rem; background: #f3c45b; color: #182738; text-align: center; font-weight: 700; }
.sc-notifications .sc-notifications-panel { position: absolute; z-index: 1200; top: calc(100% + .6rem); right: 0; width: min(28rem, calc(100vw - 2rem)); max-height: min(70dvh, 38rem); overflow: auto; padding: 1rem; border: 1px solid var(--line-strong, #668198); border-radius: .5rem; background: var(--surface, #fff); color: var(--ink, #1c2e42); box-shadow: 0 .5rem 2rem #0004; }
.sc-notifications-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.sc-notifications-panel h2 { margin: 0; font: 600 1rem/1.5 var(--ui, sans-serif); color: inherit; }
.sc-notifications-panel p { margin: .4rem 0; color: inherit; font: inherit; white-space: normal; overflow-wrap: anywhere; }
.sc-notifications-panel header p { color: var(--ink-2, #526b80); font-size: .8125rem; }
.sc-notifications-panel ol { list-style: none; margin: .5rem 0; padding: 0; }
.sc-notifications-panel li { padding: .8rem 0; border-top: 1px solid var(--line, #dce4ed); }
.sc-notifications-panel button { position: static; width: auto; min-height: 2rem; margin: 0; padding: .35rem .5rem; border: 1px solid var(--line-strong, #668198); border-radius: .3rem; background: transparent; color: var(--ink, #1c2e42); font: inherit; cursor: pointer; white-space: nowrap; }
.sc-notifications-panel button:hover { background: var(--surface-2, #eaf0f6); }
.sc-rail .sc-notifications-panel :focus-visible { outline: 2px solid var(--action, #2684b5); outline-offset: 2px; }
/* Keep company selection on one control row instead of stacking another button. */
.sc-sidebar .sc-sidebar-company { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin-bottom: .75rem; padding-bottom: .75rem; }
.sc-sidebar-company > label { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .sc-notifications { position: static; }
  .sc-notifications .sc-notifications-panel { top: 100%; right: 1rem; }
  .sc-notifications > summary > span:not(.sc-notice-count) { display: none; }
}
