/* This module owns only its dialog and its temporary root scroll-lock class. */
html.activity-popup-scroll-lock { overflow: hidden !important; }
.activity-popup { --ap-blue: #1685db; --ap-blue-dark: #0864ac; --ap-ink: #214b6c; --ap-muted: #637f96; --ap-border: #d8e7f3; position: fixed; box-sizing: border-box; width: min(1080px,calc(100vw - 48px)); max-width: none; height: min(560px,calc(100dvh - 64px)); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--ap-border); border-radius: 10px; background: #fff; color: var(--ap-ink); box-shadow: 0 22px 75px rgb(8 38 65 / 28%); font: 14px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif; }
.activity-popup[open] { display: flex; flex-direction: column; }
.activity-popup::backdrop { background: rgb(6 29 53 / 62%); }
.activity-popup *, .activity-popup *::before, .activity-popup *::after { box-sizing: border-box; }
.activity-popup [hidden] { display: none !important; }
.activity-popup button,.activity-popup a { font: inherit; -webkit-tap-highlight-color: transparent; }
.activity-popup button { cursor: pointer; }
.activity-popup button:focus-visible,.activity-popup a:focus-visible,.activity-popup-content:focus-visible { outline: 3px solid #ffbd59; outline-offset: -3px; }
.activity-popup-close { position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / 88%); border-radius: 50%; background: var(--ap-blue); color: #fff; box-shadow: 0 2px 10px rgb(7 59 101 / 25%); font-family: Arial,sans-serif !important; font-size: 30px !important; line-height: 1 !important; }
.activity-popup-close:hover { background: var(--ap-blue-dark); }
.activity-popup .activity-popup-close:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px #fff,0 0 0 2px var(--ap-blue-dark); }
.activity-popup-layout { display: grid; grid-template-columns: minmax(200px,25%) minmax(0,1fr); min-width: 0; min-height: 0; flex: 1; }
.activity-popup-sidebar { min-width: 0; min-height: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--ap-border); background: #f1f7fc; }
.activity-popup-list { display: flex; flex-direction: column; gap: 0; }
.activity-popup-choice { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 17px 20px; border: 0; border-bottom: 1px solid #dce9f4; border-radius: 0; background: transparent; color: #376381; text-align: left; font-size: 15px !important; font-weight: 600 !important; }
.activity-popup-choice-icon { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.activity-popup-choice-label { min-width: 0; overflow-wrap: anywhere; }
.activity-popup-choice:hover { background: #e3f0fb; }
.activity-popup-choice[aria-pressed="true"] { background: var(--ap-blue); border-bottom-color: var(--ap-blue); color: #fff; }
.activity-popup-more { display: block; width: calc(100% - 24px); min-height: 44px; margin: 12px; padding: 8px; border: 1px solid #b8d2e7; border-radius: 5px; background: #fff; color: #196da9; }
.activity-popup-more:disabled { color: var(--ap-muted); cursor: wait; }
.activity-popup-list-message { margin: 8px 12px 12px; color: var(--ap-muted); text-align: center; font-size: 12px; }
.activity-popup-list-message:empty { display: none; }
.activity-popup-content { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; scroll-padding: 16px; }
.activity-popup-article { position: relative; min-height: 100%; margin: 0; }
.activity-popup-article-image { height: 100%; min-height: 0; }
.activity-popup-cover { width: 100%; height: 100%; margin: 0; background: #fff; }
.activity-popup-cover img { display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; object-fit: contain; }
.activity-popup-image-link { display: block; width: 100%; height: 100%; color: inherit; }
.activity-popup-copy { min-height: 100%; padding: 36px 28px 28px; background: #fff; }
.activity-popup-title { margin: 0 40px 16px 0; color: var(--ap-ink); font-size: 23px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.activity-popup-summary,.activity-popup-body { margin: 0; font-size: 15px; line-height: 1.8; color: #496579; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-popup-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; margin: 12px 0; color: var(--ap-muted); font-size: 13px; }
.activity-popup-image-status { position: absolute; right: 12px; bottom: 12px; left: 12px; z-index: 1; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 6px 12px; border: 1px solid var(--ap-border); border-radius: 6px; background: rgb(255 255 255 / 95%); }
.activity-popup-retry { min-width: 52px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ap-border); border-radius: 6px; color: #176c9f; background: #fff; }
.activity-popup-detail-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 22px; padding: 10px 18px; border: 1px solid #b8d7ee; border-radius: 6px; background: #f2f8fd; color: #096aab; text-decoration: none; font-weight: 600 !important; }
.activity-popup-detail-link:hover { background: #e4f1fc; }
.activity-popup-empty { padding: 60px 24px 40px; margin: 0; color: var(--ap-muted); text-align: center; }
@media (max-width:640px) {
  .activity-popup { width: calc(100vw - 24px); height: min(520px,calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))); border-radius: 8px; }
  .activity-popup-close { top: 8px; right: 6px; }
  .activity-popup-layout { display: flex; flex-direction: column; }
  .activity-popup-sidebar { flex: none; display: flex; align-items: stretch; gap: 0; width: calc(100% - 56px); min-height: 60px; max-height: 102px; padding: 0; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--ap-border); background: #f1f7fc; }
  .activity-popup-list { flex-direction: row; flex: none; gap: 0; }
  .activity-popup-choice { flex: none; gap: 8px; width: auto; max-width: 188px; min-height: 60px; padding: 12px 14px; border-right: 1px solid #dce9f4; border-bottom: 0; white-space: normal; font-size: 13px !important; }
  .activity-popup-choice-icon { width: 18px; height: 18px; }
  .activity-popup-more { flex: none; width: 90px; min-height: 44px; margin: 8px; }
  .activity-popup-list-message { align-self: center; flex: none; width: 88px; margin: 0 8px; }
  .activity-popup-content { flex: 1; }
  .activity-popup-copy { padding: 22px 18px; }
  .activity-popup-title { margin-right: 0; font-size: 20px; }
  .activity-popup-summary,.activity-popup-body { font-size: 14px; }
}
