.cm-create-menu {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--c-line); border-radius: 24px; background: var(--c-page); color: var(--c-ink);
  box-shadow: 0 20px 64px rgb(0 0 0 / .22);
}
.cm-create-menu:not([open]) { display: none; }
.cm-create-menu[open] { display: flex; flex-direction: column; overflow: hidden; }
.cm-create-menu::backdrop {
  background: rgb(0 0 0 / .32);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.cm-create-menu__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex: none; padding: 20px 20px 12px;
}
.cm-create-menu__head form { margin: 0; }
.cm-create-menu__head h2 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 650; letter-spacing: -.025em; }
.cm-create-menu__head p { margin: 4px 0 0; color: var(--c-dim); font-size: 13px; line-height: 20px; }
.cm-create-menu__body { display: grid; gap: 12px; min-height: 0; padding: 0 20px 20px; overflow: auto; }
.cm-create-menu__body h3 { margin: 0 0 4px; padding-inline: 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--c-dim); }
.cm-create-menu__options { background: var(--c-soft); border-radius: 12px; }
.cm-create-menu__close, .cm-create-menu__options > :is(a, button) {
  border: 0; color: inherit; font: inherit; cursor: pointer;
}
.cm-create-menu__close {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; background: var(--c-soft); color: var(--c-dim);
}
.cm-create-menu__options > :is(a, button) {
  box-sizing: border-box; display: grid; grid-template-columns: 32px minmax(0, 1fr) 12px; align-items: center;
  gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px;
  background: transparent; text-align: start; text-decoration: none;
}
.cm-create-menu__options > :is(a, button) + :is(a, button) { border-top: 1px solid var(--c-line); }
.cm-create-menu__options > :first-child { border-start-start-radius: 12px; border-start-end-radius: 12px; }
.cm-create-menu__options > :last-child { border-end-start-radius: 12px; border-end-end-radius: 12px; }
.cm-create-menu__options > :is(a, button):hover, .cm-create-menu__close:hover {
  background: color-mix(in srgb, var(--c-ink) 9%, var(--c-page));
}
.cm-create-menu :is(a, button):focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.cm-create-menu__options > :is(a, button)::after {
  content: ""; width: 6px; height: 6px; justify-self: center;
  border: solid var(--c-dim); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
}
.cm-create-menu__icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--c-page); color: var(--c-ink);
}
.cm-create-menu__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cm-create-menu__options strong, .cm-create-menu__options small { display: block; }
.cm-create-menu__options strong { font-size: 14px; line-height: 20px; font-weight: 600; }
.cm-create-menu__options small { color: var(--c-dim); font-size: 12px; line-height: 16px; }
.cm-create-menu__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cm-create-menu__options > [hidden], .cm-create-menu__body > [hidden], .cm-create-menu__body section[hidden] { display: none; }
html[data-appearance="glass"] .cm-create-menu {
  --c-page: color-mix(in srgb, #12151c 78%, transparent);
  --c-ink: #ffffff;
  --c-dim: rgb(255 255 255 / .72);
  --c-soft: var(--gl-fill, rgb(255 255 255 / .12));
  --c-line: var(--gl-rim, rgb(255 255 255 / .24));
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
