/* 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: #1085dc; --ap-ink: #173d57; --ap-muted: #60798c; --ap-border: #dbe6ef; box-sizing: border-box; width: min(1000px,calc(100vw - 48px)); max-width: none; height: min(730px,calc(100dvh - 64px)); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--ap-border); border-radius: 12px; background: #fff; color: var(--ap-ink); box-shadow: 0 24px 80px rgb(11 34 54 / 25%); font: 14px/1.6 Arial,"Microsoft YaHei","PingFang SC",sans-serif; }
.activity-popup[open] { display: flex; flex-direction: column; }
.activity-popup::backdrop { background: rgb(9 28 46 / 55%); }
.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-header { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 16px; min-height: 64px; padding: 8px 12px 8px 24px; border-bottom: 1px solid var(--ap-border); background: #fff; }
.activity-popup-header h2 { margin: 0; color: var(--ap-ink); font-size: 20px; line-height: 1.4; font-weight: 700; }
.activity-popup-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #466277; font-family: Arial,sans-serif !important; font-size: 30px !important; line-height: 1 !important; }
.activity-popup-close:hover { background: #edf4fa; }
.activity-popup-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); min-width: 0; min-height: 0; flex: 1; }
.activity-popup-sidebar { min-width: 0; min-height: 0; padding: 16px 12px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--ap-border); background: #f5f8fb; }
.activity-popup-list { display: flex; flex-direction: column; gap: 8px; }
.activity-popup-choice { position: relative; width: 100%; min-height: 56px; padding: 12px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #446077; text-align: left; overflow-wrap: anywhere; font-weight: 600 !important; }
.activity-popup-choice:hover { background: #e8f1f8; }
.activity-popup-choice[aria-pressed="true"] { border-color: var(--ap-blue); background: var(--ap-blue); color: #fff; }
.activity-popup-more { display: block; width: 100%; min-height: 44px; margin-top: 12px; padding: 8px; border: 1px solid #c5d8e7; border-radius: 6px; background: #fff; color: #236f9f; }
.activity-popup-more:disabled { color: var(--ap-muted); cursor: wait; }
.activity-popup-list-message { margin: 8px 0 0; 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 { margin: 0; }
.activity-popup-cover { display: grid; place-items: center; width: 100%; min-height: 120px; background: #f0f4f7; }
.activity-popup-cover img { display: block; width: 100%; max-height: 480px; height: auto; object-fit: contain; }
.activity-popup-copy { padding: 22px 26px 26px; }
.activity-popup-title { margin: 0 0 14px; 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-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: 40px 24px; margin: 0; color: var(--ap-muted); text-align: center; }
@media (max-width:640px) {
  .activity-popup { width: calc(100vw - 24px); height: calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); border-radius: 10px; }
  .activity-popup-header { min-height: 58px; padding: 6px 8px 6px 16px; }
  .activity-popup-header h2 { font-size: 18px; }
  .activity-popup-layout { display: flex; flex-direction: column; }
  .activity-popup-sidebar { flex: none; display: flex; align-items: stretch; gap: 8px; max-height: 102px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--ap-border); }
  .activity-popup-list { flex-direction: row; flex: none; gap: 8px; }
  .activity-popup-choice { width: auto; max-width: 190px; min-height: 44px; padding: 10px 14px; white-space: normal; font-size: 13px !important; }
  .activity-popup-more { flex: none; width: 92px; min-height: 44px; margin: 0; }
  .activity-popup-list-message { align-self: center; flex: none; width: 88px; margin: 0; }
  .activity-popup-content { flex: 1; }
  .activity-popup-cover img { max-height: 420px; }
  .activity-popup-copy { padding: 18px; }
  .activity-popup-title { font-size: 20px; margin-bottom: 12px; }
  .activity-popup-summary,.activity-popup-body { font-size: 14px; }
}
