/* ==========================================================================
   Guest Preview Mode — Banner, Lockdown, Gated Modal, Share Popover
   ========================================================================== */

/* --------------------------------------------------------------------------
   Preview Banner (fixed top bar)
   -------------------------------------------------------------------------- */

.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--accent, #0964A0);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.preview-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  max-width: 100%;
  gap: 16px;
}

.preview-banner__text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.preview-banner__label {
  font-weight: 700;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-banner__msg {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.preview-banner__btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: none;
  white-space: nowrap;
}

.preview-banner__btn:hover {
  transform: translateY(-1px);
}

.preview-banner__btn--signup {
  background: #fff;
  color: var(--accent, #0964A0);
}

.preview-banner__btn--signup:hover {
  background: #f0f0f0;
}

.preview-banner__btn--login {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.preview-banner__btn--login:hover {
  background: rgba(255,255,255,0.3);
}

/* Warning state (near expiry) */
.preview-banner--warning {
  background: #d97706;
}

/* Expired state */
.preview-banner--expired {
  background: #dc2626;
}

/* Body adjustment when banner is present */
.has-preview-banner .app-header {
  top: 38px;
}

.has-preview-banner .app-body,
.has-preview-banner .app-shell .app-body {
  margin-top: 38px;
}

.has-preview-banner #v2-sidebar {
  top: calc(var(--header-h, 48px) + 38px);
  height: calc(100dvh - var(--header-h, 48px) - 38px);
}

/* --------------------------------------------------------------------------
   Expired Overlay (full-page takeover)
   -------------------------------------------------------------------------- */

.preview-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.preview-expired-overlay.visible {
  opacity: 1;
}

.preview-expired-overlay__card {
  background: var(--surface, #1e1e1e);
  color: var(--fg, #e0e0e0);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.preview-expired-overlay__icon {
  font-size: 48px;
  color: var(--accent, #0964A0);
  margin-bottom: 16px;
}

.preview-expired-overlay__card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.preview-expired-overlay__card p {
  margin: 0 0 24px;
  color: var(--muted, #888);
  font-size: 14px;
}

.preview-expired-overlay__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Preview Lockdown (sidebar + search disabled)

   Only dim the sidebar on viewports wide enough to actually display it as a
   column. On mobile (<=767px) `.app-sidebar` becomes a slide-in drawer that
   starts off-screen (transform:translateX(-100%)) with a full-screen
   `.sidebar-backdrop` sibling behind it. Applying opacity + grayscale to the
   drawer there makes the combined drawer-plus-backdrop look like a sheer
   grey overlay covering the entire viewport, even though the user never
   opened the sidebar. Navigation is already blocked on mobile regardless of
   these styles:
     - the sidebar toggle button is `display:none` in preview mode
       (applyPreviewLockdown in appV2.js), so the drawer can't be opened,
     - every sidebar link/button gets a `blockPreviewNav` click handler and
       `tabindex="-1"` attached in JS, independent of `pointer-events`,
     - the sidebar carries `aria-hidden="true"` for assistive tech.
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .preview-lockdown #v2-sidebar {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(0.5);
  }

  .preview-lockdown #v2-sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    cursor: not-allowed;
  }
}

/* Mobile preview: the drawer stays off-screen and its toggle is hidden, so
   there is nothing to "backdrop". Suppress the backdrop to avoid a stray
   grey layer covering the page on narrow viewports. */
@media (max-width: 767px) {
  .preview-lockdown .sidebar-backdrop {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Gated Action Modal
   -------------------------------------------------------------------------- */

.gated-action-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  opacity: 0;
  transition: opacity 0.2s;
}

.gated-action-modal.open {
  opacity: 1;
}

.gated-action-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.gated-action-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface, #1e1e1e);
  color: var(--fg, #e0e0e0);
  border-radius: 12px;
  padding: 32px;
  width: 380px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.gated-action-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted, #888);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
}

.gated-action-modal__close:hover {
  color: var(--fg, #e0e0e0);
  background: var(--hover-bg, rgba(255,255,255,0.08));
}

.gated-action-modal__icon {
  font-size: 36px;
  color: var(--accent, #0964A0);
  margin-bottom: 12px;
}

.gated-action-modal__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.4;
}

.gated-action-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.gated-action-modal__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}

.gated-action-modal__btn--signup {
  background: var(--accent, #0964A0);
  color: #fff;
}

.gated-action-modal__btn--signup:hover {
  filter: brightness(1.1);
}

.gated-action-modal__btn--login {
  background: var(--hover-bg, rgba(255,255,255,0.08));
  color: var(--fg, #e0e0e0);
}

.gated-action-modal__btn--login:hover {
  background: var(--hover-bg, rgba(255,255,255,0.12));
}

.gated-action-modal__props {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  border-top: 1px solid var(--border, rgba(255,255,255,0.1));
  padding-top: 16px;
}

.gated-action-modal__props-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted, #888);
  margin-bottom: 8px;
  font-weight: 600;
}

.gated-action-modal__props li {
  font-size: 13px;
  padding: 3px 0;
  color: var(--fg, #e0e0e0);
}

.gated-action-modal__props li i {
  color: var(--accent, #0964A0);
  margin-right: 8px;
  width: 14px;
}

/* --------------------------------------------------------------------------
   Session Expired Re-Auth Modal
   -------------------------------------------------------------------------- */

.session-expired-modal {
  position: fixed;
  inset: 0;
  z-index: 16000;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-expired-modal.open {
  opacity: 1;
}

.session-expired-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.session-expired-modal__dialog {
  position: relative;
  z-index: 1;
  background: var(--surface, #1e1e1e);
  color: var(--fg, #e0e0e0);
  border-radius: 12px;
  padding: 32px;
  width: 380px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.session-expired-modal.open .session-expired-modal__dialog {
  transform: scale(1);
}

.session-expired-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted, #888);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
}

.session-expired-modal__close:hover {
  color: var(--fg, #e0e0e0);
  background: var(--hover-bg, rgba(255, 255, 255, 0.08));
}

.session-expired-modal__icon {
  font-size: 36px;
  color: var(--accent, #0964A0);
  margin-bottom: 12px;
}

.session-expired-modal__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
}

.session-expired-modal__subtitle {
  font-size: 13px;
  color: var(--muted, #888);
  margin: 0 0 20px;
}

.session-expired-modal__form {
  text-align: left;
}

.session-expired-modal__field {
  margin-bottom: 12px;
}

.session-expired-modal__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  background: var(--input-bg, rgba(255, 255, 255, 0.06));
  color: var(--fg, #e0e0e0);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.session-expired-modal__input:focus {
  border-color: var(--accent, #0964A0);
}

.session-expired-modal__input::placeholder {
  color: var(--muted, #888);
}

.session-expired-modal__error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.session-expired-modal__submit {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: var(--accent, #0964A0);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
}

.session-expired-modal__submit:hover {
  filter: brightness(1.1);
}

.session-expired-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.session-expired-modal__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted, #888);
  text-decoration: none;
}

.session-expired-modal__link:hover {
  color: var(--fg, #e0e0e0);
  text-decoration: underline;
}

/* Light mode overrides */
@media (prefers-color-scheme: light) {
  .session-expired-modal__dialog {
    background: #fff;
    color: #1a1a1a;
  }
  .session-expired-modal__close:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.06);
  }
  .session-expired-modal__input {
    background: #f5f5f5;
    border-color: #ddd;
    color: #1a1a1a;
  }
  .session-expired-modal__input::placeholder {
    color: #999;
  }
}

.dark-theme .session-expired-modal__dialog {
  background: #111520;
  color: #e6e9f0;
}

.dark-theme .session-expired-modal__title {
  color: #ffffff;
}

.dark-theme .session-expired-modal__subtitle {
  color: #c4c9d4;
}

.dark-theme .session-expired-modal__input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e6e9f0;
}

.dark-theme .session-expired-modal__input::placeholder {
  color: #94a3b8;
}

.dark-theme .session-expired-modal__close {
  color: #94a3b8;
}

.dark-theme .session-expired-modal__close:hover {
  color: #e6e9f0;
  background: rgba(255, 255, 255, 0.08);
}

.dark-theme .session-expired-modal__link {
  color: #94a3b8;
}

.dark-theme .session-expired-modal__link:hover {
  color: #e6e9f0;
}

.dark-theme .session-expired-modal__oauth-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #e6e9f0;
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-theme .session-expired-modal__oauth-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--v2-accent, #2563eb);
}

/* Session-expiring (pre-expiry warning) modal: the "Your session is about
   to expire" title/subtitle and the Sign-out button share the expired-modal
   base styles but need explicit dark overrides because a prefers-color-scheme:
   light @media block otherwise forces them to near-black colors inside the
   now-dark dialog. */
.dark-theme .session-expiring-modal__countdown {
  color: #ffffff;
}

.dark-theme .session-expiring-modal__signout {
  background: rgba(255, 255, 255, 0.04);
  color: #e6e9f0;
  border-color: rgba(255, 255, 255, 0.16);
}

.dark-theme .session-expiring-modal__signout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--v2-accent, #2563eb);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Session Expired Modal: OAuth provider buttons
   -------------------------------------------------------------------------- */

.session-expired-modal__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--muted, #888);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.session-expired-modal__divider::before,
.session-expired-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.12));
}

.session-expired-modal__oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-expired-modal__oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  background: var(--surface, transparent);
  color: var(--fg, #e0e0e0);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.session-expired-modal__oauth-btn:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.06));
  border-color: var(--accent, #0964A0);
}

.session-expired-modal__oauth-btn svg {
  flex-shrink: 0;
}

@media (prefers-color-scheme: light) {
  .session-expired-modal__oauth-btn {
    background: #fff;
    color: #1a1a1a;
    border-color: #ddd;
  }
  .session-expired-modal__oauth-btn:hover {
    background: #f5f5f5;
  }
}

/* --------------------------------------------------------------------------
   Session Expiring Modal (pre-expiry warning)
   Shares backdrop/dialog/title/subtitle/error styles with
   .session-expired-modal (both classes are applied).
   -------------------------------------------------------------------------- */

.session-expiring-modal__dialog .session-expired-modal__icon {
  color: #f59e0b; /* amber, to differentiate from expired state (blue lock) */
}

.session-expiring-modal__countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--fg, #e0e0e0);
}

.session-expiring-modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.session-expiring-modal__extend {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: var(--accent, #0964A0);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
}

.session-expiring-modal__extend:hover {
  filter: brightness(1.1);
}

.session-expiring-modal__extend:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.session-expiring-modal__signout {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  background: transparent;
  color: var(--fg, #e0e0e0);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.session-expiring-modal__signout:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.06));
  border-color: var(--accent, #0964A0);
}

.session-expiring-modal__signout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.session-expiring-modal__error {
  margin-top: 12px;
  margin-bottom: 0;
}

@media (prefers-color-scheme: light) {
  .session-expiring-modal__countdown {
    color: #1a1a1a;
  }
  .session-expiring-modal__signout {
    color: #1a1a1a;
    border-color: #ddd;
  }
  .session-expiring-modal__signout:hover {
    background: #f5f5f5;
  }
}

/* --------------------------------------------------------------------------
   Share Preview Popover
   -------------------------------------------------------------------------- */

.share-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: 5px;
  background: transparent;
  color: var(--fg, #e0e0e0);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.share-preview-btn:hover {
  background: var(--hover-bg, rgba(255,255,255,0.06));
  border-color: var(--accent, #0964A0);
}

.share-preview-popover {
  opacity: 0;
  transition: opacity 0.15s;
}

.share-preview-popover.open {
  opacity: 1;
}

.share-preview-popover__inner {
  background: var(--surface, #1e1e1e);
  color: var(--fg, #e0e0e0);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 10px;
  padding: 16px;
  width: 360px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

.share-preview-popover__header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.share-preview-popover__desc {
  font-size: 12px;
  color: var(--muted, #888);
  margin: 0 0 12px;
}

.share-preview-popover__url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.share-preview-popover__url-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 5px;
  background: var(--input-bg, rgba(255,255,255,0.05));
  color: var(--fg, #e0e0e0);
}

.share-preview-popover__copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  background: var(--accent, #0964A0);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
}

.share-preview-popover__copy-btn:hover {
  filter: brightness(1.1);
}

.share-preview-popover__copy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.share-preview-popover__copy-btn--secondary {
  background: var(--hover-bg, rgba(255,255,255,0.06));
  color: var(--fg, #e0e0e0);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
}

/* Editable "Display text" input above the URL row. Lets users tweak the
   anchor text used by Copy as link / Copy as MD / X / Email subject before
   they paste. */
.share-preview-popover__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #888);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.share-preview-popover__anchor-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 5px;
  background: var(--input-bg, rgba(255,255,255,0.05));
  color: var(--fg, #e0e0e0);
  margin-bottom: 8px;
}

.share-preview-popover__anchor-input:focus {
  outline: none;
  border-color: var(--accent, #0964A0);
  box-shadow: 0 0 0 2px rgba(9,100,160,0.15);
}

/* Three Copy buttons sit in their own row so the URL display can take the
   full width without competing for space. Wraps gracefully on narrow popovers. */
.share-preview-popover__copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.share-preview-popover__copy-row .share-preview-popover__copy-btn {
  flex: 1 1 auto;
  min-width: 0;
}

.share-preview-popover__social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted, #888);
}

.share-preview-popover__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--fg, #e0e0e0);
  background: var(--hover-bg, rgba(255,255,255,0.06));
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s;
}

.share-preview-popover__social-btn:hover {
  background: var(--accent, #0964A0);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Light Theme Overrides
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: light) {
  .preview-expired-overlay__card,
  .gated-action-modal__dialog,
  .share-preview-popover__inner {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  }

  .gated-action-modal__close:hover {
    color: #1a1a1a;
    background: rgba(0,0,0,0.06);
  }

  .gated-action-modal__btn--login {
    background: rgba(0,0,0,0.06);
    color: #1a1a1a;
  }

  .gated-action-modal__props li {
    color: #333;
  }

  .share-preview-btn {
    color: #333;
    border-color: rgba(0,0,0,0.15);
  }

  .share-preview-btn:hover {
    background: rgba(0,0,0,0.04);
  }

  .share-preview-popover__url-input,
  .share-preview-popover__anchor-input {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.12);
  }

  .share-preview-popover__label {
    color: #555;
  }

  .share-preview-popover__copy-btn--secondary {
    background: rgba(0,0,0,0.06);
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.12);
  }

  .share-preview-popover__social-btn {
    color: #333;
    background: rgba(0,0,0,0.06);
  }
}

/* --------------------------------------------------------------------------
   Dark Theme Overrides
   The block above keys off OS `prefers-color-scheme`, which fires even when
   the user has manually toggled the app to dark mode via .dark-theme. On a
   light-scheme OS with dark app mode, the share button and its popover were
   rendering #333 text on a near-black header — unreadable. Re-assert dark
   colours whenever .dark-theme is active so the app toggle always wins.
   -------------------------------------------------------------------------- */
.dark-theme .share-preview-btn {
  color: #e6e9f0 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: transparent !important;
}
.dark-theme .share-preview-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #4db5e0 !important;
  color: #ffffff !important;
}

.dark-theme .share-preview-popover__inner {
  background: #161b26 !important;
  color: #e6e9f0 !important;
  border-color: #1e2433 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55) !important;
}
.dark-theme .share-preview-popover__header {
  color: #f1f3f7 !important;
}
.dark-theme .share-preview-popover__desc,
.dark-theme .share-preview-popover__social {
  color: #b0b7c5 !important;
}
.dark-theme .share-preview-popover__url-input,
.dark-theme .share-preview-popover__anchor-input {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e6e9f0 !important;
  border-color: #2e3240 !important;
}
.dark-theme .share-preview-popover__label {
  color: #b0b7c5 !important;
}
.dark-theme .share-preview-popover__copy-btn {
  background: #0d7cc4 !important;
  color: #ffffff !important;
}
.dark-theme .share-preview-popover__copy-btn--secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #e6e9f0 !important;
  border-color: #2e3240 !important;
}
.dark-theme .share-preview-popover__copy-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10) !important;
}
.dark-theme .share-preview-popover__social-btn {
  color: #e6e9f0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.dark-theme .share-preview-popover__social-btn:hover {
  background: #0d7cc4 !important;
  color: #ffffff !important;
}
