
 :root{
    --primary: #2F2FA2;
    --bg: rgba(255, 255, 255, 0.92);
    --border: rgba(47, 47, 162, 0.28);
    --text: #111827;
    --muted: #4b5563;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
    --ring: 0 0 0 3px rgba(47, 47, 162, 0.25);
    --radius: 16px;
  }


  /* Wrapper */
  .global-notice-wrap{
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
  }

  /* Banner */
  .global-notice-banner{
    pointer-events: auto;
    width: min(1100px, 100%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    animation: global-notice-slideIn 420ms cubic-bezier(.2,.9,.2,1) both;
  }

  /* Accent */
  .global-notice-accent{
    width: 10px;
    align-self: stretch;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      var(--primary),
      rgba(47,47,162,0.35)
    );
  }

  /* Icon */
  .global-notice-icon{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(47,47,162,0.12);
    color: var(--primary);
  }

  .global-notice-icon svg{
    width: 20px;
    height: 20px;
  }

  /* Content */
  .global-notice-content{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .global-notice-title{
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    line-height: 1.25;
  }

  .global-notice-text{
    font-size: 14px;
    line-height: 1.35;
    color: var(--muted);
  }

  .global-notice-link{
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(47,47,162,0.35);
    padding-bottom: 1px;
    margin-left: 6px;
  }

  .global-notice-link:hover{
    border-bottom-color: var(--primary);
  }

  /* Actions */
  .global-notice-actions{
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .global-notice-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(47,47,162,0.25);
    background: rgba(47,47,162,0.08);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 650;
    white-space: nowrap;
  }

  .global-notice-pill svg{
    width: 14px;
    height: 14px;
  }

  .global-notice-close-btn{
    border: 0;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--primary);
    transition: background 120ms ease, transform 120ms ease;
  }

  .global-notice-close-btn:hover{
    background: rgba(47,47,162,0.12);
    transform: translateY(-1px);
  }

  .global-notice-close-btn:focus-visible{
    outline: none;
    box-shadow: var(--ring);
  }

  /* Exit animation */
  .global-notice-banner.global-notice-is-hiding{
    animation: global-notice-slideOut 260ms cubic-bezier(.4,0,.8,.2) both;
  }

  @keyframes global-notice-slideIn{
    from{ transform: translateY(-16px); opacity: 0; }
    to{ transform: translateY(0); opacity: 1; }
  }

  @keyframes global-notice-slideOut{
    from{ transform: translateY(0); opacity: 1; }
    to{ transform: translateY(-16px); opacity: 0; }
  }

  /* Mobile */
  @media (max-width: 640px){
    body{ padding-top: 104px; }
    .global-notice-pill{ display: none; }
    .global-notice-banner{ align-items: flex-start; }
  }