/* Pressure global AI + Guide OS access layer */
.pm-swipe-layer-ready #pmCopilotOrb.pm-swipe-legacy-ai,
.pm-swipe-layer-ready #guideLauncher.pm-swipe-legacy-guide {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pm-swipe-layer-ready #pmPressureAIBubble.pm-swipe-bubble,
.pm-swipe-layer-ready #fab.pm-swipe-fab-host {
  position: fixed !important;
  left: calc(14px + env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  z-index: 2147482600 !important;
}

.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble {
  position: fixed !important;
  right: calc(14px + env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  z-index: 2147482600 !important;
}

.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  gap: 0 !important;
  overflow: visible !important;
  border: 2px solid rgba(255,255,255,.15) !important;
  background: radial-gradient(circle at 30% 30%, #5b8def 0%, #1d4fb4 58%, #071329 100%) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 30px rgba(91,141,239,.42), inset 0 0 22px rgba(255,255,255,.08) !important;
  color: #fff !important;
  animation: pmGuideOrbBreath 4s ease-in-out infinite !important;
}

.pm-swipe-bubble:hover,
.pm-swipe-bubble:focus-visible {
  transform: translateY(-2px) scale(1.06);
}

.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble:hover,
.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble:focus-visible {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  transform: translateY(-2px) scale(1.06) !important;
  background: radial-gradient(circle at 30% 30%, #5b8def 0%, #1d4fb4 58%, #071329 100%) !important;
}

.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble .lbl,
.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble .lbl-text {
  display: none !important;
  width: 0 !important;
  font-size: 0 !important;
}

.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble .em {
  display: inline-grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble::before {
  content: none !important;
  display: none !important;
}

.pm-swipe-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(10,10,10,.92);
  box-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
  font: 800 20px/1 "Sora", system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.pm-swipe-bubble-ai {
  border-color: rgba(255,45,45,.48);
  background: linear-gradient(135deg, #ff2d2d, #111 56%);
}

.pm-swipe-bubble-guide {
  border-color: rgba(91,141,239,.56);
  background: radial-gradient(circle at 30% 30%, #5b8def 0%, #1d4fb4 58%, #071329 100%);
  color: #fff;
}

.pm-swipe-bubble .orb-icon {
  position: relative;
  z-index: 2;
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.38));
  transition: transform .28s ease;
}

.pm-swipe-bubble:hover .orb-icon,
.pm-swipe-bubble:focus-visible .orb-icon {
  transform: scale(1.1);
}

.pm-swipe-bubble .orb-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid transparent;
  border-top-color: rgba(255,45,45,.58);
  border-radius: 50%;
  animation: pmSwipeOrbRotate 3s linear infinite;
  opacity: .68;
  pointer-events: none;
}

.pm-swipe-bubble .orb-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,45,.38) 0%, transparent 70%);
  animation: pmSwipeOrbPulse 2s ease-out infinite;
  pointer-events: none;
}

.pm-swipe-bubble-guide .orb-ring {
  border-top-color: rgba(91,141,239,.78);
}

.pm-swipe-bubble-guide .orb-pulse {
  background: radial-gradient(circle, rgba(91,141,239,.36) 0%, transparent 70%);
}

@keyframes pmGuideOrbBreath {
  0%,100% { box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 30px rgba(91,141,239,.42), inset 0 0 22px rgba(255,255,255,.08); }
  50% { box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 50px rgba(91,141,239,.68), inset 0 0 28px rgba(255,255,255,.12); }
}

@keyframes pmSwipeOrbRotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes pmSwipeOrbPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.pm-swipe-layer-ready #fab.pm-swipe-fab-host .fab-btn {
  width: 58px;
  height: 58px;
}

.pm-swipe-layer-ready #fab.pm-swipe-fab-host .fab-lab {
  left: 70px;
  right: auto;
}

.pm-swipe-bubble:focus-visible,
.pm-swipe-panel button:focus-visible,
.pm-swipe-panel input:focus-visible,
.pm-swipe-panel textarea:focus-visible,
.pm-swipe-panel a:focus-visible {
  outline: 2px solid rgba(255,255,255,.86);
  outline-offset: 3px;
}

.pm-swipe-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482700;
  background: rgba(0,0,0,.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease;
  contain: layout paint style;
}

.pm-swipe-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pm-swipe-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 2147482800;
  width: min(430px, 92vw);
  min-height: 100dvh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(20,20,20,.98), rgba(5,5,5,.98)),
    #050505;
  color: #f5f5f5;
  box-shadow: 0 24px 70px rgba(0,0,0,.72);
  transform: translateX(0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .26s ease, opacity .2s ease;
  font-family: "Sora", system-ui, sans-serif;
  contain: layout paint style;
}

.pm-swipe-panel[data-side="right"] {
  right: 0;
  transform: translateX(105%);
}

.pm-swipe-panel[data-side="left"] {
  left: 0;
  transform: translateX(-105%);
}

.pm-swipe-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.pm-pressure-ai-panel {
  border-right-color: rgba(255,45,45,.32);
}

.pm-guide-os-panel {
  border-left-color: rgba(214,168,58,.32);
}

.pm-swipe-panel-open {
  overflow: hidden;
}

.pm-swipe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 14px;
}

.pm-swipe-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff3b3b;
  font: 800 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.pm-guide-os-panel .pm-swipe-kicker {
  color: #d6a83a;
}

.pm-swipe-title {
  margin: 8px 0 7px;
  font: 400 clamp(34px, 5vw, 54px)/.86 "Anton", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pm-swipe-desc {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

.pm-swipe-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 21px;
}

.pm-swipe-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-swipe-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  padding: 7px 10px;
  font: 800 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pm-swipe-field {
  display: grid;
  gap: 9px;
}

.pm-swipe-label {
  color: rgba(255,255,255,.66);
  font: 800 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.pm-swipe-input,
.pm-swipe-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
  color: #fff;
  padding: 12px 13px;
  font: 500 14px/1.45 "Sora", system-ui, sans-serif;
}

.pm-swipe-textarea {
  min-height: 92px;
  resize: vertical;
}

.pm-swipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-swipe-chip,
.pm-swipe-action {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.045);
  color: #f5f5f5;
  padding: 9px 11px;
  font: 800 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pm-swipe-chip:hover,
.pm-swipe-action:hover {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.075);
}

.pm-swipe-primary {
  border-color: rgba(255,45,45,.72);
  background: #ff2d2d;
  color: #fff;
}

.pm-guide-os-panel .pm-swipe-primary {
  border-color: rgba(214,168,58,.7);
  background: #d6a83a;
  color: #160f00;
}

.pm-swipe-section {
  display: grid;
  gap: 10px;
}

.pm-swipe-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  padding: 13px;
}

.pm-swipe-card-title {
  color: #fff;
  font: 900 12px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pm-swipe-card p {
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.5;
}

.pm-swipe-recent {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-swipe-recent li {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  padding: 10px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
}

.pm-swipe-footer {
  margin-top: auto;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
}

.pm-swipe-hidden {
  display: none !important;
}

.pm-swipe-hide {
  position: fixed;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,5,5,.92);
  color: #fff;
  font: 900 15px/1 "Sora", system-ui, sans-serif;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  z-index: 2147482601;
  cursor: pointer;
  touch-action: manipulation;
}

.pm-swipe-hide-ai {
  left: calc(48px + env(safe-area-inset-left));
  bottom: calc(52px + env(safe-area-inset-bottom));
  border-color: rgba(255,45,45,.42);
}

.pm-swipe-hide-guide {
  right: calc(48px + env(safe-area-inset-right));
  bottom: calc(52px + env(safe-area-inset-bottom));
  border-color: rgba(91,141,239,.58);
}

.pm-swipe-edge-tab {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  min-height: 30px;
  max-width: 92px;
  padding: 0 8px;
  display: none;
  align-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,8,8,.94);
  color: #fff;
  font: 900 8px/1 "JetBrains Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(0,0,0,.52);
  z-index: 2147482602;
  cursor: pointer;
  touch-action: manipulation;
}

.pm-swipe-edge-tab-ai {
  left: 0;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  border-color: rgba(255,45,45,.44);
  background: linear-gradient(90deg, rgba(255,45,45,.22), rgba(8,8,8,.94) 70%);
}

.pm-swipe-edge-tab-guide {
  right: 0;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  border-color: rgba(91,141,239,.58);
  background: linear-gradient(270deg, rgba(91,141,239,.25), rgba(8,8,8,.94) 70%);
  color: #e5efff;
}

.pm-swipe-edge-tab:focus-visible,
.pm-swipe-hide:focus-visible {
  outline: 2px solid rgba(255,255,255,.86);
  outline-offset: 3px;
}

body.pm-swipe-ai-collapsed #pmPressureAIBubble.pm-swipe-bubble,
body.pm-swipe-ai-collapsed #fab.pm-swipe-fab-host,
body.pm-swipe-ai-collapsed #pmPressureAIHide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-16px) scale(.92);
}

body.pm-swipe-guide-collapsed #pmGuideOSBubble.pm-swipe-bubble,
body.pm-swipe-guide-collapsed #pmGuideOSHide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(16px) scale(.92);
}

body.pm-swipe-ai-collapsed #pmPressureAITab,
body.pm-swipe-guide-collapsed #pmGuideOSTab {
  display: inline-flex;
}

.pm-gesture-hints {
  position: fixed;
  inset: 0;
  z-index: 2147482550;
  pointer-events: none;
}

.pm-gesture-hint {
  position: fixed;
  top: auto;
  bottom: calc(84px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: min(250px, 42vw);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(10,10,10,.92), rgba(42,10,10,.9)),
    rgba(0,0,0,.9);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
  padding: 10px 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0,0,0) scale(.96);
  transition: opacity .28s ease, transform .28s ease, border-color .2s ease;
  cursor: pointer;
}

.pm-gesture-hints.is-visible .pm-gesture-hint {
  opacity: 1;
  pointer-events: auto;
}

.pm-gesture-hint-ai {
  left: calc(14px + env(safe-area-inset-left));
  border-color: rgba(255,45,45,.52);
  background:
    linear-gradient(135deg, rgba(255,45,45,.24), rgba(10,10,10,.94) 58%),
    rgba(0,0,0,.9);
  transform: translate3d(-10px,0,0) scale(.96);
}

.pm-gesture-hint-guide {
  right: calc(14px + env(safe-area-inset-right));
  border-color: rgba(91,141,239,.54);
  background:
    linear-gradient(225deg, rgba(91,141,239,.22), rgba(10,10,10,.94) 58%),
    rgba(0,0,0,.9);
  transform: translate3d(10px,0,0) scale(.96);
}

.pm-gesture-hints.is-visible .pm-gesture-hint-ai {
  transform: translate3d(0,0,0) scale(1);
  animation: pmGestureHintLeft 1.55s ease-in-out 3;
}

.pm-gesture-hints.is-visible .pm-gesture-hint-guide {
  transform: translate3d(0,0,0) scale(1);
  animation: pmGestureHintRight 1.55s ease-in-out 3;
}

.pm-gesture-hint:hover,
.pm-gesture-hint:focus-visible {
  border-color: rgba(255,255,255,.5);
  background-color: rgba(0,0,0,.98);
}

.pm-gesture-arrow {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  font: 900 18px/1 "Sora", system-ui, sans-serif;
}

.pm-gesture-hint-ai .pm-gesture-arrow {
  color: #ff5a5a;
}

.pm-gesture-hint-guide .pm-gesture-arrow {
  color: #7fb0ff;
}

.pm-gesture-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.pm-gesture-copy strong {
  font: 900 10px/1 "JetBrains Mono", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pm-gesture-copy span {
  font: 900 13px/1 "Sora", system-ui, sans-serif;
  letter-spacing: 0;
}

.pm-gesture-hints.is-hiding .pm-gesture-hint {
  opacity: 0;
  transform: translate3d(0,0,0) scale(.94);
}

@keyframes pmGestureHintLeft {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  45% { transform: translate3d(-12px,0,0) scale(1.02); }
}

@keyframes pmGestureHintRight {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  45% { transform: translate3d(12px,0,0) scale(1.02); }
}

.pm-swipe-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .pm-swipe-layer-ready #pmPressureAIBubble.pm-swipe-bubble,
  .pm-swipe-layer-ready #fab.pm-swipe-fab-host {
    left: calc(10px + env(safe-area-inset-left)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .pm-swipe-layer-ready #pmGuideOSBubble.pm-swipe-bubble {
    right: calc(10px + env(safe-area-inset-right)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .pm-swipe-bubble,
  .pm-swipe-layer-ready #fab.pm-swipe-fab-host .fab-btn {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .pm-swipe-panel {
    width: 100vw;
    max-width: none;
    padding: 18px;
  }

  .pm-swipe-hide-ai {
    left: calc(42px + env(safe-area-inset-left));
    bottom: calc(42px + env(safe-area-inset-bottom));
  }

  .pm-swipe-hide-guide {
    right: calc(42px + env(safe-area-inset-right));
    bottom: calc(42px + env(safe-area-inset-bottom));
  }

  .pm-swipe-edge-tab {
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 28px;
    max-width: 82px;
    padding: 0 7px;
    font-size: 8px;
  }

  .pm-swipe-layer-ready #fab.pm-swipe-fab-host .fab-lab {
    display: none;
  }

  .pm-gesture-hint {
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: min(178px, calc(50vw - 18px));
    min-height: 44px;
    padding: 9px 10px;
    gap: 8px;
  }

  .pm-gesture-hint-ai {
    left: calc(10px + env(safe-area-inset-left));
  }

  .pm-gesture-hint-guide {
    right: calc(10px + env(safe-area-inset-right));
  }

  .pm-gesture-arrow {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 16px;
  }

  .pm-gesture-copy strong {
    font-size: 9px;
  }

  .pm-gesture-copy span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-swipe-backdrop,
  .pm-swipe-panel,
  .pm-swipe-bubble,
  .pm-swipe-hide,
  .pm-swipe-edge-tab,
  .pm-gesture-hint {
    transition: none !important;
    animation: none !important;
  }
}
