@font-face {
  font-family: "NotionInter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/mirror/_next/static/media/NotionInter-Regular-i18n.4c3206e4.woff2") format("woff2");
}

@font-face {
  font-family: "NotionInter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/mirror/_next/static/media/NotionInter-SemiBold-i18n.5e5b5908.woff2") format("woff2");
}

.notion-overlay {
  --overlay-accent: #0075de;
  --overlay-accent-hover: #0060b6;
  --overlay-accent-active: #0057a8;
  --overlay-surface: #191919;
  --overlay-surface-elevated: #222225;
  --overlay-border: rgba(255, 255, 255, 0.1);
  --overlay-text: #ffffff;
  --overlay-text-muted: rgba(255, 255, 255, 0.56);
  --overlay-text-subtle: rgba(255, 255, 255, 0.4);
  --overlay-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.28);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.notion-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.notion-overlay__dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 32px 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--overlay-surface-elevated) 0%, var(--overlay-surface) 100%);
  border: 1px solid var(--overlay-border);
  box-shadow: var(--overlay-shadow);
  font-family: "NotionInter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--overlay-text);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.notion-overlay.is-open .notion-overlay__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.notion-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--overlay-text-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.notion-overlay__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--overlay-text);
}

.notion-overlay__close svg {
  width: 16px;
  height: 16px;
  display: block;
}

.notion-overlay__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.notion-overlay__logo {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.notion-overlay__brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--overlay-text);
}

.notion-overlay__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--overlay-text);
}

.notion-overlay__title strong {
  font-weight: 600;
  color: var(--overlay-text);
}

.notion-overlay__note {
  margin: 0 auto 28px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--overlay-text-muted);
}

.notion-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notion-overlay__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--overlay-accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.notion-overlay__button:hover:not(:disabled) {
  background: var(--overlay-accent-hover);
}

.notion-overlay__button:active:not(:disabled) {
  background: var(--overlay-accent-active);
  transform: translateY(1px);
}

.notion-overlay__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.notion-overlay__button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.notion-overlay__button-icon,
.notion-overlay__button-spinner {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.notion-overlay__button-icon {
  display: block;
}

.notion-overlay__button-spinner {
  display: none;
  animation: notion-overlay-spin 0.75s linear infinite;
}

.notion-overlay__button.is-loading .notion-overlay__button-icon {
  display: none;
}

.notion-overlay__button.is-loading .notion-overlay__button-label {
  display: none;
}

.notion-overlay__button.is-loading .notion-overlay__button-spinner {
  display: block;
}

.notion-overlay__hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--overlay-text-subtle);
}

.notion-overlay__status {
  margin: 10px 0 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: #ff8e8e;
}

.notion-overlay__status:empty {
  display: none;
}

@keyframes notion-overlay-spin {
  to {
    transform: rotate(360deg);
  }
}

html.notion-overlay-locked,
body.notion-overlay-locked {
  overflow: hidden !important;
  background: #0f0f0f;
  scrollbar-width: none;
}

html.notion-overlay-locked::-webkit-scrollbar,
body.notion-overlay-locked::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 480px) {
  .notion-overlay {
    padding: 16px;
    align-items: flex-end;
  }

  .notion-overlay__dialog {
    padding: 28px 22px 24px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
  }

  .notion-overlay.is-open .notion-overlay__dialog {
    transform: translateY(0);
  }

  .notion-overlay__title {
    font-size: 21px;
  }

  .notion-overlay__note {
    font-size: 14px;
  }
}
