.activity-cards { display: grid; gap: 10px; margin: 12px 0; max-width: 390px; }
.activity-card { width: 100%; display: flex; gap: 12px; padding: 13px; border: 1px solid #e8e8ef; border-radius: 16px; background: #fff; text-align: left; color: #292c38; cursor: pointer; font: inherit; }
.activity-card:hover { background: #faf9ff; border-color: #d4d5ed; }
.activity-card-copy { flex: 1; min-width: 0; }
.activity-card strong { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0; }
.activity-card p { font-size: 12px; color: #8a8d99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 8px; }
.activity-card img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; align-self: center; background: #f5f5f8; }
.activity-category { display: inline-block; font-size: 10px; color: #6662aa; background: #efedff; border-radius: 5px; padding: 2px 7px; }
.activity-entry { font-size: 11px; color: #e47742; }
.ad-dialog { width: 90vw; height: 90vh; height: 90dvh; max-width: 700px; max-height: 90dvh; margin: auto; padding: 0; border: 1px solid #ffffffa8; border-radius: 23px; color: #292c38; background: #f6f7fa; box-shadow: 0 24px 100px #12172f35; overflow: hidden; font: 14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; }
.ad-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.ad-dialog::backdrop { background: rgb(15 20 30 / 32%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ad-dialog *, .ad-dialog *::before { box-sizing: border-box; }
.ad-dialog [hidden] { display: none !important; }
.ad-dialog button { font: inherit; cursor: pointer; }
.ad-dialog button:focus-visible, .activity-card:focus-visible, .ad-value:focus-visible { outline: 2px solid #6574f3; outline-offset: -2px; }
.ad-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fff; }
.ad-header h2 { font-size: 17px; margin: 0; }
.ad-close { border: 0; width: 36px; height: 36px; min-height: 36px; padding: 0; background: #f2f3f6; border-radius: 50%; font-size: 24px !important; color: #6e7483; }
.ad-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px; scrollbar-width: thin; }
.ad-body h3 { margin: 10px 0; font-size: 16px; line-height: 1.6; }
.ad-body p { font-size: 13px; color: #797d8a; line-height: 1.8; margin: 8px 0; overflow-wrap: anywhere; }
.ad-hero, .ad-access, .ad-info { background: white; padding: 16px; border-radius: 16px; margin-bottom: 12px; }
.ad-cover { display: block; width: 100%; max-height: 160px; object-fit: contain; margin: 0 0 14px; border-radius: 12px; }
.ad-field { margin: 16px 0 0; }
.ad-field label { display: block; font-size: 12px; color: #777c8a; }
.ad-value { display: block; width: 100%; margin: 6px 0; border: 1px solid #e8e8f0; border-radius: 10px; padding: 10px; font: inherit; color: #545a68; background: #fafafb; resize: none; overflow-wrap: anywhere; word-break: break-all; -webkit-user-select: text; user-select: text; }
.ad-copy, .ad-retry { border: 0; border-radius: 20px; padding: 8px 18px; color: #6255ab; background: #f0edff; }
.ad-copy:hover, .ad-retry:hover { background: #e8e2ff; }
.ad-copy { width: 100%; }
.ad-footer { display: flex; align-items: center; gap: 12px; padding: 10px 18px max(10px,env(safe-area-inset-bottom)); border-top: 1px solid #e9ebf2; background: white; }
.ad-status { margin: 0; font-size: 11px; color: #8b8e9c; flex: 1; }
.ad-retry { flex-shrink: 0; font-size: 12px !important; }
@media(max-width:400px) { .ad-header { padding: 12px 15px; } .ad-body { padding: 10px; } .ad-hero,.ad-access,.ad-info { padding: 13px; } }

.ad-top { min-width: 0; background: #fff; border-bottom: 1px solid #ececf2; }
.ad-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; overscroll-behavior: contain; }
.ad-tab { flex: 0 0 auto; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #e8e7ef; border-radius: 12px; padding: 9px 12px; background: #faf9fc; color: #70717d; font-size: 12px !important; }
.ad-tab[aria-selected="true"] { background: #fff0e7; color: #bc4e25; border-color: #ffd3b8; font-weight: 600; }
.ad-loading { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; padding: 22px 0; }
.ad-loading .nz-loader { --nz-size: 120px; }
.ad-loading p { font-size: 12px; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-code-block { margin: 16px 0; text-align: center; }
.ad-code { display: block; width: min(200px,100%); height: auto; margin: 0 auto 10px; background: #fff; }
.ad-code-block figcaption { font-size: 12px; color: #777c8a; }
