/* Shared Bella Bees yard. All component selectors are deliberately namespaced. */
.bb-zen-launcher {
  position: fixed;
  z-index: 45;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 180px;
  padding: 9px 13px;
  border: 1px solid #cda45e;
  border-radius: 999px;
  background: #173c2e;
  color: #fff1d2;
  box-shadow: 0 3px 15px #10251826;
  font: 600 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.bb-zen-launcher:hover { background: #244e39; box-shadow: 0 4px 18px #10251840; }
.bb-zen-launcher-mark { color: #edc46e; font-size: 20px; line-height: 1; }
.bb-zen-dock { display: none; }
.bb-zen-launcher:focus-visible,
.mobile-dock .bb-zen-dock:focus-visible,
.bb-zen-dialog .bb-zen-control:focus-visible { outline: 3px solid #ffda7e; outline-offset: 4px; }

.bb-zen-dialog {
  box-sizing: border-box;
  width: calc(100vw - 32px);
  max-width: 1440px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: 960px;
  max-width: min(1440px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d1b16c80;
  border-radius: 24px;
  background: #153b27;
  color: #fff7df;
  box-shadow: 0 24px 100px #04180bd9;
  font-family: system-ui, sans-serif;
}
.bb-zen-dialog::backdrop { background: #07170ee8; backdrop-filter: blur(6px); }
.bb-zen-dialog [hidden] { display: none !important; }
.bb-zen-dialog .bb-zen-yard { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.bb-zen-dialog .bb-zen-landscape {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 18%, #ffdf9dab 0, #e3c57032 18%, transparent 43%),
    radial-gradient(ellipse at 22% 73%, #6d8746 0, #526c35 13%, transparent 42%),
    radial-gradient(ellipse at 90% 79%, #4a6b39 0, #254e30 24%, transparent 55%),
    linear-gradient(174deg, #7b967b 0%, #a3ad6d 35%, #476842 60%, #183a26 100%);
}
.bb-zen-dialog .bb-zen-landscape::before {
  content: "";
  position: absolute;
  inset: 50% -8% -10%;
  background: repeating-linear-gradient(78deg, transparent 0 64px, #d5b3493d 65px 67px, transparent 68px 110px), radial-gradient(ellipse at 20% 100%, #183e2a 0 15%, transparent 50%), radial-gradient(ellipse at 90% 100%, #183e2a 0 15%, transparent 50%);
  opacity: .7;
}
.bb-zen-dialog .bb-zen-scene-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 55%; opacity: 0; transition: opacity 220ms ease; }
.bb-zen-dialog[data-image="ready"] .bb-zen-scene-image { opacity: 1; }
.bb-zen-dialog .bb-zen-scene-image[hidden] { display: none; }
.bb-zen-dialog .bb-zen-light { position: absolute; inset: 0; background: linear-gradient(180deg, #09271ba6 0%, #1738261c 24%, transparent 44%, transparent 67%, #0b2415cf 100%), radial-gradient(ellipse at 73% 24%, #ffe0a318 0, transparent 43%); }
.bb-zen-dialog .bb-zen-header,
.bb-zen-dialog .bb-zen-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; padding: clamp(20px, 4vw, 48px); border: 0; background: transparent; box-shadow: none; text-align: left; }
.bb-zen-dialog .bb-zen-header { align-items: flex-start; padding-top: max(clamp(20px, 4vw, 48px), env(safe-area-inset-top, 0px)); }
.bb-zen-dialog .bb-zen-footer { padding-bottom: max(clamp(20px, 4vw, 48px), env(safe-area-inset-bottom, 0px)); }
.bb-zen-dialog .bb-zen-heading { min-width: 0; }
.bb-zen-dialog .bb-zen-heading p { margin: 0 0 8px; color: #f0cf8c; font: 650 11px/1.3 system-ui, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.bb-zen-dialog .bb-zen-heading h2 { margin: 0; max-width: 12ch; color: #fff8e6; font: 400 clamp(30px, 5vw, 68px)/1.03 Georgia, serif; letter-spacing: -.035em; text-wrap: balance; }
.bb-zen-dialog .bb-zen-control { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 12px; min-width: 44px; min-height: 44px; margin: 0; padding: 11px 16px; border: 1px solid #dbc5978c; border-radius: 999px; color: #fff5dd; background: #143622e8; font: 600 12px/1.3 system-ui, sans-serif; cursor: pointer; transition: background-color 180ms ease; }
.bb-zen-dialog .bb-zen-control:hover:not(:disabled) { background: #2c5134; }
.bb-zen-dialog .bb-zen-control:disabled { color: #eee3c9; cursor: default; }
.bb-zen-dialog .bb-zen-close > span:last-child { font-size: 23px; font-weight: 400; line-height: .8; }
.bb-zen-dialog .bb-zen-caption p { margin: 0 0 8px; color: #fff5dc; font: 400 clamp(20px, 2.6vw, 32px)/1.2 Georgia, serif; }
.bb-zen-dialog .bb-zen-caption small { color: #eadab9; font: 400 11px/1.4 system-ui, sans-serif; }
.bb-zen-dialog .bb-zen-focus { width: calc(100% - 96px); max-width: 620px; box-sizing: border-box; margin: auto 48px 0; padding: 24px; border: 1px solid #cbb57b70; border-radius: 16px; background: #102f25f2; box-shadow: 0 8px 36px #0a231b30; color: #fff5dd; }
.bb-zen-dialog .bb-zen-focus h3 { margin: 0 0 16px; color: #fff5dd; font: 400 25px/1.2 Georgia, serif; letter-spacing: 0; }
.bb-zen-dialog .bb-zen-hide-prompts { margin: 0 0 18px; }
.bb-zen-dialog .bb-zen-yard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-zen-dialog .bb-zen-intents, .bb-zen-dialog .bb-zen-audio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-zen-dialog .bb-zen-intents [aria-pressed="true"] { background: #f2d68c; color: #16392b; border-color: #f2d68c; }
.bb-zen-dialog .bb-zen-intents [aria-pressed="true"]:hover:not(:disabled) { background: #f7df9c; color: #16392b; }
.bb-zen-dialog .bb-zen-prompt { margin: 18px 0; max-width: 48ch; color: #fff8e9; font: 400 18px/1.6 Georgia, serif; }
.bb-zen-dialog .bb-zen-sound { border-top: 1px solid #71816a; }
.bb-zen-dialog .bb-zen-sound summary { display: list-item; min-height: 44px; padding: 13px 0; box-sizing: border-box; color: #f6deb0; font: 600 13px/1.4 system-ui,sans-serif; cursor: pointer; }
.bb-zen-dialog .bb-zen-audio-note, .bb-zen-dialog .bb-zen-choice-note { color: #d7decf; font: 400 12px/1.6 system-ui,sans-serif; margin: 8px 0; }
.bb-zen-dialog .bb-zen-choice-note { margin-bottom: 0; }
.bb-zen-dialog .bb-zen-volume-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; color: #fff5dd; font: 600 12px/1.4 system-ui,sans-serif; }
.bb-zen-dialog .bb-zen-volume { flex: 1; min-width: 120px; min-height: 44px; width: auto; max-width: 280px; padding: 0; accent-color: #f2d68c; cursor: pointer; background: transparent; }
.bb-zen-dialog .bb-zen-audio-status { color: #f2d68c; font: 500 12px/1.5 system-ui,sans-serif; margin: 8px 0; }
.bb-zen-dialog .bb-zen-sound summary:focus-visible, .bb-zen-dialog .bb-zen-volume:focus-visible { outline: 3px solid #ffda7e; outline-offset: 4px; }
.bb-zen-dialog .bb-zen-control:disabled { opacity: .68; }
.bb-zen-dialog .bb-zen-header { position: sticky; top: 0; z-index: 2; background: linear-gradient(120deg,#183e2e,#102d23); border-bottom: 1px solid #71816a66; }
/* The floating entry has a reserved footer lane on pages without a mobile dock. */
body:has(>.bb-zen-launcher) { padding-bottom: max(84px,env(safe-area-inset-bottom,0px)); }
.bb-zen-dialog .bb-zen-bees { position: absolute; inset: 0; pointer-events: none; }
.bb-zen-dialog .bb-zen-bee { position: absolute; top: var(--bb-bee-top); left: var(--bb-bee-left); width: var(--bb-bee-size); height: calc(var(--bb-bee-size) * .733); opacity: var(--bb-bee-opacity); filter: drop-shadow(2px 3px 2px #14220e38); animation: bb-zen-flight var(--bb-bee-time) ease-in-out var(--bb-bee-delay) infinite; }
.bb-zen-dialog .bb-zen-bee-body { display: block; width: 100%; height: 100%; overflow: visible; transform: scaleX(var(--bb-bee-direction)); }
.bb-zen-dialog .bb-zen-bee-wings { transform-origin: 31px 22px; animation: bb-zen-wingbeat 105ms ease-in-out infinite alternate; }
.bb-zen-dialog .bb-zen-bee,
.bb-zen-dialog .bb-zen-bee-wings { animation-play-state: paused; }
.bb-zen-dialog[open][data-motion="running"] .bb-zen-bee,
.bb-zen-dialog[open][data-motion="running"] .bb-zen-bee-wings { animation-play-state: running; }
@keyframes bb-zen-flight {
  0%, 100% { transform: translate(-18px, 9px) rotate(-7deg); }
  22% { transform: translate(37px, -21px) rotate(6deg); }
  48% { transform: translate(57px, 14px) rotate(-4deg); }
  73% { transform: translate(-4px, 30px) rotate(8deg); }
}
@keyframes bb-zen-wingbeat { from { transform: scaleY(.54); } to { transform: scaleY(1); } }
@media (max-width: 900px) {
  .bb-zen-launcher { left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); max-width: 158px; font-size: 11px; padding-inline: 11px; }
  .bb-zen-launcher.bb-zen-launcher-has-dock { display: none; }
  .mobile-dock.bb-zen-dock-ready { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mobile-dock .bb-zen-dock { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .bb-zen-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: none; border-radius: 18px; }
  .bb-zen-dialog .bb-zen-header,
  .bb-zen-dialog .bb-zen-footer { padding-inline: 18px; gap: 16px; }
  .bb-zen-dialog .bb-zen-footer { align-items: flex-start; flex-direction: column; }
  .bb-zen-dialog .bb-zen-close { gap: 7px; padding-inline: 12px; }
  .bb-zen-dialog .bb-zen-scene-image { object-position: 68% center; }
  .bb-zen-dialog .bb-zen-focus { width: calc(100% - 36px); margin: auto 18px 0; padding: 18px; }
  .bb-zen-dialog .bb-zen-focus h3 { font-size: 23px; }
  .bb-zen-dialog .bb-zen-prompt { font-size: 17px; }
  .bb-zen-dialog .bb-zen-caption p { font-size: 22px; }
  .bb-zen-dialog .bb-zen-footer { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .bb-zen-launcher:not(.bb-zen-launcher-has-dock) { bottom: max(12px,env(safe-area-inset-bottom,0px)); }
}
@media (max-height: 430px) {
  .bb-zen-dialog .bb-zen-header,
  .bb-zen-dialog .bb-zen-footer { padding-block: 13px; }
  .bb-zen-dialog .bb-zen-footer { flex-direction: row; align-items: flex-end; }
  .bb-zen-dialog .bb-zen-heading h2 { font-size: 28px; }
  .bb-zen-dialog .bb-zen-caption p { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-zen-launcher,
  .bb-zen-dialog .bb-zen-control,
  .bb-zen-dialog .bb-zen-scene-image { transition: none; }
  .bb-zen-dialog .bb-zen-bee,
  .bb-zen-dialog .bb-zen-bee-wings { animation: none !important; }
}
