/* ==========================================================================
   Ollie the Owl - Interactive Website Guide & Lead Generator Stylesheet
   My JEE Mentor - Light & Dark Theme Compatible
   All classes prefixed with .ollie-
   ========================================================================== */

:root {
  --ollie-bg: #ffffff;
  --ollie-ink: #14213d;
  --ollie-mut: #566079;
  --ollie-or: #f47721;
  --ollie-or-dark: #ea580c;
  --ollie-card: #fffbf8;
  --ollie-line: rgba(244, 119, 33, 0.35);
  --ollie-shadow: 0 14px 34px rgba(20, 33, 61, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  --ollie-bottom-offset: calc(14px + env(safe-area-inset-bottom, 0px));
}

.dark-theme,
[data-theme="dark"],
:root.dark-theme {
  --ollie-bg: #111722;
  --ollie-ink: #eef1f8;
  --ollie-mut: #a3adc4;
  --ollie-card: #18213a;
  --ollie-line: rgba(244, 119, 33, 0.45);
  --ollie-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---- Owl Guide Button ---- */
#ollie-owl,
.ollie-owl {
  position: fixed;
  left: 0;
  top: 0;
  width: 84px;
  height: 96px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  z-index: 9999;
  transition: transform 0.85s cubic-bezier(0.25, 0.7, 0.25, 1);
  will-change: transform;
  outline: none;
  user-select: none;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#ollie-owl:active {
  cursor: grabbing;
}

#ollie-owl.ollie-dragging {
  cursor: grabbing !important;
  z-index: 10006 !important;
  transition: none !important;
}

#ollie-owl.ollie-dragging svg {
  animation: none !important;
  transform: scale(1.08) rotate(4deg);
  filter: drop-shadow(0 14px 28px rgba(234, 88, 12, 0.45));
}

#ollie-owl.ollie-dragging .ollie-wl {
  animation: ollie-fl 0.18s ease-in-out infinite alternate !important;
}

#ollie-owl.ollie-dragging .ollie-wr {
  animation: ollie-fr 0.18s ease-in-out infinite alternate !important;
}

#ollie-owl:focus-visible {
  outline: 2px solid var(--ollie-or);
  outline-offset: 4px;
  border-radius: 50%;
}

#ollie-owl svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(20, 33, 61, 0.24));
  animation: ollie-bob 2.6s ease-in-out infinite;
}

@keyframes ollie-bob {
  50% { transform: translateY(-5px); }
}

/* Owl Eyes Blinking */
.ollie-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: ollie-blink 4.2s infinite;
}

@keyframes ollie-blink {
  0%, 93%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.08); }
}

/* Wing Flapping */
.ollie-wl,
.ollie-wr {
  transform-box: fill-box;
}
.ollie-wl { transform-origin: 100% 15%; }
.ollie-wr { transform-origin: 0 15%; }

#ollie-owl.ollie-fly .ollie-wl {
  animation: ollie-fl 0.22s ease-in-out infinite alternate;
}
#ollie-owl.ollie-fly .ollie-wr {
  animation: ollie-fr 0.22s ease-in-out infinite alternate;
}
#ollie-owl.ollie-fly svg {
  animation: none;
  transform: rotate(-6deg);
}

@keyframes ollie-fl {
  to { transform: rotate(-38deg); }
}
@keyframes ollie-fr {
  to { transform: rotate(38deg); }
}

/* Jump Reaction */
#ollie-owl.ollie-jump svg {
  animation: ollie-jump 0.5s 2;
}

@keyframes ollie-jump {
  40% { transform: translateY(-20px) rotate(6deg); }
}

/* Confused Reaction (Feather puff / shake) */
#ollie-owl.ollie-confused svg {
  animation: ollie-shake 0.45s ease-in-out 2;
}

@keyframes ollie-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20%, 60% { transform: translateX(-5px) rotate(-5deg); }
  40%, 80% { transform: translateX(5px) rotate(5deg); }
}

/* ---- Speech Bubble / Nudge Bubble ---- */
#ollie-bub,
.ollie-bub {
  position: fixed;
  left: 0;
  top: 0;
  width: min(320px, calc(100vw - 28px));
  background: var(--ollie-bg);
  color: var(--ollie-ink);
  border: 2px solid var(--ollie-or);
  border-radius: 16px;
  padding: 13px 15px;
  z-index: 9998;
  box-shadow: var(--ollie-shadow);
  transition: transform 0.85s cubic-bezier(0.25, 0.7, 0.25, 1), opacity 0.25s ease;
  will-change: transform;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  pointer-events: auto;
}

#ollie-bub[hidden],
.ollie-bub[hidden] {
  display: none !important;
}

#ollie-txt,
.ollie-txt {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.44;
  color: var(--ollie-ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

#ollie-txt.ollie-pop,
.ollie-txt.ollie-pop {
  animation: ollie-pop 0.35s ease-out;
}

@keyframes ollie-pop {
  from { opacity: 0; transform: translateY(6px); }
}

/* Compact Hover Chip */
.ollie-hover-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ollie-chip-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ollie-chip-name {
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--ollie-ink);
}
.ollie-chip-fee {
  background: rgba(244, 119, 33, 0.16);
  color: var(--ollie-or-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.76rem;
  white-space: nowrap;
}
.ollie-chip-detail {
  font-size: 0.8rem;
  color: var(--ollie-mut);
  line-height: 1.35;
}

/* Hover Chip Active State on Speech Bubble (FIX 2 & FIX 3) */
#ollie-bub.ollie-is-hover-chip {
  max-width: min(320px, 90vw);
  width: auto;
  min-width: 250px;
  padding: 14px 18px 12px 20px;
  border-radius: 16px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible;
  box-shadow: 0 16px 36px -8px rgba(234, 88, 12, 0.28), 0 6px 18px rgba(0, 0, 0, 0.12);
}

#ollie-bub.ollie-is-hover-chip #ollie-txt {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.48;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tier 4 Compact One-Line Docked Chip */
#ollie-bub.ollie-chip-tier4 {
  max-width: min(440px, calc(100vw - 28px));
  width: auto;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 28px -6px rgba(234, 88, 12, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

#ollie-bub.ollie-chip-tier4 #ollie-txt {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

#ollie-bub.ollie-chip-tier4 .ollie-bc {
  display: none !important;
}

.ollie-bc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ollie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  border: 0;
  border-radius: 10px;
  padding: 6px 14px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ollie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

.ollie-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.ollie-lnk {
  background: none;
  border: 0;
  color: var(--ollie-mut);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.15s ease;
}

.ollie-lnk:hover {
  color: var(--ollie-or);
}

/* Pulsing Highlight on Target Action Button */
.ollie-hl {
  outline: 3px solid #f47721 !important;
  outline-offset: 5px !important;
  animation: ollie-pulse 1.2s ease-in-out infinite;
}

@keyframes ollie-pulse {
  50% {
    outline-offset: 9px !important;
    box-shadow: 0 0 16px rgba(244, 119, 33, 0.6) !important;
  }
}

/* Modal Active Higher Stacking */
body.ollie-modal-active #ollie-owl {
  z-index: 10002 !important;
}
body.ollie-modal-active #ollie-bub,
body.ollie-modal-active #ollie-panel {
  z-index: 10001 !important;
}

/* Minimized Floating Dock Badge at Bottom-Right */
#ollie-owl.ollie-docked svg {
  animation: ollie-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 14px rgba(234, 88, 12, 0.5));
}

/* ==========================================================================
   ASK OLLIE PANEL (Interactive Guide & Lead Generator)
   ========================================================================== */
#ollie-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: min(540px, calc(100vh - 90px));
  background: var(--ollie-bg);
  color: var(--ollie-ink);
  border: 2px solid var(--ollie-or);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(20, 33, 61, 0.28), 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease;
  transform: translateY(0);
  box-sizing: border-box;
}

#ollie-panel[hidden] {
  display: none !important;
}

#ollie-panel.ollie-minimized {
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

/* Collapsed Slim Ask Ollie Bar */
#ollie-collapsed-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ollie-bg);
  color: var(--ollie-ink);
  border: 2px solid var(--ollie-or);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  box-shadow: var(--ollie-shadow);
  cursor: pointer;
  z-index: 9997;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 750;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ollie-collapsed-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.38);
}

#ollie-collapsed-bar[hidden] {
  display: none !important;
}

/* Panel Header */
.ollie-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(244, 119, 33, 0.12) 0%, rgba(244, 119, 33, 0.04) 100%);
  border-bottom: 1px solid var(--ollie-line);
  flex-shrink: 0;
}

.ollie-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ollie-panel-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ollie-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ollie-panel-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.ollie-panel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ollie-icon-btn {
  background: none;
  border: 0;
  color: var(--ollie-mut);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ollie-icon-btn:hover {
  background: rgba(244, 119, 33, 0.15);
  color: var(--ollie-or-dark);
}

/* Panel Messages Container */
.ollie-messages-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.ollie-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: ollie-pop 0.25s ease-out;
  box-sizing: border-box;
}

.ollie-msg.ollie-bot {
  align-self: flex-start;
  background: var(--ollie-card);
  border: 1px solid var(--ollie-line);
  border-radius: 14px 14px 14px 3px;
  padding: 10px 12px;
  color: var(--ollie-ink);
}

.ollie-msg.ollie-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border-radius: 14px 14px 3px 14px;
  padding: 8px 12px;
  font-weight: 600;
}

.ollie-msg-time {
  font-size: 0.65rem;
  color: var(--ollie-mut);
  margin-top: 4px;
  align-self: flex-end;
}

/* Structured Live Batches & Faculty In Chat */
.ollie-batch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.ollie-batch-item {
  background: var(--ollie-bg);
  border: 1px solid var(--ollie-line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease;
}

.ollie-batch-item:hover {
  border-color: var(--ollie-or);
}

.ollie-batch-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ollie-batch-name {
  font-weight: 750;
  font-size: 0.86rem;
  color: var(--ollie-ink);
}

.ollie-batch-fee-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ollie-or-dark);
  background: rgba(244, 119, 33, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.ollie-batch-desc {
  font-size: 0.78rem;
  color: var(--ollie-mut);
  line-height: 1.35;
}

.ollie-batch-action {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ollie-or-dark);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

/* Quick Chips Row */
.ollie-chips-bar {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(244, 119, 33, 0.15);
  background: var(--ollie-bg);
}

.ollie-chips-bar::-webkit-scrollbar {
  display: none;
}

.ollie-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ollie-card);
  color: var(--ollie-ink);
  border: 1px solid var(--ollie-line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ollie-chip-btn:hover {
  background: var(--ollie-or);
  color: #ffffff;
  border-color: var(--ollie-or);
}

/* Input Bar */
.ollie-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ollie-line);
  background: var(--ollie-bg);
  flex-shrink: 0;
}

.ollie-text-input {
  flex: 1 1 auto;
  background: var(--ollie-card);
  border: 1.5px solid var(--ollie-line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--ollie-ink);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ollie-text-input:focus {
  border-color: var(--ollie-or);
  box-shadow: 0 0 0 3px rgba(244, 119, 33, 0.18);
}

.ollie-send-button {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
}

.ollie-send-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(234, 88, 12, 0.45);
}

.ollie-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mini Lead Form */
.ollie-lead-box {
  background: var(--ollie-bg);
  border: 1.5px solid var(--ollie-or);
  border-radius: 14px;
  padding: 12px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.12);
}

.ollie-lead-box h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ollie-or-dark);
}

.ollie-lead-box p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ollie-mut);
}

.ollie-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ollie-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ollie-ink);
}

.ollie-field input,
.ollie-field select {
  border: 1px solid var(--ollie-line);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.82rem;
  background: var(--ollie-card);
  color: var(--ollie-ink);
  outline: none;
  font-family: inherit;
}

.ollie-field input:focus,
.ollie-field select:focus {
  border-color: var(--ollie-or);
}

.ollie-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ollie-consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--ollie-mut);
  line-height: 1.3;
}

.ollie-consent input {
  margin-top: 2px;
  accent-color: var(--ollie-or);
}

.ollie-consent a {
  color: var(--ollie-or-dark);
  text-decoration: underline;
}

.ollie-lead-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ollie-lead-submit {
  flex: 1;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
  transition: transform 0.15s, opacity 0.15s;
}

.ollie-lead-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.ollie-lead-cancel {
  background: transparent;
  border: 1px solid var(--ollie-line);
  color: var(--ollie-mut);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ollie-lead-cancel:hover {
  background: var(--ollie-paper);
}

.ollie-form-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 6px;
  line-height: 1.4;
}

.ollie-form-status.error {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.ollie-form-status.success {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.ollie-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.84rem;
  margin-top: 6px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  cursor: pointer;
}

/* Typing Dots Animation */
.ollie-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--ollie-card);
  border: 1px solid var(--ollie-line);
  border-radius: 14px;
  width: fit-content;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ollie-typing span {
  width: 6px;
  height: 6px;
  background: var(--ollie-or);
  border-radius: 50%;
  animation: ollie-dot-bounce 1.3s infinite ease-in-out;
}

.ollie-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.ollie-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ollie-dot-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* ---- Tablet & Mobile-Bar Safe Positioning ---- */
@media (max-width: 900px) {
  #ollie-collapsed-bar {
    right: 14px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }
  #ollie-panel {
    right: 14px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 130px);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  #ollie-owl,
  .ollie-owl {
    width: 76px;
    height: 86px;
  }
  #ollie-bub,
  .ollie-bub {
    width: min(310px, calc(100vw - 32px));
  }
}

/* ---- Mobile Screen Specific Styling ---- */
@media (max-width: 640px) {
  #ollie-owl,
  .ollie-owl {
    width: 68px;
    height: 78px;
  }

  #ollie-bub,
  .ollie-bub {
    width: min(300px, calc(100vw - 24px));
    padding: 11px 13px;
    border-radius: 14px;
  }

  #ollie-txt {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  #ollie-panel {
    right: 8px;
    left: 8px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    height: 75vh;
    max-height: min(80vh, 560px);
    border-radius: 18px;
  }

  #ollie-collapsed-bar {
    right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    font-size: 0.82rem;
    padding: 6px 14px 6px 10px;
  }
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  #ollie-owl,
  #ollie-bub,
  #ollie-panel,
  #ollie-collapsed-bar,
  .ollie-owl,
  .ollie-bub {
    transition: none !important;
  }
  #ollie-owl *,
  .ollie-hl,
  #ollie-txt {
    animation: none !important;
  }
}
