/* Floating things: the popover menu, the command palette, the "new version" bar. */
.menu { position: fixed; z-index: 30; min-width: 220px; padding: var(--sp-2); display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.menu-item { display: flex; align-items: center; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text); text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: 0; }
.menu-header { display: flex; flex-direction: column; padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.menu-divider { border: 0; border-top: 1px solid var(--line); margin: var(--sp-1) 0; }

.palette-host { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.scrim.shown { opacity: 1; pointer-events: auto; position: fixed; inset: 0; }
.palette { position: relative; width: min(620px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.palette-field { display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-4); height: 52px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: var(--fs-md); }
.palette-list { list-style: none; margin: 0; padding: var(--sp-2); overflow: auto; }
.palette-group { padding: var(--sp-3) var(--sp-3) var(--sp-1); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-3); border-radius: var(--radius-control); cursor: pointer; }
.palette-item.active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.palette-empty { padding: var(--sp-5); color: var(--muted); text-align: center; }

.update-bar { position: fixed; left: 50%; top: var(--sp-3); transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4); background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius-widget); box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); }
