/* One look for every Spossity pop-up (same as popup-sheet.css and notification-sheet.css):
   frosted glass card, 28px corners, a clean header with no grey band, a round close button,
   and pill buttons (main action violet, the rest glass). Media viewers (Watch live) use dark glass. */
:root { --pop-glass: rgba(250,248,255,.8); --pop-edge: rgba(255,255,255,.82); --pop-ink: #17163a; --pop-soft: #625f88; --pop-line: rgba(23,22,58,.07);
  --pop-shadow: 0 2px 6px rgba(29,25,62,.08), 0 24px 60px rgba(29,25,62,.22); --pop-primary: linear-gradient(140deg,#8a5cff,#5b6cff); --pop-field: rgba(255,255,255,.72); }
html[data-theme="dark"] { --pop-glass: rgba(26,25,46,.86); --pop-edge: rgba(220,208,255,.18); --pop-ink: #f5f3ff; --pop-soft: #aaa6cc; --pop-line: rgba(255,255,255,.08);
  --pop-shadow: 0 24px 60px rgba(0,0,0,.45); --pop-field: rgba(255,255,255,.08); }

/* The card. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-sheet, .comments-sheet, .location-picker-sheet, dialog.timeline-history-dialog,
  .host-event-category-panel, .host-event-audience-dialog, .host-event-team-invite-dialog, .event-studio-position-dialog, .avatar-order-dialog,
  dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.spossity-device-lock, dialog.post-menu-dialog) {
  border: 0 !important; border-radius: 28px !important; color: var(--pop-ink) !important;
  background: var(--pop-glass) !important; box-shadow: var(--pop-shadow), inset 0 0 0 1px var(--pop-edge) !important;
  backdrop-filter: blur(28px) saturate(160%) !important; -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.timeline-history-dialog > .timeline-history-shell { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Headers: no grey band; a clear title. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-header, .comments-header, .location-picker-header, .timeline-history-header,
  .host-event-category-panel > header, .host-event-audience-header, .host-event-team-invite-header, .avatar-order-heading) {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-header, .comments-header, .location-picker-header, .timeline-history-header,
  .host-event-category-panel > header, .host-event-audience-header, .host-event-team-invite-header) :is(h2, h3, h4, strong) { color: var(--pop-ink) !important; letter-spacing: -.01em; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-body, .comments-list, .location-picker-list, .host-event-category-list) { background: transparent !important; border: 0 !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-body, .avatar-order-dialog) p { color: var(--pop-soft); }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .account-consent-body p:first-child { color: var(--pop-ink); }

/* Footers: no band, just the buttons. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-footer, .comments-form, .host-event-team-invite-actions, .avatar-order-actions) {
  background: transparent !important; border: 0 !important; border-top: 1px solid var(--pop-line) !important; box-shadow: none !important; gap: 10px;
}

/* Round close button, everywhere. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-close, .comments-close, .location-picker-close, .host-event-category-close,
  .host-event-audience-close, .host-event-team-invite-close, .timeline-history-header button[aria-label*="Close" i], .timeline-history-close) {
  width: 34px !important; height: 34px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 0 !important;
  display: grid !important; place-items: center !important; font-size: 18px !important; line-height: 1 !important; cursor: pointer;
  color: var(--pop-soft) !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important; outline: none;
}

/* Pill buttons: the main action violet, the other glass. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-accept, .comments-form > button[type="submit"], .comments-form > button:last-child,
  .host-event-team-invite-actions > button:last-child, .avatar-order-actions .avatar-studio-primary) {
  min-height: 44px; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; font-weight: 600 !important;
  color: #fff !important; background: var(--pop-primary) !important; box-shadow: 0 6px 16px rgba(110,80,255,.28) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-accept, .host-event-team-invite-actions > button:last-child, .avatar-order-actions .avatar-studio-primary):disabled { opacity: .5; box-shadow: none !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-consent-later, .host-event-team-invite-actions > button:first-child:not(:last-child), .avatar-order-actions .avatar-studio-secondary) {
  min-height: 44px; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; font-weight: 600 !important;
  color: var(--pop-ink) !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}

/* Fields inside pop-ups: soft rounded glass. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.comments-form input, .location-picker-search, .host-event-team-invite-dialog label > input, .host-event-team-invite-role select) {
  border: 0 !important; border-radius: 999px !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important; color: var(--pop-ink) !important;
}

/* Watch live: a media viewer, so dark glass with light text in both themes. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .live-watch-dialog {
  border: 0 !important; border-radius: 28px !important; overflow: hidden; color: #f5f8ff !important;
  background: rgba(14,13,30,.92) !important; box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.1) !important;
  backdrop-filter: blur(28px) saturate(150%) !important; -webkit-backdrop-filter: blur(28px) saturate(150%) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.live-watch-header, .live-watch-footer) { background: transparent !important; border: 0 !important; color: #f5f8ff !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .live-watch-header * { color: inherit !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .live-watch-header small { color: rgba(245,243,255,.65) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .live-watch-close { width: 34px !important; height: 34px !important; border-radius: 50% !important; border: 0 !important; display: grid !important; place-items: center !important; background: rgba(255,255,255,.12) !important; color: #fff !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .live-watch-footer .event-action:not(.live-watch-leave) { min-height: 40px; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; color: #fff !important; background: rgba(255,255,255,.12) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .live-watch-footer .live-watch-leave { min-height: 40px; padding: 0 18px !important; border: 0 !important; border-radius: 999px !important; color: #fff !important; background: linear-gradient(140deg,#ff4d7d,#e0245e) !important; }

/* Backdrops behind every pop-up: the page dims and softly blurs. */
:is(.account-consent-modal, .comments-modal, .location-picker-modal, .live-watch-modal, .event-studio-position-modal, .avatar-order-modal, .host-event-category-overlay, .host-event-audience-overlay, .host-event-team-invite-overlay):not([hidden]) {
  background: rgba(20,18,44,.28) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
:is(dialog.timeline-history-dialog, dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.spossity-device-lock, dialog.post-menu-dialog)::backdrop { background: rgba(20,18,44,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Keyboard focus: soft violet ring. */
:is(.account-consent-sheet, .comments-sheet, .location-picker-sheet, .timeline-history-dialog, .host-event-category-panel, .host-event-audience-dialog, .host-event-team-invite-dialog, .event-studio-position-dialog, .avatar-order-dialog, .live-watch-dialog) :is(button, a, input, select):focus-visible { outline: 2px solid rgba(123,77,255,.55) !important; outline-offset: 2px; }
:is(.account-consent-sheet, .comments-sheet, .location-picker-sheet, .timeline-history-dialog, .host-event-category-panel, .host-event-audience-dialog, .host-event-team-invite-dialog, .event-studio-position-dialog, .avatar-order-dialog, .live-watch-dialog) :is(button, a):focus:not(:focus-visible) { outline: none !important; }
@media (prefers-reduced-transparency: reduce) { :root { --pop-glass: #f7f5fc; } html[data-theme="dark"] { --pop-glass: #242236; } }

/* ---- Small confirm pop-ups (delete account, device sign-in, voice consent, report/block, device lock) ---- */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.post-menu-dialog, dialog.spossity-device-lock) {
  box-sizing: border-box; width: min(420px, calc(100vw - 32px)) !important; padding: 24px 22px 22px !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.post-menu-dialog, dialog.spossity-device-lock) h2 {
  margin: 0 0 8px !important; font-size: 18px !important; font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: -.01em; color: var(--pop-ink) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.post-menu-dialog, dialog.spossity-device-lock) p {
  margin: 0 0 8px !important; font-size: 14px !important; line-height: 1.5 !important; color: var(--pop-soft) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.post-menu-dialog label { display: grid; gap: 6px; margin: 8px 0 4px; font-size: 13px; font-weight: 600; color: var(--pop-soft); }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(dialog.post-menu-dialog select, dialog.verified-subscription input[type="text"], dialog.verified-subscription input:not([type])) {
  min-height: 44px; padding: 0 14px !important; border: 0 !important; border-radius: 14px !important; font: inherit; color: var(--pop-ink) !important;
  background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-deletion-dialog-actions, .spossity-voice-consent-actions, .post-menu-dialog-actions) {
  display: flex !important; gap: 10px !important; margin-top: 16px !important; justify-content: stretch !important;
}
/* Every pill: glass by default. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :where(.account-deletion-dialog-actions button, .spossity-voice-consent-actions button, .post-menu-dialog-actions button,
  dialog.spossity-device-lock > button, .ps-pill, dialog.verified-subscription > button) {
  flex: 1 1 0; min-height: 44px !important; margin: 0 !important; padding: 0 18px !important; border: 0 !important; border-radius: 999px !important; outline: none;
  font-family: inherit; font-size: 14px !important; font-weight: 600 !important; cursor: pointer;
  color: var(--pop-ink) !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}
/* The main action is violet: Agree, Enable, Unlock, Record. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is([data-agree], .spossity-voice-consent-actions button:last-child, dialog.spossity-device-lock [data-unlock], .ps-pill.ps-primary) {
  color: #fff !important; background: var(--pop-primary) !important; box-shadow: 0 6px 16px rgba(110,80,255,.28) !important;
}
/* Actions that cannot be undone are red: delete account, report, block, stop recording. */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.account-deletion-dialog-actions [data-confirm], .post-menu-dialog-actions button[value="confirm"], .ps-pill.ps-danger) {
  color: #fff !important; background: linear-gradient(140deg,#ff5a7e,#e0245e) !important; box-shadow: 0 6px 16px rgba(224,36,94,.25) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.spossity-device-lock > button { width: 100%; margin-top: 10px !important; }
:is(dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.post-menu-dialog, dialog.spossity-device-lock, dialog.verified-subscription, dialog.sp-reaction-picker) :is(button, a, input, select):focus-visible { outline: 2px solid rgba(123,77,255,.55) !important; outline-offset: 2px; }
:is(dialog.spossity-account-delete-dialog, dialog.spossity-voice-consent, dialog.post-menu-dialog, dialog.spossity-device-lock) button:focus:not(:focus-visible) { outline: none !important; }

/* ---- Event recordings ---- */
html:root:root body dialog.event-recordings-dialog .event-recordings-actions { display: flex; gap: 10px; }
html:root:root body dialog.event-recordings-dialog .event-recordings-actions:empty, html:root:root body dialog.event-recordings-dialog .event-recordings-error:empty { display: none; }
html:root:root body dialog.event-recordings-dialog .event-recordings-error { color: #e0245e !important; }
html:root:root body dialog.event-recordings-dialog .event-recordings-list { display: grid; gap: 10px; }
html:root:root body dialog.event-recordings-dialog .event-recordings-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--pop-field); box-shadow: inset 0 0 0 1px var(--pop-line); }
html:root:root body dialog.event-recordings-dialog .event-recordings-row > p { flex: 1 1 100%; color: var(--pop-ink) !important; }
html:root:root body dialog.event-recordings-dialog .event-recordings-row .ps-pill { flex: 0 1 auto; min-height: 38px !important; }
html:root:root body dialog.event-recordings-dialog .event-recordings-row .ps-pill:last-child { color: #fff !important; background: var(--pop-primary) !important; box-shadow: none !important; }

/* ---- Verified subscriptions (Spot Shield / badge) ---- */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription {
  border: 0 !important; border-radius: 28px !important; padding: 24px 22px 22px !important; color: var(--pop-ink) !important;
  background: var(--pop-glass) !important; box-shadow: var(--pop-shadow), inset 0 0 0 1px var(--pop-edge) !important;
  backdrop-filter: blur(28px) saturate(160%) !important; -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription h2 { margin: 0 0 8px !important; font-size: 18px !important; font-weight: 700; color: var(--pop-ink) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription :is(p, small, summary) { color: var(--pop-soft) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription .verified-plan-options button {
  border: 0 !important; border-radius: 20px !important; color: var(--pop-ink) !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription .verified-plan-options button:is(:hover, [aria-pressed="true"]) { box-shadow: inset 0 0 0 2px rgba(123,77,255,.55) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription input[type="file"] { color: var(--pop-soft); }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription::backdrop { background: rgba(20,18,44,.28); backdrop-filter: blur(6px); }

/* ---- Reaction picker ---- */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.sp-reaction-picker {
  border: 0 !important; border-radius: 28px !important; color: var(--pop-ink) !important;
  background: var(--pop-glass) !important; box-shadow: var(--pop-shadow), inset 0 0 0 1px var(--pop-edge) !important;
  backdrop-filter: blur(28px) saturate(160%) !important; -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.sp-reaction-picker .sp-reaction-search input { border: 0 !important; border-radius: 999px !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important; color: var(--pop-ink) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.sp-reaction-picker .sp-reaction-search button { width: 34px; height: 34px; min-height: 0; border: 0 !important; border-radius: 50% !important; background: var(--pop-field) !important; color: var(--pop-soft) !important; }
dialog.sp-reaction-picker::backdrop { background: rgba(20,18,44,.22); backdrop-filter: blur(4px); }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription .spot-form-actions { display: flex; gap: 10px; justify-content: flex-end; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription .spot-form-actions button {
  min-height: 44px !important; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; font-weight: 600 !important;
  color: var(--pop-ink) !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription .spot-form-actions button:last-child:not([data-cancel]):not([data-back]) { color: #fff !important; background: var(--pop-primary) !important; box-shadow: 0 6px 16px rgba(110,80,255,.28) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription .spot-form-actions button:disabled { opacity: .5; box-shadow: none !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) dialog.verified-subscription input[type="file"] { width: 100%; box-sizing: border-box; padding: 8px !important; border: 0 !important; border-radius: 14px !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important; }
html:root:root body dialog.verified-subscription { outline: none !important; }

/* ---- Inside Event Studio pop-ups: tabs are one segmented pill, choices are glass rows. ---- */
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.host-event-team-invite-tabs, .event-studio-position-dialog > div:not(.event-studio-position-options)) {
  display: flex !important; gap: 4px !important; padding: 4px !important; border: 0 !important; border-radius: 999px !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.host-event-team-invite-tabs, .event-studio-position-dialog > div:not(.event-studio-position-options)) > button {
  flex: 1 1 0; min-height: 36px !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; font-weight: 600 !important;
  color: var(--pop-soft) !important; background: transparent !important; box-shadow: none !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.host-event-team-invite-tabs, .event-studio-position-dialog > div:not(.event-studio-position-options)) > button:is([aria-selected="true"], [aria-pressed="true"], .is-active, .active) {
  color: #fff !important; background: var(--pop-primary) !important; box-shadow: 0 4px 12px rgba(110,80,255,.25) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) :is(.event-studio-position-options > button, .host-event-audience-lower, .host-event-audience-summary) {
  border: 0 !important; border-radius: 18px !important; color: var(--pop-ink) !important; background: var(--pop-field) !important; box-shadow: inset 0 0 0 1px var(--pop-line) !important;
}
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .event-studio-position-options > button:is([aria-pressed="true"], [aria-checked="true"], .is-selected, .selected) { box-shadow: inset 0 0 0 2px rgba(123,77,255,.6) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .event-studio-position-options > button :is(small, span:last-child) { color: var(--pop-soft) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .event-studio-position-dialog > :is(p, h3) { color: var(--pop-ink) !important; }
html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .event-studio-position-dialog > p { color: var(--pop-soft) !important; }
