#orgasmic-app-prompt {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100000;
}

.orgasmic-app-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--el-bg-color, #fff);
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--el-border-color, rgba(15, 23, 42, 0.12));
}

.orgasmic-app-banner p {
  margin: 0;
  font-size: 14px;
}

.orgasmic-app-banner button,
.orgasmic-app-prefs-card button[type="submit"] {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--el-color-primary, #409eff);
  color: #fff;
}

.orgasmic-app-banner .oa-ghost,
.orgasmic-app-prefs-card .oa-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--el-border-color, rgba(15, 23, 42, 0.12));
}

.orgasmic-app-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.orgasmic-app-nav a {
  color: inherit !important;
  background: transparent !important;
}

.orgasmic-app-nav .oa-nav-icon,
.orgasmic-app-nav svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  fill: none !important;
  stroke: currentColor !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.orgasmic-app-nav .oa-nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.oa-profile-notify-item a,
a.oa-profile-notify {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.oa-profile-notify-item svg,
a.oa-profile-notify svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#orgasmic-app-prefs {
  position: fixed;
  inset: 0;
  z-index: 99995;
}

#orgasmic-app-prefs[hidden] {
  display: none !important;
}

.orgasmic-app-prefs-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(15, 23, 42, 0.45);
  overflow: auto;
}

.orgasmic-app-prefs-card {
  width: min(420px, 100%);
  border-radius: 16px;
  background: var(--el-bg-color, #fff);
  color: inherit;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--el-border-color, rgba(15, 23, 42, 0.12));
}

.orgasmic-app-prefs-card header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--el-border-color, rgba(15, 23, 42, 0.12));
}

.orgasmic-app-prefs-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.orgasmic-app-prefs-card .oa-sub {
  margin: 0 0 4px;
  font-size: 13px;
  opacity: 0.72;
}

.orgasmic-app-prefs-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 8px;
}

.orgasmic-app-prefs-card .oa-group-title {
  margin: 18px 18px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.55;
}

.orgasmic-app-prefs-card form .oa-group-title {
  margin: 0;
}

.orgasmic-app-prefs-card .oa-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.orgasmic-app-prefs-card .oa-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
}

.orgasmic-app-prefs-card .oa-row input {
  order: -1;
}

.orgasmic-app-prefs-card .oa-link {
  color: inherit;
  text-decoration: none;
}

.orgasmic-app-prefs-card .oa-legal {
  padding: 0 18px 8px;
}

.orgasmic-app-prefs-card .oa-danger-rows {
  padding: 0 18px;
}

.orgasmic-app-prefs-card .oa-sheet-grabber {
  display: none;
}

.orgasmic-app-prefs-card .oa-help {
  margin: 0 18px 16px;
  font-size: 13px;
  opacity: 0.72;
}

.orgasmic-app-prefs-card form .oa-help {
  margin: 0;
}

.orgasmic-app-prefs-card .oa-save {
  align-self: flex-start;
}

.orgasmic-app-prefs-card .oa-prefs-status {
  margin: 12px 18px 0;
  font-size: 13px;
}

.orgasmic-app-prefs-card .oa-prefs-status.is-error {
  color: #b45309;
}

.orgasmic-app-prefs-card .oa-delete {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b42318;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.orgasmic-app-prefs-card .oa-delete:disabled {
  opacity: 0.55;
  cursor: default;
}

.el-dropdown-menu .oa-profile-notify-item,
.el-dropdown-menu__item.oa-profile-notify,
li.oa-profile-notify-item {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.el-dropdown-menu .oa-profile-notify-item a,
.el-dropdown-menu a.oa-profile-notify,
li.oa-profile-notify-item a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit !important;
  text-decoration: none !important;
  width: 100%;
  box-sizing: border-box;
}

.el-dropdown-menu .oa-profile-notify-item svg,
.el-dropdown-menu a.oa-profile-notify svg,
li.oa-profile-notify-item svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  margin: 0 !important;
  flex-shrink: 0;
}

html.orgasmic-native {
  --orgasmic-native-top: env(safe-area-inset-top, 0px);
  --orgasmic-native-bottom: env(safe-area-inset-bottom, 0px);
}

html.orgasmic-native,
html.orgasmic-native body {
  overscroll-behavior-y: none;
}

@media (max-width: 760px) {
  html.orgasmic-native .fcom_header,
  html.orgasmic-native .fcom-header,
  html.orgasmic-native .fcom_top_bar,
  html.orgasmic-native .fcom_navbar,
  html.orgasmic-native .fluent_community_header,
  html.orgasmic-native [class*="fcom_header"],
  html.orgasmic-native [class*="fcom-header"] {
    padding-top: max(6px, var(--orgasmic-native-top)) !important;
  }

  html.orgasmic-native .fcom_contents,
  html.orgasmic-native main,
  html.orgasmic-native [class*="feed_wrap"],
  html.orgasmic-native [class*="FeedList"] {
    overscroll-behavior-y: contain;
  }

  html.orgasmic-native .fcom_mobile_menu,
  html.orgasmic-native .fcom-mobile-menu,
  html.orgasmic-native .fcom_mobile_nav,
  html.orgasmic-native .fluent_community_mobile_menu,
  html.orgasmic-native [class*="mobile_menu"],
  html.orgasmic-native [class*="mobile-menu"],
  html.orgasmic-native [class*="bottom-nav"],
  html.orgasmic-native [class*="bottom_nav"] {
    bottom: 0 !important;
    padding-bottom: var(--orgasmic-native-bottom) !important;
    z-index: 100000 !important;
  }
}

#orgasmic-ptr {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 100001;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: #1a73e8;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, 0);
}

#orgasmic-ptr[hidden] {
  display: none !important;
}

#orgasmic-ptr .orgasmic-ptr-disc {
  width: 24px;
  height: 24px;
  display: block;
}

#orgasmic-ptr .orgasmic-ptr-arrow {
  width: 24px;
  height: 24px;
  display: block;
  transform-origin: 50% 50%;
}

#orgasmic-ptr.is-busy .orgasmic-ptr-arrow {
  animation: orgasmic-ptr-spin 0.7s linear infinite;
}

@keyframes orgasmic-ptr-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#oa-announce-host {
  position: fixed;
  z-index: 2147483646;
  pointer-events: auto;
}

#oa-announce-flash {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100002;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1a1625;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

#oa-device-debug {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

#oa-device-debug[hidden] {
  display: none !important;
}

#oa-device-debug .oa-dd-card {
  width: min(520px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 16px;
  background: #f6f3ee;
  color: #1a1625;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

#oa-device-debug .oa-dd-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 750;
}

#oa-device-debug pre {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 10px;
  background: #1a1625;
  color: #f6f3ee;
  font-size: 11px;
  line-height: 1.4;
  overflow: auto;
  max-height: 46vh;
  white-space: pre-wrap;
  word-break: break-word;
}

#oa-device-debug .oa-dd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#oa-device-debug button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  background: #1a1625;
  color: #fff;
}

#oa-device-debug .oa-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(26, 22, 37, 0.18);
}

html.orgasmic-prefs-open,
html.orgasmic-prefs-open body {
  overflow: hidden;
}

html.orgasmic-ios {
  --oa-ios-bg: #f2f2f7;
  --oa-ios-grouped: #ffffff;
  --oa-ios-sep: rgba(60, 60, 67, 0.29);
  --oa-ios-blue: #007aff;
  --oa-ios-red: #ff3b30;
  --oa-ios-green: #34c759;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.orgasmic-ios,
html.orgasmic-ios body {
  background: var(--oa-ios-grouped);
}

html.orgasmic-ios button,
html.orgasmic-ios a,
html.orgasmic-ios [role="button"] {
  touch-action: manipulation;
}

html.orgasmic-ios input,
html.orgasmic-ios textarea,
html.orgasmic-ios select {
  font-size: 16px;
}

html.orgasmic-ios ::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@media (max-width: 760px) {
  html.orgasmic-ios .fcom_header,
  html.orgasmic-ios .fcom-header,
  html.orgasmic-ios .fcom_top_bar,
  html.orgasmic-ios .fcom_navbar,
  html.orgasmic-ios .fluent_community_header,
  html.orgasmic-ios [class*="fcom_header"],
  html.orgasmic-ios [class*="fcom-header"] {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--oa-ios-sep);
    padding-top: max(8px, var(--orgasmic-native-top, env(safe-area-inset-top, 0px))) !important;
  }

  html.orgasmic-ios .fcom_mobile_menu,
  html.orgasmic-ios .fcom-mobile-menu,
  html.orgasmic-ios .fcom_mobile_nav,
  html.orgasmic-ios .fluent_community_mobile_menu,
  html.orgasmic-ios [class*="mobile_menu"],
  html.orgasmic-ios [class*="mobile-menu"],
  html.orgasmic-ios [class*="bottom-nav"],
  html.orgasmic-ios [class*="bottom_nav"] {
    background: rgba(249, 249, 249, 0.94) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--oa-ios-sep) !important;
    min-height: calc(49px + var(--orgasmic-native-bottom, env(safe-area-inset-bottom, 0px)));
    padding-bottom: var(--orgasmic-native-bottom, env(safe-area-inset-bottom, 0px)) !important;
  }
}

html.orgasmic-ios .orgasmic-app-prefs-overlay {
  align-items: flex-end;
  padding: 0;
  background: rgba(0, 0, 0, 0.32);
}

html.orgasmic-ios .orgasmic-app-prefs-card {
  width: 100%;
  max-height: min(92vh, 820px);
  overflow: auto;
  border-radius: 14px 14px 0 0;
  border: 0;
  background: var(--oa-ios-bg);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-overflow-scrolling: touch;
}

html.orgasmic-ios .oa-sheet-grabber {
  display: block;
  width: 36px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.3);
}

html.orgasmic-ios .orgasmic-app-prefs-card header {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  padding: 6px 8px 10px 16px;
  background: var(--oa-ios-bg);
  border-bottom: 0;
}

html.orgasmic-ios .orgasmic-app-prefs-card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-sub {
  display: none;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-ghost {
  min-height: 44px;
  min-width: 64px;
  border: 0;
  background: transparent;
  color: var(--oa-ios-blue);
  font-size: 17px;
  font-weight: 600;
  padding: 8px 12px;
}

html.orgasmic-ios .orgasmic-app-prefs-card form {
  padding: 8px 0 0;
  gap: 8px;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-group-title {
  margin: 18px 32px 6px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  opacity: 0.5;
}

html.orgasmic-ios .orgasmic-app-prefs-card form .oa-group-title {
  margin-left: 32px;
  margin-right: 32px;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-rows {
  margin: 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--oa-ios-grouped);
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-legal,
html.orgasmic-ios .orgasmic-app-prefs-card .oa-danger-rows {
  padding: 0;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 17px;
  background: var(--oa-ios-grouped);
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-row + .oa-row {
  border-top: 0.5px solid var(--oa-ios-sep);
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-row input {
  order: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 51px;
  height: 31px;
  flex: 0 0 51px;
  margin: 0;
  border-radius: 16px;
  background: #e9e9ea;
  position: relative;
  transition: background 0.2s ease;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-row input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-row input:checked {
  background: var(--oa-ios-green);
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-row input:checked::after {
  transform: translateX(20px);
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-link {
  color: inherit;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-link span {
  flex: 1;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(60, 60, 67, 0.35);
  border-right: 2px solid rgba(60, 60, 67, 0.35);
  transform: rotate(45deg);
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-save {
  display: none;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-help {
  margin: 6px 32px 8px;
  font-size: 13px;
}

html.orgasmic-ios .orgasmic-app-prefs-card .oa-delete {
  color: var(--oa-ios-red);
  font-weight: 400;
  font-size: 17px;
  min-height: 44px;
}

html.orgasmic-ios .orgasmic-chat-list-top,
html.orgasmic-ios .orgasmic-chat-thread-top {
  min-height: 44px;
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--oa-ios-sep);
}

html.orgasmic-ios .orgasmic-chat-overlay.och-theme-dark .orgasmic-chat-list-top,
html.orgasmic-ios .orgasmic-chat-overlay.och-theme-dark .orgasmic-chat-thread-top {
  background: rgba(22, 24, 29, 0.88);
}

html.orgasmic-ios #orgasmic-chat-root .och-icon-btn {
  width: 44px;
  height: 44px;
  color: var(--oa-ios-blue);
}

html.orgasmic-ios .orgasmic-chat-search input {
  font-size: 16px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.12);
  border: 0;
}

html.orgasmic-ios .orgasmic-cal-overlay {
  padding-top: env(safe-area-inset-top, 0px);
}

html.orgasmic-ios .orgasmic-cal-actions .oc-btn,
html.orgasmic-ios .orgasmic-cal-month button {
  min-width: 44px;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  html.orgasmic-ios * {
    animation: none !important;
    transition: none !important;
  }
}

