/* Shared navigation: mobile glass dock, original WhatsApp watch at wider widths. */
.bottom-action-symbols { position: absolute; pointer-events: none; }
.bottom-actions, .wa-watch { display: none; }
.bottom-actions .bottom-action { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 62px; padding: 8px 3px; border: 0; border-radius: 999px; background: transparent; color: #18332f; font: 600 11px/1.2 var(--body, sans-serif); text-align: center; text-decoration: none; white-space: nowrap; text-shadow: 0 1px 0 #ffffff55; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .18s, color .18s, box-shadow .18s; }
.bottom-actions .bottom-action svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bottom-actions .bottom-action .bottom-action-brand { fill: currentColor; stroke: none; }
.bottom-actions .bottom-action:hover { color: #18332f; background: #ffffffa6; box-shadow: inset 0 0 0 1px #ffffff80; }
/* A light glass capsule marks selection; the site's deep green accent stays readable over it. */
.bottom-actions .bottom-action[aria-current="page"] { color: var(--focus-ring, #456b30); background: linear-gradient(150deg, #ffffffd6, #dff0d8d1); text-shadow: none; box-shadow: inset 0 1px 0 #fffffff2, inset 0 -1px 0 #617a4430, 0 1px 4px #11151014; }
.bottom-actions .bottom-action[aria-current="page"]:hover { background: linear-gradient(150deg, #fffffff0, #cfe4bbd9); box-shadow: inset 0 0 0 1px #819a694d, 0 1px 4px #11151014; }
.bottom-actions .bottom-action:active { background: #c8deb9; }
.bottom-actions .bottom-action:focus-visible { outline: 3px solid #456b30; outline-offset: 2px; box-shadow: 0 0 0 2px white; }
.bottom-label-full { display: none; }
.bottom-label-short { display: inline; }
/* Native modal dialogs own focus and the backdrop. */
body:has(dialog[open]) :is(.bottom-actions, .wa-watch) { visibility: hidden; }
@media (max-width: 767px) {
  :root { --bottom-actions-space: calc(100px + env(safe-area-inset-bottom, 0px)); }
  html:has(.bottom-actions) { scroll-padding-bottom: var(--bottom-actions-space); }
  body:has(.bottom-actions) { padding-bottom: var(--bottom-actions-space); }
  body.chat-page:has(.bottom-actions) { box-sizing: border-box; padding-bottom: var(--bottom-actions-space); }
  .bottom-actions { position: fixed; z-index: 950; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); box-sizing: border-box; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; width: min(520px, calc(100% - 20px)); padding: 5px; border: 1px solid #ffffffb3; border-radius: 999px; background: #fff; box-shadow: inset 0 1px 0 #ffffffcc, 0 8px 32px #1115101f, 0 2px 8px #1115100d; font-family: var(--body, sans-serif); }
  /* Hide immediately, including before the navigation module initializes on iOS. */
  body:has(:is(input, textarea, select, [contenteditable]:not([contenteditable="false"])):focus) .bottom-actions,
  body.has-editing-focus .bottom-actions { visibility: hidden; pointer-events: none; }
  /* Same material as the mobile header pill; opaque white is the no-blur fallback. */
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bottom-actions { background: linear-gradient(135deg, #FFFFFFBF, #FFFFFF99 48%, #FFFFFFA8); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
  }
  @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
    .bottom-actions { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .bottom-actions .bottom-action[aria-current="page"] { background: #e3eedb; }
  }
  @media (forced-colors: active) {
    .bottom-actions .bottom-action[aria-current="page"] { background: Highlight; color: HighlightText; }
  }
  body:has(.bottom-actions) :is(.request-bar, .project-bar) { bottom: var(--bottom-actions-space); }
  html:has(.bottom-actions):is(:has(.request-page), :has(.build-page)) { scroll-padding-bottom: calc(var(--bottom-actions-space) + var(--bar-space, 0px)); }
}
@media (min-width: 768px) {
.wa-watch { position: fixed; right: 16px; bottom: calc(16px + var(--bar-space, 0px)); z-index: 900; display: block; width: 60px; height: 60px; border-radius: 50%; opacity: 0; visibility: hidden; pointer-events: none; animation: wa-bob 3.4s ease-in-out infinite; transition: opacity 0.2s var(--ease), visibility 0.2s, bottom 0.25s var(--ease); -webkit-tap-highlight-color: transparent; }
.wa-watch.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.wa-watch-glyph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #25D366; box-shadow: 0 8px 20px rgba(11, 13, 16, 0.28), inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease), background 0.2s; }
.wa-watch-glyph svg { position: relative; z-index: 1; width: 56%; height: 56%; animation: wa-nudge 6s ease-in-out infinite; transform-origin: 50% 60%; }
.wa-watch-glyph::before, .wa-watch-glyph::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; animation: wa-pulse 3s ease-out infinite; }
.wa-watch-glyph::after { animation-delay: 1.5s; }
.wa-watch:hover .wa-watch-glyph { transform: scale(1.08); background: #1FBE5B; }
.wa-watch:active .wa-watch-glyph { transform: scale(0.94); }
@keyframes wa-nudge { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 93% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }
.wa-watch:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@keyframes wa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* Keep the pulse inside the 16px viewport inset, including the hover scale. */
@keyframes wa-pulse { 0% { opacity: 0.8; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .wa-watch, .wa-watch-glyph svg, .wa-watch-glyph::before, .wa-watch-glyph::after { animation: none; } .wa-watch, .wa-watch-glyph { transition: none; } }
.wa-watch { border-radius: 50%; box-shadow: 0 4px 20px #1115101A; }
.wa-watch::before, .wa-watch::after { display: none; }
.wa-watch:focus-visible { outline: 3px solid var(--ink, #111510); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white, #fff), 0 4px 20px #1115101A; }
}
@media (prefers-reduced-motion: reduce) { .bottom-actions .bottom-action { transition: none; } }
