.site-announcement-dialog { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0; border:0; border-radius:22px; background:#fff; color:#263129; box-shadow:0 24px 90px #14200e40; overflow:auto; overscroll-behavior:contain; }
.site-announcement-dialog::backdrop { background:#121b2b70; backdrop-filter:blur(5px); }
html:has(.site-announcement-dialog[open]) { overflow:hidden; }
.notice-popup-card { --notice-accent:#65a30d; --notice-heading:#fff; font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif; text-align:left; width:100%; border-radius:22px; overflow:hidden; background:#fff; color:#263129; }
.notice-popup-card * { box-sizing:border-box; }
.notice-popup-header { position:relative; padding:28px 24px 23px; background:linear-gradient(135deg,#0003,transparent 65%),var(--notice-accent); color:var(--notice-heading); }
.notice-popup-icon { display:grid; place-items:center; width:64px; height:64px; padding:14px; border-radius:18px; background:#fff; box-shadow:0 6px 18px #0000000a; }
.notice-popup-icon img { display:block; width:100%; height:100%; object-fit:contain; }
.notice-popup-card .notice-popup-label { margin:15px 0 6px; font-size:12px; font-weight:700; letter-spacing:1px; color:inherit; }
.notice-popup-card h2 { margin:0; padding:0; color:inherit; font-size:26px; line-height:1.35; font-weight:750; overflow-wrap:anywhere; }
.notice-popup-header time { display:block; margin-top:8px; font-size:13px; opacity:.85; }
.notice-popup-card .notice-popup-close { position:absolute; right:12px; top:12px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#ffffff26; color:inherit; font-size:25px; font-weight:400; line-height:1; cursor:pointer; opacity:1; }
.notice-popup-body { padding:24px; }
.notice-popup-card .notice-popup-content { margin:0 0 20px; color:#545b56; font-size:14px; line-height:1.85; white-space:pre-wrap; overflow-wrap:anywhere; }
.notice-popup-actions { display:flex; align-items:stretch; gap:10px; }
.notice-popup-actions .notice-popup-ack,.notice-popup-actions .notice-popup-primary { display:flex; justify-content:center; align-items:center; min-height:46px; padding:11px 17px; border:1px solid #dfe5e2; border-radius:12px; background:#fff; color:#27322c; font:600 14px/1.5 Inter,"Segoe UI","Microsoft YaHei",sans-serif; text-decoration:none; cursor:pointer; opacity:1; }
.notice-popup-actions .notice-popup-primary { flex:1; background:var(--notice-accent); border-color:transparent; color:var(--notice-heading); overflow-wrap:anywhere; text-align:center; }
.notice-popup-actions .notice-popup-ack:only-child { flex:1; }
.notice-popup-card button:focus-visible,.notice-popup-card a:focus-visible { outline:3px solid #3b82f6; outline-offset:-4px; }
.notice-popup-actions a:hover,.notice-popup-card button:hover { filter:brightness(.96); }
@media(max-width:520px) {
  .notice-popup-header { padding:24px 20px 21px; }
  .notice-popup-body { padding:20px; }
  .notice-popup-card h2 { font-size:23px; }
}
