/* The dropdown menus as those of macOS (the context menu of Safari/Chrome): a frosted dark sheet with a hair edge, rows 24px high with 12px text, the row under the pointer filled
   with the accent blue and white text, thin separators, a heading in small grey text. Sizes are read from a macOS context menu (rows about 22-24px, the sheet's radius about 10px,
   an inset of 5px, rows with 10-12px side padding); the sheet is 210px wide at least. Loaded after the other stylesheets, so that it wins. */
:root {
  --menu-bg: rgba(246, 247, 250, 0.84);
  --menu-rim: rgba(27, 37, 71, 0.16);
  --menu-sep: rgba(27, 37, 71, 0.13);
  --menu-pick: #0a7aff;
}
:root[data-theme="dark"] {
  --menu-bg: rgba(44, 44, 46, 0.8);
  --menu-rim: rgba(255, 255, 255, 0.16);
  --menu-sep: rgba(255, 255, 255, 0.13);
  --menu-pick: #0a84ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --menu-bg: rgba(44, 44, 46, 0.8);
    --menu-rim: rgba(255, 255, 255, 0.16);
    --menu-sep: rgba(255, 255, 255, 0.13);
    --menu-pick: #0a84ff;
  }
}
.menu {
  min-width: 210px;
  padding: 5px;
  border: 0;
  border-radius: 10px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 0.5px var(--menu-rim), 0 12px 30px -6px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.18);
  animation: menu-in 0.12s ease-out;
}
.menu-item {
  display: block;
  padding: 2px 12px;
  min-height: 24px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 20px;
}
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: var(--menu-pick); color: #fff; outline: none; }
.menu-item:disabled { color: var(--faint); }
.menu-item.danger { color: #ff453a; }
.menu-item.danger:hover:not(:disabled), .menu-item.danger:focus-visible { background: var(--menu-pick); color: #fff; }
.menu-sep { height: 1px; margin: 5px 12px; background: var(--menu-sep); }
.menu-head { padding: 4px 12px 5px; font-size: 12px; line-height: 16px; }
