/* LiveLoop's grouped toolbar buttons (owner, 2026-10-26): Manual input and
   Connectivity, and the originals they press. Driven by liveloop-toolbar.js.
   The pop-ups are white with black text in every theme (as Queue and Tasks
   are, request 560), so every colour here is forced. */

/* The originals stay in the DOM for their handlers; nothing shows them. */
:root:root:root:root body #liveloop-container .ll-grouped { display: none !important; }

/* The pop-up, fixed to the button's place on screen. */
:root:root:root:root body .ll-popmenu {
  position: fixed; z-index: 19800; box-sizing: border-box;
  min-width: 240px; max-width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  padding: 8px; border-radius: 14px;
  background: #fff !important; color: #111 !important; -webkit-text-fill-color: #111 !important;
  border: 1px solid #d9d9e0 !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .12) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important;
  font: 500 13px/1.3 Inter, system-ui, sans-serif; text-align: left;
  opacity: 0; transform: translateY(-4px); transition: opacity .14s ease, transform .16s ease;
}
:root:root:root:root body .ll-popmenu[hidden] { display: none !important; }
:root:root:root:root body .ll-popmenu.is-open { opacity: 1; transform: none; }
:root:root:root:root body .ll-popmenu .ll-popmenu-title {
  padding: 4px 8px 8px; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #555 !important; -webkit-text-fill-color: #555 !important;
}
:root:root:root:root body .ll-popmenu .ll-popmenu-item {
  appearance: none; display: grid; cursor: pointer; box-sizing: border-box; width: 100%; margin: 0;
  border: 1px solid transparent !important; border-radius: 10px !important;
  background: #fff !important; color: #111 !important; -webkit-text-fill-color: #111 !important;
  box-shadow: none !important; filter: none !important; text-align: left; font: inherit;
  transition: background-color .12s ease, border-color .12s ease;
}
:root:root:root:root body .ll-popmenu .ll-popmenu-item i { color: #111 !important; -webkit-text-fill-color: #111 !important; }
:root:root:root:root body .ll-popmenu .ll-popmenu-item b { font: 700 13px/1.2 Inter, system-ui, sans-serif; color: #111 !important; -webkit-text-fill-color: #111 !important; }
:root:root:root:root body .ll-popmenu .ll-popmenu-item small { font: 500 11.5px/1.3 Inter, system-ui, sans-serif; color: #555 !important; -webkit-text-fill-color: #555 !important; }
:root:root:root:root body .ll-popmenu .ll-popmenu-item:hover,
:root:root:root:root body .ll-popmenu .ll-popmenu-item:focus-visible { background: #f2f2f6 !important; border-color: #d0d0da !important; outline: none; }
:root:root:root:root body .ll-popmenu .ll-popmenu-item:focus-visible { box-shadow: 0 0 0 2px #6d28d9 !important; }

/* Manual input: a list, icon at the left. */
:root:root:root:root body .ll-popmenu-list .ll-popmenu-items { display: flex; flex-direction: column; gap: 2px; }
:root:root:root:root body .ll-popmenu-list .ll-popmenu-item {
  grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 9px 10px;
}
:root:root:root:root body .ll-popmenu-list .ll-popmenu-item i { grid-row: 1 / span 2; font-size: 15px; text-align: center; }

/* Connectivity: four icon tiles. */
:root:root:root:root body .ll-popmenu-tiles { width: 340px; }
:root:root:root:root body .ll-popmenu-tiles .ll-popmenu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
:root:root:root:root body .ll-popmenu-tiles .ll-popmenu-item {
  justify-items: center; align-content: start; gap: 6px; padding: 14px 10px 12px; text-align: center;
  border-color: #e4e4ea !important; min-height: 48px;
}
:root:root:root:root body .ll-popmenu-tiles .ll-popmenu-item i { font-size: 20px; margin-bottom: 2px; }
:root:root:root:root body .ll-popmenu-tiles .ll-popmenu-item small { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  :root:root:root:root body .ll-popmenu { transition: none; transform: none; }
}
