.context-actions {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: calc(108px + var(--safe-bottom, 0px));
  translate: -50% 0;
  width: max-content;
  max-width: min(480px, calc(100% - 40px - var(--safe-left, 0px) - var(--safe-right, 0px)));
  color: #fff2f7;
  pointer-events: auto;
}
.context-actions[hidden] { display: none; }
.context-actions-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.context-actions-row { display: flex; align-items: stretch; gap: 6px; }
.context-actions button {
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  min-width: 66px;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #fff2f7;
  font: 400 12px/1.3 var(--sans, sans-serif);
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 3px #17132080;
  cursor: pointer;
  touch-action: manipulation;
}
.context-actions button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid #f0dce62b;
  border-radius: 18px;
  background: #2e273570;
  backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s;
}
.context-actions button:hover::before { background: #4c3b50b3; border-color: #f3dce75e; }
.context-actions button:focus-visible, .context-actions:focus-visible { outline: 2px solid #fff4b8; outline-offset: 3px; }
.context-actions button:disabled { cursor: wait; opacity: .65; }
.context-actions-enabled #interact-button { display: none; }
.context-actions-visible .forest-notice { top: auto; bottom: calc(176px + var(--safe-bottom, 0px)); }
body[data-compact=true] .context-actions { bottom: calc(86px + var(--safe-bottom, 0px)); }
body[data-compact=true].context-actions-visible .forest-notice { bottom: calc(148px + var(--safe-bottom, 0px)); }
@media (max-width: 380px) {
  .context-actions { max-width: calc(100% - 28px - var(--safe-left, 0px) - var(--safe-right, 0px)); }
  .context-actions button { padding-inline: 10px; }
}
@media (max-height: 500px) {
  .context-actions { bottom: calc(86px + var(--safe-bottom, 0px)); }
  .context-actions-visible .forest-notice { bottom: calc(148px + var(--safe-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .context-actions button::before { transition: none; } }
