/* Activity event card semantic variant v3. Shell owns two-zone anatomy. */
html body .shayos-activity-event-card.shayos-item-card.shayos-item-card--surface.shayos-surface-zoned {
  --shayos-card-upper-bg:#dff3fc;
  --shayos-card-lower-bg:#fff;
  border-color:#c4dce8!important;
}
html body .shayos-activity-event-card.shayos-item-card--surface.shayos-surface-zoned .shayos-surface-card-body>.shayos-surface-upper {
  background:var(--shayos-card-upper-bg)!important;
}
html body .shayos-activity-event-card.shayos-item-card--surface.shayos-surface-zoned .shayos-surface-card-body>.shayos-surface-lower {
  background:var(--shayos-card-lower-bg)!important;
}
html body .shayos-activity-event-card.shayos-item-card--surface.shayos-surface-zoned .shayos-item-card__schedule-tag {
  direction:ltr!important;unicode-bidi:isolate!important;
  color:#204c74!important;
}

/* Semantic Activity event-ball renderer, independent of product scripts. */
html body .shayos-activity-event-card :is(.shayos-activity-event-card-edit,.shayos-space-event-card-edit,.focus-event-card-edit) {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:44px!important;height:44px!important;padding:0!important;margin:0!important;
 background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;
}
html body .shayos-activity-event-card :is(.shayos-activity-event-card-edit,.shayos-space-event-card-edit,.focus-event-card-edit)::before,
html body .shayos-activity-event-card :is(.shayos-activity-event-card-edit,.shayos-space-event-card-edit,.focus-event-card-edit)::after {content:none!important;display:none!important;}
html body .shayos-activity-event-card :is(.shayos-event-ball,.focus-event-ball) {
 width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;
 flex:0 0 44px!important;display:inline-flex!important;align-items:center!important;
 justify-content:center!important;overflow:hidden!important;border-radius:50%!important;
 background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
.shayos-activity-event-card :is(.shayos-event-ball,.focus-event-ball) svg {width:100%!important;height:100%!important;display:block!important;}
.shayos-activity-event-ball__mark-track {animation:shayos-activity-ball-scroll 7s linear infinite;will-change:transform;}
@keyframes shayos-activity-ball-scroll {from{transform:translate3d(0,0,0)}to{transform:translate3d(-40px,0,0)}}
@media(prefers-reduced-motion:reduce){.shayos-activity-event-ball__mark-track{animation:none!important}}

/* Server-side event card fallback for fragments rendered after asset enqueue. */
.shayos-activity-event-card-fallback{width:100%;box-sizing:border-box;border:1px solid #c4dce8;border-radius:24px;overflow:hidden;background:#fff;direction:rtl}
.shayos-activity-event-card-fallback__upper{min-height:75px;display:flex;justify-content:flex-start;align-items:center;padding:16px 18px;background:#dff3fc;color:#153f67;font-size:clamp(18px,4.3vw,28px);line-height:1.3}
.shayos-activity-event-card-fallback__lower{min-height:75px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 18px;background:white}
.shayos-activity-event-card-fallback__lower time{direction:ltr;color:#204c74;margin-inline-end:auto}
.shayos-activity-event-card-fallback__lower button[data-shayos-event-card-edit]{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-width:44px;min-height:44px;cursor:pointer}
.shayos-activity-fallback-ball{width:44px;height:44px;position:relative;display:block;overflow:hidden;border-radius:50%;background:radial-gradient(circle at 30% 23%,#fff 0%,#f9fbfd 60%,#bac9d4 100%);border:1px solid #acbdc9;box-sizing:border-box}
.shayos-activity-fallback-ball__track{position:absolute;top:11px;left:9px;width:88px;height:22px;background-image:var(--shayos-fallback-ball-logo),var(--shayos-fallback-ball-logo);background-size:22px 22px,22px 22px;background-position:0 0,44px 0;background-repeat:no-repeat;animation:shayos-activity-ball-scroll 7s linear infinite;}
@media(prefers-reduced-motion:reduce){.shayos-activity-fallback-ball__track{animation:none!important}}
html body [data-shayos-activity-event-payload] .shayos-activity-event-card-fallback__lower button[data-shayos-space-fallback-edit]{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}

/* A single server-rendered Space event launcher survives replacement of the
   Shell card. In RTL the inline end is the left edge, away from event dates. */
.shayos-activity-event-card-mount{position:relative;isolation:isolate;min-width:0;width:100%;box-sizing:border-box}
html body .shayos-activity-event-card-mount>.shayos-activity-event-card-edit--persistent{
 position:absolute!important;inset-inline-end:12px!important;bottom:10px!important;
 z-index:12!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 padding:0!important;margin:0!important;background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;cursor:pointer;
}
html body .shayos-activity-event-card-mount>.shayos-activity-event-card-edit--persistent::before,
html body .shayos-activity-event-card-mount>.shayos-activity-event-card-edit--persistent::after{content:none!important;display:none!important}
html body .shayos-activity-event-card-mount>.shayos-activity-event-card-edit--persistent :is(.shayos-activity-fallback-ball,.shayos-event-ball){width:44px!important;height:44px!important;display:block!important;border-radius:50%!important;overflow:hidden!important}
html body .shayos-activity-event-card-mount>.shayos-activity-event-card-edit--persistent:focus-visible{outline:3px solid #23558d!important;outline-offset:3px!important}

/* Activity is a provider of card content. Shell owns all four region positions. */
.shayos-activity-event-card.shayos-surface-zoned .shayos-surface-extensions > [data-shayos-card-related-links] {position:static!important;width:100%!important;}

/* The event card lower content region stays white in all date periods.
 * Shell owns the upper header tab and its original color is unchanged.
 * Activity provides only event semantics, not period-specific card fills. */

/* Per-event actions reuse the existing Shell/Core controllers; do not intercept the card's click. */
.shayos-activity-event-card > .shayos-item-card__controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shayos-activity-event-card-share{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:40px;padding:5px 9px;border:1px solid #c9d9e8;border-radius:11px;background:#fff;color:#174a80;cursor:pointer}
.shayos-activity-event-card-action-error{width:100%;color:#a21d26;font-size:12px;direction:rtl}

/* The complete period state belongs to the event; no WordPress theme state. */
.shayos-unified-event-entry[data-event-period="past"] .shayos-activity-event-card-fallback {background:#f0f1f3;border-color:#b9c0c8}
.shayos-unified-event-entry[data-event-period="past"] .shayos-activity-event-card-fallback__upper {background:#e1e4e8}
.shayos-unified-event-entry[data-event-period="past"] .shayos-activity-event-card-fallback__lower {background:#f0f1f3}

.shayos-activity-event-open{display:block;width:max-content;max-width:100%;margin:8px 16px 12px auto;text-decoration:underline;color:#563083;font-weight:600;}

/* Open event uses the same calendar-control row and size as existing actions. */
html body .shayos-activity-event-open.shayos-event-calendar-action,html body .shayos-space-event-open.shayos-event-calendar-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0!important;background:transparent!important;text-decoration:none!important;box-shadow:none!important}
html body .shayos-activity-event-open .shayos-event-action-icon,html body .shayos-space-event-open .shayos-event-action-icon{display:inline-flex!important;width:42px!important;height:42px!important}

/* Canonical Space open action: same icon control row, not a second text button. */
.shayos-activity-event-card-open{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-width:42px;min-height:42px;text-decoration:none}
.shayos-activity-event-card-open .shayos-event-action-icon{display:inline-flex;width:48px;height:48px}
.shayos-activity-event-card-open .shayos-event-action-icon__image{display:block;width:100%;height:100%;object-fit:contain}

/* Canonical open action shares the existing calendar control strip. */
html body .shayos-item-card__controls > .shayos-activity-event-card-open{display:inline-flex!important;vertical-align:middle!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;align-items:center!important;justify-content:center!important;box-shadow:none!important}
html body .shayos-item-card__controls > .shayos-activity-event-card-open .shayos-event-action-icon{width:48px!important;height:48px!important}

/* 1.14.7 - one generic calendar clock action on every Activity event card.
   Shell owns the 3D art and existing calendar menu. Never clip the action row. */
html body .shayos-activity-event-card .shayos-item-card__controls,
html body .shayos-activity-event-card .focus-note__direct-actions,
html body .shayos-activity-event-card .shayos-surface-identity-actions {
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;gap:6px!important;overflow:visible!important;
 min-width:0!important;max-width:100%!important;
}
html body .shayos-activity-event-card .shayos-surface-identity-actions > .shayos-item-card__controls {flex:1 1 auto!important;min-width:0!important;}
html body .shayos-activity-event-card button.shayos-activity-event-card-calendar {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
 flex:0 0 46px!important;padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;
 background-image:none!important;box-shadow:none!important;cursor:pointer;
}
html body .shayos-activity-event-card button.shayos-activity-event-card-calendar:disabled {opacity:.48!important;cursor:not-allowed;}
html body .shayos-activity-event-card button.shayos-activity-event-card-calendar:focus-visible{outline:3px solid #174a80!important;outline-offset:2px!important;border-radius:8px!important;}
/* Higher owner specificity than Shell's older nowrap identity-strip rule. */
html body .shayos-activity-event-card.shayos-item-card .shayos-item-card__controls,
html body .shayos-activity-event-card.shayos-item-card .shayos-surface-identity-actions {
 flex-wrap:wrap!important;overflow:visible!important;
}

/* 1.15.1 - Shell QR dialog owns visible likes/views; never add a card widget. */
html body .shayos-activity-event-card .shayos-activity-event-engagement-state[hidden]{display:none!important;}
