/* =========================================================================
   🪼 JELLYFISH 1.0 — LIQUID INTELLIGENCE SKIN & DEEP EMBEDDING SYSTEM
   Enemy Intelligence · High-Key Luminous Translucency & Weightless UI
   ========================================================================= */

:root {
  --jf-ink: #120e16;
  --jf-ink-light: #2c2232;
  --jf-muted: #665a6f;
  --jf-faint: #8e8096;
  --jf-pink: rgba(255, 175, 225, 0.45);
  --jf-violet: rgba(205, 175, 255, 0.40);
  --jf-blue: rgba(145, 230, 255, 0.45);
  --jf-lime: rgba(215, 255, 168, 0.38);
  --jf-field-x: 0px;
  --jf-field-y: 0px;
  --jf-light-x: 50%;
  --jf-light-y: 45%;
  --jf-glow: 1;
  --jf-translucence: 1;
}

.jellyfish,
.jellyfish * {
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
}

.jellyfish code,
.jellyfish pre,
.jellyfish .mono,
.jellyfish .relay-trace-pill,
.jellyfish .tag-os,
.jellyfish .timeline-time,
.jellyfish .token-val {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace !important;
}

.jellyfish .tech-serif,
.jellyfish .serif-accent,
.jellyfish .editorial-serif {
  font-family: "Newsreader", "Instrument Serif", Georgia, "Times New Roman", serif !important;
}

/* Base Submerged Shell (Continuous Pearlescent High-Key Light Field) */
.jf-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 75% 65% at 90% 10%, rgba(175, 240, 255, 0.68), transparent 72%),
    radial-gradient(ellipse 78% 68% at 10% 88%, rgba(255, 190, 232, 0.62), transparent 72%),
    radial-gradient(ellipse 65% 55% at 80% 80%, rgba(225, 212, 255, 0.55), transparent 68%),
    radial-gradient(ellipse 60% 50% at 20% 22%, rgba(218, 255, 172, 0.42), transparent 65%),
    radial-gradient(ellipse 45% 38% at 50% 50%, rgba(255, 255, 255, 0.92), transparent 75%),
    linear-gradient(135deg, #ffffff 0%, #fcfdff 45%, #fbf9fe 100%) !important;
}

/* Ambient Diffuse Chromatic Sheet Behind Canvas (Hardware Accelerated) */
.jf-shell::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 45% 50%, rgba(255, 190, 235, 0.42) 0%, rgba(225, 205, 255, 0.35) 32%, rgba(170, 235, 255, 0.35) 60%, rgba(215, 255, 185, 0.22) 80%, transparent 100%);
  filter: blur(80px) saturate(1.55);
  opacity: calc(0.96 * var(--jf-glow));
  will-change: transform;
  transform: translate3d(var(--jf-field-x, 0px), var(--jf-field-y, 0px), 0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   🪼 PRIVATE BRIEFING SECTION
   ========================================================================= */
.jf-briefing-wrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 28px 70px;
  z-index: 1;
}

/* Top Meta Header */
.jf-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 32px;
}

.jf-brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--jf-ink);
  text-transform: uppercase;
}

.jf-live-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--jf-muted);
  text-transform: uppercase;
}

/* Heading Block */
.jf-heading-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}

.jf-heading-text {
  flex: 1;
}

.jf-eyebrow {
  margin: 0 0 12px;
  color: var(--jf-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.jf-display {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 0.94;
  letter-spacing: -0.048em;
}

.jf-heavy {
  display: block;
  font-weight: 700;
  color: var(--jf-ink);
}

.jf-light {
  display: block;
  font-weight: 300;
  color: var(--jf-ink-light);
}

/* Horizontal Thin Gossamer Hairline Rule */
.jf-rule-divider {
  width: 100%;
  height: 1px;
  background: rgba(30, 20, 35, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
}

/* Orbital Sync Action Button */
.jf-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 24%, rgba(255, 255, 255, 0.85) 0 4%, rgba(255, 255, 255, 0.55) 20%, rgba(245, 250, 255, 0.35) 60%, rgba(240, 230, 250, 0.40));
  box-shadow:
    inset 1.5px 1.5px 3px #ffffff,
    inset -2px -3px 8px rgba(130, 95, 140, 0.03),
    0 10px 24px rgba(120, 90, 150, 0.04);
  backdrop-filter: blur(25px) saturate(1.6);
  -webkit-backdrop-filter: blur(25px) saturate(1.6);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  color: var(--jf-ink);
}

.jf-icon-button:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 2px 2px 6px #ffffff,
    0 14px 32px rgba(130, 90, 165, 0.08),
    0 0 28px rgba(140, 220, 255, 0.25);
}

.jf-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jf-sync-dot {
  fill: currentColor;
  stroke: none;
}

.jf-sync[aria-pressed="true"] svg,
.jf-sync.spinning svg {
  animation: jf-spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* =========================================================================
   🪼 EMBEDDED LIQUID CARDS & MEMBRANES (LIGHTER & AIRIER)
   ========================================================================= */
.jf-briefing-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
}

.jf-stack-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

/* Deeply Embedded Translucent Liquid Glass Surface */
.jf-surface {
  position: relative;
  overflow: hidden;
  border-radius: 40px 54px 44px 50px / 48px 40px 54px 44px;
  background: linear-gradient(137deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
  border: none;
  outline: none;
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.98),
    inset -1px -1px 0 rgba(255, 255, 255, 0.50),
    inset 10px 14px 34px rgba(255, 255, 255, 0.35),
    0 20px 48px rgba(130, 100, 160, 0.035),
    0 6px 18px rgba(120, 190, 240, 0.04);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease, border-radius 0.8s ease;
}

.jf-surface:hover {
  transform: translateY(-2px);
  background: linear-gradient(137deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.56) 100%);
  box-shadow:
    inset 1.5px 1.5px 0 #ffffff,
    inset 12px 16px 38px rgba(255, 255, 255, 0.45),
    0 26px 56px rgba(130, 100, 160, 0.05),
    0 0 36px rgba(145, 225, 255, 0.16);
}

/* Internal Refraction Caustic Glow on Cards */
.jf-surface::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  border-radius: 46% 54% 58% 42% / 50% 44% 56% 50%;
  background:
    radial-gradient(ellipse at var(--jf-light-x, 38%) var(--jf-light-y, 30%), rgba(255, 255, 255, 0.90) 0 4%, rgba(255, 255, 255, 0.25) 15%, transparent 32%),
    radial-gradient(ellipse at 80% 68%, rgba(165, 235, 255, 0.22), transparent 35%),
    radial-gradient(ellipse at 25% 80%, rgba(255, 185, 228, 0.20), transparent 35%),
    linear-gradient(118deg, transparent 35%, rgba(255, 255, 255, 0.35) 48%, transparent 62%);
  filter: blur(16px) saturate(1.4);
  opacity: 0.90;
}

/* Prismatic Dynamic Rim Optical Dispersion (Gossamer Light) */
.jf-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 208deg, rgba(255, 255, 255, 0.35), rgba(255, 195, 235, 0.50), rgba(225, 212, 255, 0.45), rgba(185, 240, 255, 0.50), rgba(220, 255, 185, 0.35), rgba(255, 255, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
}

.jf-surface > * {
  position: relative;
  z-index: 2;
}

/* Card Content Details */
.jf-card {
  padding: 38px 40px;
}

.jf-card-main {
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.jf-card-small {
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jf-card-title {
  margin: 18px 0 14px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: var(--jf-ink);
}

.jf-card-small .jf-card-title {
  margin: 12px 0 0;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--jf-ink);
}

.jf-card-rule {
  width: 100%;
  height: 1px;
  background: rgba(30, 20, 35, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
  margin: 18px 0 16px;
}

.jf-copy {
  max-width: 58ch;
  color: #4a3e50;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================================
   🪼 3D IRIDESCENT LIQUID ORBS (SUBMERGED CAUSTIC SPHERES)
   ========================================================================= */
.jf-orb-assembly {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 280px;
  height: 240px;
  pointer-events: none;
  z-index: 1;
}

.jf-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Large Main Iridescent Sphere (Radiant & Weightless) */
.bubble-one {
  right: 18px;
  bottom: 12px;
  width: 175px;
  height: 175px;
  background:
    radial-gradient(circle at 35% 26%, #ffffff 0%, rgba(255, 255, 255, 0.95) 8%, rgba(255, 255, 255, 0.60) 18%, rgba(240, 248, 255, 0.25) 45%, rgba(255, 190, 230, 0.32) 75%, rgba(210, 180, 255, 0.35) 90%, rgba(255, 255, 255, 0.60) 100%);
  box-shadow:
    inset -10px -12px 26px rgba(130, 80, 140, 0.04),
    inset 10px 12px 28px rgba(255, 255, 255, 0.85),
    inset -2px -2px 8px rgba(145, 230, 255, 0.30),
    0 20px 45px rgba(130, 90, 150, 0.05);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  animation: jf-orb-float 9s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

/* Satellite Medium Sphere */
.bubble-two {
  right: 110px;
  bottom: 10px;
  width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 34% 25%, #ffffff 0%, rgba(255, 255, 255, 0.92) 10%, rgba(255, 255, 255, 0.45) 24%, rgba(235, 245, 255, 0.20) 50%, rgba(255, 185, 225, 0.28) 80%, rgba(255, 255, 255, 0.50) 100%);
  box-shadow:
    inset -3px -4px 10px rgba(130, 80, 140, 0.03),
    inset 4px 5px 14px rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(130, 90, 150, 0.04);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  animation: jf-orb-float 7s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate -2.5s;
}

/* Micro Droplet Sphere */
.bubble-three {
  right: 170px;
  bottom: 45px;
  width: 28px;
  height: 28px;
  background:
    radial-gradient(circle at 32% 24%, #ffffff 0%, rgba(255, 255, 255, 0.95) 12%, rgba(235, 245, 255, 0.35) 60%, rgba(255, 185, 225, 0.35) 100%);
  box-shadow:
    inset 2px 2px 6px #ffffff,
    0 6px 14px rgba(130, 90, 150, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: jf-orb-float 6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate -4.2s;
}

@keyframes jf-orb-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6px, -14px, 0) scale(1.03); }
  100% { transform: translate3d(4px, -6px, 0) scale(0.98); }
}

/* =========================================================================
   🪼 RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 860px) {
  .jf-briefing-grid {
    grid-template-columns: 1fr;
  }
  .jf-stack-column {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .jf-heading-block {
    align-items: flex-end;
  }
}

@media (max-width: 600px) {
  .jf-briefing-wrap {
    padding: 12px 18px 60px;
  }
  .jf-stack-column {
    grid-template-columns: 1fr;
  }
  .jf-card {
    padding: 26px 24px;
  }
  .jf-display {
    font-size: 36px;
  }
  .bubble-one {
    width: 120px;
    height: 120px;
  }
}

/* ==========================================================================
   COMPLETE APPLICATION SKIN (ENEMY OS JELLYFISH 1.0)
   Single authority for ultra-light, bright, airy visual identity.
   ========================================================================== */
html.jellyfish,
body.jellyfish {
  --jf-glass-low: rgba(255, 255, 255, 0.35);
  --jf-glass: rgba(255, 255, 255, 0.55);
  --jf-glass-high: rgba(255, 255, 255, 0.78);
  --jf-ink: #120e16;
  --jf-ink-light: #2c2232;
  --jf-muted: #665a6f;
  --jf-faint: #8e8096;
  color: var(--jf-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body.jellyfish,
body.jellyfish *,
body.jellyfish *::before,
body.jellyfish *::after,
body.jellyfish button,
body.jellyfish input,
body.jellyfish select,
body.jellyfish textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body.jellyfish :is(code, pre, kbd, samp, .mono, .tag-os, .relay-trace-pill, .timeline-time, .token-val, .service-chip) {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace !important;
}

body.jellyfish :is(.tech-serif, .serif-accent, .editorial-serif, blockquote.editorial) {
  font-family: "Newsreader", Georgia, "Times New Roman", serif !important;
}

body.jellyfish.jf-shell {
  background:
    radial-gradient(ellipse 75% 65% at 90% 10%, rgba(175, 240, 255, 0.68), transparent 72%),
    radial-gradient(ellipse 78% 68% at 10% 88%, rgba(255, 190, 232, 0.62), transparent 72%),
    radial-gradient(ellipse 65% 55% at 80% 80%, rgba(225, 212, 255, 0.55), transparent 68%),
    radial-gradient(ellipse 60% 50% at 20% 22%, rgba(218, 255, 172, 0.42), transparent 65%),
    radial-gradient(ellipse 45% 38% at 50% 50%, rgba(255, 255, 255, 0.92), transparent 75%),
    linear-gradient(135deg, #ffffff 0%, #fcfdff 45%, #fbf9fe 100%) !important;
  background-attachment: fixed !important;
}

body.jellyfish.jf-shell::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 24% 32%, rgba(255, 185, 230, 0.40), transparent 72%),
    radial-gradient(ellipse 52% 42% at 74% 28%, rgba(155, 235, 255, 0.38), transparent 74%),
    radial-gradient(ellipse 46% 40% at 62% 80%, rgba(215, 185, 255, 0.35), transparent 72%),
    radial-gradient(ellipse 42% 35% at 22% 80%, rgba(215, 255, 165, 0.30), transparent 74%);
  filter: blur(80px) saturate(1.55);
  opacity: 0.96;
  will-change: transform;
  transform: translate3d(var(--jf-field-x, 0px), var(--jf-field-y, 0px), 0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Shared Liquid Glass Membrane (Excludes Chat Bubbles to Prevent Outlines) */
body.jellyfish :is(
  .jf-surface, .glass-card, .card, .lock-card, .modal-content,
  .top-bar, .bottom-nav, .status-pill, .quick-chip,
  .chat-form, .google-login-btn, .timeline-card, .oura-metric-box,
  .oura-rec-box, .burn-stat, .account-box, .account-detail-card,
  .module-card, .service-chip, .relay-trace-pill, .badge,
  .form-group input, .form-group select, .form-group textarea,
  .btn-action, .btn-mini, .btn-icon, .btn-voice, .btn-send
) {
  background: linear-gradient(138deg, var(--jf-glass-high) 0%, var(--jf-glass-low) 100%) !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.98),
    inset -1px -1px 0 rgba(255, 255, 255, 0.50),
    inset 10px 14px 34px rgba(255, 255, 255, 0.35),
    0 20px 48px rgba(130, 100, 160, 0.035),
    0 6px 18px rgba(120, 190, 240, 0.04) !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  color: var(--jf-ink) !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease !important;
}

body.jellyfish :is(.jf-surface, .glass-card, .card, .lock-card, .modal-content) {
  border-radius: 38px 52px 43px 48px / 46px 40px 54px 44px;
}

body.jellyfish :is(.jf-surface, .glass-card, .card, .lock-card, .modal-content):hover {
  transform: translate3d(0, -1.5px, 0) !important;
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.58) 100%) !important;
  box-shadow:
    inset 1.5px 1.5px 0 #ffffff,
    inset 12px 16px 38px rgba(255, 255, 255, 0.45),
    0 24px 52px rgba(130, 100, 160, 0.05),
    0 0 32px rgba(145, 225, 255, 0.14) !important;
}

/* Top Navigation & Bottom Navigation */
body.jellyfish :is(.top-bar, .bottom-nav) {
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.95),
    0 10px 30px rgba(120, 95, 150, 0.03) !important;
  backdrop-filter: blur(32px) saturate(1.85) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.85) !important;
}

body.jellyfish .bottom-nav {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 -10px 30px rgba(120, 95, 150, 0.03) !important;
}

body.jellyfish :is(.chat-container, .quick-action-strip, .messages-feed, .input-tray) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.jellyfish .quick-chip {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45)) !important;
  box-shadow: inset 1px 1px 0 #ffffff, 0 6px 16px rgba(120, 95, 150, 0.025) !important;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background 0.16s ease !important;
}

body.jellyfish .quick-chip:hover {
  transform: translateY(-1.5px) scale(1.02) translateZ(0) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 1.5px 1.5px 0 #ffffff, 0 10px 24px rgba(140, 210, 255, 0.15) !important;
}

/* =========================================================================
   🪼 ZERO-OUTLINE SEAMLESS CHAT BUBBLES (PURE LIQUID DROPLETS)
   ========================================================================= */
body.jellyfish .msg-bubble {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  width: fit-content !important;
  max-width: 84% !important;
  word-break: break-word !important;
}

body.jellyfish .msg-bubble.assistant {
  align-self: flex-start !important;
  margin-right: auto !important;
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 15px 20px !important;
  border-radius: 20px 20px 20px 4px !important;
  box-shadow: 0 4px 16px rgba(120, 95, 150, 0.04), 0 1px 4px rgba(120, 95, 150, 0.02) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  color: var(--jf-ink) !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease !important;
}

body.jellyfish .msg-bubble.assistant:hover {
  transform: translateY(-1px) translateZ(0) !important;
  box-shadow: 0 8px 24px rgba(120, 95, 150, 0.06), 0 2px 6px rgba(120, 95, 150, 0.03) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

body.jellyfish .msg-bubble.user {
  align-self: flex-end !important;
  margin-left: auto !important;
  display: inline-block !important;
  background: linear-gradient(135deg, rgba(255, 195, 235, 0.75) 0%, rgba(222, 202, 255, 0.68) 50%, rgba(185, 232, 255, 0.60) 100%) !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 9px 16px !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow: 0 4px 14px rgba(195, 130, 215, 0.12), 0 1px 4px rgba(195, 130, 215, 0.05) !important;
  backdrop-filter: blur(28px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.8) !important;
  color: #1a0f22 !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease !important;
}

body.jellyfish .msg-bubble.user:hover {
  transform: translateY(-1px) translateZ(0) !important;
  box-shadow: 0 8px 20px rgba(195, 130, 215, 0.18), 0 2px 6px rgba(195, 130, 215, 0.08) !important;
  background: linear-gradient(135deg, rgba(255, 205, 240, 0.85) 0%, rgba(228, 212, 255, 0.78) 50%, rgba(195, 240, 255, 0.70) 100%) !important;
}

body.jellyfish .bullet-item {
  margin: 5px 0;
  line-height: 1.5;
  color: var(--jf-ink);
}

body.jellyfish .msg-gap {
  height: 10px;
}

body.jellyfish .chat-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.48)) !important;
  box-shadow:
    inset 1.5px 1.5px 0 #ffffff,
    0 12px 32px rgba(120, 95, 150, 0.04) !important;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease !important;
}

body.jellyfish :is(.status-pill, .badge, .service-chip, .relay-trace-pill) {
  background: rgba(255, 255, 255, 0.60) !important;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.95), 0 4px 12px rgba(120, 95, 150, 0.02) !important;
}

body.jellyfish :is(.timeline-card, .oura-metric-box, .oura-rec-box, .burn-stat, .account-box, .account-detail-card, .module-card) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.40) 100%) !important;
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.98),
    0 14px 34px rgba(120, 95, 150, 0.035) !important;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, background 0.16s ease !important;
}

body.jellyfish :is(.timeline-card, .oura-metric-box, .oura-rec-box, .burn-stat, .account-box, .account-detail-card, .module-card):hover {
  transform: translateY(-1.5px) translateZ(0) !important;
  background: rgba(255, 255, 255, 0.85) !important;
}

body.jellyfish :is(.btn-action.secondary, .btn-mini, .btn-icon, .btn-voice) {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 0 !important;
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), 0 6px 18px rgba(120, 95, 150, 0.03) !important;
  backdrop-filter: blur(28px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.7) !important;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.14s ease, background 0.14s ease !important;
}

body.jellyfish :is(.btn-action.primary, .btn-send) {
  background: linear-gradient(140deg, rgba(255, 195, 235, 0.65), rgba(215, 195, 255, 0.55), rgba(165, 235, 255, 0.50)) !important;
  border: 0 !important;
  color: #1a0f22 !important;
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.98), 0 10px 24px rgba(170, 115, 215, 0.12) !important;
  backdrop-filter: blur(28px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.7) !important;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.14s ease, background 0.14s ease !important;
}

body.jellyfish :is(.btn-action.primary, .btn-send, .btn-action.secondary, .btn-mini, .btn-icon, .btn-voice):hover {
  transform: translateY(-1.5px) scale(1.03) translateZ(0) !important;
  background: rgba(255, 255, 255, 0.90) !important;
  box-shadow: inset 1.5px 1.5px 0 #ffffff, 0 12px 28px rgba(140, 210, 255, 0.20) !important;
}

body.jellyfish :is(input, select, textarea) {
  color: var(--jf-ink) !important;
  caret-color: #c43285;
}

body.jellyfish :is(input, textarea)::placeholder {
  color: var(--jf-faint) !important;
  opacity: 1;
}

body.jellyfish :is(button, a, input, select, textarea):focus-visible {
  outline: 0 !important;
  box-shadow:
    inset 1.5px 1.5px 0 #ffffff,
    0 0 0 4px rgba(145, 225, 255, 0.35),
    0 12px 30px rgba(120, 95, 150, 0.06) !important;
}

body.jellyfish :is(.lock-screen-overlay, .modal-backdrop) {
  border: 0 !important;
}

body.jellyfish .lock-screen-overlay {
  background: rgba(250, 248, 252, 0.35) !important;
  backdrop-filter: blur(48px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(48px) saturate(1.6) !important;
}

body.jellyfish .modal-backdrop {
  background: rgba(44, 32, 50, 0.08) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
}

@keyframes jf-membrane {
  0%, 100% { border-radius: 38px 52px 40px 48px / 45px 36px 54px 41px; }
  33% { border-radius: 51px 37px 49px 39px / 38px 53px 37px 52px; }
  66% { border-radius: 36px 49px 39px 54px / 51px 39px 55px 37px; }
}

@keyframes jf-caustic {
  0%, 100% { border-radius: 44% 56% 61% 39% / 52% 42% 58% 48%; opacity: 0.85; }
  38% { border-radius: 57% 43% 46% 54% / 43% 60% 40% 57%; opacity: 0.95; }
  72% { border-radius: 39% 61% 53% 47% / 60% 39% 61% 40%; opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
  .jellyfish *,
  .jellyfish *::before,
  .jellyfish *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
