/* ===== PAGE SETTINGS POPUP ===== */
.page-settings-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.page-settings-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.page-settings-popup {
  position: absolute;
  top: 54px;
  right: 8px;
  width: 300px;
  max-height: calc(100% - 80px);
  overflow-y: auto;
  z-index: 31;
  background: transparent;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 24px;
  box-shadow: 0px 0px 2px rgba(0,0,0,0.12), 0px 8px 16px rgba(0,0,0,0.14);
  padding: 8px 0 24px;
  opacity: 0;
  transform: scale(0.92) translateY(-8px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  isolation: isolate;
}
/* Figma dual-layer background (node 1282:17430):
   Layer 1 — solid rgba(153,153,153,0.97)
   Layer 2 — #5c5c5c with backdrop-blur(25px) and mix-blend-mode color-dodge,
             blending against Layer 1 to produce the luminous ~#f0f0f0 look. */
.page-settings-popup::before,
.page-settings-popup::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.page-settings-popup::before {
  background: rgba(153, 153, 153, 0.97);
  z-index: -2;
}
.page-settings-popup::after {
  background: #5c5c5c;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  mix-blend-mode: color-dodge;
  z-index: -1;
}
.page-settings-popup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.page-settings-header {
  font-size: 17px;
  font-weight: 600;
  color: rgba(0,0,0,0.86);
  padding: 0 32px;
  height: 48px;
  display: flex;
  align-items: center;
}
.page-settings-content {
  padding: 8px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-settings-group {
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  overflow: hidden;
}
.page-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 44px;
  gap: 8px;
}
.page-settings-row-chevron {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.page-settings-row-chevron:active {
  background: rgba(0,0,0,0.04);
}
.page-settings-label {
  font-size: 17px;
  color: rgba(0,0,0,0.86);
  flex: 1;
  letter-spacing: -0.43px;
}
.page-settings-divider {
  height: 0.5px;
  background: #e0e0e0;
  margin-left: 16px;
}
.page-settings-radio-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
}
.page-settings-radio {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: rgba(0,0,0,0.86);
  cursor: pointer;
  letter-spacing: -0.23px;
}
.page-settings-radio input[type="radio"] {
  accent-color: #2169eb;
  width: 18px;
  height: 18px;
}
.page-settings-edit-bg-btn {
  width: 236px;
  margin: 12px auto 16px;
  display: block;
  height: 40px;
  background: transparent;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: #242424;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.23px;
  padding: 0 12px;
}
.page-settings-edit-bg-btn:active {
  opacity: 0.7;
}
.page-settings-footer {
  padding: 0 16px;
  font-size: 13px;
  color: rgba(0,0,0,0.74);
  line-height: 18px;
  letter-spacing: -0.08px;
}
.page-settings-footer a {
  color: #2169eb;
  text-decoration: none;
}
.page-settings-footer p {
  margin-top: 4px;
}
