.plaza-activity-search-row{display:flex;align-items:center;gap:16px;justify-content:space-between}
.plaza-activity-search-row .plaza-search{flex:1;min-width:0}
#ap-publish{flex-shrink:0;min-height:44px;margin-left:auto}
#ap-publish[hidden],#ap-edit[hidden]{display:none!important}
.ap-editor{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border:1px solid #e1e5f0;border-radius:18px;color:#25324b;background:white;box-shadow:0 30px 100px #17234530}
.ap-editor>form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);min-height:0}
.ap-editor header,.ap-editor footer{flex-shrink:0}
.ap-editor::backdrop{background:#17234566}
.ap-editor header,.ap-editor footer{padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ap-editor header{border-bottom:1px solid #edf0f6}.ap-editor header h2{margin:0;font-size:23px}.ap-editor header p{font-size:13px;color:#7c859b;margin:7px 0 0}
.ap-editor footer{border-top:1px solid #edf0f6;justify-content:flex-end}.ap-editor button{cursor:pointer}.ap-editor button:disabled{opacity:.6;cursor:wait}
.ap-close:not(.cv-btn),.ap-remove{border:0;background:none;font-size:25px;color:#8993a8}
.ap-form-body{padding:24px 26px;min-height:0;max-height:64vh;overflow:auto;overscroll-behavior:contain}
.ap-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ap-wide{grid-column:1/-1}
.ap-editor label{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:0}.ap-editor label>span{font-weight:600}
.ap-editor input,.ap-editor select,.ap-editor textarea{width:100%;box-sizing:border-box;border:1px solid #dce1ed;border-radius:8px;padding:10px 12px;background:#fff;color:#25324b;font:inherit;min-height:40px}.ap-editor textarea{resize:vertical}.ap-editor small,.ap-rewards>p{color:#8290a6;font-size:12px}
.ap-editor :is(input,select,textarea):focus{outline:2px solid #b6b0ff;outline-offset:1px}
.ap-rewards{margin-top:28px;padding-top:18px;border-top:1px solid #edf0f6}.ap-section-title{display:flex;justify-content:space-between;align-items:center}.ap-section-title h3{margin:0}.ap-rewards>label{margin-top:16px}
.ap-reward-row{display:grid;grid-template-columns:1.4fr .55fr .8fr .65fr 1.5fr 25px;gap:8px;align-items:end;padding:13px 0;border-bottom:1px solid #edf0f6}.ap-reward-row input,.ap-reward-row select{padding:8px}.ap-remove{height:40px}
.ap-error{color:#c83b50;background:#fff2f4;padding:12px;border-radius:8px}
.ap-prize-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.ap-prize-grid article{padding:20px;border:1px solid #e3e1fa;border-radius:12px;background:#faf9ff;display:flex;flex-direction:column;gap:9px}.ap-prize-grid strong{font-size:23px;color:#6255d5}.ap-prize-grid small{color:#7c869a}
.ap-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.ap-source{font-size:13px;color:#8290a6}.ap-source a{color:#6255d5}
#ad-body>p{white-space:pre-wrap}#ad-cta:disabled{opacity:.55;cursor:default}
/* One type system for event discovery, detail and editing. */
#view-activities,#view-activity-detail,.ap-editor{font-family:var(--font,"Microsoft YaHei",sans-serif);font-size:14px;line-height:1.75}
#view-activities :is(h1,h2,h3,h4,button,input),#view-activity-detail :is(h1,h2,h3,h4,button),.ap-editor :is(h2,h3,button,input,select,textarea){font-family:inherit!important;letter-spacing:normal}
#view-activities .editorial-event-body h3{font-size:18px;font-weight:650;line-height:1.55}
#view-activity-detail #ad-title{font-size:clamp(24px,2.4vw,34px);font-weight:700;line-height:1.45}
#view-activity-detail .plaza-activity-detail-block{padding-bottom:26px;margin-bottom:26px}
#view-activity-detail .plaza-activity-detail-block h2{font-size:18px;font-weight:650;line-height:1.5;margin:0 0 14px}
#view-activity-detail .plaza-activity-detail-block h3{font-size:15px;font-weight:600;line-height:1.6;margin:24px 0 8px}
#view-activity-detail .plaza-activity-detail-block p{font-size:14px;line-height:1.9;margin:0 0 12px}
#view-activity-detail .plaza-activity-detail-block p:last-child{margin-bottom:0}
#view-activity-detail .ap-source{margin-top:22px;font-size:12px;color:#8290a6}
.ap-editor .ap-section-title h3{font-size:17px;line-height:1.5}
/* Preserve the whole poster at all three sizes; never zoom/crop on hover. */
#view-activities .editorial-event-image img{object-fit:contain;transform:none!important;background:#f5f6fb}
#view-activities .plaza-activity-hero-art.has-image{background-size:contain!important;background-position:center;background-repeat:no-repeat;background-color:#f5f6fb}
#view-activity-detail .plaza-activity-detail-cover,#view-activity-detail .plaza-activity-detail-cover.has-image{height:auto!important;min-height:0!important;max-height:none;overflow:hidden;background:#f5f6fb}
#view-activity-detail .plaza-activity-detail-cover[hidden]{display:none!important}
#view-activity-detail .plaza-activity-detail-cover img{display:block;width:100%;height:auto;max-height:640px;object-fit:contain}
#view-activity-detail #ap-cover-note{margin:-18px 0 24px;font-size:12px;color:#8290a6}
#view-activities .plaza-activity-hero-nav{display:grid;place-items:center;width:38px;height:38px;padding:0;color:#5753d8;border-color:#d6d9f0;background:#fff}
#view-activities .plaza-activity-hero-nav svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#view-activities .plaza-activity-hero-nav:hover{background:#f0efff;border-color:#7770ed}
#view-activities .plaza-activity-hero-nav:focus-visible{outline:2px solid #7770ed;outline-offset:3px}
@media(max-width:640px){.ap-fields{grid-template-columns:1fr}.ap-reward-row{grid-template-columns:1fr 1fr}.ap-reward-row .ap-remove{justify-self:end}.ap-editor header,.ap-editor footer,.ap-form-body{padding:18px}.ap-prize-grid{grid-template-columns:1fr}.plaza-activity-search-row{gap:8px}#ap-publish{font-size:12px;padding:9px}}
