/* Shared notification foundation for public and signed-in Hub screens. */
@media screen {
  body #toast-container { z-index: 2147483000 !important; pointer-events: none; }
  body #toast-container.toast-top-right { top: calc(env(safe-area-inset-top,0px) + 84px); right: 16px; }
  body.hub-public-site #toast-container.toast-top-right { top: calc(env(safe-area-inset-top,0px) + 124px); }
  body #toast-container > .toast {
    --notice-accent: #3178d2; --notice-icon-bg: #e9f2ff; --notice-text: #1d456f;
    position: relative; width: 420px; max-width: calc(100vw - 24px); min-height: 80px;
    margin: 0 0 12px; padding: 18px 48px 18px 66px; box-sizing: border-box;
    border: 1px solid #cbdcf0 !important; border-radius: 16px !important;
    background: #f8fbff !important; background-image: none !important; color: var(--notice-text) !important;
    box-shadow: 0 12px 38px #152d4b24 !important; opacity: 1 !important;
    font-family: inherit; font-size: 14px; line-height: 1.65; overflow: hidden;
    pointer-events: auto; text-align: start;
  }
  body #toast-container > .toast-success { --notice-accent: #168f6d; --notice-icon-bg: #e2f7ef; --notice-text: #17614f; border-color: #b0dfcf !important; background: #f5fffa !important; }
  body #toast-container > .toast-error,body #toast-container > .toast-warning { --notice-accent: #c46c2c; --notice-icon-bg: #fff0df; --notice-text: #80421e; border-color: #ebc8a5 !important; background: #fffaf4 !important; }
  body #toast-container > .toast::before { content: ''; position: absolute; top: 18px; left: 16px; width: 34px; height: 34px; border-radius: 11px; background: var(--notice-icon-bg); }
  body #toast-container > .toast::after { content: '!'; position: absolute; top: 18px; left: 16px; display: grid; place-items: center; width: 34px; height: 34px; font-family: Arial,sans-serif; font-size: 22px; font-weight: 600; line-height: 1; color: var(--notice-accent); }
  body #toast-container > .toast-success::after { content: '✓'; font-size: 21px; }
  body #toast-container > .toast-info::after { content: 'i'; font-family: Georgia,serif; }
  body #toast-container :is(.toast-title,.toast-message,.toast-message a,.toast-message label) { color: var(--notice-text) !important; overflow-wrap: anywhere; }
  body #toast-container .toast-title { margin-bottom: 3px; font-size: 14px; font-weight: 600; }
  body #toast-container .toast-message { font-weight: 400; padding: 0; margin: 0; }
  body #toast-container .toast-message a { text-decoration: underline; text-underline-offset: 3px; }
  body #toast-container .toast-close-button { position: absolute; top: 8px; right: 8px; left: auto; float: none; width: 32px; height: 32px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--notice-text) !important; font-size: 22px; font-weight: 400; text-shadow: none; opacity: .8; }
  body #toast-container .toast-close-button:hover { background: var(--notice-icon-bg); opacity: 1; }
  body #toast-container .toast-close-button:focus-visible { outline: 2px solid var(--notice-accent); outline-offset: -2px; }
  body #toast-container .toast-progress { height: 3px; background: var(--notice-accent); opacity: .6; }
  body.hp-midnight #toast-container > .toast { --notice-accent: #90bfff; --notice-icon-bg: #203e65; --notice-text: #dcecff; border-color: #45658d !important; background: #13253d !important; box-shadow: 0 14px 42px #0005 !important; }
  body.hp-midnight #toast-container > .toast-success { --notice-accent: #75dfbb; --notice-icon-bg: #174638; --notice-text: #d7f7eb; border-color: #387563 !important; background: #132d29 !important; }
  body.hp-midnight #toast-container > .toast-error,body.hp-midnight #toast-container > .toast-warning { --notice-accent: #ffbb7e; --notice-icon-bg: #4c3523; --notice-text: #ffe5ce; border-color: #906a43 !important; background: #2b241f !important; }
  html[dir=rtl] body #toast-container > .toast { direction: rtl; padding: 18px 66px 18px 48px; text-align: right; }
  html[dir=rtl] body #toast-container > .toast::before,html[dir=rtl] body #toast-container > .toast::after { right: 16px; left: auto; }
  html[dir=rtl] body #toast-container .toast-close-button { left: 8px; right: auto; }
  @media(max-width:540px) {
    body #toast-container.toast-top-right { right: 12px; left: 12px; width: auto; }
    body.hub-public-site #toast-container.toast-top-right { top: calc(env(safe-area-inset-top,0px) + 104px); }
    body #toast-container > .toast { width: 100%; max-width: 100%; min-height: 88px; padding-right: 52px; }
    body #toast-container .toast-close-button { width: 40px; height: 40px; top: 5px; right: 4px; }
    html[dir=rtl] body #toast-container .toast-close-button { left: 4px; right: auto; }
  }
}
