/* The search palette (/ or ⌘K); see palette.js. */
.palette-button {
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
}

dialog.palette {
  width: min(40rem, calc(100vw - 32px));
  margin-top: 12vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

dialog.palette::backdrop {
  background: rgb(0 0 0 / 0.35);
}

.palette input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 17px;
  background: transparent;
  outline: none;
}

.palette-rows {
  list-style: none;
  margin: 0;
  padding: 4px 6px 8px;
  max-height: min(420px, 55vh);
  overflow-y: auto;
}

.palette-section {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px 2px;
}

.palette-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.palette-row.on {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.palette-icon {
  width: 18px;
  text-align: center;
  color: var(--muted);
}

.palette-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palette kbd {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}

.palette-help {
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
}

/* A place picked in the palette, on the Places view. */
.places li.flash {
  animation: flash 2.5s ease-out;
}

@keyframes flash {
  from {
    background: color-mix(in srgb, var(--accent) 25%, transparent);
  }
}
